Solved

Shopify Payment customization

garyrgilbert
Shopify Partner
397 40 165

Hey All,

 

Diving into the payment customizations Function/Extension. Followed along with the tutorial (bit if a PITA with the cli 3.0 for Windows users but thats another story).

 

Anyway the basic functionality works as expected.  What I am intrigued about, and hence my question, is this little part of the app setup.

garyrgilbert_0-1688559041399.png

So the payment customization is under the umbrella of checkout ui extensions, and apparently with this being enabled I should have "network access to make external calls" enabled.  Question is what exactly can I use to make external network calls when the Fetch API or XMLHttpRequest is not supported for JS and the I get a compile error when trying to include the reqwest crate.

 

Could someone please help me out with this?

 

Cheers,

Gary

 

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Accepted Solution (1)

SBD_
Shopify Staff
1829 270 410

This is an accepted solution.

Hey @garyrgilbert,

 

Payment customizations are Shopify Functions (not Checkout UI Extensions) and network access isn't supported.

Scott | Developer Advocate @ Shopify 

View solution in original post

Replies 8 (8)

SBD_
Shopify Staff
1829 270 410

This is an accepted solution.

Hey @garyrgilbert,

 

Payment customizations are Shopify Functions (not Checkout UI Extensions) and network access isn't supported.

Scott | Developer Advocate @ Shopify 

garyrgilbert
Shopify Partner
397 40 165

Hi Scott,

 

Thanks for the information, its a bit confusing really... Being able to affect which payment methods are displayed could be considered an UI change.. 🙂 but lets leave it at semantics and understanding.

 

What several of my customers (merchants) would like is the ability to run a credit check on customers before allowing them to purchase with a manual payment.  What would be incredible is if shopify allowed developers like myself make manual payment gateways to similar to normal payment apps. But don't actually collect payment, simply provide a means of verifying information and either letting the order get created or preventing it.  This would allow merchants who still wish to invoice their customers have an additional method of screening low credit customers from using the manual payment method. Similar to offsite payment app, but without any actual payment processing.  I realize this would open a whole pandora box of potential abuse, misuse and sneaking by the incredibly difficult process of becoming a payment partner (I have colleagues who submitted an application 1 1/2 years ago and never heard back a thing not even a "thanks, but no thanks" reply, simply nothing)

 

Never the less, with the "old" checkout I could prevent the selection of the manual gateway, and even remove it from the dom, if a customer failed the basic credit check. I had hopes that I could continue to do this from within the Shopify functions.

 

Cheers,

Gary

 

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
SBD_
Shopify Staff
1829 270 410

Hey @garyrgilbert,

 

That's great feedback + use case and I'll pass it along to the payment folks. Thanks.

 

Agreed after the old approach it feels like it would sit under a UI change. Functions allows you to run the logic on the backend instead of hiding the option client-side - although admittedly there's less freedom than running JS anywhere.

 

Thinking about workarounds, the Payment Customization API has access to the Customer information, so you could look for specific tags to determine whether a customer has passed a credit check. Not a perfect solution here and could hit race conditions (if you were to tag on the fly) but wanted to float it in case it was useful!

Scott | Developer Advocate @ Shopify 

ovaisshaikh2
Shopify Partner
4 0 1

Hi, I am facing an issue. On my development store the payment extension shows but as soon I publish private custom app for single store on that store it's not showing. Any reason?

recindo
Shopify Partner
3 0 0

I'm facing this issue as well. Spent a few hours debugging and deployed multiple app versions but I couldn't get it working on a production store. Were you able to find a solution to the issue?

garyrgilbert
Shopify Partner
397 40 165

Is your single store a plus shop? I just successfully published my first checkout extension to a plus shop without issue

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
recindo
Shopify Partner
3 0 0

It's just a Shopify Basic store. I was able to find a third party app that did what I wanted to in the end, but as a developer I'm really confused and frustrated why the app didn't work on the production store when it did on my development store.

Verdant-Spark
Shopify Partner
99 8 32

Did you ever get to the bottom of this? I'm now facing the same issue.