stripe & mastercard SecureID

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!
User avatar
aimeos
Administrator
Posts: 7908
Joined: 01 Jan 1970, 00:00

Re: stripe & mastercard SecureID

Post by aimeos » 14 Aug 2023, 11:44

The line may be a problem because the UNFINISHED state is -1, not empty.
What's the error that you receive if the block is executed?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

nowrap
Posts: 37
Joined: 01 Mar 2023, 23:03

Re: stripe & mastercard SecureID

Post by nowrap » 14 Aug 2023, 11:46

$this->context()->user() is null and throws an exception that the customerId for setCustomerData() is not a string
(the screenshot shows it: download/file.php?id=1571)

User avatar
aimeos
Administrator
Posts: 7908
Joined: 01 Jan 1970, 00:00

Re: stripe & mastercard SecureID

Post by aimeos » 14 Aug 2023, 12:03

OK, added an an additional check in dev-master and 2023.07.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

nowrap
Posts: 37
Joined: 01 Mar 2023, 23:03

Re: stripe & mastercard SecureID

Post by nowrap » 14 Aug 2023, 12:08

Thx alot.
I adept this for our used aimeos/ai-payments 2022.10.6 and report back.

So the setData() [2023.x] or setCustomerData() [2022.x] is only needed if there is a customer?

User avatar
aimeos
Administrator
Posts: 7908
Joined: 01 Jan 1970, 00:00

Re: stripe & mastercard SecureID

Post by aimeos » 14 Aug 2023, 12:11

nowrap wrote: 14 Aug 2023, 12:08 So the setData() [2023.x] or setCustomerData() [2022.x] is only needed if there is a customer?
A customer account is needed when a token for recurring payments should be stored.
We will port that back to 2022.10 LTS too
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7908
Joined: 01 Jan 1970, 00:00

Re: stripe & mastercard SecureID

Post by aimeos » 14 Aug 2023, 12:55

Now also in 2022.10.x-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

nowrap
Posts: 37
Joined: 01 Mar 2023, 23:03

Re: stripe & mastercard SecureID

Post by nowrap » 14 Aug 2023, 12:56

Thx alot, i will test this tonight and report back

// EDIT
it works ;)
Tested with this test card number - 4000002760003184
A failed response is catched correctly and a successful also.

https://github.com/aimeoscom/ai-payment ... Stripe.php

Post Reply