takuro1580
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Membership] What causes an account status of “Suspended”?Thank you for your reply.
In response to the following replies received more than a week ago,
Could you please be more specific about the “the proper process
“?——————————-
I suspect that because you changed the account manually without going through the proper process, that automatically cancelled the account.Forum: Plugins
In reply to: [Simple Membership] What causes an account status of “Suspended”?Have you checked the above questions?
We would appreciate it if you could reply to us.
Forum: Plugins
In reply to: [Simple Membership] What causes an account status of “Suspended”?There may be an error in translation, but
The account status is “suspended”, not “disabled”.
Is this not the status used on the plugin?The following URL is a screen capture.
https://gyazo.com/220dc4cdc86edd592b0c1df3421998e3Also, there is no operation from Stripe.
The automatic cancellation of the subscription occurred because the card of the relevant member who registered for the paid plan was not a valid card.
The site administrator then changed the membership level of the relevant member to free.
The account status became “suspended”.I couldn’t figure out the cause of the “suspended” message.
I would appreciate it if you could tell me in what case it becomes “suspended”.Thank you in advance.
Forum: Plugins
In reply to: [Simple Membership] What causes an account status of “Suspended”?Can you be specific about the proper process? If I change to a free plan when my subscription has not been cancelled by Stripe, will my account status be "suspended"? Also,Is it possible that the account has been suspended because the ID of the cancelled subscription is registered in the member's information? The following URL is a screen capture. ▼simplemembership membership information https://gyazo.com/2ddd9283d0a146572692a155eb6a8430 ▼Stripe https://gyazo.com/77b935ef3dd723f5e0ca92e96eec4246 Thank you in advance.
Forum: Plugins
In reply to: [Simple Membership] What causes an account status of “Suspended”?Thank you for your reply.
I checked the Stripe management screen and found that the subscription was cancelled on 07/30/17:47. If the plan had been changed by then, would the subscription be “suspended”?
Also, the subscriber ID that links the member to the stripe subscription was not deleted from the member information, so could this be the cause of the problem?
Thank you in advance.
No, the payment button is normal. The page displaying the user's card information goes blank. The shortcode was added by a WordPress function. I'm sorry. Also, the short code was defined by the code below, but is there anything suspicious? ---------------------------------------------------- function ctf_stripe_customer_get_card_image($brand){ //brand: Can be American Express, Diners Club, Discover, JCB, MasterCard, UnionPay, Visa, or Unknown //card hash (paymentmethod): amex, diners, discover, jcb, mastercard, unionpay, visa, or unknown $img_name = ''; switch ( strtolower($brand) ) { case 'visa': $img_name = 'ico_card_visa.png'; break; case 'mastercard': $img_name = 'ico_card_master.png'; break; case 'jcb': $img_name = 'ico_card_jcb.png'; break; case 'american express': case 'amex': $img_name = 'ico_card_amex.png'; break; case 'diners club': case 'diners': $img_name = 'ico_card_diners.png'; break; } return $img_name; } add_shortcode( 'ctf-stripe-customer-card-info', 'ctf_stripe_customer_card_info' ); function ctf_stripe_customer_card_info($atts, $content = NULL){ extract ( shortcode_atts( array( 'title' => 'カード情報の確認', ), $atts ) ); global $wpdb, $user_ID; if(! SwpmMemberUtils::is_member_logged_in()){ echo '<script>window.location.href = "'.home_url().'";</script>'; } $customer = ctf_striper_customer_retrive_customer(); //echo "<pre>Customer: "; print_r($customer); echo "</pre>"; $card=''; if(isset($customer->active_card)){ $card = $customer->active_card; }elseif(!empty($customer->default_source) && !empty($customer->sources->data) ){ foreach ($customer->sources->data as $scard) { if($scard->id == $customer->default_source){ $card= $scard; break; } } }elseif(!empty($customer->payment_method_card)){ $card = $customer->payment_method_card; } ob_start(); if( $card ){ ?> <?php $active_card = $card; $img_name = ctf_stripe_customer_get_card_image($active_card->brand); ?> <table class="tbl-a sp-mode-vertical"> <tbody> <tr> <th>ご利用カード</th> <td> <?php if($img_name!=''): ?> <img class="card-logo" src="<?=get_stylesheet_directory_uri()?>/assets/img/common/<?=$img_name?>" alt="<?=$active_card->brand?>" width="86" height="55" /> <?php else: ?> <strong><?=strtoupper($active_card->brand)?></strong> <?php endif; ?> </td> </tr> <tr> <th>クレジットカード番号</th> <td>************<?=$active_card->last4?></td> </tr> <tr> <th>有効期限</th> <td><?=$active_card->exp_month?>/<?=$active_card->exp_year?></td> </tr> <tr> <th>カード所有者名</th> <td><?=($active_card->name)?$active_card->name:$customer->name ?></td> </tr> </tbody> </table> <?php }else{ ?> <div class="nosubs" style="text-align: center;margin-bottom: 20px;"><strong><?=__('ご利用中の有料プランはございません。','ct-stripe-customer')?></strong></div> <?php } $output_string=ob_get_contents(); ob_end_clean(); return $output_string; } function ctf_stripe_customer_update_customer_card($datas){ if ( ! SwpmMemberUtils::is_member_logged_in() ) { //member not logged in return 0; } $member_id = SwpmMemberUtils::get_logged_in_members_id(); $subscr_id = SwpmMemberUtils::get_member_field_by_id( $member_id, 'subscr_id' ); if ( ! $subscr_id ) { return 0; } $payment_button = ctf_stripe_customer_getPaymentButton($member_id,$subscr_id); if ($payment_button) { $api_keys = SwpmMiscUtils::get_stripe_api_keys_from_payment_button( $payment_button['payment_button_id'], $payment_button['is_live'] ); SwpmMiscUtils::load_stripe_lib(); \Stripe\Stripe::setApiKey( $api_keys['secret'] ); $stripe_sub = \Stripe\Subscription::retrieve( [ 'id' => $subscr_id, 'expand' => ['customer','customer.sources'], ] ); if(isset($stripe_sub->customer) ) { $customer = $stripe_sub->customer; if(!empty($stripe_sub->default_payment_method)){ // /https://stripe.com/docs/api/payment_methods/detach?lang=php $pm = \Stripe\PaymentMethod::retrieve( $stripe_sub->default_payment_method );//to get PaymentMethod object $pm->detach( $stripe_sub->default_payment_method, [] ); } //https://stripe.com/docs/api/customers/update $customer_new = \Stripe\Customer::update($customer->id, [ 'source' => $datas['tok_card'], //token get ]); return $customer_new; } } return 0; } ----------------------------------------------------
Forum: Plugins
In reply to: [Simple Membership] Causes of Account Expiration with StripeThank you for your reply.
#1)Where can I find the debug log files?
I will check on #2), #3).Thank you for your continued cooperation.
Forum: Plugins
In reply to: [Simple Membership] Causes of Account Expiration with StripeThank you for your reply.
We have already created a subscription button.
This button connects the membership level [test] to the product with a 2-day billing cycle in Stripe test mode.
Please note that we have already created the subscription button for the product.
Also, debug mode was enabled.However, the expiration date of the user who became a member by pressing the button was not updated after the Stripe payment date and access expiration date.
We would appreciate it if you could tell us the cause of this.Also, we are testing the “Sakura Internet”
I am testing the staging environment at the following URL.https://rs.sakura.ad.jp/function/backup_staging.html
Thank you in advance for your confirmation!
Forum: Plugins
In reply to: [Simple Membership] Causes of Account Expiration with StripeThank you for your reply.
The work contents are as follows.1) Create a membership level [test] with an expiration date of 2 days on the site side
Added products with a billing cycle of 2 days in Stripe’s test mode
2) Purchase products as a member level [test] user (= 6/10 18:15)
3) Change the expiration date of the user to “5 days”
(Confirm that the expiration date of the corresponding user has been extended to 6/15)
4) Confirm that payment processing is running on 6 / 12.6 / 14 with Stripe ? Expiration date remains 6/15 and is not renewed
5) Access expiration date will be 6/15 ? The expiration date remains 6/15 and is not renewed, and the account status remains “valid”I would like to know why was not renewed even after the Stripe payment date and the member’s access expiration date.
thank you.
Forum: Plugins
In reply to: [Simple Membership] Causes of Account Expiration with Stripethank you for your answer.
When I set the access expiration date of the member created by Simple Membership longer than the expiration date of Stripe,
The access expiration date for Simple Membership was not renewed after the Stripe expiration date.In that case, I think that the access expiration date of Simple Membership will shift little by little, but if the renewal process is done on the Stripe side before the expiration date, will it not expire?