1

I'm trying to send the user off to PayPal Express by way of a single button (design calls for a PayPal button and also a regular checkout), so I have this:

    {exp:store:checkout 
        payment_method="paypal_express" 
        return="checkout/confirm/ORDER_HASH"
        require="order_email"
    }

        <div class="fr">
            <label for="inp-login-email" class="fl">Email Address <span class="required">*</span></label>
            <div class="ff">
                <input type="email" name="order_email" id="inp-login-email">
            </div>
        </div>

        <input type="submit" value="Checkout with PayPal">

    {/exp:store:checkout}

However that bounces me back to the same page I was on before. Presumably I need to add some more info into that form before I can pass to PayPal?

2 Answers 2

1

You'll need to add a name attribute your submit button. Like this:

<input type="submit" name="submit" value="Checkout with Paypal" />

Then Store knows that you're looking to finish the checkout and make payment.

0
2

PayPal express requires that you pass the users email address before it will allow you to create an order. If you wanted to have a similar experience to your current you would need to have something along the lines of:

{exp:store:checkout 
    payment_method="paypal_express" 
    return="checkout/confirm/ORDER_HASH"
}
    <input type="text" name="order_email" placeholder="Your Email Address" />
    <input type="submit" value="Checkout with PayPal">
{/exp:store:checkout}
3
  • Does this just mean the email address field for Store needs to be completed by the buyer?
    – Anna_MediaGirl
    Nov 1, 2013 at 1:34
  • 1
    I updated my answer with an example, but yes Store and PayPal both require that you have at least an email address before you can submit an order. Nov 1, 2013 at 2:09
  • I tried this but the page just reloads. I've updated the original question with the updated code
    – Russ Back
    Nov 4, 2013 at 10:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.