Welcome to TalkGraphics.com
Results 1 to 10 of 13

Hybrid View

  1. #1
    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?

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

    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

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

    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.

  4. #4
    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

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,929

    Default Re: PayPal widget not worrking

    Quote Originally Posted by stuk34 View Post
    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
    I just used https://www.paypal.com/buttons/.

    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

  6. #6
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,954

    Default Re: PayPal widget not worrking

    Long time since I used PayPal but wouldn't this option suit your needs?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	export.jpg 
Views:	40 
Size:	14.4 KB 
ID:	127975  
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #7
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,532

    Default Re: PayPal widget not worrking

    The widget probably would work fine. Except it doesn't. But creating the widget on PayPal usually does work. They probably make a lot of changes which Xara might not be keeping up with.

 

 

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
  •