News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

What does Finished mean in admin subscription listing

Started by durangod, December 15, 2023, 06:25:12 AM

Previous topic - Next topic

durangod

#20
here is one option from

https://developer.paypal.com/beta/apm-beta/additional-information/js-sdk-params-payment-fields/#oncancel


You cannot view this attachment.


I usually just put it in the form like so

$form->getElement('cancel')->setValue($cancelreturn);

or even easier

<input type="hidden" name="cancel_return" value="the return url" >

So on a cancel you still get the IPN but its a cancel, then you go from there and remove the record that has that trackingid.  I believe you can also add the trackingid to the url of the cancel page and then use the $_GET to grab it and go remove the record, either way works.


My name is short for durango dave (i am not a god lol)

durangod

Sir Osis you got me with the bug deal when i first joined here, we have those little nats here in texas and i thought i had one one my screen... lol  that is an excellent avatar... :0)
My name is short for durango dave (i am not a god lol)

Sir Osis of Liver

Well, if you don't receive an IPN nothing happens, nothing is logged.  If you receive an IPN and verification fails, the subscription will be shown as pending payment.  You can confirm payment in your PP account and manually activate the subscription.  Nothing in the transaction sequence should create an expired subscription, subs are expired by scheduled tasks.  Best guess is PP sends something back when subscriber cancels, and it's being misread as a broken IPN.

I've attached two files that you can use for diagnostic purposes.  Subscriptions-PayPal.2.1.4.error_mod.php replaces Subscriptions-PayPal.php and contains some additional error handling that's not in core.  subscriptions.2.1.4.ipn_log.php replaces subscriptions.php, it will log any IPN sent by PP in error log.  Save the originals.

When in Emor, do as the Snamors.
                              - D. Lister

Steve

My pet rock is not feeling well. I think it's stoned.

Advertisement: