From 598f8a9e7c63094e8cf92666e2d5310b54f849d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Bu=C3=9Fmann?= Date: Fri, 7 Oct 2016 02:34:45 +0200 Subject: [PATCH] fix(paypal): fixed currency code not found issue (#653) --- src/plugins/pay-pal.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/pay-pal.ts b/src/plugins/pay-pal.ts index a21f635679..1627ee1f28 100644 --- a/src/plugins/pay-pal.ts +++ b/src/plugins/pay-pal.ts @@ -101,13 +101,13 @@ export class PayPalPayment { * Convenience constructor. * Returns a PayPalPayment with the specified amount, currency code, and short description. * @param {String} amount: The amount of the payment. - * @param {String} currencyCode: The ISO 4217 currency for the payment. + * @param {String} currency: The ISO 4217 currency for the payment. * @param {String} shortDescription: A short description of the payment. * @param {String} intent: "Sale" for an immediate payment. */ - constructor(amount: string, currencyCode: string, shortDescription: string, intent: string) { + constructor(amount: string, currency: string, shortDescription: string, intent: string) { this.amount = amount; - this.currencyCode = currencyCode; + this.currency = currency; this.shortDescription = shortDescription; this.intent = intent; } @@ -119,7 +119,7 @@ export class PayPalPayment { /** * The ISO 4217 currency for the payment. */ - currencyCode: string; + currency: string; /** * A short description of the payment. */