Open chrismshea opened 8 months ago
@chrismshea
Did I understand you correctly, if the config one-time purchase
is set as false
If we have saved the SP payment method:
If we have saved non-SP payment method:
I think we need one more category: If you have a saved sp and non sp method.
I'm not sure how to change what profile is used for instant purchase and I have not seen a selector when the modal pops up.
@chrismshea @garthbrantley
I added functionality for processing Instant Purchase buttons and a modal popup when the config Enabled for Non-Subscription Transactions
is disabled.
Magento on the default behavior for the Instant Purchases button calls the last available Payment Method Token
from the vault_payment_token
table.
I have doubts about some cases:
One Time Delivery
Instant Purchase button is shown (Non-SP payment method enabled - e.x Braintree)Regular Delivery
Instant Purchase button is not shownInstant Purchase Requires:
PR: #269
That's a mouthful, but: In Magento 2 the Subscribe Pro payment method should be disabled for one time purchases.
In Magento 2 Instant Purchase button on Product Detail Page is enabled by default.
So, when one time purchase is disabled should we only allow the Instant Purchase button to display when customer is subscribing or if they have a saved card that is not subscribe_pro.