Bestellung über unsere Webseite werden per Lastschrift bezahlt. Ich habe, wie in den Zahlungseinstellung, den Code für die Verschlüsselung in die wp-config eingefügt. Nun kann aber die Bank die IBAN nicht mehr identifizieren. Gibt es eine M?glichkeit die Verschlüsselung wieder rückg?ngig zu machen?
]]>on a clean install (last WP, last Woo and Last Stripe official), in test mode (local and live), SEPA payment process experience the same issue.
If i fill the stripe IBAN field (with the number given by test stripe), and no other fields, an error message appears below the IBAN field: Unable to process this payment, please try again or use alternative method.
There are no woocommerce notices and the message is more than “vague” / not really understandable for the customer (i know the error, customer must fill email address, that’s not the point)
Why standard woocommerce errors are not displayed first? then if there are real issues, show Stripe errors ?
Thanks for your answer
]]>Following code I added to the functions.php of my current theme:
function checkIBAN($iban) {
$iban = strtolower(str_replace(' ','',$iban));
$Countries = array('al'=>28,'ad'=>24,'at'=>20,'az'=>28,'bh'=>22,'be'=>16,'ba'=>20,'br'=>29,'bg'=>22,'cr'=>21,'hr'=>21,'cy'=>28,'cz'=>24,'dk'=>18,'do'=>28,'ee'=>20,'fo'=>18,'fi'=>18,'fr'=>27,'ge'=>22,'de'=>22,'gi'=>23,'gr'=>27,'gl'=>18,'gt'=>28,'hu'=>28,'is'=>26,'ie'=>22,'il'=>23,'it'=>27,'jo'=>30,'kz'=>20,'kw'=>30,'lv'=>21,'lb'=>28,'li'=>21,'lt'=>20,'lu'=>20,'mk'=>19,'mt'=>31,'mr'=>27,'mu'=>30,'mc'=>27,'md'=>24,'me'=>22,'nl'=>18,'no'=>15,'pk'=>24,'ps'=>29,'pl'=>28,'pt'=>25,'qa'=>29,'ro'=>24,'sm'=>27,'sa'=>24,'rs'=>22,'sk'=>24,'si'=>19,'es'=>24,'se'=>24,'ch'=>21,'tn'=>24,'tr'=>26,'ae'=>23,'gb'=>22,'vg'=>24);
$Chars = array('a'=>10,'b'=>11,'c'=>12,'d'=>13,'e'=>14,'f'=>15,'g'=>16,'h'=>17,'i'=>18,'j'=>19,'k'=>20,'l'=>21,'m'=>22,'n'=>23,'o'=>24,'p'=>25,'q'=>26,'r'=>27,'s'=>28,'t'=>29,'u'=>30,'v'=>31,'w'=>32,'x'=>33,'y'=>34,'z'=>35);
if(strlen($iban) == $Countries[substr($iban,0,2)]){
$MovedChar = substr($iban, 4).substr($iban,0,4);
$MovedCharArray = str_split($MovedChar);
$NewString = "";
foreach($MovedCharArray AS $key => $value){
if(!is_numeric($MovedCharArray[$key])){
$MovedCharArray[$key] = $Chars[$MovedCharArray[$key]];
}
$NewString .= $MovedCharArray[$key];
}
if(bcmod($NewString, '97') == 1)
{
return true;
}
}
return false;
}
function um_custom_validate_iban( $args ) {
if( isset( $args[ 'IBAN' ] ) && !checkIBAN($args[ 'IBAN' ]) ) {
UM()->form()->add_error( 'IBAN', __( 'No valid IBAN account number', 'ultimate-member' ) );
}
}
add_action( 'um_submit_form_errors_hook_', 'um_submit_form_validate_iban', 99 );
]]>I hope you are doing well.
Is it possible to validate Adress fields and IBAN-numbers in Forminator, so that no incorrect data is submitted?
Thanks a lot and kind regards
]]>I need help with a form field valdidation. I need to check if a field contains a valid IBAN number (International Bank Account Number) in the format e.g. “DE89370400440532013000”.
Is there any code out there or a tutorial for Ninja Forms or is anybody so generous as to custom code me this validation?
Thank you and regards, Arne
]]>I use a snippet to query whether an order has a transaction ID. If no ID is present, the status is set to Aborted. This also works, but at the same moment WooCommerce automatically changes this status back to Pending.
function cancel_order_stripe( $order_id ) {
$order = new WC_Order( $order_id );
$trans_code = $order->get_transaction_id();
$pay_methos = $order->get_payment_method();
if (empty($trans_code)){
$order->update_status('failed', 'Bestellung wurde vom System abgebrochen.');
$order->save;
}
//var_dump($order);
};
add_action( 'woocommerce_new_order', 'cancel_order_stripe', 10, 1 );
]]>GiveWP supports IBAN, but the person who wants to give a donation does not see a screen to pay with IDEAL via Stripe… It is infinity loading…
Can someone help us? We would like to use Stripe for the donations.
]]>How can this be resolved?
Thank you
]]>