-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor rjs to resolve button reload error and minor changes
- Loading branch information
Scott Anderson
committed
Jan 11, 2024
1 parent
774e5c5
commit 6cf9412
Showing
4 changed files
with
66 additions
and
33 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
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,34 @@ | ||
import { Emitter } from './emitter'; | ||
|
||
export type AmazonPayOptions = { | ||
/** | ||
* 2 Digit Country Code | ||
*/ | ||
region: string; | ||
|
||
/** | ||
* The customer's locale. This is used to set the language rendered in the UI. | ||
*/ | ||
locale: string; | ||
|
||
/** | ||
* The currency of the payment. | ||
*/ | ||
currency: string; | ||
|
||
/** | ||
* Specify which Payment Gateway in Recurly must handle the payment. | ||
*/ | ||
gatewayCode?: string | ||
}; | ||
|
||
export type AmazonPayEvent = 'token' | 'error' | 'close'; | ||
|
||
export interface AmazonPayInstance extends Emitter<AmazonPayEvent> { | ||
/** | ||
* Invokes the Amazon Payment Modal | ||
*/ | ||
start: (amazonPayOptions: AmazonPayOptions) => void; | ||
} | ||
|
||
export type AmazonPay = (amazonPayOptions?: AmazonPayOptions) => AmazonPayInstance; |
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