Create a payment method intent.
This can be used with a third-party billing provider API to store a payment method.
POST
/admin/v1/paymentMethods:createIntentCreate a payment method intent.
This can be used with a third-party billing provider API to store a payment method.
curl https://api.userhub.com/admin/v1/paymentMethods:createIntent \
-H "Authorization: Bearer $USERHUB_ADMIN_KEY" \
--json '{
"organizationId": "org_28seyVGVL1got6",
"connectionId": "conn_4HdRKnTvPmmjYK"
}'
const res = await adminApi.paymentMethods.createIntent({
organizationId: "org_28seyVGVL1got6",
connectionId: "conn_4HdRKnTvPmmjYK",
});
res, err := adminApi.PaymentMethods().CreateIntent(
context.Background(),
&adminapi.PaymentMethodCreateIntentInput{
OrganizationId: "org_28seyVGVL1got6",
ConnectionId: "conn_4HdRKnTvPmmjYK",
},
)
$res = $adminApi->paymentMethods->createIntent(
organizationId: 'org_28seyVGVL1got6',
connectionId: 'conn_4HdRKnTvPmmjYK',
);
res = admin_api.payment_methods.create_intent(
organization_id="org_28seyVGVL1got6",
connection_id="conn_4HdRKnTvPmmjYK",
)
{
"stripe": {
"accountId": "acct_1MYWwjGZndmhrwhA",
"live": false,
"clientSecret": "seti_1JIn79LN82CfHITx1e2dCDiT_secret_SH..."
}
}