Skip to content
This repository has been archived by the owner on Mar 21, 2020. It is now read-only.

PayPal experience options #6

Closed
itsameandrea opened this issue Nov 22, 2017 · 1 comment
Closed

PayPal experience options #6

itsameandrea opened this issue Nov 22, 2017 · 1 comment

Comments

@itsameandrea
Copy link

Hey @khoaNguyen96 any plan on adding the PayPal experience options?

It'd be great to stop users filling in shipping info if not needed.

Cheers!

@cocoastorm
Copy link
Owner

cocoastorm commented Jan 26, 2018

Hey @ilrock

It's included as a experience prop in the beta.

npm install vue-paypal-checkout@beta

I tested it with this:

<body>
  <script src="https://unpkg.com/vue@^2.5/dist/vue.js"></script>
  <script src="https://unpkg.com/vue-paypal-checkout@beta/dist/vue-paypal-checkout.min.js"></script>

  <div id="app">
    <div class="content">
      <p>Pay with USD $10.00</p>
      <paypal-checkout
        amount="10.00"
        currency="USD"
        :client="paypal"
        :dev="true"
        :invoice-number="'201705051001'"
        :experience="experience">
      </paypal-checkout>
    </div>
  </div>

  <script>
    // eslint-disable-next-line
    new Vue({
      el: '#app',
      data() {
        return {
          paypal: {
            sandbox: 'Ad1voWYq3VL8J4jy6zWARKwz4tjbuDl_TFBa3WQqy_DwAFWd7hkU4i99jijGqaoqU3E-ODqXDayVnOdl',
            production: '',
          },
          experience: {
            input_fields: {
              no_shipping: 1,
            },
          },
        };
      },
    });
  </script>
</body>

It should work. Tell me if there's any problems!

Thanks!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants