I am looking into cover our PayPal integration with integration tests to verify all payment flows work correct.
We are currently supporting both Stripe and Paypal as payment providers. With Stripe, its possible to generate payment tokens etc. through their api and thereby "simulate" an end to end payment scenario.
I am looking into doing the same with Paypal adaptive payments (preapproval flow), but I can't seem to find any resources for "approving" my preapproval token through their API.
Even if I assign a sender to the preapproval request where I have permissions to make charges on their behalf (3rd party "AUTH_CAPTURE").
Anyone that can help point me in the right direction for fully automated testing of paypal payment flows. Having to manually log in and approve every key for every test is not a scalable solution :(
Aucun commentaire:
Enregistrer un commentaire