Onboarding Web-Component

You can utilize our onboarding form component by specifying the payment-platform
web component with type boarding
and other necessary properties.
<payment-platform id="pf-boarding"
type="boarding"
merchant-id="d8dfafb5-88d6-46c7-ba14-1ff972564085"
hash="0709c7f107ed6326aaeaa3810330834870591f3924943e7bce66a826ac532045">
</payment-platform>
Properties and Styling
Following are properties that can be set on this web-component. You can set the property via a Javascript object reference, or directly inline as an HTML tag attribute. See the example below:
<payment-platform id="pf-boarding"
type="boarding"
merchant-id="d8dfafb5-88d6-46c7-ba14-1ff972564085"
hash="0709c7f107ed6326aaeaa3810330834870591f3924943e7bce66a826ac532045"></payment-platform>
Following is a list of applicable properties.
merchant-id
Merchant ID (generated by using create merchant API call)
hash
HMAC generated from merchant-id
(see securing embedded UIs section)
css
or css-override
<Style> HTML element id, or URL of CSS file (see Styling specs for this component)
Events
<payment-platform id="onboarding" merchant-id="ea0e0ae6-aa42-48da-b801-0106facf1e37" type="boarding"></payment-platform>
<script type="text/babel">
document.getElementById('onboarding').addEventListener('stepChange', function(e) {
console.log(e.detail)
})
document.getElementById('onboarding').addEventListener('submitted', function(e) {
console.log(e.detail)
})
</script>
stepChange
Execute event while user navigates through onboarding steps
Example payload on stepChange
event:
{
"step": "BusinessDetails",
"data": {
...
}
}
Possible step names:
BusinessType
BusinessDetails
YourDetails
CreditCardProcessing
ACHProcessing
BankDetails
DocumentAttachments
Submission
submitted
This event is triggered when user submits the application for review
Example payload on submitted
event:
{
"submitted": true,
"data": {
...
}
}
Last updated