OrderCreateContainer
Handles payment for ecommerce orders.
info
OrderCreateModal requires the order
to be set.
If you're using our default flow, the user sets this before moving to payment already.
But if you have your own custom flow, you can use the usePelcro hook to set it before switching to the payment view
like in the following example.
#
Usage#
ReferenceOrderCreateContainer
#
#
PropsonSuccess
#
(orderObject) โ void
Callback function called when the user orders succesfully.
onFailure
#
(errorObject) โ void
Callback function called when the order fails.
#
Children componentsAlert
#
Displays the relevant errors or success messages.
BankRedirection
#
When added, if authentication is required, the user will be redirected to the card issuer's website where they will be required to complete the card authentication.
Learn how 3D secure layer works.
PelcroCardNumber
Required#
Input field to receive the card's number.
PelcroCardExpiry
Required#
Input field to receive the card's expiration date.
PelcroCardCVC
Required#
Input field to receive the card's CVC.
CouponCode
#
The coupon section.
DiscountedPrice
#
Shows the discounted price when a coupon is applied.
SubmitPaymentMethod
Required#
Instance of Button
A button component that submits the payment.
#
Propsname
#
string?
The title displayed inside the button