magenxcommerce / module-instant-purchase
N/A
Installs: 111
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.3.0||~7.4.0
- magenxcommerce/framework: 103.0.*
- magenxcommerce/module-catalog: 104.0.*
- magenxcommerce/module-customer: 103.0.*
- magenxcommerce/module-quote: 101.2.*
- magenxcommerce/module-sales: 103.0.*
- magenxcommerce/module-shipping: 100.4.*
- magenxcommerce/module-store: 101.1.*
- magenxcommerce/module-vault: 101.2.*
Replaces
- magento/module-instant-purchase: *
- dev-placeholder
- dev-default
- dev-2.4.3-release
- 100.4.2.x-dev
- 100.4.2
- 100.4.1.x-dev
- 100.4.1
- 100.4.0.x-dev
- 100.4.0
- 100.3.7.x-dev
- 100.3.7
- 100.3.6.x-dev
- 100.3.6
- 100.3.5.x-dev
- 100.3.5
- 100.3.4.x-dev
- 100.3.4
- 100.3.3.x-dev
- 100.3.3
- 100.3.2.x-dev
- 100.3.2
- 100.3.1.x-dev
- 100.3.1
- 100.3.0.x-dev
- 100.3.0
- 100.2.6.x-dev
- 100.2.6
- 100.2.5.x-dev
- 100.2.5
- 100.2.4.x-dev
- 100.2.4
- 2.4.3.x-dev
- 2.4.2.x-dev
- 2.4.1.x-dev
- 2.4.0.x-dev
- 2.3.7.x-dev
- 2.3.6.x-dev
- 2.3.5.x-dev
- 2.3.4.x-dev
- 2.3.3.x-dev
- 2.3.2.x-dev
- 2.3.1.x-dev
- 2.3.0.x-dev
- dev-2.3.6-p1
- dev-2.4.1-p1
- dev-2.4.2-p1
- dev-2.4.2-p2
- dev-2.4.3-p1
- dev-2.4.3-p2
- dev-2.4.3-p3
- dev-2.3.7-p1
- dev-2.3.7-p2
This package is auto-updated.
Last update: 2024-11-21 11:03:28 UTC
README
Instant Purchase feature allows the Customer to place the order in seconds without going through full checkout. Once clicked, system places the order using default shipping and billing addresses and stored payment method. Order is placed and customer gets confirmation message in notification area.
Prerequisites to display the Instant Purchase button:
- Instant purchase enabled for a store at
Store / Configurations / Sales / Sales / Instant Purchase
- Customer is logged in
- Customer has default shipping and billing address defined
- Customer has valid stored payment method with instant purchase support
Structure
In addition to a typical file structure for a Magento 2 module PaymentMethodsIntegration
directory contains interfaces and basic implementation of integration vault payment method to the instant purchase.
Extensibility
Instant purchase customization
Almost all aspects of instant purchase may be customized. See comments to classes and interfaces marked with @api
tag.
All payments created for instant purchase also have 'instant-purchase' => true
in addition information. Use this only if all other customization points not suitable,
Payment method integration
Instant purchase support may be implemented for any payment method with vault support.
Basic implementation provided in Magento\InstantPurchase\PaymentMethodIntegration
should be enough in most cases. It is not enabled by default to avoid issues on production sites and authors of vault payment method should verify correct work for instant purchase manually.
To enable basic implementation just add single option to configuration of payemnt method in config.xml
:
<instant_purchase> <supported>1</supported> </instant_purchase>
Basic implementation is a good start point but it's recommended to provide own implementation to improve user experience. If instant purchase integration has customization then supported
option is not required.
<instant_purchase> <available>Implementation_Of_Magento\InstantPurchase\PaymentMethodIntegration\AvailabilityCheckerInterface</available> <tokenFormat>Implementation_Of_Magento\InstantPurchase\PaymentMethodIntegration\PaymentTokenFormatterInterface</tokenFormat> <additionalInformation>Implementation_Of_Magento\InstantPurchase\PaymentMethodIntegration\PaymentAdditionalInformationProviderInterface</additionalInformation> </instant_purchase>
Magento\InstantPurchase\PaymentMethodIntegration\AvailabilityCheckerInterface
- allows programmatically defines if instant purchase supported (e.g. support may not be available if some payment method option switched on/off). Basic implementation always returnstrue
.Magento\InstantPurchase\PaymentMethodIntegration\PaymentTokenFormatterInterface
- creates string that describes stored payment method. Basic implementation returns payment method name. It is highly recommended to implement own formatter.Magento\InstantPurchase\PaymentMethodIntegration\PaymentAdditionalInformationProviderInterface
- allows to add some extra values to payment additional information array. Default implementation returns empty array.
Additional information
Backward incompatible changes
The Magento_InstantPurchase
module does not introduce backward incompatible changes.
You can track backward incompatible changes in patch releases.
This module was initially developed by the Creatuity Corp. and Magento Community Engineering Team.