DEITY Falcon provides
@deity/falcon-payment-plugin package with the following classes:
PaymentPluginModelis a base plugin model for all supported payment methods
SimplePaymentis a generic payment method that does not require any frontend helpers for the order placement
Test3dSecureis a helper component that performs a redirection to the external Payment Gateway
Every derived component from Payment Plugin Model will get the following props:
config- is an optional configuration object received from the Falcon-Server that may be required for a proper usage of a specific Payment Method (for example, Adyen Credit Card plugin requires a public client-side encryption key to be passed via this prop)
onPaymentDetailsReady- is a callback function with an optional
additionalDataargument to be passed to the
placeOrderMutation that may be required by the shop backend for a proper order placement (for example, Adyen Credit Card plugin requires an encrypted credit card information to be passed to the Payment Gateway)
PaymentPluginModel defines an optional static
icon property with an icon URL to be displayed on a list of available
payment methods on the checkout page, for example:
The name of this component speaks for itself - it can be used whenever your payment does not require any frontend helpers for the submission.
One of the examples of such a plugin could be PayPal Express payment method, when visitors do not have to enter any data on the Checkout page, they will be redirected to the PayPal log-in page to complete their payment after clicking on the "Place an order" button.
See here how to use this payment method
This component is being used to redirect the visitor to the external Payment Gateway for further checks and validations (like confirming your Bank details etc).
Here's how it can be used to perform GET redirection:
Getting this component - visitor will be redirected to
http://payment.com page with
And here's how you could "redirect" the visitor with
POST method and passing extra POST data:
Getting this component - the visitor will be redirected to
http://payment.net page with