odeal4ik
Forum Replies Created
-
Forum: Plugins
In reply to: [Direct Stripe] How to send billing name to admin after succes transactionThank you, visa converts my money)
For test i didn’t knowed about minimal currency.Forum: Plugins
In reply to: [Direct Stripe] How to send billing name to admin after succes transactionOk, problem solved.
For me it’s small problem but $user_id contains id of user and Stripe customer ID in format cus_…. in array.
$user_info = get_user_by(’email’, $email_address) works fo me;
I have all access.Thanks for plugin.
Can you answer about currencies?
Forum: Plugins
In reply to: [Direct Stripe] How to send billing name to admin after succes transactionAnd 1 comment.
Any there any possibility to add currency? For example for russian rubles or ukrainian hrivnas?Forum: Plugins
In reply to: [Direct Stripe] How to send billing name to admin after succes transactionHello, thanks for an answer. Bad news, i’he tried, but it still not workin and in email it’s an empty field.
Even after trying var_dump, print_r etc.And $user_info, $user_id is always – 1.
Maybe this hook works not in his time?
add_filter( 'direct_stripe_success_admin_email_content', function( $token, $amount, $currency, $email_address, $description, $user_id, $button_id, $message){ $today = date("j, n, Y"); $user_info = get_user_by('id', $user_id ); $user_email = $user_info->user_email; $message = '<h1>TEXT - somesite.ru</h1><br/>' . "http://{$_SERVER['HTTP_HOST']}<br/>" . 'TEXT - ' . $email_address . '<br/>' . 'TEXT- ' . number_format( $amount/100, 2) .' '. $currency . '<br/>' . 'TEXT - '. $description . '<br/>' . 'TEXT - ' . $today . '<br/>' . 'TEXT - ' . print_r($user_info) . '<br/>'; $message .= 'Пользователь - ' . $user_email . '<br/>'; return $message; }, 10, 8 );And when i try to get user in other frontend point, it works correctly and returm to me all field i want. But i need to sent them right after payment.
Forum: Plugins
In reply to: [Direct Stripe] How to hide the “processing” after user submits payment.@bmartin3211 try in admin disable “button styles”
.loadingDS-container
Forum: Plugins
In reply to: [Direct Stripe] How to hide the “processing” after user submits payment.Try to add style display – none to id of your spinner)