| Parameter | Required | Description |
|---|---|---|
| accessToken | The accessToken obtained from the getAccessToken API method Example: 2783a265a0 | |
| payframeDivID | Yes | This is the id of the div you wish the payframe to appear in. Example: cardData |
| src | Yes | This is the Merchant Warrior url that the payframe will be loaded from. Example: https://secure.merchantwarrior.com/payframe/ |
| submitUrl | Yes | This parameter is used to set the target environment (Production, Camp). Example: Production |
| Parameter | Required | Description |
|---|---|---|
| style | No | This parameter is used to set custom styling for the payframe. Example: {backgroundColor: 'Cyan', fontFamily: 'Times New Roman', payframeHeightScaling: 'dynamic'} |
| acceptedCardTypes | No | This parameter is a comma delimited list of card types that will be accepted (visa,mastercard,amex,diners,discover,jcb). If not set only Visa and Mastercard will be accepted. Example: Visa, Mastercard, Diners |
| method | No | This parameter is used to set the action to be performed by the payframe (addCard, getPayframeToken). By default, or if not set, the payframe will return a Payframe Token for use with a Process Card transaction. Example: getPayframeToken |
| paymentFingerprint | No | Set to true to receive a payment fingerprint in the response. A payment fingerprint remains unique for each card number and remains constant even if other card details, such as expiry date or cardholder name, are modified. |