Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in
  • Welcome
    • Guidelines
    • News and Events
    • Suggestions for PayPal
    • General Discussions
  • PayPal Help Community
    • Managing Account
    • Transactions
    • Wallet
    • Security and Fraud
    • Products & Services
    • Reporting
  • MTS Community
    • PayPal Upgrade Community
    • PayPal Payments Standard
    • REST APIs
    • NVP/SOAP APIs
    • SDKs
    • Sandbox Environment
    • PayPal Reporting
    • Payflow
    • Ideas for MTS
    • Client-side Integration
    • Server-side Integration
  • The Archives
    • PayPal Help Community Archives
      • Managing Account Archives
      • Transactions Archives
      • Wallet Archives
      • Security and Fraud Archives
      • Products & Services Archives
      • Reporting Archives
    • Help Community
      • PayPal Basics Archives
      • Payments Archives
      • My Money Archives
      • My Account Archives
      • Disputes and Limitations Archives
      • Products and Services Archives
      • PayPal Credit Archives
    • Merchant Community
      • Merchant Products
      • Business Tools Archives
      • Reporting Archives
      • Managing Risk and Fraud Archives
    • Help Archives
      • About Business (Archive)
      • About Payments (Archive)
      • About Settings (Archive)
      • About eBay (Archive)
      • About Protections (Archive)
      • About Products (Archive)
    • Social and Your Voice Archives
      • Off Topic (Archive)
      • My Feedback for PayPal (Archive)
    • About PayPal Archives
      • Watercooler (Archive)
      • Tax Information (Archive)
      • Fees (Archive)
      • eBay and PayPal (Archive)
      • Coupons and promotions (Archive)
    • My Account Archives
      • My account settings (Archive)
      • Account limits and verification (Archive)
      • Account balance (Archive)
      • Bank accounts and credit cards (Archive)
    • Payments Archives
      • Sending money (Archive)
      • Receiving money (Archive)
      • Refunds (Archive)
      • Donations and Fundraising (Archive)
    • Disputes and Security Archives
      • Disputes and claims (Archive)
      • Fraud, phishing and spoof (Archive)
    • My Business Archives
      • Merchant services (Archive)
      • Reporting and tracking (Archive)
      • Shipping (Archive)
    • PayPal Products Archives
      • PayPal Debit Mastercard (Archive)
      • PayPal Extras MasterCard (Archive)
      • PayPal Mobile & Other Services (Archive)
      • Student Accounts (Archive)
      • Bill Me Later (Archive)
    • Getting to know PayPal
      • My PayPal account
      • Security and protection
    • Receiving and sending money
      • Buying with PayPal
      • Selling with PayPal
    • PayPal Here UK
      • PayPal Here News and Events
      • PayPal Here Community
      • Chip and Pin Card Reader
      • PayPal Here App

The Community Forum is not available for new posts or responses; previous posts remain available to review. For comprehensive support options, please visit PayPal.com/HelpCenter
Merchant Technical Support: For technical support and related questions, please visit our Technical Support Help Center or Developer Central

If you want to report illegal content under the EU Digital Services Act, please do so here

since ‎Oct-29-2022
chao1234567
chao1234567 Contributor
Contributor
3
Posts
0
Kudos
0
Solutions
The Return
Active
Ice Breaker
View all
Latest Contributions by chao1234567
  • Topics chao1234567 has Participated In
  • Latest Contributions by chao1234567

Re: Paypal API Sandbox checkout button not working

by chao1234567 Contributor in REST APIs
‎Oct-30-2022 10:04 AM
‎Oct-30-2022 10:04 AM
If you keep on clicking on it does it work?    ... View more

Re: Paypal API Sandbox checkout button not working

by chao1234567 Contributor in REST APIs
‎Oct-30-2022 10:02 AM
‎Oct-30-2022 10:02 AM
As an update, I have found that if i continously click on the paypal button then 1 in 6 times it does work. (kind of)    I am able to enter a sandbox username and account number. They paypal thinks about it then tell me they are unable to process the order and try again later.      ... View more

Paypal API Sandbox checkout button not working

by chao1234567 Contributor in REST APIs
‎Oct-29-2022 01:35 AM
‎Oct-29-2022 01:35 AM
Hi    I am testing my website which is  http://138.68.164.186:5000/ The link is only working when the laptop is switched on. (still in development stage)   As a logged in user there is a subscription (billing page). The billing page contains the Paypal checkout button. When I click on the button a new browser opens up bu closes very quickly. I have been able to grab a screen shot.            I have used postman to generate the API         Below is my script.    I have added the Paypal script, PayPal button.        {% extends 'layout/dashboard.html' %} {% load static %} {% load crispy_forms_tags %}   {% block body %} <div class="container-xxl flex-grow-1 container-p-y"> <h4 class="fw-bold py-3 mb-4"><span class="text-muted fw-light">Account Settings /</span> Billing </h4> <div class="row"> <div class="col-md-12"> <ul class="nav nav-pills flex-column flex-md-row mb-3"> <li class="nav-item"> <a class="nav-link active" href="#;"><i class="bx bx-user me-1"></i> Billing</a> </li> <li class="nav-item"> <a class="nav-link" href="pages-account-settings-notifications.html" ><i class="bx bx-bell me-1"></i> Notifications</a> </li> </ul> <div class="card"> <h5 class="card-header">Billing Information</h5> <div class="card-body"> <div class="mb-3 col-12 mb-0"> <!-- --> <script src="https://www.paypal.com/sdk/js?client-id=AQK_07Ti2_xSUVBYerKpxubDibK9XaF3efm2AwvUEch3NA5pp2ru3wFixkekCWKJ3eTKUm2X83gEPM8A&vault=true&intent=subscription"> </script> {% if user.profile.subscriptionType == "free" %} <div class="alert alert-warning"> <h6 class="alert-heading fw-bold mb-1">You are currently on the Free Tier</h6> <p class="mb-0">You can cancel your subscription at any time, no strings attached</p> </div> <div id="paypal-button-container-1"></div> {% elif user.profile.subscriptionType == "starter" %} <div class="alert alert-info"> <h6 class="alert-heading fw-bold mb-1">You are currently on the Starter Tier</h6> <p class="mb-0">You can cancel your subscription at any time, no strings attached</p> </div> <div id="paypal-button-container-2"></div> {% elif user.profile.subscriptionType == "advanced" %} <div class="alert alert-success"> <h6 class="alert-heading fw-bold mb-1">You are currently on the Advanced Tier</h6> <p class="mb-0">You can cancel your subscription at any time, no strings attached</p> </div> {% else %} <h1>Something went wrong</h1> {% endif %} </div> </div> </div> </div> </div> </div>   {% endblock %} {% block js %} <script> paypal.Buttons({ createSubscription: function(data, actions) { return actions.subscription.create({ 'plan_id': 'P-1F15340389910541HMNONK2A' // Creates starter plan subscription }); }, onApprove: function(data, actions) { alert('You have successfully created subscription ' + data.subscriptionID); // Optional message given to subscriber }, onCancel: function (data) { alert('You have cancelled your subscription'); //When the transaction cancels. } }).render('#paypal-button-container-1'); // Renders the PayPal button </script> {% endblock %} ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros
Welcome to the PayPal Community!