Is there any way to hide specific payment gateways for a draft order checkout?

ophinjay
Shopify Partner
10 0 6
Hey everyone, 
 
I have a public app that creates draft orders for the store on which it is installed. One of the stores’ that has installed my app is using Shopify Payment scripts to disable some payment methods based on the delivery pincode.
  • The problem is that payment scripts scripts do not get triggered for draft orders. So these restrictions do not get applied
  • I tried using Payment customisations provided by Shopify functions. Ended up with the same result there as well. They do not trigger for draft orders
Is there any way to disable specific payment options (like Cash On Delivery) for a draft order checkout? Are there alternatives to this approach
Replies 8 (8)

Masad
Shopify Partner
7 0 6

Any update on this? 

ShopifyDevSup
Shopify Staff
1440 236 492

Hi all, thanks for getting in touch. At the moment, because draft orders are processed slightly differently than online checkouts, scripts aren't activated on checkout for these types of invoice payment URLs. There is a bit more information on that here. That said, I'm going to go ahead and draft a report on your feedback here and share it with our product team for consideration as a feature request. I can't guarantee anything on my end, but I do see the use-case value here, especially combined with Shopify Functions. 

Thanks for reaching out, please feel free to respond here if there are any other details/use-cases you'd like to share, happy to keep chatting on this. 

 

Al | Shopify Developer Support

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Masad
Shopify Partner
7 0 6
Am using the draft checkout to implement different line item discounts. If
Customization on Draft checkout is not possible for now, so can you please
help to implement different line item discounts with Shopify Functions
Product Discount API, this also seems a limitation from Shopify Side.
<>

If different line item discounts are possible with Shopify Function Product
Discount API, we might not need the Draft Order checkout, and the issue
will be resolved by using regular checkout.

Waiting for your reply. Thanks

ShopifyDevSup
Shopify Staff
1440 236 492

Hey @Masad - just reaching back out here to confirm that I was able to pass on this feedback to our product team for future consideration. That said, we can't guarantee how feedback is processed or if it will be implemented by the product team and won't be able to share updates on a case-by-case basis. Please follow our changelog here at this link for more information on all updates going forward, but don't hesitate to reach out again if you have any other ideas for improvement that you would like to share. We do try to take all feedback into consideration - so I just wanted to thank you for getting in touch through the forums again - it's really appreciated. 

Al | Shopify Developer Support

 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

d8on
Shopify Partner
4 0 8

We really want to see this feature as well. 


Sometimes we'll offer a custom discount for a customer, on a particular line item. But when we offer a discount, we kindly ask them to use a direct Venmo payment so we can avoid additional CC processing fees. We're already helping them by giving them a discounted price and they're usually okay just to do a direct Venmo payment... but I want to be able to only allow that single custom payment method that we've added, instead of them being confused and using the Shopify VENMO payment button or forgetting that they were going to Venmo us directly. If we can limit the payment type to a specific selection, this would allow the flexibility that we need.

rohanrajpal
Shopify Partner
38 0 13

Hey, would love to see this option as well.

We allow merchants to build COD to Prepaid flows where a draft order is created and its checkout link is sent to the customer, but the customer can then again see the COD option, which we dont want.

 

Founder | meetspur.com
Feel free to reach out to me at howdyrohan@gmail.com or @rohanrajpal98 on Twitter
DaveNZ
Tourist
4 0 1
Hi, Is there any update on this issue?
I have a wholesale pricing app that creates draft orders but I also use another app called high pay to disable some payment methods based on the customer tag. This works perfectly so long as the wholesale app doesn't add a discount and creates a "draft order".
  • The problem is the hide pay app won't work for draft orders. 
Is there any way to disable specific payment options (like 20th month payment or credit card options) for a draft order checkout? Are there any alternatives?
kurveej
Shopify Partner
11 0 1

Hello @ShopifyDevSup any update on the Shopify function working on draft order? because our public app has feature to hide/show rename feature so that is not working currently for draft order invoice URL.

 

If possible please make this done in priority because many app needs this feature on draft order.

 

Thanks,

Kurvi

Kurvi Kansagra