Greetings fellow Bubblers,
I have been using the Stripe.js plugin for awhile now but have run into some limitations of it and need to use the Stripe API with the API Connector. However, I am running into some issues with it. Here are the main things that I need to accomplish with this:
- Create a subscription for an existing customer.
- Send metadata with the api call for the customer and each subscription item
- Send 2 subscription items for the subscription.
Below is the Json that I have configured but I am getting an error (see screenshot below code). Any help you can provide would be greatly appreciated. Thanks!
{ "customer":"<customer_id>", "metadata":[ { "fh_subscription_id":"<fh_customer_id>" } ], "default_payment_method":"<payment_method_id>", "automatic_tax":{ "enabled":"false" }, "items":[ { "quantity":"<access_quantity>", "price":"<access_product_id>", "metadata":[ { "fh_subscription_id":"<fh_access_subscription_item_id>" } ] }, { "quantity":"<hours_quantity>", "price":"<hours_product_id>", "metadata":{ "fh_subscription_id":"<fh_hours_subscription_item_id>" } } ], "collection_method":"<collection_method>", "coupon":"<coupon>" }
