-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bc-travis-ci
committed
Jul 4, 2023
1 parent
9e2dd90
commit 3c0f008
Showing
14 changed files
with
205 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
[@bigcommerce/checkout-sdk](../README.md) / BlueSnapDirectAPMInitializeOptions | ||
|
||
# Interface: BlueSnapDirectAPMInitializeOptions | ||
|
||
A set of options that are required to initialize the BlueSnap V2 payment | ||
method. | ||
|
||
The payment step is done through a web page via an iframe provided by the | ||
strategy. | ||
|
||
```html | ||
<!-- This is where the BlueSnap iframe will be inserted. It can be an in-page container or a modal --> | ||
<div id="container"></div> | ||
|
||
<!-- This is a cancellation button --> | ||
<button type="button" id="cancel-button"></button> | ||
``` | ||
|
||
```js | ||
service.initializePayment({ | ||
methodId: 'bluesnapDirect', | ||
bluesnapDirect: { | ||
onLoad: (iframe) => { | ||
document.getElementById('container') | ||
.appendChild(iframe); | ||
|
||
document.getElementById('cancel-button') | ||
.addEventListener('click', () => { | ||
document.getElementById('container').innerHTML = ''; | ||
}); | ||
}, | ||
}, | ||
}); | ||
``` | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [style](BlueSnapDirectAPMInitializeOptions.md#style) | ||
|
||
### Methods | ||
|
||
- [onLoad](BlueSnapDirectAPMInitializeOptions.md#onload) | ||
|
||
## Properties | ||
|
||
### style | ||
|
||
• `Optional` **style**: [`BlueSnapDirectStyleProps`](BlueSnapDirectStyleProps.md) | ||
|
||
A set of CSS properties to apply to the iframe. | ||
|
||
## Methods | ||
|
||
### onLoad | ||
|
||
▸ **onLoad**(`iframe`, `cancel`): `void` | ||
|
||
A callback that gets called when the iframe is ready to be added to the | ||
current page. It is responsible for determining where the iframe should | ||
be inserted in the DOM. | ||
|
||
#### Parameters | ||
|
||
| Name | Type | Description | | ||
| :------ | :------ | :------ | | ||
| `iframe` | `HTMLIFrameElement` | The iframe element containing the payment web page provided by the strategy. | | ||
| `cancel` | () => `void` | A function, when called, will cancel the payment process and remove the iframe. | | ||
|
||
#### Returns | ||
|
||
`void` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[@bigcommerce/checkout-sdk](../README.md) / BlueSnapDirectStyleProps | ||
|
||
# Interface: BlueSnapDirectStyleProps | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [border](BlueSnapDirectStyleProps.md#border) | ||
- [height](BlueSnapDirectStyleProps.md#height) | ||
- [width](BlueSnapDirectStyleProps.md#width) | ||
|
||
## Properties | ||
|
||
### border | ||
|
||
• `Optional` **border**: `string` | ||
|
||
___ | ||
|
||
### height | ||
|
||
• `Optional` **height**: `string` | ||
|
||
___ | ||
|
||
### width | ||
|
||
• `Optional` **width**: `string` |
18 changes: 18 additions & 0 deletions
18
docs/interfaces/WithBlueSnapDirectAPMPaymentInitializeOptions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[@bigcommerce/checkout-sdk](../README.md) / WithBlueSnapDirectAPMPaymentInitializeOptions | ||
|
||
# Interface: WithBlueSnapDirectAPMPaymentInitializeOptions | ||
|
||
## Table of contents | ||
|
||
### Properties | ||
|
||
- [bluesnapdirect](WithBlueSnapDirectAPMPaymentInitializeOptions.md#bluesnapdirect) | ||
|
||
## Properties | ||
|
||
### bluesnapdirect | ||
|
||
• `Optional` **bluesnapdirect**: [`BlueSnapDirectAPMInitializeOptions`](BlueSnapDirectAPMInitializeOptions.md) | ||
|
||
The options that are required to initialize the Apple Pay payment | ||
method. They can be omitted unless you need to support Apple Pay. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters