adobe / adobe/aem-core-cif-components

Braintree Paypal not working

Open
#993 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
109
Forks
78
Avg merge
4d 18h
Merged PRs (30d)
4

Description

### 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](https://github.com/adobe/aem-core-cif-components/assets/141890282/51ecec31-a66a-48ae-8eb0-43279d47a769)

### 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](https://github.com/adobe/aem-core-cif-components/assets/141890282/9ced1521-7bfc-4f02-bbfa-a06533b0ee0b)

#### 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

Contributor guide

Open the contributing guide

Research direction

Start with the checkout flow and the setPaymentMethodOnCart GraphQL mutation described in the issue, then reproduce the failure using the listed React component and Node versions. Investigate the missing logs and the "your payment could not be taken" response; done means the PayPal payment method is accepted and placeOrder completes without an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, node.js, react
Domain
api, frontend, payments
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.