-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INTER-3509-Add hide-credit-card-payment-option action
- New action allows the parent window to dispatch an action to PIGI to hide the credit card payment option.
- Loading branch information
1 parent
70f21eb
commit a4d7774
Showing
4 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {pigiActionTypes, IApiReturnObject, IPigiActionType, IPigiResponseType, sendPigiAction, sendPigiActionAsync} from 'src'; | ||
|
||
const action: IPigiActionType = { actionType: pigiActionTypes.PIGI_HIDE_CREDIT_CARD_OPTION }; | ||
/** | ||
* ## sendHideCreditCardOptionAction | ||
* | ||
* This action is to be sent after PIGI has been loaded. It causes the credit card | ||
* fields in PIGI to be hidden. | ||
*/ | ||
export function sendHideCreditCardOptionAction(): IApiReturnObject { | ||
return sendPigiAction(action); | ||
} | ||
|
||
/** | ||
* ## sendHideCreditCardOptionActionAsync | ||
* | ||
* This action is to be sent after PIGI has been loaded. It causes the credit card | ||
* fields in PIGI to be hidden. | ||
* | ||
* This method waits for a response back from PIGI before returning. | ||
*/ | ||
export async function sendHideCreditCardOptionActionAsync(): Promise<IPigiResponseType> { | ||
return await sendPigiActionAsync(action); | ||
} |
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