0.10.3 • Published 2 years ago

@sourceallies/payment-gateway-form v0.10.3

Weekly downloads
57
License
Apache-2.0
Repository
-
Last release
2 years ago

@sourceallies/payment-gateway-form

Introduction

npm version

Web component for adding the Source Allies Payment Gateway form to your website. The developer documentation for this package can be found here. A tutorial of how to integrate Payment Gateway with your website can be found here.

sa-pg-form

Properties

PropertyAttributeDescriptionTypeDefault
amountOptionsamount-optionsSpecifies what values to display in default buttons. If empty, buttons will not render. Separate values with pipes. Example: '10|25|50|100|250'stringundefined
amountPlaceholderamount-placeholderThe placeholder for the amount input.string \| undefinedundefined
apiLoginId (required)api-login-idYour login for Authorize.Net.stringundefined
appleMerchantNameapple-merchant-nameYour Apple merchant name to be used for Apple Pay.stringundefined
applePayapple-payEnables Apple Pay.booleanundefined
buttonColorbutton-colorSpecifies the background of the buttons. This can be a HEX value, RGB value, RGBA value, HSL value, HSLA value, or the color in all lowercase. This color does not set the color for the payment amount buttons.string'#fff'
buttonTextColorbutton-text-colorSpecifies the text color of the buttons. This can be a HEX value, RGB value, RGBA value, HSL value, HSLA value, or the color in all lowercase. This color does not set the color for the payment amount buttons.string'#1a80c7'
cardcardEnables card transactions.booleanundefined
cardProviderscard-providersSpecifies the list of card providers to support. These values are used for Google Pay, Apple Pay... Example: 'visa|mastercard|discover|amex' Valid Values: visa, mastercard, discover, amexstringundefined
clientCanonicalNameclient-canonical-nameYour Apple client canonical name to be used for Apple Pay.stringundefined
defaultConfigdefault-configUses a default configuration with card, e-check, handle-result, one-time, and recurring enabled.boolean \| undefinedundefined
designationsdesignationsThe designations options. These values are used for the name of the line item being sent through Payment Gateway. If the line item is longer than 31 characters, it will be truncated prior to sending it to Payment Gateway. Separate designations with pipes. If only one is specified, the select will not be displayed. Example: 'Item one|Item two|Item three'stringundefined
displayCoverFeesdisplay-cover-feesSpecifies whether you want to display the cover fees checkbox and information. If this is displayed, the payer will be able to opt in to covering the transaction fees that are calculated using 'percent-fee'.booleanundefined
eChecke-checkEnables eCheck transactions.booleanundefined
environmentenvironmentThe environment of Payment Gateway you want to make HTTP requests to.Environment.DEV \| Environment.LOCAL \| Environment.PROD \| Environment.QUALundefined
forceSurchargeforce-surchargeSpecifies a dollar amount where a surcharge will be forced. This value must be the number where you want the surcharge to start being forced. Do not include the '\

Attribute Combinations

Required Attributes

Always required: api-login-id, merchant-name, gateway-name

Required for Google Pay: google-merchant-id, google-merchant-name, gateway-merchant-id

Required for Apple Pay: apple-merchant-name, client-canonical-name

Payment Options

Attributes: card, e-check, google-pay, and apple-pay

Attribute(s)UI
cardDoes not display payment option buttons and displays credit card inputs
e-checkDoes not display payment option buttons and displays e check inputs
google-payDisplays Google Pay button only
apple-payDisplays Apple Pay button only
two or more of card, e-check, apple-pay, and google-payDisplays payment option buttons

Payment Frequencies

Attributes: one-time and recurring

Attribute(s)UI
one-timeDoes not display payment frequency buttons
recurringDoes not display payment frequency buttons and displays payment schedule inputs
one-time and recurringDisplays payment option buttons

Payment Designation

Attributes: designations and other-designation

Attribute(s)UI
designationsDisplays payment designation select
other-designationDisplays payment designation input
designations and other-designationDisplays payment designation select with an Other option. Selecting Other displays payment designation input
symbol. This attribute should only be used if you are legally allowed to charge a surcharge.numberundefined
gatewayMerchantIdgateway-merchant-idYour gateway merchant ID to be used for Google Pay.stringundefined
gatewayName (required)gateway-nameYour Payment Gateway gateway name.stringundefined
getInvoiceNumberget-invoice-numberSpecifies whether you want to display the invoice number field. If this is not displayed, a random, unique invoice number will be generated for each transaction.booleanundefined
googleMerchantIdgoogle-merchant-idYour Google merchant ID to be used for Google Pay.stringundefined
googleMerchantNamegoogle-merchant-nameYour Google merchant name to be used for Google Pay.stringundefined
googlePaygoogle-payEnables Google Pay.booleanundefined
handleResulthandle-resultEnables default result handling for transactions that is built into the form.booleanundefined
keywordkeywordSpecifies the keyword to use for titling the sections of the form. Examples: payment, gift, donation, or contribution.string'payment'
oneTimeone-timeEnables one time transactions.booleanundefined
otherDesignationother-designationStores whether to display the other designation input.booleanfalse
partnerName (required)partner-nameYour Payment Gateway partner name.stringundefined
phoneNumberphone-numberAdds an optional phone number field.boolean \| undefinedundefined
preferredNamepreferred-nameAdds an optional preferred name field.boolean \| undefinedundefined
recaptchaSiteKeyrecaptcha-site-keySite key used for enabling reCAPTCHA v3.string \| undefinedundefined
recurringrecurringEnables recurring transactions.booleanundefined
reportErrorsreport-errorsSpecifies if errors generated by the form should be reported to Source Allies. Disabled by default.booleanfalse
surchargesurchargeSets percentage processing fee amount. This is used to calculate the price with fees if a 'display-cover-fees' is set to true and the user opts in to cover the processing fees or if you set the attribute force-surcharge. This attribute should only be used if you are legally allowed to charge a surcharge.number0.03

Events

EventDescriptionType
pgPaymentCompleteEmits an event on the completion of a payment.CustomEvent<PaymentResult>

Attribute Combinations

Required Attributes

Always required: api-login-id, merchant-name, gateway-name

Required for Google Pay: google-merchant-id, google-merchant-name, gateway-merchant-id

Required for Apple Pay: apple-merchant-name, client-canonical-name

Payment Options

Attributes: card, e-check, google-pay, and apple-pay

Attribute(s)UI
cardDoes not display payment option buttons and displays credit card inputs
e-checkDoes not display payment option buttons and displays e check inputs
google-payDisplays Google Pay button only
apple-payDisplays Apple Pay button only
two or more of card, e-check, apple-pay, and google-payDisplays payment option buttons

Payment Frequencies

Attributes: one-time and recurring

Attribute(s)UI
one-timeDoes not display payment frequency buttons
recurringDoes not display payment frequency buttons and displays payment schedule inputs
one-time and recurringDisplays payment option buttons

Payment Designation

Attributes: designations and other-designation

Attribute(s)UI
designationsDisplays payment designation select
other-designationDisplays payment designation input
designations and other-designationDisplays payment designation select with an Other option. Selecting Other displays payment designation input
0.10.3

2 years ago

0.10.2-alpha.0

2 years ago

0.10.2

2 years ago

0.10.1

3 years ago

0.10.0

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.5

4 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago