WebsiteBaker Support (2.8.x) > Bakery Shop

Where to go to after 'check_payment.php'

<< < (2/3) > >>

freeSbee:
Hi Albert Jan

I clarified the answer in my last post. Hope it will work out!

Regards Christoph

scheltel:
Hi Christoph,

Yes, that worked out. Thank you.

Regards,

Albert Jan

svsanchez:
Hello freeSbee, this is a great post. I am also working on another payment gateway and was able to get it to work.

HOWEVER, when the transaction fails, I can't go "back" to try again with another credit card or re-enter the credit card information in case I made a mistake, I have to start all over again (put the products again in the cart, fill the contact information again, etc).

I tried what you suggested to Scheltel adding ?pm=your_payment_method&status=canceled to the end of a page, but unfortunately this also removes the products from the cart.

Is there another word I can use instead of "canceled" so that I can retry to make the purchase? Something like:

&status=retry

Thanks a lot!

svsanchez:
Hello, is this not possible?

freeSbee:
Hi svsanchez


--- Quote from: svsanchez on March 18, 2015, 08:22:10 PM ---HOWEVER, when the transaction fails, I can't go "back" to try again with another credit card or re-enter the credit card information in case I made a mistake, I have to start all over again (put the products again in the cart, fill the contact information again, etc).

I tried what you suggested to Scheltel adding ?pm=your_payment_method&status=canceled to the end of a page, but unfortunately this also removes the products from the cart.

Is there another word I can use instead of "canceled" so that I can retry to make the purchase? Something like:

&status=retry

--- End quote ---

Define the value of the var $payment_status in the file check_payment.php of your payment method dependig on the data returned by your payment gateway api: If the value is error or canceled Bakery keeps the $_SESSION['bakery'] var and offers a button "Continue shopping".

In case the payment process has been canceled by the user you can add the parameter &status=canceled to the return URL.

Bakery does only delete the $_SESSION['bakery'] var if $payment_status == "success" or $payment_status == "pending". (See view_confirmation.p hp line 244: unset($_SESSION['bakery']);).

Regards Chrisopth

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version