Create a new payment method intent.
This can be used with a third-party billing provider to store a payment method.
POST
/user/v1/paymentMethods:createIntentCreate a new payment method intent.
This can be used with a third-party billing provider to store a payment method.
curl https://api.userhub.com/user/v1/paymentMethods:createIntent \
-H "UserHub-Api-Key: $USERHUB_USER_KEY" \
-H "Authorization: Bearer $USER_ACCESS_TOKEN" \
--json '{
"organizationId": "org_28seyVGVL1got6"
}'
const res = await userApi.paymentMethods.createIntent({
organizationId: "org_28seyVGVL1got6",
});
res, err := userApi.PaymentMethods().CreateIntent(
context.Background(),
&userapi.PaymentMethodCreateIntentInput{
OrganizationId: "org_28seyVGVL1got6",
},
)
$res = $userApi->paymentMethods->createIntent(
organizationId: 'org_28seyVGVL1got6',
);
res = user_api.payment_methods.create_intent(
organization_id="org_28seyVGVL1got6",
)
{
"stripe": {
"accountId": "acct_1MYWwjGZndmhrwhA",
"live": false,
"clientSecret": "seti_1JIn79LN82CfHITx1e2dCDiT_secret_SH..."
}
}