How to add Stripe payment programmatically?

Created on 6 March 2018, over 7 years ago
Updated 18 August 2025, about 1 month ago

I have a custom form function which after saving a custom order (with an already wrapped in billing profile) uses drupal_goto('admin/commerce/orders/'.$order->order_id.'/payment'); and then I add payment and successfully complete the whole process. Now, I am trying to eliminate the manual part and after reading #1867768: Programmatically complete payment/checkout β†’ can't figure out what should be similar code for Commerce Stripe module? Thanks for any hints!

πŸ’¬ Support request
Status

Closed: outdated

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024