silentzco / statamic-charge

4 stars 7 forks source link

How to implement other payment methods #4

Open studio1902 opened 4 years ago

studio1902 commented 4 years ago

When using creditcards you need to post to /!/Charge/subscription. How do you implement other payment methods that have a different flow from credit cards. For example iDeal goes to an external page and then redirects back to your own site using a return_url.

How and where do you handle payment results with Charge this way?

edalzell commented 4 years ago

Do you mean still using Stripe?

studio1902 commented 4 years ago

Yeah, using Stripe and Elements. As the flow is different for other payment methods. I wouldn't know how to implement them using Charge.

studio1902 commented 4 years ago

I just noticed that 'payment_method_types' is currently hardcoded on the PHP side. Does this mean other payment types aren't supported or is this just WIP.

edalzell commented 4 years ago

Card only at the moment, sorry. Step one, get it working. THEN expand, if needed.

studio1902 commented 4 years ago

Right, good to know. Will not try to implement then.

edalzell commented 4 years ago

@studio1902 next version sits on top of Larvel's Cashier, is it supported in Cashier?

studio1902 commented 4 years ago

Sorry, I don't know anything about Cashier. I do see there's a Cashier Mollie package which could be nice for the EU market.