How to use paypal to accept credit card payments

PayPal Checkout plus custom card fields

Create a custom checkout by adding credit card fields that match your brand.

Know before you start programming

  • Integrate advanced credit and debit card payments if you want to customize the card form. If you’re looking for a faster way to accept payments and don’t care about customization, check out our standard payments integration setup.
  • See the list of available countries and currencies to see where advanced credit and debit card payments are available.

Follow the steps in Getting Started to get the following sandbox account information from the developer dashboard:

  • Your login credentials for your sandbox account
  • Your access token
  • Advanced credit and debit cards require PayPal to evaluate and approve a business account. You will complete this process after boarding in step 1.

    (UK sellers) Lending is a regulated activity in Great Britain. Before integrating the PayPal credit button, you must be authorized to act as a credit intermediary and have a credit agreement with PayPal. For more information, contact business customer support via PayPal. com or by calling 0800 358 7929.

    This client and server side integration uses the following:

    How does it work

    This demo introduces a payment process that integrates advanced credit and debit card payments to customize your credit card fields.

    How to use paypal to accept credit card payments

    1. Activate your account

    Before you can accept card payments on your website, you need to request advanced credit and debit card processing for your business sandbox account. The process includes filling out your business information before PayPal can approve you.

    In this step, you will request a feature for your sandboxed business account when creating a sandbox integration. Sandbox requests are automatically approved so you can build and test your integration. Before testing and running, you will require a function for your reseller account in production.

    Important– The integration code checks for eligibility requirements, so the payment card fields will not appear if the sandbox or production request fails.

    Advice: When prompted for the required data, such as a phone number for a sandboxed business request, enter any number that matches the required format. Since this is a sandbox request, the data does not need to be real.

    2. Generate the client token

    The customer token is required to uniquely identify the buyer.

    The following request generates a client token that you will use for the data token when integrating the JavaScript SDK in step 3.

    Copy the code below and edit it.

    Client Token Request Example

    Change the code

    1. Copy the code from the sample request.
    2. Change your access token.

    Customer Token Response Example

    The successful response includes the client token.

    Advice– Because each shopper’s session is unique, configure your server to generate a new customer token each time card fields are displayed on your site.

    3. Add the JavaScript SDK and card module

    To accept payments on your website, add the PayPal JavaScript SDK code with the card form elements to the payment page.

    Sample JavaScript SDK code

    This fully styled sample code adds payment buttons and card fields to your website that capture payment instantly.

    Change the code

      Copy the sample JavaScript SDK code and paste it into the payment page code.

    Replace YOUR-CLIENT-ID with your customer ID and YOUR-CLIENT-TOKEN with the customer token generated in step 2.

    • Components = Buttons, the hosted fields parameter shows the PayPal buttons and the card fields component.
    • Card fields require a data-client-token attribute containing the generated client token.
  • Edit the createOrder function in paypal. HostedFields. The render () function to call the server and retrieve the order ID (or EC token) using the order REST API or existing PayPal API integration.
  • The CSS file in the section is an example for demonstration purposes. Instead, you should use styles that match your website’s branding.
  • The JavaScript SDK has a configuration that you can override, including currency, intent, and other attributes.

    If you are processing payments that require Strong Customer Authentication (SCA), you need to provide additional transaction context with payment indicators.

    Payment processor codes

    Payment processors return the following codes upon receipt of a transaction request. For advanced card payments, the code is displayed in the authorization object under the response_code field.

    This example shows the processor response codes that are returned in response to authorization and capture calls:

    If the third-party payment processor rejects the transaction, PayPal will return the HTTP 201 status code Created and the status REJECTED in the acquisition status.

    4. Capture the order

    If, after approval, you are not redirecting the buyer to the review page, make sure the server-side code contains logic that allows the order to be captured immediately when the buyer pays by credit or debit card. Server-side code prevents the access token from being exposed to the client.

    1. Copy the code from the sample request.
    2. Change the order ID (or EC token) used to set up the transaction in the createOrder function.
    3. Change your access token.

    See also

    • Call the order API from your server.
    • For more information on the values ​​you can pass while creating your code, see the Order REST API for capturing payment for the order endpoint.

    You can go to the style of the card fields and the purchase test.

    5. Style card fields

    Customize the card fields to match your branding using the CSS properties supported by this integration.

    Next steps

    • Set the server-side code to ensure that the cart is full when the customer uses an alternative payment method. Alternative payment methods include bank accounts, wallets, and local payment methods.
    • (Europe) Implementation of 3D Secure

    Test and run this integration.

    • Complete the production implementation process to be able to process cards with an active PayPal account.

    PayPal Checkout plus custom card fields

    Create a custom checkout by adding credit card fields that match your brand.

    Know before you start programming

    • Integrate advanced credit and debit card payments if you want to customize the card form. If you’re looking for a faster way to accept payments and don’t care about customization, check out our standard payments integration setup.
    • See the list of available countries and currencies to see where advanced credit and debit card payments are available.

    Follow the steps in Getting Started to get the following sandbox account information from the developer dashboard:

    • Your login credentials for your sandbox account
    • Your access token
  • Advanced credit and debit cards require PayPal to evaluate and approve a business account. You will complete this process after boarding in step 1.

    (UK sellers) Lending is a regulated activity in Great Britain. Before integrating the PayPal credit button, you must be authorized to act as a credit intermediary and have a credit agreement with PayPal. For more information, contact business customer support via PayPal. com or by calling 0800 358 7929.

    This client and server side integration uses the following:

    How does it work

    This demo introduces a payment process that integrates advanced credit and debit card payments to customize your credit card fields.

    How to use paypal to accept credit card payments

    1. Activate your account

    Before you can accept card payments on your website, you need to request advanced credit and debit card processing for your business sandbox account. The process includes filling out your business information before PayPal can approve you.

    In this step, you will request a feature for your sandboxed business account when creating a sandbox integration. Sandbox requests are automatically approved so you can build and test your integration. Before testing and running, you will require a function for your reseller account in production.

    Important– The integration code checks for eligibility requirements, so the payment card fields will not appear if the sandbox or production request fails.

    Advice: When prompted for the required data, such as a phone number for a sandboxed business request, enter any number that matches the required format. Since this is a sandbox request, the data does not need to be real.

    2. Generate the client token

    The customer token is required to uniquely identify the buyer.

    The following request generates a client token that you will use for the data token when integrating the JavaScript SDK in step 3.

    Copy the code below and edit it.

    Client Token Request Example

    Change the code

    1. Copy the code from the sample request.
    2. Change your access token.

    Customer Token Response Example

    The successful response includes the client token.

    Advice– Because each shopper’s session is unique, configure your server to generate a new customer token each time card fields are displayed on your site.

    3. Add the JavaScript SDK and card module

    To accept payments on your website, add the PayPal JavaScript SDK code with the card form elements to the payment page.

    Sample JavaScript SDK code

    This fully styled sample code adds payment buttons and card fields to your website that capture payment instantly.

    Change the code

      Copy the sample JavaScript SDK code and paste it into the payment page code.

    Replace YOUR-CLIENT-ID with your customer ID and YOUR-CLIENT-TOKEN with the customer token generated in step 2.

    • Components = Buttons, the hosted fields parameter shows the PayPal buttons and the card fields component.
    • Card fields require a data-client-token attribute containing the generated client token.
  • Edit the createOrder function in paypal. HostedFields. The render () function to call the server and retrieve the order ID (or EC token) using the order REST API or existing PayPal API integration.
  • The CSS file in the section is an example for demonstration purposes. Instead, you should use styles that match your website’s branding.
  • The JavaScript SDK has a configuration that you can override, including currency, intent, and other attributes.

    If you are processing payments that require Strong Customer Authentication (SCA), you need to provide additional transaction context with payment indicators.

    Payment processor codes

    Payment processors return the following codes upon receipt of a transaction request. For advanced card payments, the code is displayed in the authorization object under the response_code field.

    This example shows the processor response codes that are returned in response to authorization and capture calls:

    If the third-party payment processor rejects the transaction, PayPal will return the HTTP 201 status code Created and the status REJECTED in the acquisition status.

    4. Capture the order

    If, after approval, you are not redirecting the buyer to the review page, make sure the server-side code contains logic that allows the order to be captured immediately when the buyer pays by credit or debit card. Server-side code prevents the access token from being exposed to the client.

    1. Copy the code from the sample request.
    2. Change the order ID (or EC token) used to set up the transaction in the createOrder function.
    3. Change your access token.

    See also

    • Call the order API from your server.
    • For more information on the values ​​you can pass while creating your code, see the Order REST API for capturing payment for the order endpoint.

    You can go to the style of the card fields and the purchase test.

    5. Style card fields

    Customize the card fields to match your branding using the CSS properties supported by this integration.

    Next steps

    • Set the server-side code to ensure that the cart is full when the customer uses an alternative payment method. Alternative payment methods include bank accounts, wallets, and local payment methods.
    • (Europe) Implementation of 3D Secure

    Test and run this integration.

    • Complete the production implementation process to be able to process cards with an active PayPal account.

    This is my first eBay sale on Paypal. The buyer paid by credit card and the payment is marked as complete in my Paypal account (although suspended for 21 days after my first sale). However, I received an email from Paypal saying “Receiving credit card payments is limited to Premier and Business accounts”. If you wish to keep your personal account, you can log in and decline this payment. Personal accounts can still accept payments funded from a bank account or PayPal balance at no charge. “

    Conversely, Paypal’s help page says you can receive a limited number of credit card payments on your personal account.

    Will this payment be okay or not? I’m confused.

    • tag:
    • credit card
    • All forum topics
    • Previous topic
    • Next topic
    • Mark as new
    • Tab
    • subscribe
    • Soften
    • subscribe to RSS Feed
    • Permanent link
    • Press
    • Email a friend
    • Report inappropriate content

    bradley8774 and c7178- We apologize for the confusion this has caused. A few years back, you did need to have a Premier or Business account to accept more than 5 credit card transactions for the life of the account. We have since dropped this requirement, but coding gremlins still send an email from time to time informing them that they need to upgrade. Apparently we haven’t tracked them all down and eliminated them.

    Even if you’ve upgraded to a different account type (and there aren’t any fees or anything), there are some extra features that might interest you if you’re about to become a reseller (reports and the like). But it’s entirely up to you.

    • Mark as new
    • Tab
    • subscribe
    • Soften
    • subscribe to RSS Feed
    • Permanent link
    • Press
    • Email a friend
    • Report inappropriate content

    Some changes have been made to the current appearance of the account. Here are instructions on how to confirm your address in the new version:

    1. Log into your PayPal account.
    2. Fai clic sull’icona del profilo aziendale accanto a "Esci" e seleziona Profilo e impostazioni.
    3. Click About My Business.
    4. Click Update next to Email.
    5. Select an email address and click Confirm. We’ll send an email to that address.
    6. Open the email and click the link to confirm your address. You will be automatically redirected to the PayPal website where you will be prompted for your password.

    After confirming your email address, you can accept payments, but you still need to link a bank account or link a credit card to your PayPal account before you can pay for things. When you pay for items with PayPal, the money will come from those accounts if your PayPal balance is insufficient to cover the purchase.

    We currently have a limited number of customer support staff due to coronavirus (COVID-19) precautions. We encourage you to quickly find answers to your questions by searching the community forum or by visiting our Help Center. Thanks for your patience.

    New to the community? Hello! Read our community policies and guidelines

    • subscribe to RSS Feed
    • Mark the topic as new
    • Mark the topic as read
    • Show this topic for the current user
    • Tab
    • subscribe
    • Soften
    • Presser Friendly Page

    How do we accept government credit cards ?

    • Mark as new
    • Tab
    • subscribe
    • Soften
    • subscribe to RSS Feed
    • Permanent link
    • Press
    • Email a friend
    • Report inappropriate content

    Is there a way to use PayPal, or a related service, to accept government credit cards ? I tried to send a PayPal invoice to a government customer, but the customer said NO because “We are not authorized to use PayPal (or third party payment processing providers such as Amazon etc.) while using the our Government Purchases Card (GPC). Unfortunately, this is a stumbling block for us. Our card will be cut if we try to pay with PayPal. “

    This post contains product references from one or more of our advertisers. We may receive compensation when you click on links to these products. Terms and conditions apply to the offers listed on this page. For an explanation of our advertising policies, please visit this page.

    Using PayPal doesn’t mean you can’t earn credit card rewards along the way. Several card issuers offer bonuses for using their cards with PayPal. PayPal also offers proprietary cards that allow cardholders to get cashback or points that can be redeemed for gift vouchers and travel vouchers. TPG takes a look on how you can maximize your credit card rewards when using PayPal.

    Want more credit card news and advice from TPG? Sign up for our daily newsletter.

    In this post

    Do I earn rewards using my credit card on PayPal?

    Using your credit card to earn rewards with PayPal is easy. All you need to do is link your card to your PayPal account on the website and select your card at checkout. You’ll earn rewards as you would with any other purchase. Several major retailers accept PayPal payments in-store and online including, Best Buy, Bed Bath & Beyond, Etsy, Brookstone, Home Depot and IKEA.

    PayPal users can add multiple cards to their accounts, which makes it easy to accumulate rewards from multiple programs at the same time. You can use any Visa, Mastercard, Discover, or American Express card with a billing address registered with PayPal.

    Best credit cards to use with PayPal

    Sometimes you’ll be able to earn more by using your credit card in conjunction with PayPal. Publishers such as Chase, Citibank, and Discover offered bonus rewards promotions on PayPal payments last year.

    Discover made PayPal a 5% cashback category for Discover it Cash Back holders from June to September 2019.

    Like the Discover it Cash Back card, the Chase Freedom card(No longer open to new applicants) offers 5% cashback on selected rolling quarterly bonus categories (for first purchases of $ 1,500 in each activated quarter). Last year, it made PayPal one of those categories.

    Typically, non-premium categories get 1% cashback with the Chase Freedom card.

    Information for Chase Freedom was independently collected by The Points Guy. The card details on this page have not been validated or provided by the card issuer.

    Last summer, Citi offered some cardholders $ 20 in credit for spending $ 120 on PayPal purchases.

    Both Discover and Chase make it easy to pay with rewards during PayPal checkout.

    Branded PayPal credit cards

    PayPal offers two branded credit card options: A cash back Mastercard and a rewards Mastercard. PayPal credit cards are issued by Synchrony Bank.

    How to use paypal to accept credit card payments(Photo: Eric Helgas for The Points Guy)

    PayPal’s Cashback Mastercard awards 2% cash back on all purchases and doesn’t charge an annual fee. You must have a PayPal account to apply for the card.

    How to use paypal to accept credit card payments(Photo by John Gribben for The Points Guy)

    Karta PayPal Extras Mastercard przyznaje 3 punkty za dolara wydanego na stacjach benzynowych i w restauracjach oraz 2 punkty za dolara na zakupy w serwisie PayPal i Ebay. Other purchases earn 1 point for every dollar spent. Points can be redeemed for gift vouchers, travel vouchers and cashback.

    Does PayPal or my bank charge a fee for using a credit card?

    PayPal doesn’t charge a fee on credit card payments for goods and services, but it charges a 2.9% fee on money sent to friends or family members. PayPal payments aren’t cash advances. They’re treated like retail transactions and shouldn’t incur additional bank fees.

    Can I send money with my credit card?

    You can use your PayPal-linked credit card to send money to family and friends. PayPal charges a 2.9% fee plus 30 cents for the service.

    Is using your credit card on PayPal a cash advance?

    Payments made with PayPal are not considered cash advances, so you shouldn’t expect your bank to pay a commission or cash advance on your transaction.

    Paying with PayPal can earn you money even if you use a card whose bonus is greater than the commission you would pay PayPal.

    Is PayPal safe?

    PayPal has been around since 2002 and is generally safe to use, especially if you use PayPal to pay for goods and services. PayPal uses industry-standard security and encryption and doesn’t share your credit card or banking information with payment recipients.

    PayPal offers its own purchase protection on items that don’t arrive or aren’t as described and the credit cards paired with the account may offer their own protections.

    The bottom line

    Using a credit card with your PayPal account can be an easy way to earn extra rewards on the purchases you’re already making, especially if you’re a Citi, Chase or Discover cardholder. If you are a Discover or Chase cardholder, PayPal makes it especially easy to spend the rewards you’ve earned.

    Main image courtesy of Shutterstock

    You are browsing the PayPal community archives. This content may be old or out of date. Leave the archive

    Chat with our team of moderators every Wednesday from 2pm PT (4pm EST). Learn more in Community Events

    • subscribe to RSS Feed
    • Mark the topic as new
    • Mark the topic as read
    • Show this topic for the current user
    • Tab
    • subscribe
    • Soften
    • Presser Friendly Page

    Typing in credit card number with paypal here

    • Mark as new
    • Tab
    • subscribe
    • Soften
    • subscribe to RSS Feed
    • Permanent link
    • Press
    • Email a friend
    • Report inappropriate content

    Is it possible to accept credit cards over the phone using the paypal here device by typing in the number. does a buyer need to be present to sign the screen?

    • All forum topics
    • Previous topic
    • Next topic
    • Mark as new
    • Tab
    • subscribe
    • Soften
    • subscribe to RSS Feed
    • Permanent link
    • Press
    • Email a friend
    • Report inappropriate content

    You can create a missing card and manually enter the information. Make a note of the information required for manual entry:

    You can scan, swipe or manually insert your card to accept payment using PayPal Here ™ on your iOS or Android device.

    1. Log into PayPal here ™.
    2. Inserisci l’importo dovuto o seleziona gli articoli dal tuo inventario e tocca "Addebita".
    3. Clicca su "Carta".

    You can scroll, scan or manually enter your card details:

    Swipe: Swipe the card through the card reader.

    1. Touch Card Scan.
    2. Tocca "Fatto" dopo aver scansionato correttamente la carta.
    3. Enter the CSC of the card and the postcode of the cardholder.

    1. Enter the card number, expiration date, CSC code and postcode of the cardholder.
    2. Tocca "Processo".

    There are more options than ever when it comes to earning money. Here’s how to decide which one is best for you.

    Author: Jamie Johnson, associate

    As a small business owner, you only get paid when your customers pay regularly and on time. This means that ensuring you can receive and accept payments, as well as the variety of payment options you offer, is a top priority.

    This is the best way to improve customer service and make it easier for your business to make money. Here are five ways your business can accept payments in 2019.

    Credit and debit cards

    75% of customers say they prefer to pay with a debit or credit card, whether they’re paying online or in person. The way you’ll go about accepting these payments largely depends on the type of business you’re running.

    If you run a brick-and-mortar business, you’ll need a card reader and a merchant account. A merchant account is a bank account that allows businesses to accept payments in many ways.

    If you want to accept online credit and debit card payments, you’ll need an e-commerce website and a payment gateway. The payment gateway encrypts all information sent on the payment page. This ensures the security of customers’ confidential information.

    Keep in mind that if you accept online payments, it’s your job to ensure that personal customer information stays secure. So make sure you choose a payment gateway that’s PCI (payment card industry) compliant.

    ACH processing

    ACH processing is another popular way to accept payments. This method, monitored by the National Automated Clearing House Association, allows customers to provide their bank accounts and billing numbers for electronic payments. It works particularly well for recurring and subscription payments.

    There are several advantages to choosing ACH processing. ACH typically has lower fees than credit or debit cards. And it’s more secure than having customers write you a check every month.

    ACH will also save you time because you’ll input the information once and the money will be automatically withdrawn as arranged. Aiuterà anche a migliorare il flusso di cassa e a creare entrate prevedibili.

    Your choice to accept payments will depend on the type of business you are running.

    Recurring billing subscription

    When it comes to paying their bills, 35% of customers don’t like having to keep track of multiple payment deadlines. But some customers are wary of ACH payments and don’t want to give you access to their bank account information.

    That’s why it’s a good idea to give your customers the option to sign up for a subscription billing plan. I clienti possono registrarsi per pagamenti mensili automatici sulla propria credit card o di debito. This ensures timely payments and makes life easier for your customers.

    PayPal, Stripe and Square

    Three top players in accepting payments are PayPal, Stripe and Square. None of the three require a trading account, although each method has its differences. Your choice to accept payments will depend on the type of business you are running.

    If you’re new to accepting online payments, PayPal is a good option. PayPal allows businesses to accept payments online without first creating a trading account. To personally accept PayPal payments, you need to purchase a card reader and download the PayPal app.

    Like PayPal, Stripe is also widely used on the internet. It is easy to implement and is known for its simple and efficient payment process.

    If you run a physical business, Square is the best choice as it allows you to turn your smart device (smartphone, tablet) into a POS device by connecting a magnetic stripe, chip or card to a Bluetooth reader.

    Contactless payment systems

    Contactless payments allow customers to pay with a swipe of a card or device through the POS system and payment is done wirelessly. Customers can make payments quickly and accurately without having to enter a PIN or sign anything.

    The U. S. has been relatively slow to catch on to contactless payments. In 2018, only 3% of cards in the U. S. were contactless as opposed to 64% in the U. K. And contactless payments are the preferred payment method for 90% of Australians.

    However, just because the US has adopted this trend more slowly doesn’t mean you should ignore it.

    Companies like Visa and Mastercard are starting to offer contactless cards to their customers. And both Apple and Android encourage customers to use mobile wallets that make contactless payments easier.

    Offering your customers contactless payments is much easier than it sounds. The first place to start is to upgrade your hardware with a Near Field Communication (NFC) reader. Depending on your system, the software may also need to be updated.

    CO – Does not review or recommend products or services. For more information on choosing the best credit card processors, visit our friends at Business. com.

    CO – aims to provide inspiration from leading respected experts. However, before making any business decisions, you should consult a professional who can advise you depending on your individual situation.

    Event summary: business digitization

    Watch a replay of our recent Roadmap for Rebuilding event where a panel discusses how small businesses can incorporate automation and AI into their daily operations.

    PayPal Checkout plus custom card fields

    Create a custom checkout by adding credit card fields that match your brand.

    Know before you start programming

    • Integrate advanced credit and debit card payments if you want to customize the card form. If you’re looking for a faster way to accept payments and don’t care about customization, check out our standard payments integration setup.
    • See the list of available countries and currencies to see where advanced credit and debit card payments are available.

    Follow the steps in Getting Started to get the following sandbox account information from the developer dashboard:

    • Your login credentials for your sandbox account
    • Your access token
  • Advanced credit and debit cards require PayPal to evaluate and approve a business account. You will complete this process after boarding in step 1.

    (UK sellers) Lending is a regulated activity in Great Britain. Before integrating the PayPal credit button, you must be authorized to act as a credit intermediary and have a credit agreement with PayPal. For more information, contact business customer support via PayPal. com or by calling 0800 358 7929.

    This client and server side integration uses the following:

    How does it work

    This demo introduces a payment process that integrates advanced credit and debit card payments to customize your credit card fields.

    How to use paypal to accept credit card payments

    1. Activate your account

    Before you can accept card payments on your website, you need to request advanced credit and debit card processing for your business sandbox account. The process includes filling out your business information before PayPal can approve you.

    In this step, you will request a feature for your sandboxed business account when creating a sandbox integration. Sandbox requests are automatically approved so you can build and test your integration. Before testing and running, you will require a function for your reseller account in production.

    Important– The integration code checks for eligibility requirements, so the payment card fields will not appear if the sandbox or production request fails.

    Advice: When prompted for the required data, such as a phone number for a sandboxed business request, enter any number that matches the required format. Since this is a sandbox request, the data does not need to be real.

    2. Generate the client token

    The customer token is required to uniquely identify the buyer.

    The following request generates a client token that you will use for the data token when integrating the JavaScript SDK in step 3.

    Copy the code below and edit it.

    Client Token Request Example

    Change the code

    1. Copy the code from the sample request.
    2. Change your access token.

    Customer Token Response Example

    The successful response includes the client token.

    Advice– Because each shopper’s session is unique, configure your server to generate a new customer token each time card fields are displayed on your site.

    3. Add the JavaScript SDK and card module

    To accept payments on your website, add the PayPal JavaScript SDK code with the card form elements to the payment page.

    Sample JavaScript SDK code

    This fully styled sample code adds payment buttons and card fields to your website that capture payment instantly.

    Change the code

      Copy the sample JavaScript SDK code and paste it into the payment page code.

    Replace YOUR-CLIENT-ID with your customer ID and YOUR-CLIENT-TOKEN with the customer token generated in step 2.

    • Components = Buttons, the hosted fields parameter shows the PayPal buttons and the card fields component.
    • Card fields require a data-client-token attribute containing the generated client token.
  • Edit the createOrder function in paypal. HostedFields. The render () function to call the server and retrieve the order ID (or EC token) using the order REST API or existing PayPal API integration.
  • The CSS file in the section is an example for demonstration purposes. Instead, you should use styles that match your website’s branding.
  • The JavaScript SDK has a configuration that you can override, including currency, intent, and other attributes.

    If you are processing payments that require Strong Customer Authentication (SCA), you need to provide additional transaction context with payment indicators.

    Payment processor codes

    Payment processors return the following codes upon receipt of a transaction request. For advanced card payments, the code is displayed in the authorization object under the response_code field.

    This example shows the processor response codes that are returned in response to authorization and capture calls:

    If the third-party payment processor rejects the transaction, PayPal will return the HTTP 201 status code Created and the status REJECTED in the acquisition status.

    4. Capture the order

    If, after approval, you are not redirecting the buyer to the review page, make sure the server-side code contains logic that allows the order to be captured immediately when the buyer pays by credit or debit card. Server-side code prevents the access token from being exposed to the client.

    1. Copy the code from the sample request.
    2. Change the order ID (or EC token) used to set up the transaction in the createOrder function.
    3. Change your access token.

    See also

    • Call the order API from your server.
    • For more information on the values ​​you can pass while creating your code, see the Order REST API for capturing payment for the order endpoint.

    You can go to the style of the card fields and the purchase test.

    5. Style card fields

    Customize the card fields to match your branding using the CSS properties supported by this integration.

    Next steps

    • Set the server-side code to ensure that the cart is full when the customer uses an alternative payment method. Alternative payment methods include bank accounts, wallets, and local payment methods.
    • (Europe) Implementation of 3D Secure

    Test and run this integration.

    • Complete the production implementation process to be able to process cards with an active PayPal account.
    Published
    Categorized as IT