#karthikeyan_api

1 messages ยท Page 1 of 1 (latest)

crystal surgeBOT
#

๐Ÿ‘‹ 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.

keen grotto
wet terrace
#

req_C7cxrtZdjI2OJ4

keen grotto
#

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'

wet terrace
#

We encounter this error in the drupal backend

#

req_u8ZXPWR8PgKVj1 could you please verify this req ID

keen grotto
#

You are trying to get a PaymentMethod using a PaymentMethod Configuration Id

#

You need a PaymentMethod Id for that call and not PMC

wet terrace
#

How can I find the payment method Id?

keen grotto
#

It depends on how are you creating it..

wet terrace
#

could you please share the documentation for it?

keen grotto
#

How are you creating the PaymentMethod in your integration ?

wet terrace
#

We created the payment intent function in drupal 10

crystal surgeBOT
keen grotto
#

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 ?

wet terrace
#

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;
}

wet terrace