• Resolved maczek6000

    (@maczek6000)


    Hi,
    I am having an issue with setting up the Google Pay / Apple Pay payment gateway using the Revolut plugin.

    The plugin settings allow the Google Pay / Apple Pay button to be placed only in either the Product or Cart pages.

    This is an issue, since the website I am working on is setup to process payments via the Checkout page, where all important details (such as billing and shipping addresses, tax information, etc.) are collected.

    The collected data may have an effect on the final price (due to tax regulations and different currencies available to customers depending on their billing address).

    It would be greatly appreciated if you could look into allowing the Google Pay / Apple Pay button to be placed on the Checkout page.

    An alternative solution, where the Google Pay / Apple Pay button could be placed manually using PHP or JS code would also work for me, but I don’t see any such options described in the documentation.

    Looking forward to your reply ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support businessrevolutsupport_cornel

    (@businessrevolutsupportcornel)

    Hi @maczek6000,

    Thanks for your message. Our apologies for the late reply.

    Yes this feature is in our roadmap and we are going include this update on our next releases as soon as possible.

    Kind Regards!

    Thread Starter maczek6000

    (@maczek6000)

    @businessrevolutsupportcornel thank you for the response, it’s great to hear that you are working on this feature. Do you have an ETA for when it will be released?

    Plugin Support businessrevolutsupport_cornel

    (@businessrevolutsupportcornel)

    Unfortunately, we do not have an ETA on this, once we will have one established, we will post it here.

    Hi Team,

    I’m following this thread. This feature is needed on our side too.

    Regards,

    Antoine

    Look these, small hack:
    Add this string in place, what you wanna to be placed google/Apple Pay button: (e.g. woocommerce/checkout/payment.php)

    <?php do_action('apple_and_google_pay_payments'); ?>

    Then make snippet like this in functions.php or your snippets plugin/place:

    if (function_exists('revolut_wc')){
    	$is_payment_ajax = isset($_GET['wc-ajax']) && $_GET['wc-ajax'] == 'update_order_review';
    	if ($is_payment_ajax):
    		add_action('woocommerce_checkout_update_order_review', function(){
    			define('WOOCOMMERCE_CART', true);
    			revolut_wc();
    			do_action('wp_enqueue_scripts');
    		});
    	endif;
    
    	add_action('apple_and_google_pay_payments', function(){
    	?>
    		<div class="radio wc_payment_method wc-revolut-payment-request">
    			<input id="wc-revolut-payment-request" type="radio" class="input-radio" name="payment_method" value="revolut_cc" data-order_button_text="" style="display: none;">
    
    			<label for="wc-revolut-payment-request">ApplePay/GPay</label>
    			<div class="payment_box wc-revolut-payment-request">
    				<fieldset id="wc-revolut-payment-request-form" class="wc-credit-card-form wc-payment-form" style="background:transparent">
    					<div style="background: #f7f7f7" id="wc-revolut-payment-request-element">
    						<div class="wc-revolut-payment-request-instance" id="wc-revolut-payment-request-container" style="clear:both;padding-top:1.5em;">
    							<div id="revolut-payment-request-button"></div>
    						</div>
    						<?php wp_scripts()->print_scripts('revolut-woocommerce-payment-request'); ?>
    					</div>
    				</fieldset>
    			</div>
    		</div>
    	<?php
    	});
    }

    signature moderated

    Thread Starter maczek6000

    (@maczek6000)

    @alxnsmith thank you for showing your work, unfortunately for some reason this does not work on the website I am working on and I’ve yet to determine why.

    Thread Starter maczek6000

    (@maczek6000)

    @businessrevolutsupportcornel do you have any updates on the ETA of including the Apple / Google payment button in the checkout?

    Plugin Support businessrevolutsupport_cornel

    (@businessrevolutsupportcornel)

    Hi @maczek6000 ,

    We should have this in our next update which should be coming soon (next few weeks) but unfortunately I do not have an exact ETA.

    Kind regards,

    Plugin Support businessrevolutsupport_cornel

    (@businessrevolutsupportcornel)

    Hello,

    Just wanting to let you know that we added Apple and Google Pay at checkout page with our latest version.

    Thank you for your patience!

    Thread Starter maczek6000

    (@maczek6000)

    @businessrevolutsupportcornel that is nice, although there are still some issues with this, specifically:

    • there is no option to change the Payment option name and the “via Revolut” part is potentially confusing for clients not using Revolut, just Apple Pay or Google Pay
    • Apple Pay / Google Pay ignores the validation of required checkout fields
    Plugin Author revolutbusiness

    (@revolutbusiness)

    Hi @maczek6000, This issues has been addressed and we are going to issue solution in the next release soon.

    Thank you for your patience!

    Plugin Author revolutbusiness

    (@revolutbusiness)

    Hi @maczek6000,

    We wanted to inform you that a new version (4.4.0) released and the above issues has been resolved:

    1. A new configuration option has been added where you will be able to update or remove the additional titles.
    2. Plugin indeed validates the fields but this validation were happening after user opens the payment popup and really attempts to pay. With the new version we added a feature that plugin will run the checkout form validation when user click the button.

    Please let us know in case you have any feedbacks,
    Looking forward hearing from you,
    Best regards!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Google/Apple Pay button not shown on checkout’ is closed to new replies.