Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author syednazrulhassan

    (@nazrulhassanmca)

    No plans to this yet as it requires a developer licence which costs $99/year and i cant afford that sorry.

    Regards

    Thread Starter myaliasname

    (@myaliasname)

    What if I buy you one? Would it be pretty simple? ?? If not, would you know a snippet of code that could help solve the following…

    Storing credit card information is critical to conveniently billing the client without the hassle of taking payment each week. Up until now I’ve been using your plugin gateway to store CC info via Stripe without prompting the customer.

    I am activating Woocommerce Stripe Gateway so that customers can pay via ApplePay, but when enabled, prompts the customer to check a box in order save credit card info on stripe servers. I want this checkbox to just be automatically checked and hidden because this is a part of our terms that they already have checked. Is there something I could do to check the box and hide it?

    Plugin Author syednazrulhassan

    (@nazrulhassanmca)

    If you add following code to the file

    /wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php

    
    
    public function save_payment_method_checkbox() {
    		printf(
    			'<p class="form-row woocommerce-SavedPaymentMethods-saveNew">
    				<input id="wc-%1$s-new-payment-method" name="wc-%1$s-new-payment-method" type="checkbox" checked="checked" value="true" style="width:auto;" />
    				<label for="wc-%1$s-new-payment-method" style="display:inline;">%2$s</label>
    			</p>',
    			esc_attr( $this->id ),
    			esc_html__( 'Save to account', 'woocommerce' )
    		);
    	}

    It would be automatically checked but no idea if it would work or not you will have to test it if it works you can hide that by css

    Thread Starter myaliasname

    (@myaliasname)

    I appended the code to the end of the file, but it ended up disabling the entire site. I restored the file then appended it to the beginning, which removed ‘pay with CC’ option and deactivated the ApplePay button. Am I doing something wrong?

    Plugin Author syednazrulhassan

    (@nazrulhassanmca)

    Yes you need to place code within the class

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Apple Pay’ is closed to new replies.