15 if ( !isset( $stagedData[
'email'] ) ) {
20 $email = preg_replace(
'/\+[^@]*/',
'', $stagedData[
'email'] );
21 $stagedData[
'donor_id'] = substr( $email, 0, 20 );
28 if ( isset( $meta[
'bank_code'] ) ) {
29 $stagedData[
'bank_code'] = $meta[
'bank_code'];
stage(GatewayType $adapter, $normalized, &$stagedData)
Transform a subset of normalized data into the "staged" data expected by a payment processor.
stage_bank_code(GatewayType $adapter, $normalized, &$stagedData)
stage_donor_id(GatewayType $adapter, $normalized, &$stagedData)
They need a 20 char string for a customer ID - give them the first 20 characters of the email address...
getPaymentSubmethodMeta( $payment_submethod=null)
Get metadata for the specified payment submethod.
getPaymentSubmethod()
Get the name of the currently selected payment submethod.
Used to mark any class which implements an staging method, for transforming data into the form expect...