saurabh73 / medusa-payment-paytm

Medusa integration to Paytm
3 stars 3 forks source link

Storefront Configuration #2

Open sebabratakundu opened 1 year ago

sebabratakundu commented 1 year ago

There is no doc how to setup the storefront to have the paytm button. As I know that, paytm will return a payment URL, in which we have to redirect the user. It will be helpful, if a guide or a demo video is provider about how to configure the front-end. Also how did you handle the callback after payment is successful. do we have to create a route in API folder for that?

saurabh73 commented 1 year ago

@sebabratakundu the plugin is exposing a hook for handling callback. Endpoint POST /paytm/hooks/. For frontend I will try to create a example for this, that would be indeed helpful.