-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GraphQL] Paypal PayFlowPro store the payment details in myaccount for future #28821
[GraphQL] Paypal PayFlowPro store the payment details in myaccount for future #28821
Conversation
Hi @Usik2203. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
@magento run all tests |
@magento run Integration Tests |
@magento run all tests |
@magento run all tests |
@magento run all tests |
@magento run Unit Tests , Functional Tests CE |
$paymentModel->setData(self::IS_ACTIVE_PAYMENT_TOKEN_ENABLER, false); | ||
} | ||
|
||
foreach ($additionalData['cc_details'] as $ccKey => $ccValue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you provide more info, please, on what exact data will be saved to the payment model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm asking since we need to make sure that no unnecessary data is being written to the database accidentally. It might be tricky from the security perspective
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @rogyar
I have changed foreach
to
$paymentModel->setCcType($ccData['cc_type']); $paymentModel->setCcExpYear($ccData['cc_exp_year']); $paymentModel->setCcExpMonth($ccData['cc_exp_month']); $paymentModel->setCcLast4($ccData['cc_last_4']);
Is it right ?
Thank you for advice !
@magento run Functional Tests B2B |
Yes, Data is stored but not visible. @ dthampy |
@avattam06 The issue changes are in, but the Pr status is not merged yet because your last 2.4 merge commit db47d6c didn't get in. We should bundle it with next Pr to have this merged. cc: @Usik2203 |
Okay, Thanks, @prabhuram93. |
Hi @prabhuram93 @avattam06 |
Hi @Usik2203 , We are waiting on bundling it with the next PR which is ready to be merged. It will be merged soon. Thanks! |
Hi @Usik2203, thank you for your contribution! |
Description (*)
This PR provide ability to store my Paypal (PayFlowPro) payment method details in myaccount.
Related Pull Requests
https://github.com/magento/partners-magento2-infrastructure/pull/15
Useful links:
PayFloPro Documentation
PayFloPro GraphQl Documentation
How to create test PayPal accout for testing
List of credit carts
Fixed Issues (if relevant)
Manual testing scenarios (*)
1. You should configure Payflowpro payment method.
2. Login as Customer
3. Add product to cart and go to payment step on checkout
4. Get customer quote id by running request
5. Set payment method for quote
6. Get secure tokens
7. Run
handlePayflowProResponse
mutationhandlePayflowProResponse Documentation
You can get
paypal_payload
parameter from8. Place order
Result