#karthikeyan_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1351880921204396044
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_C7cxrtZdjI2OJ4
That's a succesful request (200)
there is no reference to the error message you are mentioning:
Stripe error 'resource_missing': No such PaymentMethod: 'google_pay'
We encounter this error in the drupal backend
req_u8ZXPWR8PgKVj1 could you please verify this req ID
You are trying to get a PaymentMethod using a PaymentMethod Configuration Id
You need a PaymentMethod Id for that call and not PMC
How can I find the payment method Id?
It depends on how are you creating it..
could you please share the documentation for it?
How are you creating the PaymentMethod in your integration ?
it's not clear what flow you are trying to implement, in particular what this function achieve behind createProcessedPaymentMethod..
Can you share what Stripe guide are you following ?
protected function createProcessedPaymentMethod(ProfileInterface $profile, PaymentGatewayInterface $payment_gateway, string $remote_id) {
/** @var \Drupal\commerce_payment\Entity\PaymentMethodInterface $payment_method */
$payment_method = $this->entityTypeManager->getStorage('commerce_payment_method')->create([
'type' => 'credit_card',
'payment_gateway' => $payment_gateway->id(),
'payment_gateway_mode' => $payment_gateway->get('mode'),
'billing_profile' => $profile,
'reusable' => FALSE,
'remote_id' => $remote_id
]);
$payment_method->save();
return $payment_method;
}
createProcessedPaymentMethod() function for your reference. We are encounter issue while create the payment method