Skip to content

Commit a82d075

Browse files
add moto as a payment source
* feat: add moto as a payment source
1 parent 5d5ac82 commit a82d075

File tree

5 files changed

+124
-126
lines changed

5 files changed

+124
-126
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@
8282
"ansi-html": ">=0.0.8",
8383
"follow-redirects": ">=1.14.8",
8484
"url-parse": ">=1.5.9",
85-
"minimist": "^1.2.6"
85+
"minimist": "^1.2.6",
86+
"parse-url": "^6.0.1",
87+
"parse-path": "^5.0.0",
88+
"jsdom": "^16.5.0",
89+
"shell-quote": "^1.7.3"
8690
}
8791
}

packages/embed-react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The options for this integration are as follows.
7676
| `customOptions` | `null` | List of custom options. e.g. `[{ label: 'Giftcard', method: 'giftcard', description: 'You will be asked for a giftcard code.', iconUrl: 'data:image/svg+xml,...'}]` |
7777
| `onCustomSubmit` | `null` | Callback when a custom payment option is selected and the form submitted. |
7878
| `metadata` | `Object` | An optional object of key/values for transaction metadata. All values should be a string. |
79-
| `paymentSource` | `null` | `installment`, `recurring` - Can be used to signal that Embed is used to capture the first transaction for a subscription or an installment. When used, `store` is implied to be `true` and `display` is implied to be `supportsTokenization`. This means that payment options that do not support tokenization are automatically hidden. |
79+
| `paymentSource` | `null` | `installment`, `moto`, `recurring` - Can be used to signal that Embed is used to capture the first transaction for a subscription or an installment. When used, `store` is implied to be `true` and `display` is implied to be `supportsTokenization`. This means that payment options that do not support tokenization are automatically hidden. |
8080
| `cartItems` | `Array` | An optional array of cart item objects, each object must define a `name`, `quantity`, and `unitAmount`. |
8181
| `statementDescriptor` | `Object` | An optional object with information about the purchase to construct the statement information the buyer will see in their bank statement. Please note support for these fields varies across payment service providers and underlying banks, so Gr4vy can only ensure a best effort approach for each supported platform. <br />As an example, most platforms will only support a concatenation of `name` and `description` fields, truncated to a length of 22 characters. <br />The object can contain `name`, `description`, `phoneNumber`, `city` and `url` keys, with string values. `phoneNumber` should be in E164 format. Gr4vy recommends avoiding characters outside the alphanumeric range and the dot (`.`) to ensure wide compatibility. |
8282
| `secure` | `true` | An optional boolean which forces iframeHost and apiHost to use `https` protocol by default. This is useful for local development using `http` protocol. |

0 commit comments

Comments
 (0)