Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

test subscr_payment using paypal ipn simulator

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

enter image description here

while as you can see here there is such txn type

enter image description here

like image 821
yossi Avatar asked Aug 26 '13 11:08

yossi


3 Answers

Correct; not all transaction types are currently supported in the IPN simulator.
We are planning to add more scenarios to the simulator, but for this kind of testing (which would require multiple successive IPN messages), I would recommend creating a subscription button in the sandbox environment and having it bill manually.

Unfortunately that's the only way to simulate subscription IPN messages today.

like image 89
Robert Avatar answered Oct 24 '22 07:10

Robert


I also wonder if you can simulate subscription in IPN Simulator, but based on the choices, there is no way you can simulate subscription using IPN Simulator.

The best way to simulate 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 go to Applications -> Sandbox Accounts.

My Sandbox test 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 have create the two test accounts, go to Paypal Sandbox site, login into your buyer Sandbox test account and create a Subscription Button. Wallah! You are done. Note: make sure to set the billing cycle to 1 day only so that you quickly test your Paypal IPN Listener.

Sandbox Subscription Button image: Sandbox Subscription Button image

Email notifications to your Sandbox test accounts can be seen at the Sandbox account notifications.

like image 37
Lynnell Neri Avatar answered Oct 24 '22 05:10

Lynnell Neri


From within the PayPal developer site, you can go to the IPN simulator, select Transaction Type as Web Accept, click Show All Fields. You can then edit txn_type to be subscr_payment, subscr_signup, etc.

It's not perfect, as it doesn't give you all of the variables, but you can put info in other entries, and use a logical to determine whether or not the correct entry exists.

Do one test subscription, so that you have the values, and then work from there

like image 5
Discreet Systems Avatar answered Oct 24 '22 06:10

Discreet Systems