SCAB sets the return page to be checkout page via PDT. If you remove the PDT token in SCABN’s config, it should not set the return page and then you can handle that elsewhere. Alternatively, you can use the checkout return page and repurpose it:
If you look at templates/default.php where is a function called display_aypal_receipt — that handles what SCABN outputs when a use goes back to your site after a successfully payment. Copy that file to SOMETHING.php and configure SCABN to use template SOMETHING and then edit SOMETHING.php can have your code for uploading a file, etc. (Or a redirect page if you want to handle that elsewhere).
Aside from this, I’ll need to add a weight field to each option in the drop down. I have made my first attempt, but gave up as it’s beyond my level of php / wordpress plugin sophistication.
Are you available for hire to perform modifications to the plugin?
I have taken your something.php advice above. When I return to the checkout page, it does not show the information from the function in the created template.
PS: I am not using https. Should PDT work ok without https configured?
To see the ‘receipt’ page, you need to pass (via POST or GET) the txn transaction number — Paypal redirects the customers to return to the checkout page with this variable set and SCABN’s uses the transaction number to verify the order, etc. If no tnx is set, it processes the page like a regular checkout page.
I don’t believe https is required for PDT.
Great, thanks!
I have the tx code coming back from paypal sandbox.
http://f1p.co/checkout/?tx=8NK12162TE452883R&st=Completed&amt=979%2e00&cc=USD&cm=&item_number=
but…
Checkout
PAYPAL FAILED TO RECOGNIZE ORDER — MAYBE ORDER TOO OLD OR DOES NOT EXIST.
any ideas?
I tried it outside of sandbox using live tx… same error is displaying.
http://f1p.co/checkout/?tx=41763292JK3941143&st=Completed&amt=0%2e03&cc=USD&cm=&item_number=
It seems like I’m close to having this working properly. Something is still not in line.
Thanks for your help so far.
It’s working! turns out my token was truncated. Thanks again!