Jump to content

Successful Payment Page Redirect - Stripe v0.9.2


Recommended Posts

I have successfuly installed the Stripe free module. It works perfectly in Live and Test mode. Once a payment is successfuly processed it takes the customer back to the homepage.

 

I would like to redirect customers to the order page (website.com/history.php) instead of the homepage. Where and how should I edit the script?

 

Thank you,

tsaf11

Link to comment
Share on other sites

I'm using Prestashop Version 1.5.2.0 and in my version it goes to the Accounts page after placing the order. Which PS version do you use?

 

Also, have you got the save Credit Card information to work? For example if you click the option to save CC info, when you place the next order does it give you the option to use Card Number ###?

Link to comment
Share on other sites

I'm running on Prestashop v1.4.7.0. I have enabled the CC saved option and it works like a charm. My only problem is that clients create duplicate orders and payments thinking the first Stripe transaction did not go thru. If I could redirect the successful payment to the order page they would notice the initial order. Hence no need to refund those duplicate payments.

 

Thanks for your interest.

Link to comment
Share on other sites

I don't have a working copy of v1.4.7.0 sorry. Hopefully someone more experienced than myself will post.

 

It does sound like something may be up in your prestashop\controllers\ AuthController.php,

 

look for lines like,

 

 

if ($back = Tools::getValue('back'))

Tools::redirect($back);

Tools::redirect('my-account.php');

 

couple hundred lines down if I remember correctly. The key line you need to have is Tools::redirect('my-account.php');

Link to comment
Share on other sites

I'm still testing this module but how do I get it to return to a confirmation page after the order is submitted? Whether the payment was accepted or not?

 

Right now it goes to the order history page and this happens even if the payment was declined (bad card # or ccv). I tried hooking Stripe into the orderconfirmation hook, paymentconfirmation hook, and paymentreturn hook but all gave me an error saying this module can't be transplanted to this hook.

 

Also, I've noticed that when I'm typing a card # into the card # slot (either a fake one that is supplied or my own) it doesn't recognize the card because none of the card types (visa, mastercard, etc) light up. And if I try to hit submit, I get a page that says "Token required, please check for any Javascript error on the payment page."

 

Any advice on these issues is much appreciated.

 

Thanks!

Link to comment
Share on other sites

I'm having the same problem as tsaf11. After completing the order, customer goes directly to the homepage. The cart which is in the site's header shows that it still has item/items in it. If I click on the cart, whatever was there is gone. I have to check in the account history page to see that the order actually went through. Same for both live and test.

 

Am using Prestashop 1.4.8.2 and Stripe 0.9.2.

Have checked the codes on prestashop\controllers\ AuthController.php like Bill Dalton suggested. They are on about line 200 and look just like what he suggested.

 

So ... has anyone found a solution? I can see lots of confused people and duplicate orders otherwise.

 

Also, noticed that I have to go into Stripe to issue refunds and cancel orders. Those changes made in BO don't seem to make it to the Stripe panel.

Link to comment
Share on other sites

  • 3 weeks later...

There will be a new version released soon, might be today. Stripe V 0.9.3.

 

I was beta testing it yesterday with <blatant name drop> Bruno Leveque </blatant name drop >

 

This new version brings:

- New languages: ES & PT

- Now working with One Page Checkout and Guest Checkout

- Improved layout in v1.4

- Improved French translation

- Buyers are now redirected to the Order confirmation page after a payment

 

Should be up today or sometime this week.

Edited by Bill Dalton (see edit history)
Link to comment
Share on other sites

9.3 gives me the same error.

 

Error: Token required, please check for any Javascript error on the payment page.

 

this error comes up after i click submit payment. Also in version 9.3 and 9.4 when i'm entering the credit card number it doesn't light up the type of card being used like it does in version 9.2

Link to comment
Share on other sites

Thank Bruno Leveque the CEO of Prestashop. He fixed it. The great thing is you can now just modify the order confirmation page to look as fancy as you like. Just open prestashop\modules\stripejs\order-confirmation.tpl in your favorite HTML editor and make it look like what ever you want.

Link to comment
Share on other sites

Hi Stephen,

 

I've got some good news for you, I worked with the team these last two weeks in order to improve the Stripe's Addon based on your feedback and suggestions. Guess what? We just came up with a new awesome version bringing new features and bugfixes!

 

Improvements and changes in Stripe v0.9.4:

 

- Improved the user experience, now redirecting to a customer Order confirmation page after a sucessfull payment (instead of the Orders history page)

- Improved interface for users of PrestaShop v1.4.x

- Translations: Added two new languages (Spanish and Brazialian Portuguese)

- Translations: Improved French translation

- Bugfix: The billing address is refreshed in real time in case a new address is added. The Billing Address is now correctly sent to Stripe.

- Bugfix: The module is now compatible with One Page Checkout and Guest Checkout

- Bugfix: Customer's token save (while checking the "Save my credit card for later use" box) was not working with MySQL STRICT mode.

 

Thank you again for your help and feedback; If you are looking to accept Credit Card Payments fast and easy on your store, Stripe is definitely one of the best options PrestaShop is offering!

 

You can download Stripe v0.9.4 at the following address:

http://addons.prestashop.com/fr/modules-paiement-prestashop/6611-stripe.html

 

Regards,

  • Like 1
Link to comment
Share on other sites

  • 8 months later...

Hi,

Stripe have launched in Ireland and I am keen to use their service.

But on the free module, you need to have USD or CAD currency on your PS store.

Is there any way to adapt the current PS Stripe module to accept EUR payments??
Is there a workaround so that I can somehow enable USD currency on my page and the payments get proccessed from the Checkout in EUR to USD if Stripe is choosen as the payment option.

Now I have Stripe installed but it doesn't show in the checkout because I don't have USD currency enabled. However in the module's configuration page there is a tick next to "he currency USD or CAD must be enabled on your store" meaning it is working fine.

Thanks in advance

Link to comment
Share on other sites

 

Hi,

Stripe have launched in Ireland and I am keen to use their service.

But on the free module, you need to have USD or CAD currency on your PS store.

Is there any way to adapt the current PS Stripe module to accept EUR payments??

Is there a workaround so that I can somehow enable USD currency on my page and the payments get proccessed from the Checkout in EUR to USD if Stripe is choosen as the payment option.

Now I have Stripe installed but it doesn't show in the checkout because I don't have USD currency enabled. However in the module's configuration page there is a tick next to "he currency USD or CAD must be enabled on your store" meaning it is working fine.

Thanks in advance

 

 

 

Hi! At this time the Stripe module is only working for CAD and USD. 

Link to comment
Share on other sites

Benjamin,

 

The Stripe module for the UK was supposed to be created a few weeks ago.

What is going on? This is not good enough.

 

Hi Adam, I know that we were supposed to already have this released. Unfortunately, the release is still delayed for more testing. We want to make sure that this module works flawlessly without issues. It is not forgotten and we are (really) trying to push the release for next week. This is what I know now, once the module is updated, I be on it ASAP to communicate with the community about the release. Thank you so much for your patience. 

Link to comment
Share on other sites

×
×
  • Create New...