Need some direction to implement Sofort (a payment gateway) using Stripe in Android

北城余情 提交于 2021-01-29 16:49:22

问题


I'm implementing Sofort payment gateway in Android by the help of Stripe and I need some direction. I'm following Stripe Doc

I've successfully done till Step 2 but I'm not understanding how to go with Point 3 to Charge the Source & webhooks. Will there be some backend coding to implement webhooks?

If someone has already implemented Sofort please post it. I'll be very thankful. Please I need attention on this.


回答1:


You are correct that you need to do Steps 3 and 4 on the back end. You would pass the Source's 'id' to your backend server and start with the example code in Step 3:

https://stripe.com/docs/sources/sofort#make-a-charge-request-using-the-source

Then in Step 4 you implements a Webhook Endpoint that listens for the updated events:

https://stripe.com/docs/webhooks



来源:https://stackoverflow.com/questions/62558425/need-some-direction-to-implement-sofort-a-payment-gateway-using-stripe-in-andr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!