Slide 31
Slide 31 text
// For Simple Stripe Payment
add_filter('simple_stripe_payment_charge', 'stripe_chrage', 10, 7 );
// For Simple PayPal Payment
add_filter('simple_paypal_payment_charge', 'paypal_chrage', 10, 6 );
echo do_shortcode('[simplepaypalpayment locale="'.$locale.'" size="medium" amount='.$amount.'
currency="'.$currency.'" after="'.htmlentities($terminals_paid_html).'" remove=".payment_html"
remove2="#SPPcustomButton" email="'.$email.'" payname="add-multiple-user"]');
echo do_shortcode('[simplestripepayment amount='.$amount.' currency="'.$currency.'" name="BDC Scoring"
description="'.sprintf(__('%d terminals', 'bdc-scoring'), $amu_settings['paid_number']).'"
after="'.htmlentities($terminals_paid_html).'" remove=".payment_html" remove2="#simple_paypal_payment_paypal-
button" email="'.$email.'" payname="add-multiple-user"]');
/* ==================================================
* Filter of Simple PayPal Payment
* @since 1.00
*/
public function paypal_chrage( $data, $payment_data, $email, $amount, $currency, $payname ) {
// Payment TRUE
do_action( 'amu_paid_add_user', $payname );
}
/* ==================================================
* Filter of Simple Stripe Payment
* @since 1.00
*/
public function stripe_chrage( $token, $email, $amount, $currency, $name, $description, $payname ) {
// Payment TRUE
do_action( 'amu_paid_add_user', $payname );
}
採点システム側の課金時