diff --git a/services/web/app/src/Features/Subscription/RecurlyWrapper.js b/services/web/app/src/Features/Subscription/RecurlyWrapper.js index 982b07e3e2..3cd2d9ad0c 100644 --- a/services/web/app/src/Features/Subscription/RecurlyWrapper.js +++ b/services/web/app/src/Features/Subscription/RecurlyWrapper.js @@ -579,7 +579,7 @@ const promises = { async attemptInvoiceCollection(invoiceId) { return await RecurlyWrapper.promises.apiRequest({ url: `invoices/${invoiceId}/collect`, - method: 'put', + method: 'PUT', }) }, @@ -639,7 +639,7 @@ const promises = { try { await RecurlyWrapper.promises.apiRequest({ url: 'coupons', - method: 'post', + method: 'POST', body: requestBody, }) } catch (error) { @@ -677,7 +677,7 @@ const promises = { try { await RecurlyWrapper.promises.apiRequest({ url: `coupons/${couponCode}/redeem`, - method: 'post', + method: 'POST', body: requestBody, }) } catch (error) { @@ -703,7 +703,7 @@ const promises = { await RecurlyWrapper.promises.apiRequest({ url: `subscriptions/${subscriptionId}/postpone`, qs: { bulk: false, next_bill_date: nextRenewalDate }, - method: 'put', + method: 'PUT', }) } catch (error) { logger.warn( diff --git a/services/web/test/unit/src/Subscription/RecurlyWrapperTests.js b/services/web/test/unit/src/Subscription/RecurlyWrapperTests.js index dddee7d1ad..be55517aed 100644 --- a/services/web/test/unit/src/Subscription/RecurlyWrapperTests.js +++ b/services/web/test/unit/src/Subscription/RecurlyWrapperTests.js @@ -378,7 +378,7 @@ describe('RecurlyWrapper', function () { .stub(this.RecurlyWrapper.promises, 'apiRequest') .callsFake(options => { options.url.should.equal(`coupons/${this.coupon_code}/redeem`) - options.method.should.equal('post') + options.method.should.equal('POST') return {} }) await this.RecurlyWrapper.promises.redeemCoupon(