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 ‎Aug-29-2018
Country: United States
Type: Personal
desarrollo
desarrollo Contributor
Contributor
3
Posts
0
Kudos
0
Solutions
Your PayPal Anniversary
The Return
Active
Ice Breaker
View all
Latest Contributions by desarrollo
  • Topics desarrollo has Participated In
  • Latest Contributions by desarrollo

Re: Getting Access-Control-Allow-Origin error in c...

by desarrollo Contributor in Payflow
‎Sep-04-2018 08:23 AM
‎Sep-04-2018 08:23 AM
Hello,   I found the solution to my problem. My E-commerce - Payflow integration has been developed in Angular (Javascript) and is a client-side application that works from a browser. The problem is that the Payflow Servers only accepts request from server-side applications; thats why, for security reasons, it was rejecting all of my requests (wchich were post from a javascript client-side application).   To solve the issue I've implemented a server-side application which listen requests from our Angular client-side application and posts requests to the Paypal Payflow API, and now the issue has been solved.   Regards,    Alexis ... View more

Getting Access-Control-Allow-Origin error in conso...

by desarrollo Contributor in Payflow
‎Aug-29-2018 10:38 AM
‎Aug-29-2018 10:38 AM
Hello!     I'm implementing a credit card form in an Angular 4 application which uses the Paypal Payflow API to process payments. I've already created testing and production accounts in Paypal Manager.   In order to post test transactions I use Postman. From this application, I execute a POST request to https://pilot-payflowpro.paypal.com and send something like the string below in the request body:  USER=****&PARTNER=PayPal&VENDOR=****&PWD=****&ACCT=****&EXPDATE=102020&TENDER=C&TRXTYPE=A&AMT=100&VERBOSITY=HIGH   Once I execute the request in Postman, It works just fine and the server returns with the expected string response.   Now, I implemented an Angular 4 application, wich uses the HttpClient Angular Library to execute post transactions; the request is looks something like this: const httpHeaders: HttpHeaders = new HttpHeaders( { 'Content-Type': 'text/plain'}); this.httpService.post( 'https://pilot-payflowpro.paypal.com', 'USER=****&PARTNER=PayPal&VENDOR=****&PWD=****&ACCT=****&EXPDATE=102020&TENDER=C&TRXTYPE=A&AMT=100&VERBOSITY=HIGH', { headers: httpHeaders, responseType: 'text' } ) .catch( ( error ) => { console.log('error in requestPayflowPaymentToPayflowGatewayApi'); return Observable.throw(error); } );   It's just a basic post request but it doesn't work when I execute the application in the browser; I get the next error in the console log:   Failed to load https://pilot-payflowpro.paypal.com/: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.   Now, there is something really strange abouit it; When I disable web security in Google Chrome, which I do by opening Google Chrome running the command below in Windows, the application works just fine, executes the request to the server and it returns the expected response.   chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security   I have the same issue when I post request using production data (a production Paypal Manager Account pointing to https://payflowpro.paypal.com)   Have anybody had this issue? What do you guys think that could be the problem here?    Thanks in advance,   Alexis Bravo ... View more

Re: Access-Control-Allow-Origin error

by desarrollo Contributor in Sandbox Environment
‎Aug-29-2018 09:55 AM
‎Aug-29-2018 09:55 AM
Hello! Could you solve this issue?   I'am having the same problem when trying to post request trough the Payflow API (https://pilot-payflowpro.paypal.com). Any ideas?   Thanks in advance!   Alexis Bravo ... 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!