Search code examples
paypalpaypal-rest-sdkomnipaysymfony-2.7

Paypal integration GET to POST conversion in symfony 2


I am quite new to PayPal integration on my site I have integrated PayPal by express checkout by using GET method but PayPal is discontinuing GET call so how I can convert GET to POST call?

My project in Symfony 2.7 and I used omnipay bundle for PayPal integration, Express gateway type is used. Thanks in advance.


Solution

  • If you are using the PayPal Express omnipay gateway (PayPal_Express) then all of the calls in that gateway are already POST calls. There is no need to convert GET calls to POST calls.

    In general I would advise use of the PayPal_REST gateway rather than PayPal_Express, the calls are more up to date and the documentation is better. You can go into your developer site for PayPal and obtain API keys for REST which you can use alongside your Express keys while you change over.