Why am I getting an error when creating a payment method in GraphQL?

I’m trying to create customer payment method from graphql for subscription

but got this error

“undefined method `verify’ for #ActiveMerchant::Billing::BogusGateway:0x0000556d03c65488

I use bogus for testing purpose

@Adrian3ka you using the wrong payment method can check on BogusGateway Documetn

or you can use Shopify payment test mode
https://help.shopify.com/en/manual/payments/shopify-payments/testing-shopify-payments


First I create session on vault

https://elb.deposit.shopifycs.com/sessions

{
“credit_card”: {
“number”: “4242424242424242”,
“name”: “Bogus”,
“last_name”: “Gateway”,
“month”: 5,
“year”: 23,
“verification_value”: “123”
}
}

And then I create payment on graphql Admin

mutation {
customerPaymentMethodCreditCardCreate(
customerId: “gid://shopify/Customer/4354207318171”,
billingAddress: {
address1: “test”,
lastName: “Sanjaya”,
countryCode: SG,
zip: “12345”,
city: “Singapore”
},
sessionId: “west-835057e2167d2d36e75fcd65dcb09840”
)
{
customerPaymentMethod {
id,
customer {
id,
firstName
}
}
userErrors {
field
message
}
}
}

And got this error:

“undefined method `verify’ for #ActiveMerchant::Billing::BogusGateway:0x00007fb718723018

I think I already followed on that documentation. but still got that error

Hi @Adrian3ka ,

Were you able to solve this? Please suggest