CasperLaiTW / laravel-fb-messenger

Laravel Facebook Messenger Provider
MIT License
105 stars 27 forks source link

Payments api #34

Open CasperLaiTW opened 8 years ago

CasperLaiTW commented 8 years ago

Pending!!

Not in US. I CAN'T apply for beta program.

CasperLaiTW commented 7 years ago

According to #59 @sbasi5576

Thanks. Also we know that you are overseas. But is there a way for you publish the interface to payments API? We can test it in the US.

I didn't get App to testing payments API.

If I make it only following documents, I can't check API working good or not.

Is any idea how can I request payment API?

seatechdev commented 7 years ago

Based on the facebook documentation it is just another button type. https://developers.facebook.com/docs/messenger-platform/complete-guide/payments

To test the actual payments you need a real world app and go through facebook's approval process.

CasperLaiTW commented 7 years ago

so you mean make a buy button Payment will be working?

seatechdev commented 7 years ago

Buy Button - Messenger Platform.pdf Receipt Template - Messenger Platform.pdf Payments (BETA) - Messenger Platform.pdf

Here is the full description of the buy button:

https://developers.facebook.com/docs/messenger-platform/send-api-reference/buy-button It has dependency on the Receipt Template. https://developers.facebook.com/docs/messenger-platform/send-api-reference/receipt-template

Another options facebook has is that they use javascript API:

https://developers.facebook.com/docs/messenger-platform/complete-guide/payments#webview_payments

Essentially, clicking on a Buy button - either for the Button or the Javascript API - facebook sends a tokenized credit card (a credit card number that has been converted into a short lived token for that transaction). That token can be used with Paypal, Stripe or another payment processor to process the payment.

Since you are overseas and if you are having trouble accessing these documents the links above, please ping me and I can email these to you.

I have attached the PDF version of the pages so that you can go through them.

CasperLaiTW commented 7 years ago

I can get those documents, but I can't request beta.

It's a big problem for develop library, because I can't confirm the method is working or not.