i am using adyen v9 + scandi-pwa.
Using this https://docs.adyen.com/plugins/adobe-commerce/headless-integration/?tab=graphql2_2
i get adyenPaymentMethods from step 1 but in step 3 we need to provide code here example
setPaymentMethodOnCart(
input: {
cart_id: $cartId
payment_method: {
code: "adyen_cc"
adyen_additional_data_cc: {
cc_type: "VI"
recurringProcessingModel: "Subscription"
stateData: $stateData
}
}
}
)
- where to get this code, because in previuse version for all alternative adyen payments it was adyen_hpp code
here example of my data from altair
{
"data": {
"cart": {
"available_payment_methods": [
{
"code": "adyen_cc",
"title": "Bank Card"
},
{
"code": "adyen_klarna",
"title": "Klarna"
},
{
"code": "checkmo",
"title": "Check / Money order"
},
{
"code": "adyen_cc_vault",
"title": "Stored Cards (Adyen)"
},
{
"code": "adyen_klarna_vault",
"title": "Stored Klarna"
}
]
},
"adyenPaymentMethods": {
"paymentMethodsExtraDetails": [
{
"type": "card",
"isOpenInvoice": false,
"configuration": null
},
{
"type": "klarna",
"isOpenInvoice": true,
"configuration": {
"amount": {
"value": 0,
"currency": "GBP"
},
"currency": "GBP"
}
},
{
"type": "paywithgoogle",
"isOpenInvoice": false,
"configuration": {
"amount": {
"value": 0,
"currency": "GBP"
},
"currency": "GBP"
}
},
{
"type": "scheme",
"icon": null,
"isOpenInvoice": null,
"configuration": {
"amount": {
"value": 0,
"currency": "GBP"
},
"currency": "GBP"
}
}
],
"paymentMethodsResponse": {
"paymentMethods": [
{
"name": "Cards",
"type": "scheme",
"brand": null,
"brands": [
"visa",
"mc",
"amex",
"diners",
"discover",
"jcb"
],
"configuration": null
},
{
"name": "Pay later with Klarna.",
"type": "klarna",
"brand": null,
"brands": null,
"configuration": null
},
{
"name": "Google Pay",
"type": "paywithgoogle",
"brand": null,
"brands": null,
"configuration": {
"merchantId": "",
"merchantName": null
}
}
]
}
}
Try to upgrade plugin for pwa for adyen v9. I am using this doc – https://docs.adyen.com/plugins/adobe-commerce/headless-integration/?tab=graphql2_2 and dont kbow hot to where to get code for setPaymentMethodOnCart.