Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Apr 2020
    Location
    North Yorkchire
    Posts
    35

    Default PayPal widget not worrking

    trying to insert the add to cart widget, but the widget window starts to load, but then instantly disappears, leaving the insert window blank....same for all PayPal widgets, am I doing something wrong?

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,813

    Default Re: PayPal widget not worrking

    Quote Originally Posted by stuk34 View Post
    trying to insert the add to cart widget, but the widget window starts to load, but then instantly disappears, leaving the insert window blank....same for all PayPal widgets, am I doing something wrong?
    Mine is OK so try running your XDA as administrator just the once and retry as normal.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: PayPal widget not worrking

    Have you set it up with your account info? And is the widget on the MouseOff layer?

  4. #4
    Join Date
    Apr 2020
    Location
    North Yorkchire
    Posts
    35

    Default Re: PayPal widget not worrking

    Hi Both

    Running as administrator makes no difference,
    gwpriester, when you say setup first do you mean in the Paypal account? I assumed I would add all details to the widget window, but the widget loads briefly and then disappears, the error message says no html to import

  5. #5
    Join Date
    Apr 2020
    Location
    North Yorkchire
    Posts
    35

    Default Re: PayPal widget not worrking

    A quick screen record of what happens when clicking to import widget
    Attached Files Attached Files

  6. #6
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: PayPal widget not worrking

    When I try to create this PayPal Widget it asks for the various information, then there is a button at the bottom, Create Button (or Save Changes)

    Then there is a second screen from which you need to log into your PayPal account.

    After you have entered all the information, then I think you click Insert.

  7. #7
    Join Date
    Apr 2020
    Location
    North Yorkchire
    Posts
    35

    Default Re: PayPal widget not worrking

    Sure that's what I expected, the widget window flashes up "loading" with the Paypal data, then disappears, nothing in the widget window. as per screen record I posted.

    tried and using many other widgets no problem. Is this a system error?

  8. #8
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,813

    Info Re: PayPal widget not worrking

    stuk34, I don't download unsolicited files (your mp4) so your flashing off and coming up with a No HTML message is telling me your Return key is being activated somehow.

    I have had similar issues in the past with wireless mice so one thing you can try is a wired mouse and keyboard.

    If none are available then you will have to go through PayPal directly.

    I just tried the new Smart button and got:
    Code:
    <div id="smart-button-container" width=100% height=100% >
          <div style="text-align: center;">
            <div id="paypal-button-container"></div>
          </div>
        </div>
      <script src="https://www.paypal.com/sdk/js?client-id=sb&currency=GBP" data-sdk-integration-source="button-factory"></script>
      <script>
        function initPayPalButton() {
          paypal.Buttons({
            style: {
              shape: 'rect',
              color: 'blue',
              layout: 'vertical',
              label: 'buynow',
              
            },
    
    
            createOrder: function(data, actions) {
              return actions.order.create({
                purchase_units: [{"description":"One two three","amount":{"currency_code":"GBP","value":149.21,"breakdown":{"item_total":{"currency_code":"GBP","value":123.321},"shipping":{"currency_code":"GBP","value":1.23},"tax_total":{"currency_code":"GBP","value":24.66}}}}]
              });
            },
    
    
            onApprove: function(data, actions) {
              return actions.order.capture().then(function(details) {
                alert('Transaction completed by ' + details.payer.name.given_name + '!');
              });
            },
    
    
            onError: function(err) {
              console.log(err);
            }
          }).render('#paypal-button-container');
        }
        initPayPalButton();
      </script>
    I added the red bit so I could adjust the button size.

    You will still have to include all your correct credentials and choose the appropriate button...

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  9. #9
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,502

    Default Re: PayPal widget not worrking

    I'm not really sure if this is a system error. But try this.

    Log into your PayPal account and create the widget on the PayPal site. Then copy the embed code and try using that in a placeholder in Xara.

    Acorn beat me to it.

  10. #10
    Join Date
    Apr 2020
    Location
    North Yorkchire
    Posts
    35

    Default Re: PayPal widget not worrking

    Thanks both,
    Acorn your script copied into a placeholder works OK, with my own ID credentials. This produces a payment button, but I'm looking for the add to cart option and then a checkout, this seems to be a pay now button for a single item.

    I hoped the widget would be more user friendly than having to go through the Sandbox route on PayPal, well beyond me even understanding the jargon!

    I have added donation button and a single item payment button on a few other sites, but hoped the widget would be able to be configured from inside Xara ion plain text

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •