summaryrefslogtreecommitdiff
path: root/api/_paypal.ts
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-12 12:25:48 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-12 12:25:48 +0100
commit0fd3bf89c81a50573a78a16408af5af332a097c1 (patch)
treebcea0740b2ec427d30080ab8efaf1c817e36f6ba /api/_paypal.ts
parent6549313a54e7fede18cfa170df82c29f511d76d7 (diff)
PayPal capture request sends Content-Type header
Diffstat (limited to 'api/_paypal.ts')
-rw-r--r--api/_paypal.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/_paypal.ts b/api/_paypal.ts
index 99e45f7..e0447c0 100644
--- a/api/_paypal.ts
+++ b/api/_paypal.ts
@@ -55,6 +55,7 @@ function paypalCreateOrderRequestHeaders(accessToken: string) {
function paypalCaptureOrderRequestHeaders(accessToken: string) {
return {
+ 'Content-Type': 'application/json',
Authorization: `Bearer ${accessToken}`,
};
}