Want to set up recurring payments without plan using Stripe? On submit, you could use the custom amount to create a new plan:
1 2 3 4 5 6 7 8 9 10 11 | $current_time = time(); $plan_name = strval( $current_time ); Stripe_Plan::create(array( "amount" => $_POST['custom-amount'], "interval" => "month", "name" => "Some Plan Name " . $_POST['customer-name'], "currency" => "usd", "id" => $plan_name ) ); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.