Forum
perch shop PayPal passwordless purchase
Hello I understand I can have customers purchase through PayPal express without being members and having a password.
But how would I integrate this into the checkout process?|
I have my checkout page (checkout.php)
<?php
if (perch_member_logged_in()) {
// your 'success' return URL
$return_url = '/shop/payment.php';
$cancel_url = '/';
perch_shop_checkout('paypal-express', [
'return_url' => $return_url,
'cancel_url' => $cancel_url,
]);
}
?>
And payment page...
<?php perch_shop_complete_payment('paypal-express'); if (perch_shop_order_successful()) { echo '<h1>Thank you for your order!</h1>'; }else{ echo '<h1>Sorry!</h1>'; } ?>
How would I include this
<?php
perch_shop_registration_form([
'template' => 'checkout/customer_create_passwordless.html'
]);
?>
Thanks!
Are you following the example? https://docs.grabaperch.com/addons/shop/examples/no-account/