#TamasL - Shopware
1 messages · Page 1 of 1 (latest)
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?
hello Pompey, it is stripe plugin for shopware, nothing custom
an example: pi_3KgUCsDT0JeiB9vR1Wbjnieu
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
hey @silent nacelle the module has been developed by Stripe on behalf of Shopware.
Can you link me to the plugin?
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?
What client library is this? I cannot find functions like getStripeSession in our codebase
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
that getStripeSession is part of the shopware plugin. it is stripe-php library
As in you got it out of some file from this codebase? https://github.com/stripe/stripe-php
no, it's on the plugin level which uses later that library
it fails on this bit:
Stripe\PaymentIntent::retrieve($paymentIntentId)
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
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
I see, thank you for your help Pompey, gonna try it with them
Of course, always happy to help
hey @silent nacelle can you confirm whether a single set of keys can be used across multiple domains ?
What does "domains" mean in this context? Also are you directly using Stripe keys here?
yes - same stripe publishable and secret keys across mutliple domains such lazysusan.it and lazysusan.de
etc
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
thanks for that - we'll have to reach to Shopware on this then