Skip to content

Commit c8047f4

Browse files
committed
Update create-stripe-outbound-payment.ts
1 parent 3d77f78 commit c8047f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/web/lib/stripe/create-stripe-outbound-payment.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { stripeV2Fetch } from "./stripe-v2-client";
1+
import { STRIPE_API_VERSION, stripeV2Fetch } from "./stripe-v2-client";
22

33
export interface CreateStripeOutboundPaymentParams {
44
stripeRecipientId: string;
@@ -27,6 +27,8 @@ export async function createStripeOutboundPayment({
2727
"/v2/money_management/outbound_payments",
2828
{
2929
headers: {
30+
Authorization: `Bearer ${process.env.STRIPE_SECRET_KEY}`,
31+
"Stripe-Version": STRIPE_API_VERSION,
3032
"Idempotency-Key": idempotencyKey,
3133
},
3234
body: {

0 commit comments

Comments
 (0)