You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to build a payment app, and found that the docs might be contradicting themselves, or don't explain the differences between "Payment flow" and "Transaction flow".
I want to display the payment methods my app provides in the storefront instead of just showing the app, so for example show "Card", "Bank transfer" etc instead of just "Stripe" or "simple-payment-gateway". To do this, Timur from discord recommended using the PAYMENT_LIST_GATEWAYS webhook, so my app can list methods my app provides in format app:<app-id>:<method>. This looked appealing, so I tried it, but it doesn't work, as from reading the docs I understand this is a soon to be deprecated payment flow using checkoutPaymentCreate instead of transactions.
I set my app up for that webhook and got:
The only way to display available payment methods inside the storefront using the "Transaction flow" from what I see is to fiddle with the data field on transactionInitialize, and then extract those in my storefront manually, making this a volatile process because of untyped json.
Assuming I did something wrong, how would I even work with the provided mix of gateways? I can see both the main app and it's payment methods, and would have to manually filter through them somehow, which will make it feel like a workaround, and not the intended way to use this.
How is then meant to be done? Do I just have to show the app name and redirect the user to the payment app, or just assume it's there, hardcode it's payment methods ahead of time and pass the method around in data?
This part of the docs is lacking to me, I would appreciate something to clear this up.
The text was updated successfully, but these errors were encountered:
Hello, I'm trying to build a payment app, and found that the docs might be contradicting themselves, or don't explain the differences between "Payment flow" and "Transaction flow".
I want to display the payment methods my app provides in the storefront instead of just showing the app, so for example show "Card", "Bank transfer" etc instead of just "Stripe" or "simple-payment-gateway". To do this, Timur from discord recommended using the
PAYMENT_LIST_GATEWAYS
webhook, so my app can list methods my app provides in formatapp:<app-id>:<method>
. This looked appealing, so I tried it, but it doesn't work, as from reading the docs I understand this is a soon to be deprecated payment flow usingcheckoutPaymentCreate
instead of transactions.I set my app up for that webhook and got:
using any of the methods provided by simple-payment-gateway like:
I received:
Meaning these seem to be two different flows to handle checkouts.
https://docs.saleor.io/docs/3.x/developer/checkout/finalizing#finalizing-checkout-with-saleors-payment-gateways says "payment plugins" are being deprecated, and https://docs.saleor.io/docs/3.x/developer/extending/webhooks/synchronous-events/payment doesn't.
The only way to display available payment methods inside the storefront using the "Transaction flow" from what I see is to fiddle with the data field on
transactionInitialize
, and then extract those in my storefront manually, making this a volatile process because of untyped json.Assuming I did something wrong, how would I even work with the provided mix of gateways? I can see both the main app and it's payment methods, and would have to manually filter through them somehow, which will make it feel like a workaround, and not the intended way to use this.
How is then meant to be done? Do I just have to show the app name and redirect the user to the payment app, or just assume it's there, hardcode it's payment methods ahead of time and pass the method around in data?
This part of the docs is lacking to me, I would appreciate something to clear this up.
The text was updated successfully, but these errors were encountered: