Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Praveen a11n

    (@spraveenitpro)

    Automattic Happiness Engineer

    Hi Levigutt

    Thanks for bringing this up, I am currently checking on this and will get back as soon as I have an update,

    Cheers!!

    Thread Starter levigutt

    (@levigutt)

    I solved this by adding the following code in a “must use plugin”:

    // Hook in
    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
    
    // Our hooked in function - $fields is passed via the filter!
    function custom_override_checkout_fields( $fields ) {
         $fields['billing']['wc-stripe-new-payment-method'] = array(
    	 	'type' 			=> 'text',
            'label'     	=> '',
    		'label_class' 	=> array('hidden'),
    		'required'  	=> true,
    		'class'     	=> array('hidden'),
    		'default' 		=> '1',
    		'clear'     	=> true
         );
    
         return $fields;
    }

    This adds a hidden field to the checkout page which will activate the “Save card for later” functionality.

    Then I hid the checkbox intended for this use, with this code:

    .form-row.woocommerce-SavedPaymentMethods-saveNew {
    	display: none !important;
    }

    —–

    Before launching the service, I’ll add a warning to the page explaining that the card is forcefully saved to allow for future charges.
    I hope this solves any potential legal matters and regulations. Does it?

    If so, then this is a valid solution and this matter can be marked resolved, correct?

    Plugin Support Praveen a11n

    (@spraveenitpro)

    Automattic Happiness Engineer

    Hi Levigutt
    Thanks for the solution, I don’t think there should be any issues with implementing this.
    Have a nice day.

    Thank you very much @levigutt, this is exactly what I needed

    sarcoder

    (@sarcoder)

    Ive got the same problem..

    the payments are there in the stripe account, but no customers are being created.. since 2 weeks now. There was a plugin update if i’m not mistaken.

    I tried to hook into the ‘woocommerce_thankyou’ to insert the customer later but that failed and i learnt that i must create the customer before making the payment.

    Looking deeper into the code i notice it is using get_current_user_id() and am assuming a customer may not be created if the user is not logged in. How do i fix this? I need every customers profile stored on stripe.

    MrFent37

    (@mrfent37)

    Do you have Guest Checkout enabled in your WooCommerce Settings -> Checkout ? If so, disable it, and it will require everyone to be logged in in order to complete the checkout.

    sarcoder

    (@sarcoder)

    Guest Checkout is turned off.. so new customers are forced to register at checkout.. still stripe doesn’t create customer at stripe :S

    randomwalk

    (@randomwalk)

    Is there any solution to this from the plugin rather than adding extra code? I also stopped getting new customers saved with the updates in late October.

    Thanks!

    • This reply was modified 8 years ago by randomwalk.

    Still no solution here?

    I now have a client who is very angry that this isn’t a supported feature. We are going to have to switch off from this plugin because of it.

    That custom code that Levi Johansen works great!

    @mrfent37, No, that doesn’t work for my client. They do not want to force customer’s cards to be saved.

    Gotcha. Just curious though, what’s the point of creating stripe customers if you don’t want to save their payment method?

    If you don’t create a Stripe customer, Stripe doesn’t capture the user’s email. And if the customer makes another purchase in the future, stripe can’t link those purchases together.

    When you do create a Stripe customer, it creates that customer as an individual entity, and you can see all of their transactions and issue receipts through Stripe.

    Thread Starter levigutt

    (@levigutt)

    @spraveenitpro have you found a solution to this problem yet?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Stripe Customers are not created’ is closed to new replies.