cocoastorm / vue-paypal-checkout

A simple Vue.js wrapper component for paypal-checkout
MIT License
153 stars 67 forks source link

Notification url #18

Closed l770277 closed 6 years ago

l770277 commented 6 years ago

Hi possible is add to props a key of 'notification_url'. I mean a place for IPN

PayPal posts HTML FORM variables to a program at a URL you specify. You can specify this URL either in your account profile or with the notify_url variable on each transaction.

cocoastorm commented 6 years ago

Hey @l770277,

Is there a link to the official PayPal docs I can reference from? If I'm reading this correctly this would be part of the transaction object... correct?

l770277 commented 6 years ago

https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/

https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/#id089EG030E5Z


Dynamically Setting the Notification URL

You can specify an IPN listener for a specific payment; this is the only way to receive IPNs associated with Adaptive Payments. In this case, PayPal sends the IPN message to the listener specified in the notification URL for a specific button or API operation instead of the listener specified in your Profile.

To specify a notification URL:

For a/an ... | specify your IPN Listener's URL in the ...
-- | --
PayPal Payments Standard button | notify_url HTML form variable
cocoastorm commented 6 years ago

Hey @l770277,

So after reading the docs carefully, I've added a notify-url prop to the transaction object instead. As the docs you referenced for me seemed to be referring to the PayPal Button for an HTML form which differs significantly from paypal-checkout.

notify_url string
The URL to send payment notifications.

If you want I can publish a beta you can try testing out? I've added it in the feat/add-notify_url branch

cocoastorm commented 6 years ago

Published Beta! vue-paypal-checkout@2.3.4-beta.1

l770277 commented 6 years ago

Very thanks!

cocoastorm commented 6 years ago

Hey @l770277,

Did it work? If so, I'll merge it back to master and publish it officially.

Cheers!

l770277 commented 6 years ago

Hi, yes it works properly

cocoastorm commented 6 years ago

Hey,

vue-paypal-checkout@2.3.5 published! :rocket:

Please tell me if anything changed. It shouldn't haha.