I hereby claim:
- I am new0 on github.
- I am newo (https://keybase.io/newo) on keybase.
- I have a public key whose fingerprint is 0CB0 252B D558 F443 6494 8D2F B6B1 6DAF 7034 C7CE
To claim this, I am signing this object:
/************* Modern version for browsers with flex support https://caniuse.com/#feat=flexbox ********************/ | |
.caldera-grid .form-group { | |
display: flex; | |
} | |
.caldera-grid .form-group label { | |
width: 25%; /*Set to the width needed by the text of your label */ | |
} | |
.caldera-grid .form-group > div{ | |
width: 75%; /*Set to the width needed by the text of your input */ | |
} |
/** Add the class desc-above to the field **/ | |
.form-group.cf-desc-above > div { | |
display: -webkit-flex; | |
display: flex; | |
-webkit-flex-direction: column-reverse; | |
flex-direction: column-reverse; | |
} | |
.caldera-grid .form-group.cf-desc-above .checkbox, | |
.caldera-grid .form-group.cf-desc-above .radio { | |
margin-top: -5px; |
function my_direct_stripe_payment_completed( $charge_id, $post_id, $button_id, $user_id ) { | |
$charge = \Stripe\Charge::retrieve($charge_id); | |
$user = get_user_by('id', $user_id); | |
WPAM_Logger::log_debug('Stripe Payments Integration – asp_stripe_payment_completed hook triggered.'); | |
//Required Parameters | |
$amount = $charge->amount; | |
$purchaseAmount = number_format( $amount , '2' );//Sale Amount | |
$order_id = $charge->id;//Transaction ID | |
$buyer_email = $user->user_email;//Email address |
add_filter( 'ds_charge_action_payment', function( $action ) { | |
$action = '\Stripe\Customer::retrieve'; | |
return $action; | |
}, 10); | |
add_filter( 'ds_charge_content_payment', function( $content, $token, $stripe_id ) { |
//Allow the Direct Stripe assets to be enqueued in chosen pages | |
add_action( 'wp', function () { | |
global $post; | |
$shortcodePageSlugs = array( | |
'hello-world', | |
'second-page-slug' | |
); | |
if( $post ) |
I hereby claim:
To claim this, I am signing this object:
add_filter( 'direct_stripe_success_user_email_content', function( $message, $token, $amount, $currency, $email_address, $description, $user_id, $button_id){ | |
$message = 'User ' . $email_address . ' have been charged ' . $amount . $currency . ' for ' . $description; | |
return $message; | |
}, 10, 8 ); |
label[for="fld_1774775_1_0"] { /* Replace fld_1774775_1_0 with the actual label "for" parameter */ | |
display: none; | |
} |
add_action( 'direct_stripe_before_success_redirection', function( $chargeID, $post_id, $button_id, $user_id ) { | |
wp_new_user_notification( $user_id, null, 'both' ); | |
}, 10, 4 ); |
.direct-stripe { margin: 0; } |