Skip to content

Saleor-checkout-app - verify session ? #452

Answered by peelar
slamer59 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @slamer59 👋

what is expect'ed from saleor to verify session ?

saleor-app-checkout includes three payment gateway integrations (Stripe, Mollie, and Adyen) that follow the same structure. If you want to build another integration, I suggest going to saleor-app-checkout/backend/payments/providers and looking for clues there.

In each verifySession.ts file you will find two functions: verifyXYZSession and reuseExistingXYZSession. They always return the same type of data (see: ReuseExistingVendorSessionFn from apps/saleor-app-checkout/backend/payments/types.ts). If you know what your functions must return, you can try to work backward from there.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by typeofweb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants