#TamasL - Shopware

1 messages · Page 1 of 1 (latest)

silent nacelle
#

Hello, to be clear, is the Stripe API part of this something that you wrote or something that Shopware wrote?

#

Do you have the ID of a payment intent that this happened with?

desert pulsar
#

hello Pompey, it is stripe plugin for shopware, nothing custom
an example: pi_3KgUCsDT0JeiB9vR1Wbjnieu

silent nacelle
#

In that case, please reach out to Shopware. They will better be able to speak to the behavior of their plugin and how to fix it

#

That payment intent succeeded for us so it is hard to say what their plugin would have done to where that PaymentIntent could not be retrieved

jade imp
#

hey @silent nacelle the module has been developed by Stripe on behalf of Shopware.

silent nacelle
#

Can you link me to the plugin?

desert pulsar
#

I see, we'll reach Shopware, but I have just one more question. I tried to store it in the session as a test

try {
$paymentIntent = Util::getCachedPaymentIntent($paymentIntentId);
} catch (\Exception $e) {
$paymentIntent = Util::getStripeSession()->paymentIntent;
$paymentIntent->refresh();
}
and get it back, but I got this error in this case:
Could not determine which URL to request: Stripe\PaymentIntent instance has invalid ID
Do you know what can cause this?

silent nacelle
jade imp
#

hey @silent nacelle can a single set of keys work with multiple domains - within SW they are set to substores hanging off a default an all inheriting a global EU set of keys

desert pulsar
#

that getStripeSession is part of the shopware plugin. it is stripe-php library

silent nacelle
desert pulsar
#

no, it's on the plugin level which uses later that library

#

it fails on this bit:
Stripe\PaymentIntent::retrieve($paymentIntentId)

silent nacelle
#

I mean that error is exactly what it says: our API was passed an invalid ID

#

Unfortunately it is hard to say why the plugin would do that. I am not finding it anywhere in our codebase

silent nacelle
#

Right, stripe-php is in our codebase, I can find that

#

The plugin is not written by Stripe as far as I can tell

#

I would reach out to Shopware's support. I've seen a couple third party plugins labeled as being "by" Stripe when we didn't write them

desert pulsar
#

I see, thank you for your help Pompey, gonna try it with them

silent nacelle
#

Of course, always happy to help

jade imp
#

hey @silent nacelle can you confirm whether a single set of keys can be used across multiple domains ?

silent nacelle
#

What does "domains" mean in this context? Also are you directly using Stripe keys here?

jade imp
#

etc

silent nacelle
#

Thank you for the clarification. Yes, totally fine to use the same keys across those

#

We don't have any restriction on that. It is whatever makes sense for you

jade imp
#

thanks for that - we'll have to reach to Shopware on this then