diff options
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index b08122b66..015a44ccc 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -36,7 +36,8 @@ import { import { abortFailedPayment, - preparePay, + preparePayForUri, + refuseProposal, confirmPay, processDownloadProposal, processPurchasePay, @@ -355,8 +356,8 @@ export class Wallet { * If the payment is possible, the signature are already generated but not * yet send to the merchant. */ - async preparePay(talerPayUri: string): Promise<PreparePayResult> { - return preparePay(this.ws, talerPayUri); + async preparePayForUri(talerPayUri: string): Promise<PreparePayResult> { + return preparePayForUri(this.ws, talerPayUri); } /** @@ -681,6 +682,10 @@ export class Wallet { } } + async refuseProposal(proposalId: string): Promise<void> { + return refuseProposal(this.ws, proposalId); + } + async getPurchaseDetails(hc: string): Promise<PurchaseDetails> { const purchase = await this.db.get(Stores.purchases, hc); if (!purchase) { |