Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Last active September 4, 2019 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Shelob9/309436eb9450ff21dbdf042aa766d2bd to your computer and use it in GitHub Desktop.
Save Shelob9/309436eb9450ff21dbdf042aa766d2bd to your computer and use it in GitHub Desktop.
<?php
/**
* Change Caldera Forms Stripe Payment Amount
*/
add_filter( 'cf_stripe_charge_args', function( $args, $config, $form ){
//change charge amounts to $10. Amount is in cents.
$args[ 'amount' ] = 1000;
return $args;
}, 10, 4 );
<?php
/**
* Change Caldera Forms Stripe Recipt email
*/
add_filter( 'cf_stripe_charge_args', function( $args, $config, $form ){
//change email
$args[ 'receipt_email' ] = 'hiroy@calderawp.com';
return $args;
,}, 10, 3 );
<?php
/**
* Change Caldera Forms Stripe Payment Plan
*/
add_filter( 'cf_stripe_recurring_args', function( $args, $config, $form ){
//change plan. Plan MUST exist
$args[ 'plan' ] = 'fancy-plan';
return $args;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment