Test subscr_payment using PayPal ipn simulator

I would like to test txn_type 'subscr_payment' using paypal ipn simulator.
but there is no such choice.

enter image description here

whereas as you can see here there is such a type txn

enter image description here

+6
source share
3 answers

Right; not all transaction types are currently supported in the IPN simulator.
We plan to add more scripts to the simulator, but for this type of testing (which will require several consecutive IPN messages), I would recommend creating a subscription button in the sandbox environment and executing it manually.

Unfortunately, this is the only way to simulate IPN subscription messages today.

+9
source

I also wonder if you can simulate a subscription in IPN Simulator, but based on the selection, you cannot simulate a subscription using IPN Simulator.

The best way to simulate a subscription is to create Sandbox test accounts : one for the buyer and one for the seller. You can do this by going to Paypal Developer and going to Applications → Sandbox Accounts.

My test Sandbox accounts: one for the buyer and one for the seller: My Sandbox test accounts: one for the buyer and one for the seller

Once you create two test accounts, go to the Paypal Sandbox website website , log in to your test buyer account and create a subscribe button. Wallah! You made. Note. Be sure to set the billing cycle for only 1 day so that you quickly test your IPN Paypal receiver .

Sandbox Subscription Button: Sandbox Subscription Button image

Sandbox test account email notifications can be seen in Sandbox Notifications notifications .

+5
source

From the PayPal developer site, you can go to the IPN simulator, select "Transaction Type" as "Web Reception", click "Show All Fields". Then you can change txn_type as subscr_payment, subscr_signup, etc.

This is not ideal, since it does not give you all the variables, but you can put the information in other records and use the logical determination of whether the correct record exists.

Make one test subscription so that you have values, and then work there

+4
source

Source: https://habr.com/ru/post/952495/


All Articles