Forum

Thread tagged as: Question, Configuration, Shop

How do I pay passwordless?

I am using the following to present the passwordless registration form.

On submission it says 'Thanks!' and I'd like it to go to the PayPal page instead.

I could change the 'Thanks!' message with javascript redirect although there must be better way.

Any idea what that is?

<?php
    perch_shop_registration_form([
        'template' => 'checkout/customer_create_passwordless.html'
    ]);
?>
Fred Stidston

Fred Stidston 0 points

  • 3 years ago

I've put this in the header

<?php if (perch_member_logged_in()) {
    perch_shop_checkout('paypal-express', [
        'return_url' => '<mysite>/return.php',
        'cancel_url' => '<mysite>/cancel.php'
    ]);
} ?>

How long will the user remained logged in now they have logged in passwordless?

Also, when I change my test PayPal credentials for the real ones, will it zero my shop takings statistics?

Drew McLellan

Drew McLellan 2638 points
Perch Support

perch_shop_checkout() needs to be called before anything is sent in the response body. So right at the top.