adobe / aem-core-cif-components

A set of configurations and components to get you started with AEM Commerce development
Apache License 2.0
102 stars 80 forks source link

Braintree Paypal not working #993

Open satya3291 opened 9 months ago

satya3291 commented 9 months ago

Expected Behaviour -- it should work and placeorder graphQL API should not give error

Actual Behaviour --- Placeorder API giving error -- "your payment could not be taken"

Screenshot 2023-10-23 at 2 50 24 pm

Reproduce Scenario (including but not limited to)

triggered setPaymentmethod on cart , screenshot below

Screenshot 2023-11-13 at 2 23 01 pm

Triggered SetSelectedpayment method Screenshot 2023-10-23 at 2 48 54 pm

Steps to Reproduce

Simply follow checkout instructions

Platform and Version

Cloud and node 16.20.0 "@adobe/aem-core-cif-react-components": "2.12.0", "braintree-web-drop-in": "^1.22.1",

Sample Code that illustrates the problem

utation ($cartId: String!, $paymentMethodCode: String!, $nonce: String!) { setPaymentMethodOnCart( input: { cart_id: $cartId payment_method: { code: $paymentMethodCode braintree: { payment_method_nonce: $nonce is_active_payment_token_enabler: false } } } ) { cart { selected_payment_method { code title } } } }

Logs taken while reproducing problem