Skip to content

Instantly share code, notes, and snippets.

@juan-fdz-hawa
Created September 13, 2021 14:13
Show Gist options
  • Save juan-fdz-hawa/7af1037f92a89d70c0414d26c41f33df to your computer and use it in GitHub Desktop.
Save juan-fdz-hawa/7af1037f92a89d70c0414d26c41f33df to your computer and use it in GitHub Desktop.
{
"payment_intent_data": {
"capture_method": "manual",
"setup_future_usage": "off_session",
"metadata": {},
"payment_method_types": ["card"],
"billing_address_collection": "required",
"customer": #..,
"line_items": [{
"name": #...,
"description": # ...,
"amount": # ..,
"currency": # ...,
"quantity": # ...,
}],
"success_url": success_thread_url,
"cancel_url": cancel_thread_url,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment