schmittjoh/JMSPaymentPaypalBundle

How to handle the Payment process?

Closed this issue · 1 comments

Hi,

I'm trying to implement the PaypalBundle.

But I'm stuck at getting the approved Status to my Payments.
Probably I have a basic lack of understanding the workflow of PayPal.

So how it works:

You need a route which calls the Action of the Controller(In my case its the provided DemoController)
First Problem here:
How to retrieve the payment Id out of the Callback?
Second:
The Return_Url should be the same as the first URL that called the Payment? Or is it better have a second Approve method?

Could you give me a short example how it would work in the routing.yml?

You create the Order information.
3.
You get redirected to PayPal
4.
Login,Pay ...blabla...
5.
You get redirected again to your site.

But I'm realy missing the point of the approvement. The rest works out really great!

Edit:
If I pay a Product at PayPal I get redirected to my Site with the following Url:
www.example.com/payment?token=EC-6NN30990X6473872T&PayerID=ZVRSWV9RHT3PS

Which of these is my Payment Id? Or any Id I could reuse?

With best regards Robin

Hi,

I'm still really stuck here. Could somebody pls help me?

Best regards Robin