Skip to content

Commit

Permalink
fix: Pass in data to PATCH call so cart amount is updated on quantity…
Browse files Browse the repository at this point in the history
… change(#8456)
  • Loading branch information
Arsenalist authored Aug 7, 2024
1 parent 7c3a78c commit c24fdb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/medusa-payment-paypal/src/core/paypal-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class PaypalSdk {
*/
async patchOrder(orderId: string, data?: PatchOrder[]): Promise<void> {
const url = PaypalApiPath.PATCH_ORDER.replace("{id}", orderId)
return await this.httpClient_.request({ url, method: "PATCH" })
return await this.httpClient_.request({ url, data, method: "PATCH" })
}

/**
Expand Down

0 comments on commit c24fdb5

Please sign in to comment.