Stripe payment

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
lugaru
Posts: 2
Joined: 16 Mar 2021, 02:31

Stripe payment

Post by lugaru » 16 Mar 2021, 02:45

Stripe payment doesn't work If you follow exactly the documentation
It worked for me in test mode but not in live mode

I tried these options that come by default with aimeos installation (ofc with the correct keys):

Image

I tried also all the "yes" and "no" combinations and also upper and lower cases options, but nothing
always get this error in console : 402 status code

Image

any help would be appreciated

aimeos: 2020.10.6
laravel 6.x

lugaru
Posts: 2
Joined: 16 Mar 2021, 02:31

Re: Stripe payment

Post by lugaru » 16 Mar 2021, 20:16

Fixed it by myself
apparently if you use test data in live mode then no errors are shown, and you get this error in console back from Stripe

Code: Select all

{
  "error": {
    "code": "card_declined",
    "decline_code": "live_mode_test_card",
    "doc_url": "https://stripe.com/docs/error-codes/card-declined",
    "message": "Your card was declined. Your request was in live mode, but used a known test card.",
    "param": "",
    "type": "card_error"
  }
}

Post Reply