Giter Site home page Giter Site logo

Comments (8)

phillipuniverse avatar phillipuniverse commented on August 9, 2024

@elbertbautista @charchar @Jerry77oz

Do any of you guys have any additional info on this? @watermelonjuice, can you provide more information like what is happening now?

From IRC, this is on the latest version of the Paypal module (2.6) and 3.1.0-GA of Broadleaf.

from blc-paypal.

watermelonjuice avatar watermelonjuice commented on August 9, 2024

also related to this problem.

If the customer tries to buy additional products they no longer can express checkout with paypal as the cart attempts to re-use the same token.

"This transaction is invalid. Please return to the recipient's website to complete your transaction using their regular checkout flow." -- the paypal error

from blc-paypal.

elbertbautista avatar elbertbautista commented on August 9, 2024

@watermelonjuice @phillipuniverse -

This sounds like you are using PayPal as a Checkout Option and if so, this is working as intended as the new Broadleaf PayPal Express Checkout module supports two flows:

  1. initiate PayPal as a Checkout Option (from a cart page)
  2. initiate PayPal as a Payment Option (from the checkout page as a final payment)

Notice that for flow 1, the PayPal button is on the cart page.
screen shot 2014-02-13 at 10 35 56 pm

Once you click on the button notice how the PayPal page displays that you will be able to see your order before checkout. The intention being that you could return to the checkout page and choose a fulfillment option which may or may not change the price of your order. Also note that the button on the PayPal page says "continue" implying that the checkout process is not complete yet.

screen_shot_2014-02-13_at_10 36 16_pm-3

  1. Flow number two allows you to offer it as a final Payment Option on the checkout page:

screen shot 2014-02-13 at 10 36 51 pm

This button assumes that this is the final checkout process. Notice on the PayPal page that the order totals are displayed and the button on the bottom says "Pay Now" instead of continue. This will redirect back to complete checkout and forward to the confirmation page if successful.

screen_shot_2014-02-13_at_10 34 44_pm

from blc-paypal.

elbertbautista avatar elbertbautista commented on August 9, 2024

The configuration for flow 1 is:

            <a blc:paypal_express_link="${paymentRequestDTO}" complete_checkout="${false}">
                <img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" align="left" style="margin-right:7px;"/>
            </a>

the configuration for flow 2 is:

            <dd>
                <div id="paypalfields">
                    <div class="form100">
                        <a blc:paypal_express_link="${paymentRequestDTO}" complete_checkout="${true}">
                            <img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" align="left" style="margin-right:7px;"/>
                        </a>
                    </div>
                </div>
            </dd>

notice the complete_checkout attribute. This is also documented in the PayPal Quick Start docs here: https://github.com/BroadleafCommerce/blc-paypal/blob/develop/docs/PayPal-Quick-Start.md and shows you how to integrate this in the DemoSite

from blc-paypal.

elbertbautista avatar elbertbautista commented on August 9, 2024

@watermelonjuice @phillipuniverse - also note that The PayPal Express Checkout Documentation specifies that you must offer PayPal Express Checkout as either a Checkout Option or a Payment Option (show above) https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECUIRequirements/. I've seen implementations where they offer only one though

from blc-paypal.

watermelonjuice avatar watermelonjuice commented on August 9, 2024

IMO, the shipping options should be passed to paypal using option_selectX. https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/

Nice work on the rewrite.

from blc-paypal.

phillipuniverse avatar phillipuniverse commented on August 9, 2024

According to that documentation, the option_selectX fields are for our equivalent product options like 'small' or 'red'.

Thanks @elbertbautista for the clarification, closing this.

from blc-paypal.

elbertbautista avatar elbertbautista commented on August 9, 2024

@watermelonjuice - thanks for the info on the option_selectX. I wasn't familiar with this integration method. However, it looks like this is part of their PayPal Payments Standard API.

The 'blc-paypal' module is an end-to-end integration for Express Checkout that utilizes the NVP API https://developer.paypal.com/webapps/developer/docs/classic/api/NVPAPIOverview/ We leveraged the code we wrote for previous versions that handle not only the order submission process but also the refund capture methods as well.

We have another module that integrates with PayPal PayFlow Pro and I believe the other PayPal Products like Payment Standard are on our integrations backlog as well.

from blc-paypal.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.