PayPal
Last updated
Last updated
paypal
Allows you to securely process payments via PayPal. This component only renders the button and hands the secure transaction via the PayPal API. You will have to add summary information around this component so the user knows what they are paying for.
This element in an implementation of vue-paypal-checkout
When clicked, the payment workflow is initiated.
Key | Value(s) | Type | Description |
---|---|---|---|
type | paypal | string | |
model | object | data model key name that will contain results of payment transactions | |
amountKey | string | model key that holds the amount. | |
onEvent_actions | [] | array | If supplied, these actions will run when there is a paypal event. The default onUtilityHook will not execute. |
currency | string | model key that holds the amount | |
invoiceNumber | 'USD' | string | currency for the payment |
dev | false | boolean | if true, use sandbox credentials |
itemsKey | 'myItems' | array | optional - model key that holds an array of items |
credentials | {} | object | credential object, |
style | {} | object | PayPal defined styling of the button |
Optionally, according to the PayPal Payments API documents, you can list out any items along with your transaction.
For more information, PayPal Item List
You can change the style of the button via a style object like so: