Skip to content

Commit 5169cc5

Browse files
committed
Merge pull request #24 from SeraphimSerapis/master
Adds callback parameter
2 parents 0448cfe + c2fb8ea commit 5169cc5

8 files changed

Lines changed: 17 additions & 1743 deletions

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,14 @@ All of PayPal's [HTML button variables](https://cms.paypal.com/us/cgi-bin/?cmd=_
7474
* `data-tax` Transaction-based tax override variable.
7575
* `data-size` For button images: `small` and `large` work. For QR codes enter the pixel length of the longest side.
7676
* `data-locale` The desired locale of the PayPal site.
77+
* `data-callback` The IPN notify URL to be called on completion of the transaction.
7778

7879

7980
## Editable fields
8081
Creating editable fields is easy! Just add `-editable` to the name of your variable, e.g. `data-quantity-editable`, and an input field will magically appear for your users.
8182

83+
## Callback notification
84+
On completion of a transaction you can get a payment notification ([IPN](https://www.x.com/developers/paypal/documentation-tools/ipn/integration-guide/IPNIntro)) on a callback URL you specify using the `data-callback` attribute. An [IPN simulator](https://developer.paypal.com/webapps/developer/applications/ipn_simulator) is available on the sandbox.
8285

8386
## Localization
8487
* Changing the default language of a button can be done by setting the variable `data-lc` with the correct locale code, e.g. es_ES.

0 commit comments

Comments
 (0)