diff --git a/projects/adyen/adyen-spartacus/src/checkout-adyen-payment-method/checkout-adyen-payment-method.component.ts b/projects/adyen/adyen-spartacus/src/checkout-adyen-payment-method/checkout-adyen-payment-method.component.ts index 1c18747..b017af2 100644 --- a/projects/adyen/adyen-spartacus/src/checkout-adyen-payment-method/checkout-adyen-payment-method.component.ts +++ b/projects/adyen/adyen-spartacus/src/checkout-adyen-payment-method/checkout-adyen-payment-method.component.ts @@ -237,6 +237,11 @@ export class CheckoutAdyenPaymentMethodComponent implements OnInit, OnDestroy { resultCode: response.paymentsResponse.resultCode }); this.onSuccess(); + } else if (!!response.paymentDetailsResponse) { + actions.resolve({ + resultCode: response.paymentDetailsResponse.resultCode + }); + this.onSuccess(); } } else { this.resetDropInComponent() diff --git a/projects/adyen/adyen-spartacus/src/core/models/occ.order.models.ts b/projects/adyen/adyen-spartacus/src/core/models/occ.order.models.ts index 50ea2d0..2d12749 100644 --- a/projects/adyen/adyen-spartacus/src/core/models/occ.order.models.ts +++ b/projects/adyen/adyen-spartacus/src/core/models/occ.order.models.ts @@ -26,6 +26,7 @@ export interface PlaceOrderResponse { executeAction?: boolean, paymentsAction?: PaymentAction, paymentsResponse?: PaymentResponseData, + paymentDetailsResponse?: PaymentResponseData, error?: string, errorFieldCodes?: string[] orderNumber?: string,