# Documentation Source: https://razorpay.com/docs/home Explore Razorpay's documentation for Payments, POS, Banking Plus, Partners and Developer Tools. # Just ask the docs
Ask
## Integrate Razorpay using AI ![Claude](https://razorpay.com/docs/build/browser/assets/images/agent-1.png) ![OpenAI](https://razorpay.com/docs/build/browser/assets/images/agent-2.png) ![Cursor](https://razorpay.com/docs/build/browser/assets/images/agent-3-mark.png) *** ## Developer tools *** ## Payments Cards, UPI, netbanking, wallets, and EMI โ€” a single Payments API that adapts to how your customers want [Know more ![](https://razorpay.com/docs/build/browser/assets/images/link-arrow.svg)](/docs/payments) Explore payments step by step *** ## POS Accept payments in person Razorpay POS is a point-of-sale payment solution that enables businesses to accept payments using UPI, credit and debit cards, wallets, EMI and more. [Know how to sign up for POS![](https://razorpay.com/docs/build/browser/assets/images/link-arrow.svg)](https://accounts.razorpay.com/auth/?redirecturl=https://easy.razorpay.com\&auth_intent=signup\&x-country-code=IN) [Explore more![](https://razorpay.com/docs/build/browser/assets/images/link-arrow.svg)](/docs/pos) *** ## Banking plus Manage your company's finances with a Business Banking Hub. It helps business owners and finance teams automate financial task and provide insights into money flow. [Explore Banking Plus![](https://razorpay.com/docs/build/browser/assets/images/link-arrow.svg)](/docs/x) *** ## Partners The Razorpay Partner Program is a referral program through which you can offer the Razorpay product suite to your customers and get monetary rewards. [Explore Partner Program![](https://razorpay.com/docs/build/browser/assets/images/link-arrow.svg)](/docs/partners) ## Build with Agents Ask your AI CLI `curl -fsSL https://razorpay.com/cli/latest/install.sh | bash` ![](https://razorpay.com/docs/build/browser/assets/images/agents-copy.svg)Copy *** MCP `Install the Razorpay MCP server: https://mcp.razorpay.com/mcp` ![](https://razorpay.com/docs/build/browser/assets/images/agents-copy.svg)Copy Razorpay CLI [View setup](/docs/cli) Razorpay MCP [View setup](/docs/mcp-server) Are you an LLM agent? [Read llms.txt](/docs/llms.txt) ![Razorpay](https://razorpay.com/docs/build/browser/assets/images/logo.svg) ![Razorpay](https://razorpay.com/docs/build/browser/assets/images/logo-dark.svg) ![Docs](https://razorpay.com/docs/build/browser/assets/images/logo-docs.svg) Everything you need to accept payments, move money and reconcile it โ€” with the API reference, SDKs and integration guides behind each one. Colour theme Accept Payments Banking Plus [RazorpayX](/docs/x) [Current Accounts](/docs/x/account-types) [Payouts](/docs/x/payouts) [Payout Links](/docs/x/payout-links) [Corporate Credit Card](https://razorpay.com/x/corporate-cards/) [Payroll](https://razorpay.com/payroll/) Developers [Docs](/docs/) [API Reference](/docs/api) [Integrations](https://razorpay.com/integrations/) [SDKs](/docs/payments/server-integration) [Webhooks](/docs/webhooks) [Postman Collections](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace) Resources [Blog](https://razorpay.com/blog/) [Learn](https://razorpay.com/learn/) [Settlement Guide](/docs/payments/settlements) Company [About Us](https://razorpay.com/about/) [Careers](https://razorpay.com/jobs/) [Partners](/docs/partners) [Corporate Information](https://razorpay.com/corporate-information/) [Responsible Disclosure](https://razorpay.com/responsible-disclosure/) Help & Support [Support](https://razorpay.com/support/) [Status Page](https://status.razorpay.com/) ยฉ Razorpay 2026. All rights reserved. Razorpay Payments Private Limited is an RBI Authorised Payment Aggregator. [Terms of Use](https://razorpay.com/terms/) [Privacy Policy](https://razorpay.com/privacy/) # Razorpay Payments Suite Source: https://razorpay.com/docs/payments Explore Razorpay Payment Gateway and the entire suite of products available as part of Razorpay Payments Suite. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Razorpay enables businesses to accept, process, and disburse payments seamlessly across multiple channels. Whether you are running an online store, managing subscriptions or facilitating marketplace transactions, Razorpay provides the tools and infrastructure to handle payments at scale. > [card] [Accept Payments](/docs/payments#accept-payments) > > Set up payment gateways, process transactions and manage customer payments across multiple channels. > [card] [Disburse Payments](/docs/payments#disburse-payments) > > Send bulk payouts, vendor payments and instant transfers with automated reconciliation. > [card] [Advanced Products](/docs/payments#advanced-products) > > Advanced solutions, including payment optimisation, EMI options, business trust badges and buyer protection features. > [card] [Solutions by Industry](/docs/payments#solutions-by-industry) > > Find tailored payment solutions for ecommerce, SaaS, marketplaces and enterprise businesses. > [card] [Solutions by Platform](/docs/payments#solutions-by-platform) > > Integrate with e-commerce plugins, SDKs for mobile and web and comprehensive APIs for custom builds. ## Try Ray: Our Product Recommender > [card] [Select Products with Ray](https://razorpay.com) > > Use [Ray](https://razorpay.com), the Razorpay chatbot, to select the right product that meets your unique business needs. [How to use Ray](https://www.youtube.com/embed/tNdRAmum3q0?si=gFSP3KxPJ6-ipG9S) [How to use Ray](https://www.youtube.com/watch?v=tNdRAmum3q0) Watch this video to know how Ray can help you choose Razorpay products. ### Accept Payments > [tab] Online Payments > > Accept payments through websites, apps or without any technical setup. > > > [card] [Payment Gateway](/docs/payments/payment-gateway) > > > > Seamless checkout experience with 100+ payment modes for your website or app. > > > [card] [Magic Checkout](/docs/payments/magic-checkout) > > > > One-click checkout experience with pre-filled customer details and automated address detection. > > > [card] [Payment Links](/docs/payments/payment-links) > > > > Generate and share unique Payment Links instantly via WhatsApp, SMS or email - no website or coding required. > > > [card] [Payment Pages](/docs/payments/payment-pages) > > > > Collect payments for events, courses or donations with branded hosted pages. > > > [card] [Payment Buttons](/docs/payments/payment-button) > > > > Add a ready-to-use Payment Button to your website with a simple HTML copy-and-paste. > > > [card] [QR Codes](/docs/payments/qr-codes) > > > > Display QR codes at checkout for quick, touch-free mobile payments. > > > [card] [Smart Collect 2.0](/docs/payments/smart-collect) > > > > Generate customer identifiers and VPAs on demand and accept payments using NEFT, RTGS, IMPS and UPI. > > > [card] [Invoices](/docs/payments/invoices) > > > > Create and send GST-compliant invoices that customers can pay online instantly. > [tab] Offline Payments > > #### Razorpay POS > > ![Accept offline payments with Razorpay POS](https://razorpay.com/docs/build/browser/assets/images/pos.jpg) > > Accept in-person payments at physical locations with [Razorpay POS](/docs/pos). > [tab] Recurring Payments > > #### Subscriptions > > ![Accept recurring payments with Razorpay Subscriptions](https://razorpay.com/docs/build/browser/assets/images/plan-subscriptions.jpg) > > Automate recurring billing with [Razorpay Subscriptions](/docs/payments/subscriptions). ### Disburse Payments Use Razorpay products to split and transfer payments collected from customers and make payouts to customers. > [card] [Route](/docs/payments/route) > > Automatically split incoming payments among multiple parties. Perfect for marketplaces, platforms and franchises. > [card] [RazorpayX](/docs/x) > > Complete business banking platform with Payouts, Current Account, Escrow Account and Tax Payments. ### Advanced Products > [card] [Optimizer](/docs/payments/optimizer) > > Route transactions across multiple payment gateways with a single integration - optimise costs and boost success rates effortlessly. > [card] [EMIยฒ](/docs/payments/payment-gateway/emiยฒ) > > Increase order values and conversions with flexible EMI payment options from leading banks and NBFCs. > [card] [Razorpay Trusted Business](/docs/payments/payment-gateway/features/trusted-business) > > Build customer trust with a verified business badge and transparent checkout experience. > [card] [Razorpay Buyer Protection](/docs/payments/widgets/buyer-protection) > > Enhanced customer confidence with purchase protection and dispute resolution support. ## Solutions by Industry > [card] [Ecommerce & Retail](/docs/payments/solutions/ecommerce) > > Payment Gateway for online stores, Route for marketplaces, Payment Links for quick checkouts and Subscriptions for recurring billing. > [card] [BFSI](/docs/payments/solutions/bfsi) > > Third-Party Validation (TPV) for SEBI compliance, Route for fund splits across multiple accounts, Subscriptions for SIPs and loan repayments. > [card] [Travel](/docs/payments/solutions/travel) > > Payment Gateway with high success rates, Payment Links for bookings, international payments and multi-currency settlement support. ## Solutions by Platform Razorpay offers a wide range of integrations as given below: > [tab] Web > > > [card] Checkout Integrations > > > > * [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard) > > * [Razorpay Custom Checkout](/docs/payments/payment-gateway/web-integration/custom) > > > [card] Server Integrations > > > > * [PHP](/docs/payments/server-integration/php) > > * [Ruby](/docs/payments/server-integration/ruby) > > * [Python](/docs/payments/server-integration/python) > > * [NodeJS](/docs/payments/server-integration/nodejs) > > * [.NET](/docs/payments/server-integration/dot-net) > > * [Java](/docs/payments/server-integration/java) > > * [Go](/docs/payments/server-integration/go) > [tab] Ecommerce Plugins > > > [card] Payment Gateway Ecommerce Plugins > > > > * [Arastta](/docs/payments/payment-gateway/ecommerce-plugins/arastta) > > * [BigCommerce](/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce) > > * [Drupal](/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce) > > * [CS-Cart](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart) > > * [Gravity Forms](/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms) > > * [Easy Digital Download](/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads) > > * [Magento](/docs/payments/payment-gateway/ecommerce-plugins/magento) > > * [OpenCart](/docs/payments/payment-gateway/ecommerce-plugins/open-cart) > > * [PrestaShop](/docs/payments/payment-gateway/ecommerce-plugins/prestashop) > > * [Shopify](/docs/payments/payment-gateway/ecommerce-plugins/shopify) > > * [WHMCS](/docs/payments/payment-gateway/ecommerce-plugins/whmcs) > > * [Wix](/docs/payments/payment-gateway/ecommerce-plugins/prestashop) > > * [WooCommerce](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce) > > * [WordPress](/docs/payments/payment-gateway/ecommerce-plugins/wordpress) > > > [card] Other Ecommerce Plugins > > > > * [Razorpay Direct - Credit Card](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card) > [tab] Mobile > > > [card] Mobile Integrations > > > > * [Android SDK](/docs/payments/payment-gateway/android-integration/standard) > > * [iOS SDK](/docs/payments/payment-gateway/ios-integration/standard) > > * [Cordova SDK](/docs/payments/payment-gateway/cordova-integration) > > * [React Native SDK](/docs/payments/payment-gateway/react-native-integration/standard) > > * [Flutter SDK](/docs/payments/payment-gateway/flutter-integration/standard) > > * [Capacitor SDK](/docs/payments/payment-gateway/capacitor-integration) ### Related Information * [Quickstart Guide](/docs/payments/quickstart) * [Payment Gateway](/docs/payments/payment-gateway) * [How Payment Gateway Works](/docs/payments/payment-gateway/how-it-works) # Account Activation Support Source: https://razorpay.com/docs/payments/account-activation-support List of commonly used terms and details about certificates related to Razorpay Account activation. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Check all the documents, certificates and additional documents that you need to complete the KYC process depending upon your business type. ## Personal Details Given below are a few personal documents you need for your account activation or KYC process. > [accordion] Personal PAN > > Personal PAN is the Permanent Account Number belonging to an individual who owns the business or is a shareholder, proprietor, partner, or promoter in the business. It typically has the fourth letter as `P`. This document is used to verify your identity. > [accordion] Contact Email > > In order to verify your account and to receive account-related updates, transactional notifications, and any other important information, you must provide a valid email address. > [accordion] Aadhaar Front > > As part of our verification process, we require a clear scanned copy or photograph of the front side of the Aadhaar card belonging to the individual whose personal PAN has been shared. You can also use a one-page Aadhaar copy downloaded from the UIDAI website. > [accordion] Aadhaar Back > > As part of our verification process, we require a clear scanned copy or photograph of the back side of the Aadhaar card belonging to the individual whose personal PAN has been shared. You can also use a one-page Aadhaar copy downloaded from the UIDAI website. ## Bank-Account Related Given below are a few tips and commonly used terms and their definitions for bank account-related information you need for your account activation or KYC process. > [accordion] Bank Branch IFSC > > To find the IFSC code of your bank, simply Google your bank and branch name. For example,`HDFC Bank Lower Parel Mumbai IFSC Code`. > [accordion] Bank Account Number > > This is the account in which we will deposit payments you have collected and process settlements. If your business is registered with the Government of India, please Current Account number registered with your business. If you are not registered or are a sole proprietor, you may provide your personal bank account details. You can find your bank account number in your passbook, netbanking portal, cheque book, or mobile banking app. Indian bank account numbers usually consist of 11 to 16 digits. > [accordion] Bank Account Name > > You can find the name associated with your registered bank account in your passbook, netbanking portal, chequebook, or mobile banking app. Make sure to enter the right details for your first name, surname, and middle name (if any). ## Business-Related Given below are a few tips and the details of various business-related certificates or terminologies you need for your account activation or KYC process. > [accordion] Business Name > > Business name refers to the official or legal name present on your business registration certificate or on your business PAN. This is the name that will be used for your Dashboard. > [accordion] GST Certificate > > The GST Certificate contains your GST registration details with the Government of India and helps us verify your business. Follow these steps give below to get the GST certificate: > > 1. Visit the [GST India portal](https://www.gst.gov.in/). > 2. Login using your username and password. > 3. Download the GST certificate under the **Services** section. ## Certificates and Other Documents Given below are a few tips and the details of various certificates and documents you need for your account activation or KYC process. > [accordion] AYUSH Certificate > > The AYUSH certificate is mandatory for all retail ayurvedic-related businesses. To get your AYUSH certificate, follow the steps below: > > 1. Visit the official website for AYUSH online registration. > 2. Fill out the AYUSH registration form. > 3. Provide the required documents, pay the AYUSH certification cost and submit the form. > [accordion] FSSAI Certificate > > This document is required for all food manufacturing and serving businesses based in India. If you don't have it, you can register on the [FSSAI website](https://foscos.fssai.gov.in/). > [accordion] SEBI Certificate > > SEBI certification is mandatory for anyone wishing to provide investment advisory services to clients. Follow the steps below to get your SEBI certification: > > 1. Pay the initial registration fee to access the SEBI Intermediary portal. > 2. Fill out the RIA registration form on the SEBI Intermediary portal and upload the relevant documents. > 3. Pay the registration fee after SEBI approves the application. > [accordion] FEMA Registration/FFMC Certificate > > Merchants involved in businesses that require foreign currency exchange with a foreign country must obtain a FEMA/FFMC certificate. Follow the steps given below to get the FEMA registration/FFMC Certificate: > > 1. Submit an application for the FFMC License to the concerned regional office of RBI. > 2. RBI will review the director of the applicant entity under the **fit and proper** criteria. > 3. If everything is to the satisfaction of the RBI, then an FFMC certificate is issued. > [accordion] NBFC Registration Certificate > > If your business involves a non-banking financial institution, you are required to obtain an NBFC License. You can apply for the license online or offline with the necessary documents to the Regional Office of the Reserve Bank of India. To be eligible for the certificate, your business must meet the following criteria: > > * The company must be registered in India (Private Limited Company or Limited Company). > * The company must have at least โ‚น 200 lakhs in net-owned funds. > [accordion] 916 Hallmark/BIS Certificate > > If your business involves the sale of precious gems or jewellery, you are required to have a BIS Certificate. > Follow the steps given below to get the BIS Certificate: > > 1. Visit [the official site](https://www.bis.gov.in/hallmarking-overview/). > 2. Download the application form and questionnaire for additional information. > 3. Attach the required documents. > 4. Submit the application form along with the requisite fee. > [accordion] IRDA Certificate > > If you are in the insurance industry or an insurance agent, then you will be required to submit the IRDA certificate for verification. To download the IRDA Certificate: > > 1. Visit the official IRDA Portal. > 2. In the top-right corner, select the **PAN Lookup** option. > 3. Fill in your **PAN or Aadhaar Number** and click on **Submit**. > 4. Download the certificates that are available to you. > [accordion] AMFI Certificate > > If you work as a mutual fund distribution professional, you are required to have the AMFI certification by passing an entry-level exam. To download the AMFI Certificate: > > 1. Visit the official website of AMFI. > 2. Select the document of your choice and click **download**. > [accordion] IATA Certificate > > The IATA certification program is designed to acknowledge workplace learning practices and ensure compliance with international and industry training standards in airlines and travel offices. Follow the steps given below to get an IATA Certificate: > > 1. Register with the [IATA customer portal](https://portal.iata.org/). > 2. Submit the application form. > 3. Pay the registration fee to process the application. > [accordion] DOT Certificate > > If you are running an OSP centre or IT-enabled services (such as Teletrading or Tele-education), you need this certificate. The DOT Certificate is required for policy, licensing, and coordination matters related to telegraphs, telephones, wireless communication, data, facsimile, telematic services, and other forms of communication. Follow the steps given below to get the DOT Certificate: > > 1. Log in to the [official DOT portal](https://dot.gov.in/infrastructure-provider). > > 2. Choose your category from the list available. > > 3. Click **download** to initiate your application. > > > [!NOTE] > > > > **Handy Tips** > > > > DOT processes the application to obtain telemarketing registration. > [accordion] TRAI Certificate > > A TRAI certificate refers to a licence issued by the Telecom Regulatory Authority of India for doing business. Follow the steps given below to get a TRAI Certificate: > > 1. Incorporate your company. > 2. Gather the required documents and apply for telemarketing registration. > 3. Pay the TRAI registration fee. > [accordion] RBI Certificate > > It is mandatory for a company to obtain a **Certificate of Registration (CoR)** from the Reserve Bank of India (RBI) before commencing or carrying on the business of a non-banking financial institution (NBFI). > Follow the steps given below to get a RBI Certificate: > > 1. Apply online and submit a physical copy of the application along with the necessary documents to the Regional Office of the Reserve Bank of India.ย  > 2. The application can be submitted online. > [accordion] DGCA Certificate > > The DGCA Certification is an airline certificate issued by the DGCA. To obtain this certificate, one must comply with the civil aviation requirements and airworthiness standards mandated by the Government of India. Know more about [the civil aviation requirements](http://164.100.60.133/aircraft/air-ind.htm). > [accordion] GII Certificate > > A GII Certificate is issued by the Gemological Institute of India for the identification and certification of all gems. Know more about the [GII certificate](https://www.giigemlab.com/colour-stone-identification-and-certification/). > [accordion] Form 20B/21B Certificate > > A Form 20B/21B Certificate is a wholesale drug license. To become a drug wholesaler, you must have permission from the State Licensing Authority (SLA) to distribute or sell drugs covered by the 1940 Drugs and Cosmetics Act. > [accordion] Certificate Issued by NHB > > The National Housing Board helps in validating and regulating companies that are in the housing finance business. You can download the application form for the certificate from the [online portal](https://nhb.org.in/) and submit it to the respective NHB office near you. > [accordion] Affiliation certificate issued by UGC /ICSE/CBSE/AICTE > > This certification is issued to various educational institutions in India. The UGC is the apex body that approves universities in the country. To obtain permanent affiliation, a college must apply to the University in the prescribed proforma along with the required fee in the form of a **Demand Draft** drawn in favour of the University Registrar. The application can be made any time after completing five years of temporary affiliation. > [accordion] AOC Certificate/PCI-DSS > > The Attestation of Compliance (AoC) is a declaration of an organization's compliance with the PCI DSS. A Qualified Security Assessor (QSA) completes this document, indicating the business's PCI DSS AoC compliance status. > > To receive an AoC, the organization needs to complete a self-assessment of their compliance through a Self-Assessment Questionnaire (SAQ). This is then reviewed by a QSA to determine the organization's compliance status with PCI DSS. > [accordion] GIA Certificate > > If you are a merchant selling precious stones or gems, you need this certificate. The term "GIA certified" is commonly used in the jewellery industry to refer to diamonds that have undergone GIA's rigorous grading process and to the reports that accompany them. Know more about [how to apply for GIA certification](https://www.giaindia.in/instructions-procedure-to-apply/) in India. > [accordion] PESO Certificate > > The Petroleum and Explosives Safety Organization (PESO) of India issues the PESO license. Formerly known as the Department of Explosives, this institute is responsible for formulating a framework for working with the oil industry. > You can apply for a PESO certificate at [https://www.peso.gov.in/](https://www.peso.gov.in/). > [accordion] Import-Export Certificate > > An Importer-Exporter Code (IEC) is a key business identification number that is mandatory for exports from or imports into India.ย Follow the steps given below to apply for the certificate:ย  > > 1. Register/Login on the [DGFT website](https://www.dgft.gov.in/CP/). > 2. Click on the **Apply for IEC** option on the DGFT website. Fill out the application form (ANF 2A format) and upload the required documents. > 3. Pay the required fees. > 4. Click the **Submit and Generate IEC Certificate** button. > [accordion] MMTC PAMP Certificate > > If your business is registered with MMTC PAMP you will obtain a certificate for the same. Your business should be in advanced precious metals or gold. > You can register for MMTC PAMP at [https://shop.mmtcpamp.com/register](https://shop.mmtcpamp.com/register). > [accordion] RERA > > A RERA certificate is a legal document that acts as proof that a property, project, or property agent has been registered under a state-level RERA authority or tribunal. > You can apply for a RERA certificate at the [E-Startup India](https://www.e-startupindia.com/rera-registration.html) site. > [accordion] Copyright Certificate > > A copyright grants the subject's owner exclusive ownership of his work. If a work is protected by copyright, no one can imitate, copy, or reproduce the original work in any other way.ย  > To register for copyright certification, visit [https://www.copyright.gov/](https://www.copyright.gov/). > [accordion] Shop Establishment Certificate (SEC) > > The shop establishment certificate (SEC) is required for all businesses registered under the Shop Establishment Act or Labour Department (depending on each state). Follow the steps below to download the shop establishment certificate. > > 1. Visit your stateโ€™s shop establishment website. > 2. Register with a username and password. > 3. Check the application status and click on **download certificate**. > [accordion] MSME Certificate > > An MSME certificate is a valid proof of registration for small and medium-sized businesses. This is issued after successful registration for each business. If a proprietor or individual has multiple enterprises, they must register each of these individually and obtain different certificates for each of them. To download your MSME certificate, visit the official Udyam Registration portal and login with your details. > An MSME certificate is a valid proof of registration for small and medium-sized businesses. This is issued after successful registration for each business. If a proprietor or individual has multiple enterprises, they must register each of these individually and obtain different certificates for each of them. To download your MSME certificate, visit the [Udyam website](https://udyamregistration.gov.in) and login with your details. > [accordion] MSO/Local Cable Operator > > A multiple-system operator (MSO) is an operator of multiple cable or direct-broadcast satellite television systems. If you are into providing cable or DTH services to households, this certificate is mandatory for you. > Know more about [how to get a MSO certification](https://www.registrationwala.com/mso-license). > [accordion] SLA/Dealership Agreement > > A service level agreement (SLA) is a contract between a provider and the end user that states the level of service that the customer should expect from that service provider. > [accordion] Reseller Agreement > > A reseller agreement is an arrangement between the supplier and the reseller of goods or services that is ultimately sold to the end customer. > [accordion] IRCTC Agents Agreement > > The Agents Agreement is mandatory for verification if you are a travel agent licenced by the IRCTC. Know more about the [rules and regulations for reserved rail e-ticketing service providers](https://contents.irctc.co.in/en/Rules%20&%20Regulations%20for%20the%20Agents.pdf). > [accordion] Dealership Rights > > A business is considered a dealership if its owner is authorised to sell a certain item. If you are in a business that operates under a dealership model, you will require a certificate or document authorising the same, which will be issued by the supplier. > [accordion] Pharmacy or Retail/ Wholesale Drug License > > To start a pharmacy business, a drug licence is required, which is issued by the Central Drugs Standard Control Organization and the State Directorate of Drug Control. Each state has its own government website that mentions the requirements for granting drug sales licenses. > [accordion] Brewery addendum or Liquor license > > If you are in the business of dealing with liquor, you need this license. A liquor License granted by a stateโ€™s excise department allows licensed individuals to manufacture, transport, and sell alcoholic beverages within the boundaries of the state. Know more about [how to apply for a liquor license in India](https://www.sansalegal.com/post/how-to-apply-for-a-liquor-license-in-india). > [accordion] Business Correspondent > > Business Correspondents are bank representatives who raise customer awareness and conduct banking transactions. This certificate was issued by Banks. > [accordion] PPI License > > Pre-paid Payment Instruments (PPIs) are defined in the RBI Guidelines as payment instruments that facilitate the purchase of goods and services, including funds transfers, against the value stored on such instruments. > [accordion] Tie Up Agreement > > A tie-up agreement is a contract between two or more companies or organisations to become business partners. > [accordion] FDA License > > FDA licences are issued by the Food and Drug Administration (FDA) to businesses involved in food, drug products, dietary supplements, beverages, etc. > [accordion] MSA > > A Master Services Agreement (MSA) is a contract that details the responsibilities and obligations of two parties toward each other. This comprehensive contract generally includes detailed rates, services, and terms for each functional area of the partnership. > [accordion] Legal Opinion > > A legal opinion is created by your lawyer, and it allows parties to obtain a qualified third-party opinion on the subject, object, and other issues related to the conclusion of a transaction. > [accordion] Manufacturing License > > A manufacturing license means all licenses necessary for or in connection with the manufacture of the products at the manufacturing site(s). > [accordion] Trade license > > A trade license is a document or certificate that grants permission to an individual seeking to open a business, to commence a particular trade or business in a specific area or location. The application for a trade license registration must be made to the concerned state government, corporation, or municipality, and the application procedure may vary depending on state regulations. > [accordion] IATO > > If you are in the business of offering tourism services, you are required to be an IATO member. IATO is the association of expert inbound tour operators whose members are recognised or approved by the Ministry of Tourism, Government of India. You can register to be a member of IATO at [https://iato.in/](https://iato.in/). > [accordion] BBPS > > This is required of businesses that currently provide or wish to provide bill payment services to their customers via physical (agents, bank branches, business correspondents) or digital (website, Internet banking, mobile app) channels. To get the BBPS, submit the **Agent-Institution Consent** form to the concerned BBPOU and complete the required documentation and onboarding process. > [accordion] Authorization letter > > A letter of authorization is a type of contract in which one person, known as the principal, authorizes another, known as the agent, to perform particular activities to carry out the principal's duties. ## Others Given below are the commonly used terms and their definitions used for Razorpay account activation or KYC process. > [accordion] Average Order Value > > Add the average order value for your business to proceed with verification. To obtain the average order value, use the formula: `Total revenue / number of orders = average order value`. ### Related Information * [KYC Documents for Companies and Businesses](/docs/payments/business-types-kyc-documents) * [Frequently Asked Questions (FAQs)](/docs/payments/faqs) # KYC Documents for Business Types Source: https://razorpay.com/docs/payments/business-types-kyc-documents List of required KYC Documents for companies and business types to register with Razorpay under the 2026 Master KYC guidelines. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡บ๐Ÿ‡ธ United States Below are the business types supported by Razorpay and the KYC documents required for various businesses. > [!TIP] > > **Understanding CKYC Verification** > > Central KYC Registry (CKYC) is a centralised government database maintained by CERSAI (Central Registry of Securitisation Asset Reconstruction and Security Interest of India) containing verified KYC records of individuals and entities across all financial institutions. > > **CKYC Consent Process** > > > [tab] For Registered Businesses > > > > 1. Enter your Business PAN. > > 2. Enter Date of Incorporation. > > 3. Documents are auto-fetched. > > > [tab] For Individuals > > > > 1. Enter your Personal PAN. > > 2. If CKYC record exists โ†’ Enter the mobile number linked to the CKYC. > > 3. Enter the OTP from CKYC system. > > 4. Documents are auto-fetched. ## Business Types > [accordion] Razorpay supports the following business types: > > | Business Type | Description \[columWidth="60"] | Example | > | - | - | - | > | LLP | LLP stands for Limited Liability Partnership. It is a combination of partnership and corporation. The partners have limited liability, which means that the partners' personal assets are not used for paying off the company's debts. | Dental offices, auditing firms, financial advising services, business consultancies and so on. | > | Partnership | A partnership is an arrangement between two or more people who agree to be the co-owners, distribute responsibilities for running an organisation and share the income or losses the business generates. | Law firms, physician groups, real estate investment firms and so on. | > | Private Limited | A private limited company is a business entity held by a small number of people. It does not offer stocks for sale to the general public. | Google India Pvt. Ltd., Parle Products Pvt. Ltd., Malabar Gold Pvt. Ltd. and so on. | > | Public Limited | A public limited company is a business entity that has limited liability and offers shares to the general public. | Bharat Heavy Electricals Ltd., Steel Authority of India Ltd., Oil and Natural gas Corporation Ltd. and so on. | > | Sole Proprietorship | This business entity is owned, controlled and operated by a single individual who is the sole beneficiary of all profits or losses and responsible for all risks. | Small businesses such as a local grocery store, a local clothes store, an artist, freelance writer, IT consultant, freelance graphic designer and so on. | > | Trust | A trust is a [fiduciary relationship](/docs/payments/glossary) in which a [trustor](/docs/payments/glossary) gives the [trustee](/docs/payments/glossary) the right to hold title to property or assets for the benefit of a third party, the [beneficiary](/docs/payments/glossary). Trusts are established to provide legal protection for the trustor's assets. | A beneficiary may transfer property to a trustee and grant them the right to manage it. | > | HUF | HUF stands for Hindu Undivided Family, which consists of all persons directly descended from a common ancestor, including their wives and unmarried daughters. A HUF cannot be created under a contract, it is created automatically in a Hindu Family. | Haldiram's Private Limited. | > | Government Entity | A government entity includes an organisation owned or controlled by the central or state government or UTs. | Ministries, departments, PSUs and regulatory bodies like RBI or SEBI. | > | Judicial Person | A judicial person is a non-natural entity recognised by law as having the capacity to have rights and obligations, similar to a human being. | Deities, universities or corporations established under special status. | > | Local Authority | A local authority is a self-governing body responsible for local administration in a city, town or village. | Municipal corporations, panchayats and development authorities. | > | Section 8 Company | A 'Section 8' Company is a type of non-profit company registered under Section 8 of the Companies Act, 2013 in India. | Tata Trusts, Infosys Foundation and Reliance Foundation. | > | Individual/Unregistered Businesses | Small businesses being run by individuals that are not yet formally registered. | Professionals, freelancers, influencers, small offline stores or similar entities. | > | Society | A society is an organisation formed by a group of individuals for the promotion of charitable, educational, religious or literary purposes. They are typically registered under the Societies Registration Act, 1860 in India. | Educational societies running schools/colleges, cultural societies, sports clubs or charitable organisations. | ## KYC Documents Following is the list of Know Your Customer (KYC) documents Razorpay requires, to verify your KYC. You need to upload scanned photocopies (soft copies) of these documents. > [!NOTE] > > **Handy Tips** > > The PAN Card details and [authorised signatory](/docs/payments/glossary) address proof, that is, Aadhar Card and Passport should be of the same person. > [accordion] Individual/Unregistered Businesses > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Identity | **Auto-fetched from CKYC**. However, if CKYC fails, you must provide: | > | Proof of Address | **Auto-fetched from CKYC**. However, if CKYC fails, you must provide: | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > [accordion] Proprietorship > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity and Date of Incorporation | MUST upload 2 from: | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners | PAN Card | > | Proof of Identity and Address of Business Owners | | > [accordion] Private Limited/Public Limited > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity | **Auto-fetched from CKYC**. However, if CKYC fails, you must provide: | > | Proof of Business Existence | Business PAN | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners and Authorised Signatory | **For Authorised Signatory**: **For Business Owners (Self-Declaration)**: | > [accordion] Partnership > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity | | > | Proof of Business Existence | Business PAN | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners and Authorised Signatory | **For Authorised Signatory**: **For Business Owners (Self-Declaration)**: | > [accordion] LLP > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity | | > | Proof of Business Existence | LLP PAN Card | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners and Authorised Signatory | **For Authorised Signatory**: **For Business Owners (Self-Declaration)**: | > [accordion] Government > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity and Existence | | > | Proof of Business Existence | Business PAN Card | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners and Authorised Signatory | | > [accordion] Trust > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity and Existence | | > | Proof of Business Existence | Trust PAN Card | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners and Authorised Signatory | **For Authorised Signatory**: **For Business Owners (Self-Declaration)**: | > [accordion] HUF > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity and Existence | | > | Proof of Business Existence | Business PAN Card | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners and Authorised Signatory | | > [accordion] Judicial Person > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity and Existence | | > | Proof of Business Existence | Business PAN Card | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners and Authorised Signatory | | > [accordion] Local Authority > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity and Existence | | > | Proof of Business Existence | Business PAN Card | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners and Authorised Signatory | | > [accordion] Section 8 Company > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity | **Auto-fetched from CKYC**. However, if CKYC fails, you must provide: | > | Proof of Business Existence | Business PAN | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners and Authorised Signatory | **For Authorised Signatory**: **For Business Owners (Self-Declaration)**: | > [accordion] Society > > | Proof Required | Supporting Documents | > | - | - | > | Proof of Business Identity and Existence | | > | Proof of Business Existence | Society PAN Card | > | Bank Details | If bank verification fails, a video of a cancelled cheque must be provided. | > | Proof of Identity of Business Owners and Authorised Signatory | **For Authorised Signatory**: **For Business Owners (Self-Declaration)**: | ## Additional Documents Depending on the line of business, we may also ask for additional certifications. > [accordion] List of additional certificates depending on your business category > > | Business Category | Certificate | > | - | - | > | OTC Products | FSSAI (Ayurveda, Health supplements) documents: Drug license/Pharma license/Form 20/Form 21/Form 20B/Form 21B and AYUSH | > | Food Industry | FSSAI | > | Herbal (Medicinal Purpose) | AYUSH (Manufacturing license - Form 24D) | > | Advisory Firm (Stock Market) | SEBI (Certificate should be in the business name, not an individual's name)/If the business type is proprietorship in this case - SEBI can be accepted in the proprietor's name. | > | Venture Capital Fund Co. | SEBI (Certificate should be in the business name, not an individual's name) | > | Merchant Banking Co. | SEBI (Certificate should be in the business name, not an individual's name) | > | FOREX | FEMA Registration, FFMC Certificate (State-wise) | > | Trust | 12A/80G or 10AC Income Tax link (Verify PAN number and entity name). Preferred: 80G or 10AC. | > | Finance Support (Society Members) | NBFC | > | Gold | 916 Hallmark/BIS Hallmark | > | Silver | 925 Hallmark/Related Certification | > | Platinum | PGI Certificate | > | Diamond | GIA/SGL/IGI/HRD Certificate | > | Gemstone | GII/IGI Certificate | > | Insurance | IRDAI | > | Mutual Fund | AMFI (Certificate should be in the business name, not an individual's name) | > | International Travel/Hotel | IATA | > | Travel Agency: International | IATA/Signed copy of the service level agreement with an IATA-certified company | > | Travel Agency: Train Tickets | IRCTC Agency Certificate (Required if not selling flight tickets and IATA not available) | > | Internet Service Provider | TRAI/PMWANI/SLA | > | SMS/Email/Telemarketing Co. | TRAI (For mobile network)/TRAI/PMWANI/SLA | > | Banks/NBFCs/Money Lending | NBFC (Not applicable for Banks)/All types of Banks (including Payment Banks) | > | Pre-paid/E-wallet, Cash/Smart Card | Non-bank PPI, Bank PPI | > | Paper/Gift Voucher | RBI | > | Aircraft Maintenance Related Service | DGCA | > | Flight Operators | Scheduled Operators/Non-Scheduled Operators | > | Chit Funds | Operated by Government or PSU companies post approval from Risk | > | Housing Finance Companies | National Housing Banks | > | Nidhi Companies | Nidhi Certification | > | Gaming | Independent Legal Opinion stating it is a 'Game of Skill,' not 'Game of Luck.' /Gaming MSA + Undertaking | > | University/Education Sector | UGC Certificate/ICSE/CBSE/AICTE affiliation certificate. | > | Web host/Domain seller | PCI-DSS | > | Prescription basis medicines | Pharmacy or Retail/wholesale Drug License, Form 20/21/20B/21B (whichever is applicable). | ### Related Information * [Submit KYC details](/docs/payments/set-up#kyc-details) * [Frequently Asked Questions (FAQs)](/docs/payments/faqs) # Change Business Information Source: https://razorpay.com/docs/payments/change-business-information Learn how to request a change to your registered business information such as name or business type on Razorpay. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India When you create a Razorpay account, it is tied to your **business entity type** and **PAN**. Here is what happens when one of these changes: * **Entity type changes, but PAN stays the same**: You can request Razorpay to update your entity type on your current account, subject to eligibility conditions. * **PAN changes**: (For example, Sole Proprietorship โ†’ Private Limited) You must create a new **Razorpay account** and complete a fresh KYC. Your existing account cannot be updated since Razorpay treats each PAN as a separate legal entity. > [!WARNING] > > **Watch Out!** > > Your Razorpay Merchant id (MID) is permanently linked to the PAN registered during onboarding. PAN is used as the primary identifier for KYC, tax compliance and regulatory reporting. When a new PAN is involved, regardless of the reason, Razorpay treats it as a new legal entity. The existing MID cannot be reassigned to a different PAN. ## When your PAN Remains Same You can request an entity type change if **all** of the following conditions are met: * Your PAN remains the same before and after the change. * You have [valid KYC documents](/docs/payments/business-types-kyc-documents#kyc-documents) for the new entity type. ### Supported Entity Transitions The following entity transitions are currently supported since they do not require PAN to be updated. | From | To | Allowed? | | | - | - | - | - | | Individual | Sole Proprietorship | โœ“ | | | Private Limited | Public Limited | โœ“ | | | Public Limited | Private Limited | โœ“ | | | Private Limited | Section 8 Company | โœ“ | | | Section 8 Company | Private Limited | โœ“ | | > [!NOTE] > > **Handy Tips** > > Business Entity transitions that involve a change in PAN (for example, moving from an Individual to a Private Limited company) cannot be done for the same MID. ## When your PAN Changes There can be two scenarios where a PAN change applies: ### Scenario 1: New PAN (Different entity type) Some entity transitions inherently require a different PAN. For example, moving from an Individual to a Private Limited company means the PAN shifts from a personal PAN to a company PAN. Since all compliance documents such as proof of identity, proof of address and business registration must align with the new PAN, Razorpay cannot process this as a modification to your existing account. ### Scenario 2: Different PAN (Same entity type) Even if your entity type stays the same, a change in PAN requires fresh documentation. For example, if your account was originally registered under your PAN and you now want to re-register it under a spouse's or partner's PAN, the following must be re-validated against the new PAN: * Bank Account used for settlements * Proof of identity * Proof of address This is effectively a fresh KYC process and cannot be completed under your existing MID. In both scenarios described above, you must create a new Razorpay account with the updated PAN and complete fresh onboarding. Your existing MID, transaction history and settlements remain unaffected. ## When your Entity Name Changes In case of a change in the name of your registered business (for example, after rebranding or reincorporation), the action required depends on whether your PAN changed as a result: * **PAN unchanged**: Raise a support ticket. The Razorpay team will get in touch with you and enable you to change your entity name on your Razorpay Dashboard. * **PAN changed**: You must create a new Razorpay account. See [Scenario 1](#scenario-1-new-pan-different-entity-type) or [Scenario 2](#scenario-2-different-pan-same-entity-type) above for details. > [!WARNING] > > **Watch Out** > > This is a manual, backend-assisted process. You must reach out to the Razorpay team if you want to change the business details. ## How to Request an Entity Change To request an entity type change, raise a support ticket from your Razorpay Dashboard. 1. Log in to your [Razorpay Dashboard](https://dashboard.razorpay.com). 2. Navigate to **Help & Support** and raise a ticket. 3. A ticket creation window is displayed with your MID and current entity type automatically retrieved. Ensure to add the following info to the ticket: * Requested entity type * Reason for the change * Supporting KYC documents for the new entity type. 4. Razorpay's compliance team reviews your request. If approved, Razorpay team will get back to you with the next steps. 5. You will be notified once the change is complete. Once a ticket is raised, our team will resolve the ticket within 2-3 working days. ## Frequently Asked Questions > [accordion] Can I change my entity type from Individual to Private Limited? > > No. This transition requires a new PAN, which is not supported. Entity changes are only allowed when the PAN remains the same. > [accordion] Can I change my PAN on an existing Razorpay account? > > No. A PAN change requires a fresh set of KYC documents, whether or not it involves an entity type change. Razorpay does not support PAN updates on an existing MID. You must create a new account and complete onboarding with the new PAN. > [accordion] How long does the process take? > > Timelines depend on document completeness and compliance review. Razorpay support will keep you updated via the ticket. > [accordion] Will my existing payment history and settlements be affected? > > Your transaction history remains intact. However, certain account settings tied to the previous entity type may need to be reconfigured. Razorpay support will guide you if this applies to your case. > [accordion] Can I change my entity type without raising a ticket? > > Not currently. All requests must go through [Help & Support](/docs/payments/dashboard/support). > [accordion] What if my new entity type requires a different PAN? > > Razorpay does not support entity changes that require a PAN change. In such cases, you would need to create a new Razorpay account for the new entity. ## Related Topics * [Edit Business Information](/docs/payments/dashboard/faqs#edit-business-information) * [KYC Documents for Companies and Businesses](/docs/payments/business-types-kyc-documents) * [Contact Support](/docs/payments/dashboard/support) # About Customers Source: https://razorpay.com/docs/payments/customers Create and edit Customers from the Razorpay Dashboard or using APIs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can create customers with basic details such as name and contact details and use them for various Razorpay solution offerings. You can perform the following actions using the Dashboard: * [Create a customer](/docs/payments/customers#create-a-customer) * [Edit a customer's details](/docs/payments/customers#edit-customer-details) ## Create a Customer Watch this video to see how to create a customer from the Dashboard. [How to create a customer in Razorpay](https://www.youtube.com/embed/8xys_p8-Vzg?si=D1_IUXuElhCIMtoT) To create a customer from the Dashboard: 1. Log in to the Dashboard. 2. Navigate to **Customers**. 3. Click **+ New Customer**. 4. Fill details and click **Save**. ## Edit Customer Details Watch this video to see how to edit the details of an existing customer from the Dashboard. [How to edit customer details in Razorpay](https://www.youtube.com/embed/K_MGRI9X_Kg) To edit a customer from the Dashboard: 1. Log in to the Dashboard. 2. Navigate to **Customers**. 3. Select the customer you want to edit. 4. Click **Edit** available under **Actions**. 5. Edit details and click **Save**. ## APIs You can do the following using APIs: * [Create a Customer API](/docs/api/customers/create) * [Edit Customer Details API](/docs/api/customers/edit) * [Fetch All Customers API](/docs/api/customers/fetch-all) * [Fetch Customers by ID API](/docs/api/customers/fetch-with-id) ### Related Information [Customer Refunds](/docs/payments/customers/customer-refunds) # Customer Refunds Source: https://razorpay.com/docs/payments/customers/customer-refunds Request refund if you are a customer of businesses using Razorpay. Track refunds using payment, order, booking or refund id or raise a dispute chargeback. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States If you have made payments to a business that uses Razorpay and are looking for a refund: > [card] [1. Contact Business for Refunds](/docs/payments/customers/customer-refunds#1-contact-business-for-refund) > [card] [2. Track Your Refund Using Refund Tracker](/docs/payments/customers/customer-refunds#2-track-your-refund-using-refund-tracker) > [card] [3. Raise a Chargeback](/docs/payments/customers/customer-refunds#3-raise-a-dispute-chargeback) > [!NOTE] > > **Handy Tips** > > Razorpay is a payment solution provider and **cannot make refunds on behalf of the business**. Watch this video to see how to request for refund. [Customer Refunds (In English)](https://www.youtube.com/embed/k1SVQEsakIE?si=HlJZ3WCaWhxlFMxI) Customer Refunds (In English) Watch this video to know about customer refunds for payments made using Razorpay(In English). [Customer Refunds (In Hindi)](https://www.youtube.com/embed/s1kMY8TeVbI?si=POPpl6tAgUiNRS12) Customer Refunds (In Hindi) Watch this video to know about customer refunds for payments made using Razorpay(In Hindi). ## 1. Contact Business for Refund If you have not received the products or services or are dissatisfied with the products or services received and want a refund, contact the business and request for a refund. > [accordion] If you have made the payment on the business website or app, you can find the support details on their contact us/support page. > > ![Refund Id tracking - Sample Contact Us Page](https://razorpay.com/docs/build/browser/assets/images/customer-refunds-contact-us-website.jpg) > [accordion] If you have made payments using a Payment Link or a Payment Page, you can view the support details on the same page. > > ![Refund Id tracking - Sample Support Page](https://razorpay.com/docs/build/browser/assets/images/customer-refunds-payment-page-contact-us.jpg) ### Refund Communication If a customer is asking for a refund, the banking partner provides a unique reference number (either RRN, ARN or UTR) when a refund is processed. The customer can use this reference number to track the refund status with the bank. As a customer, you will be notified of the specific payment to be refunded in 7-10 working days. Razorpay sends the following email communications for refunds: > [accordion] Refund Mailer > > After the business processes the refund, Razorpay sends you an email with the refund id and a unique reference number provided by the bank (ARN, RRN or UTR). This mail also contains the [Razorpay link for refund tracker](#2-track-your-refund-using-refund-tracker). > > ![Refund Mailer](https://razorpay.com/docs/build/browser/assets/images/Normal_refund_mailer_customer.jpg) > [accordion] ARN Update Mailer > > If you want a refund for a credit card payment, the banking partner will send an ARN to Razorpay. Razorpay sends you an email with this ARN number. You can use this ARN number to trace your transaction with your card issuer. > > ![ARN Update Mailer](https://razorpay.com/docs/build/browser/assets/images/normal_arn_mailer_customer.jpg) > [!NOTE] > > **Handy Tips** > > Razorpay sends the **Refund** and **RRN/ARN Update** emailers only if the customer email is passed to us. ## 2. Track Your Refund Using Refund Tracker After a business initiates the refund, it can take 7-10 days to reach your account, depending on your bank. Read blog about [why refunds take time.](https://razorpay.com/blog/why-do-refunds-take-time/) You can use our tracking tool to check the status of the refund. Watch this video to see how to track refunds using the Refund Tracker. [YouTube video player](https://www.youtube.com/embed/FzvxNsL_ZAA?si=b7wj7ZtyqiuFIjBs) > [accordion] To track your refund: > > 1. Visit [Razorpay Refund Tracker](https://razorpay.com/support/#refund) and click **Customer**. > > ![Refund Tracker](https://razorpay.com/docs/build/browser/assets/images/refund-tracker.jpg) > 2. In the **Track Payments** form on the right, enter one of the following IDs: > * Payment ID > * Refund ID > * Order ID > * Booking ID > You can find the relevant ID in the payment confirmation email or booking history. > > ![Refund Id tracking - Track Payments form](https://razorpay.com/docs/build/browser/assets/images/customer-refund.jpg) > > 3. Perform the CAPTCHA step and click **Check Status**. The refund details are displayed as shown below: > > ![Refund Id tracking - Sample Refund Details](https://razorpay.com/docs/build/browser/assets/images/tracking-status.jpg) ## 3. Raise a Dispute (Chargeback) If you are unable to contact the business or their response is not satisfactory, contact your bank to raise a dispute. A customer can raise a dispute against a particular transaction and contact the bank through which the customer has made the payment. The bank will raise the dispute with Razorpay. We will work with the bank and assist in resolving the issue amicably. > [!NOTE] > > **Handy Tips** > > * Please wait at least 7 days from the date of payment to escalate a dispute for an item not received. Ensure that you have given the business enough time before opening a dispute. > * Please provide complete details about the issue to help us decide on the best solution to resolve it. ## Frequently Asked Questions (FAQs) > [accordion] What are some tips to ensure hassle-free transactions with a business? > > Follow these best practices as a customer to ensure hassle-free transactions: > > 1. Understand the product/service description before purchasing. > 2. Review the policies for return, refund and cancellation on the business' website. > 3. Only enter details on `https`-secure sites and keep your antivirus software and browsers updated. > 4. After receiving the product, contact the manufacturer for warranty-related defects, if any. > 5. Wait for 5-7 business days for issues related to bank processing and refunds. > [accordion] What should I do if I have not received my refund even after 10-12 working days? > > Ideally, refunds are credited in 10-12 working days. In case you have not received your refund, check the refund status in the [Razorpay Refund Tracker](https://razorpay.com/support/#refund/). Know more about [tracking your refund using Refund Tracker](#2-track-your-refund-using-refund-tracker). > [accordion] How do I check my order status after the amount is deducted from my account? > > Upon a successful transaction, you will receive a confirmation email from Razorpay Payment Aggregator and only facilitate business with online payments. For the status of the order, contact the business. > [accordion] How do I cancel my order? > > All the queries related to full or partial cancellation of orders should be routed to the business. Razorpay is a payment solution provider and does not ship or dispatch orders. Please get in touch with business for queries regarding cancellation or returns. > > After the business cancels the order and initiates the refund, the amount will be credited to your account in 7-10 days. You can check the status of your refund using the [Razorpay Refund Tracker](https://razorpay.com/support/#refund/). Know more about [tracking your refund using Refund Tracker](#2-track-your-refund-using-refund-tracker). > [accordion] Can I file a complaint if I have not received my order? > > We suggest you wait for 7-10 business days for physical goods and one business day for digital goods. If you have still not received the items, or if the items received are materially different, defective, or damaged, contact the business to resolve the issue. > > Include the following details while sending an email to the business: > > * Date of transaction. > * Amount of transaction. > * Order ID shared by the business. > * Payment ID shared by Razorpay(pay\_9uxxxxxxx34z). > * Description of the problem. > > If the business does not respond to your emails and phone calls within 3-5 working days, contact your bank to [raise a dispute](#3-raise-a-dispute-chargeback). > [accordion] How do I report a fraudulent transaction? > > Please [raise a Razorpay support request](https://razorpay.com/contact/) with the transaction details and our team will investigate this further. > [accordion] I do not recognise the transaction that I have been charged for. Can you help me? > > Please raise a [support request](https://razorpay.com/contact/#request) and provide the following details: > > * A common email id you use for making online transactions. > * Amount and date of debit. > * Screenshot of the debit, in case it was a netbanking or wallet transaction. > * The last four digits of the card were used in case this was a card transaction. > > We will get back to you at the earliest. > [accordion] I have done duplicate transactions towards the same order/service. How do I get a refund? > > Razorpay is a Payment Aggregator and only facilitate the seller with online payments. We request you to contact the seller with the transaction details for a refund. > [accordion] What should I do if I do not receive a payment confirmation mail from Razorpay? > > You can raise a [support request](https://razorpay.com/contact/#request). > > 1. Select the category as `I am a customer`. > 2. Choose the nature of your request. > 3. Provide your email id, the screenshot of the debit and transaction ID received from the seller. > > We will get back to you at the earliest. > [accordion] Why does it take so long for a refund to be credited to my account? > > Several factors and processes are involved during a refund. Hence, we recommend waiting for 10-12 working days. Know more about [why refunds take time](https://razorpay.com/blog/why-do-refunds-take-time/). > [accordion] Can I share my card details or passwords with the Razorpay support staff? > > No, do not share your card details, CVV number, OTP, PIN, UPI PIN, or Netbanking password with anyone, including Razorpay support staff. > > Only in the rare case of a dispute does Razorpay support ask you for the first six and last four digits of your card number to locate a particular payment id. > [accordion] What should I do if I have not received a refund confirmation mail from Razorpay? > > After every successful refund, you receive a refund confirmation email from Razorpay. Check between 7-10 days for the refund to reflect. > > Contact the business if you have not received the email, as only businesses can initiate refunds. ### Related Information [Why do refunds take a long time](https://razorpay.com/blog/why-do-refunds-take-time/) # About Dashboard Source: https://razorpay.com/docs/payments/dashboard Overview of the Razorpay Dashboard home page with key features including payments overview, insights, and product recommendations for managing your payment operations. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States The Dashboard Home page serves as your central command center for managing payment operations on Razorpay. It provides a comprehensive overview of your account status, recent payment activity, key insights and personalised product recommendations to help you optimise your payment infrastructure. The Dashboard offers a wide range of features, such as: * **Analytics** and **real-time charts** that provide valuable insight into your business performance. * List of **recent activities** that may require your action. * **Configure, operate, and manage** your Payment Gateway (PG) account and other Razorpay products. * An overview of recent **payments, settlements and refunds**. ![Razorpay Dashboard Home page](https://razorpay.com/docs/build/browser/assets/images/payments-dashboard-in-home.jpg) > [!NOTE] > > **Handy Tips** > > You must have a Razorpay account to access the Dashboard. Do not have a Razorpay account? [Set up a Razorpay account](/docs/payments/set-up). ## Key Sections of Payments Dashboard Home Page > [accordion] AI-Powered Assistant > > The dashboard features an AI assistant that greets you personally and provides contextual help. You can ask questions or search for anything related to your Razorpay account using the search bar. The assistant also offers quick actions like: > > * Show me all recent failed payments > * Check the status of (refund ID / RRN) > * Lookup payment from screenshot > [accordion] Account Overview > > The overview section displays critical account information at a glance: > > * **Current Balance**: Shows your available account balance. > * **Last Settlement**: Displays recent settlement information including amount and processing status. > * **Settlement Details**: Shows when funds were deposited to your bank account with links to view all settlements. > [accordion] Key Updates > > This section highlights important account updates and new features: > > * **Feature Announcements**: Notifications about newly enabled features like international payments. > * **Action Items**: Important updates that may require your attention > [accordion] Payments Overview > > A comprehensive view of your payment activity over a selected time period (default: last 7 days): > > * **Collected Amount**: Total amount successfully collected. > * **Refunds**: Total amount refunded to customers. > * **Orders**: Total number of orders processed. > * **Interactive Chart**: Visual representation of payment trends with date-wise breakdown. > * **Time Period Selection**: Customisable date range picker for detailed analysis. > [accordion] Top Insights > > Key performance metrics displayed in an easy-to-scan format: > > * **Payment Count**: Total number of payment attempts in the selected period. > * **Payment Failure Count**: Number of failed payment attempts. > * **Refund Count**: Total refunds processed. > * **Refund Failure Count**: Number of failed refund attempts. > Each metric includes a **View Details** link for deeper analysis. > [accordion] Payment Method Split > > Visual breakdown of payment methods used by customers: > > * **Credit Cards**: Number of credit card transactions. > * **UPI**: UPI transaction count. > * **Netbanking**: Netbanking payment attempts. > * **Others**: Other payment methods (wallets and so on.) > Displays both numerical data and a pie chart visualisation for quick understanding of customer payment preferences. > [accordion] Products for You > > Personalised product recommendations based on your business needs: > > * **Cross Border Payments**: Accept payments from 200+ countries with multi-currency support (USD, EUR, AED, SGD) > * **QR Code**: Generate branded QR codes for contactless payments. > * **Payment Links**: Create shareable payment links for email, text and social media. > * **Razorpay POS**: Seamless payment acceptance solutions for physical stores. > Each product card includes brief descriptions and visual previews of the functionality. ## Key Tabs of Payments Dashboard Following are the key tabs of the Payments Dashboard. > [accordion] Transactions > > Given below are the tabs present under Transactions and the supported actions: > > | Tab | Actions | > | - | - | > | Payments | | > | Refunds | [View details of a refund](/docs/payments/refunds/view) | > | Orders | [View details of an order](/docs/payments/orders/dashboard#view-order-details-using-api) | > | Disputes | [View a list of disputes raised](/docs/payments/disputes/dashboard#view-disputes) | > | Success Rate | [View Success Rate of payments and its details](/docs/payments/payments/success-rate-analytics) | > [accordion] Settlements > > Given below are the actions supported for Settlements: > > * [Enable a Settlement placed on Hold](/docs/payments/settlements/dashboard#enable-settlements-placed-on-hold) > * [View details of a settlement](/docs/payments/settlements/dashboard#view-settlements-using-dashboard) > * [View detailed breakup of a settlement](/docs/payments/settlements/dashboard#settlements-break-up-description) > [accordion] Reports > > Given below are the actions supported for [Reports](/docs/payments/dashboard/reports): > > * [Download a Report](/docs/payments/dashboard/reports#download-reports) > * [Increase report generation limit](/docs/payments/dashboard/reports#limit-on-reports) > [accordion] Account & Settings > > Given below are the [Account & Settings](/docs/payments/dashboard/account-settings) sections and supported actions: > > | Tabs and Actions | > | - | > | **Website and app settings** | > | **Business settings** | > | **Payments and refunds** | > | **Bank accounts and settlements** | > | **Notification Settings** | > | **Checkout Settings** | > | **International Payment Settings** | > | **Payment Methods** | > [accordion] Payments Products > > Given below are the payments products and the supported actions: > > | Product | Actions | > | - | - | > | Offers | [Create and manage offers](/docs/payments/offers/create) | > | Invoices | [Create and manage Invoices](/docs/payments/invoices/create) | > | Payment Button | [Create and manage Payment Button](/docs/payments/payment-button) | > | Payment Links | [Create and manage Payment Links](/docs/payments/payment-links/create) | > | Route | [Create linked accounts and transfer funds](/docs/payments/route#get-started) | > | Subscriptions | [Create and manage Subscriptions](/docs/payments/subscriptions) | > | Smart Collect | [Create and manage Virtual Accounts](/docs/payments/smart-collect) | > [accordion] Customers > > Given below are the actions supported for Customers: > > * [Create a Customer](/docs/payments/customers#create-a-customer) > * [Edit Customer Details](/docs/payments/customers#edit-customer-details) # About Account & Settings Source: https://razorpay.com/docs/payments/dashboard/account-settings Check the various Account & Settings options on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can perform multiple configurations using **Account & Settings** on the Dashboard. ![Settings on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/dashboard-new-accounts-settings.jpg) ## Configure Your Profile You can change your registered phone number after full activation of your account. You can either change it from your profile or navigate to [account details](/docs/payments/dashboard/account-settings/account-details#to-update-the-phone-number). > [accordion] Update phone number: > > You can change your registered phone number after full activation of your account. You can either change it from your profile or navigate to [account details](/docs/payments/dashboard/account-settings/account-details#to-update-the-phone-number). > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** and click **Edit** next to **Phone number**. > 3. Enter the **2-Step Verification** code sent to your registered email. > 4. Enter the new mobile number and click **Continue**. > 5. Enter the OTP sent to your new number and click **Confirm**. > > You have successfully changed your registered phone number. ## Update Login Email You can change your registered email address after full activation of your account. You can either change it from your profile or navigate to [account details](/docs/payments/dashboard/account-settings/account-details#update-login-email). > [accordion] Update login mail: > > You can change your registered email address after full activation of your account. You can either change it from your profile or navigate to [account details](/docs/payments/dashboard/account-settings/account-details#update-login-email). > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** and click **Edit** next to **Login email**. > 3. Enter the new email address select the check box to receive all the updates on the new email id. Click **Continue**. > 4. A verification email is sent to your new email id. Open the email and complete the verification process. > 5. Click **Okay, got it**. > > You have successfully changed your registered email address. > [accordion] Update password: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** and click **Edit** next to **Password**. > 3. Enter the **2-Step Verification** code sent to your registered mobile number. > 4. Enter your current password and press the enter/return key. > 5. Enter the new password and press the enter/return key. > 6. Re-enter your new password and click **Change Password**. > > You have successfully changed your password. > [accordion] Enable 2-step verification: > > 1. Log in to the Dashboard. > 2. Navigate to the **Account & Settings**. > 3. Enable the **2-Step Verification to the team** option. > 4. Enter the OTP sent to your registered mobile number. (This step is not required if you had already performed OTP verification during login.) > 5. Enter your account password and confirm. > > You have successfully enable 2-step verification for your account. ## Settings and Actions Following are the settings available under **Account & Settings** and the actions you can perform: > [card] Website and app settings > > > [card] Business settings > > > [card] Payments and refunds > > > [card] Bank accounts and settlements > > > [card] Notification settings > > > [card] Checkout settings > > > [card] International payment settings > > > [card] Payment methods > > ### Related Information * [Dashboard](/docs/payments/dashboard) * [Frequently Asked Questions (FAQs)](/docs/payments/dashboard/faqs) # Account Details Source: https://razorpay.com/docs/payments/dashboard/account-settings/account-details Steps to update account details on the Razorpay Dashboard. You can update display name, profile name, email and phone number. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can update account details such as display name, profile name, email and phone number on the Dashboard. ## Update Display Name You can update the business display name on the Dashboard. The new display name will reflect immediately on your Dashboard after you update it. It will be visible to you and your team on the Dashboard. > [accordion] To update the display name: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** and navigate to **Account details** under **Business Settings**. > 3. Click the edit icon next to **Display Name**. > 4. Enter the new display name and click **Update**. ## Update Profile Name You can update the profile name on the Dashboard. The new profile name will reflect immediately on your Dashboard after you update it. It will be visible to you in your profile section > [accordion] To update the profile name: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** and navigate to **Account details** under **Business Settings**. > 3. Click the edit icon next to **Name**. > 4. Enter the new profile name and click **Update**. ## Update Phone Number You can update the phone number on the Dashboard. The new phone number will reflect on your Dashboard only after OTP-verification. > [accordion] To update the phone number: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** and navigate to **Account details** under **Business Settings**. > 3. Click the edit icon next to **Phone Number**. > 4. Enter the OTP sent to the currently registered phone number and click **Confirm**. > 5. Enter the new phone number and click **Continue**. > > Proceed with the phone number confirmation process to complete the update. ## Update Login Email You can update the login email from the Dashboard. You can: * [Update your own email id](#update-your-email). * [Add a team member's email id](#add-a-team-memberโ€™s-email). > [!NOTE] > > **Handy Tips** > > If you add a non-user's email id, they will have to sign up for an account. ### Update Your Email As an account owner, you can update your login email from the Dashboard. **Example** \ You can replace your current email id with another email. For example, if you earlier had signed up with the email id `info@acmecorp.in`, you can now update it as `gaurav.kumar@acmecorp.in`. > [accordion] To update the login email: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** and navigate to **Account details** under **Business Settings**. > 3. Click the edit icon next to **Email**. > > ![Update email id from Razorpay Dashboard profile](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-profile-update-email.jpg) > 4. Complete the 2-factor authentication process. > 5. On the pop-up page, enter the new email id. Re-enter the email id. Select the check box if you want Razorpay to send all communication details to this email id. > > ![enter new email id](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-profile-email-id-repeat.jpg) > 6. A verification email is sent to your new email id. Open the email and complete the verification process. > > ![Complete verification process from your email id](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-profile-verification.jpg) > > ![Verification email from Razorpay](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-profile-verify-email.jpg) > > The email id has been updated. > > ![Email updated successfully on Dashboard profile](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-profile-updated-email.jpg) ### Add a Team Member's Email You can make another member from your team the Razorpay account owner and add their email address as the login email id. **Example** \ * You can add another team member's email id. You will need to change the user role of the team member to `owner`. For example, you can provide your manager's email id and upgrade them to the `owner` role. * You can add the email id of a Razorpay user who is not a member of your team. For example, Gauri Kumari is the manager of a Razorpay account, ABC Co. You want to add her as the `owner` of your Razorpay account, Acme Corp. Once you update her email address on the Dashboard, Gauri Kumari will become the `owner` of the Acme Corp account. However, she will still be the manager of the ABC Co Razorpay account. > [accordion] To add a team member's email: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** and click **Manage Team** under **Business settings**. > 3. On the **Manage Team** page, click **Change** next to the **Owner**. > 4. Select the team member whose role is to be upgraded and click **Change Owner**. > > The email id has been updated. > > ![user role and email id changed](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-profile-user-role-changed.jpg) # Account Activation Details Source: https://razorpay.com/docs/payments/dashboard/account-settings/activation-details Steps to view account activation details on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Your account moves to **Activated** state upon successful completion of the sign-up and KYC verification process. You can find details regarding the account activation on the Dashboard. ## View Account Activation Details To view account activation details: 1. Log in to the Dashboard. 2. Click **Account & Settings** and navigate to **Activation details** under **Business Settings**. 3. Click View Activation Form to view the details you had submitted at the time of KYC verification. In case you want any changes to be made to these details, contact [Razorpay Support](https://razorpay.com/support/). You can also view details such as account activated on date and account access status on this page. ![View Account Activation Details on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/payments-dashboard-account-settings-activation-details.jpg) # API Keys Source: https://razorpay.com/docs/payments/dashboard/account-settings/api-keys Generate and regenerate Test and Live API Keys using the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States API keys are unique identifiers that let you securely connect your application to Razorpay's services. An API key is a combination of the `key_id` and `key_secret`, which are required to make any API request to Razorpay. You will need to add this API key to your code as part of your integration process, ensuring secure access to Razorpay's payment services while protecting your data. Essentially, API keys act like passwords for your app, providing safe access to Razorpay's payment and other services while protecting your data. > [!WARNING] > > **Watch Out!** > > To generate API keys in **Live Mode**, you must provide the website details where you will collect payments. If you do not have the option to generate API keys in **Live Mode**. It may be because you are yet to provide your website details. We collect website information during the onboarding process. > > * If you have not shared your website yet, please [follow the steps to add your website details](/docs/payments/dashboard/account-settings/business-website-details). We will verify your website within 3 working days. Once the verification is complete, you can generate API keys in **Live Mode**. > > * If you have already shared your website details, and they have been verified, you can find the details on your Dashboard. Navigate to **Account & Settings** โ†’ **Website and app settings**. > > * You can generate API keys in **Test Mode** without adding a website. > > If you still encounter issues, log in to the Dashboard and raise a request with our support team. ## Generate API Keys Follow these steps to generate API keys: > [card] Test Mode API Keys > > Watch this video to see how to generate API keys in the Test mode. > > [YouTube video player](https://www.youtube.com/embed/VOn8JlGPG2I?si=WTAbAeLB3Hnp1n3r) > [card] Live Mode API Keys > > Watch this video to see how to generate API keys in the Live mode. > > [YouTube video player](https://www.youtube.com/embed/Cer8UfBGX_E?si=Libr1RXoFSEDfY1c) 1. Log in to your Dashboard with the appropriate credentials. 2. Select the mode (**Test** or **Live**) for which you want to generate the API key. * **Test Mode**: The test mode is a simulation mode that you can use to test your integration flow. **Your customers will not be able to make payments in this mode**. * **Live Mode**: When your integration is complete, switch to live mode and generate live mode API keys. In the integration, **replace test mode keys with live mode keys to accept customer payments**. 3. Navigate to **Account & Settings** โ†’ **API Keys** (under **Website and app settings**) โ†’ **Generate Key** to generate key for the selected mode.\ > [!WARNING] > > **Watch Out!** > > * After generating the keys from the Dashboard, download and save them securely. You can use only one set of API keys. If you do not remember your API keys, you must [regenerate them](/docs/payments/dashboard/account-settings/api-keys#regenerate-api-keys) from the Dashboard and update them wherever the previous keys were used for payment gateway integrations. > * API Keys are universal; that is, they are applicable to all websites and apps that you have whitelisted for your Merchant ID. > * **Do not share your API Key secret** with anyone or on any public platforms. **This can pose security threats to your Razorpay account**. > * Once you generate the API Keys, only theย **Key Id**ย is visible on the Dashboard, **notย the Key secret**, as it can pose security threats to your Razorpay account. > * Use the **Live API Keys** to accept live payments and the **Test API Keys** for test transactions. > [!WARNING] > > **Watch Out: Swap your API keys before going live** > > Your Test Mode API keys only process simulated transactions โ€” no real money moves. If you go live without replacing them with Live Mode keys, customers will see a payment success screen but no payment will be captured or settled. > > Generate your Live Mode keys from Dashboard โ†’ **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** (switch to Live Mode first). ## Regenerate API Keys You also have the option to regenerate the key if required. > [!NOTE] > > **Two-Factor Authentication** > > To regenerate API keys, you must validate your identity via OTP and send it to your registered mobile number. However, this step is skipped if you already performed OTP validation while logging in to the Dashboard. > > If you have not set up two-factor authentication, you will be prompted to verify your mobile number before regenerating keys. To regenerate API key: 1. Log in to the Dashboard. 2. Select the mode from the menu ribbon for which you want to generate the API key. 3. Navigate to **Account & Settings** โ†’ **API Keys** (under **Website and app settings**) โ†’ **Generate new key** to generate key for the selected mode. ![Live mode API keys generated on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/settings-4.jpg) This allows you to deactivate the old key immediately or within 24 hours. ## Frequently Asked Questions (FAQs) ### Common > [accordion] Can I generate multiple API keys if I have only one MID? > > No, if you have only one MID, you can generate only one API key. > [accordion] Can I generate multiple API keys if I have multiple MIDs? > > Yes, you can generate one API key for each MID if you have multiple MIDs. > [accordion] Can I use my existing API key when expanding to new Razorpay platforms? > > Yes, if your existing API key is saved, you can continue using the same keys as you expand to new platforms. > [accordion] What should I do if I do not have the previous API key saved? > > If you do not have the previous API key saved, you must [regenerate new API keys](#regenerate-api-keys) and relaunch all previous products or apps with the updated keys. > [accordion] My account is activated but I cannot generate API keys as my website is not verified. What do I do? > > Website details are required to generate API keys. If you do not have the option to generate API keys, it may be because website details are yet to be provided. If you have not shared your website yet, please [follow the steps to add your website details](/docs/payments/dashboard/account-settings/business-website-details). We will verify your website within 3 working days, and once the verification is complete, you can generate API keys. > [accordion] Why am I unable to generate the API keys? > > Your website or app link must be verified to generate an API key. This step ensures that only verified sources (website/app) can collect payments through the payment gateway. > [accordion] Who has access to the API Keys? > > Only users with the **Owner** or **Admin** role have access to the API keys. Know more about [standard user roles & permissions](/docs/payments/dashboard/account-settings/manage-team#standard-user-roles). > [accordion] Can I use the same Razorpay API Keys on multiple websites or domains? > > Yes, you can use the same set of Live Mode API Keys on multiple websites or domains. > > The Live Mode keys are tied to your single Razorpay account, allowing them to process live transactions from any domain where they are implemented. Using the same keys on a new website **will not impact** the live payments running on your existing, whitelisted website. > > **For Testing:** > > We strongly recommend using your **Test Mode API Keys** when integrating Razorpay on any new website. Test payments are simulated and ensure that your live payment processing on existing sites remains unaffected during development. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure your new website's domain is whitelisted in your Razorpay account to avoid payment disruptions once you switch to Live Mode. ### Shopify > [accordion] Do I need API keys to integrate a payment app with Shopify? > > No, API keys are not required to integrate a payment app with Shopify. OAuth is to handle the authentication process. > [accordion] Why am I being asked for an API key while integrating with Shopify? > > If you are integrating a non-payment app with Shopify, only the API key is required and not the key\_secret. However, Shopify does not require API keys to integrate payment apps. > [accordion] I am unable to accessย case\_keyย while integrating with Shopify. How can I access theย `case_key`? > > Only users with admin role access can access theย `case_key`. > [accordion] Can I use the same Razorpay API Keys on multiple websites or domains? > > Yes, you can use the same set of Live Mode API Keys on multiple websites or domains. > > The Live Mode keys are tied to your single Razorpay account, allowing them to process live transactions from any domain where they are implemented. Using the same keys on a new website **will not impact** the live payments running on your existing, whitelisted website. > > **For Testing:** > > We strongly recommend using your **Test Mode API Keys** when integrating Razorpay on any new website. Test payments are simulated and ensure that your live payment processing on existing sites remains unaffected during development. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure your new website's domain is whitelisted in your Razorpay account to avoid payment disruptions once you switch to Live Mode. > [accordion] How should I manage API Keys when working with a developer for integration? > > API Keys are generated and managed by the **Owner or Admin** roles in the Dashboard. Razorpay does not offer a separate Developer Access Role. > > To securely facilitate integration and testing (for example, for platforms like WooCommerce, where direct API key input might be required for some plugins), follow this standard workflow: > > * **Phase 1: Testing (Integration)** > The Owner or Admin must **generate and securely share** the **Test Mode API Keys** with the developer. The developer will use these keys to build and test the integration without affecting any live payments. > * **Phase 2: Go-Live** > Once testing is complete, the Owner or Admin must generate the **Live Mode API Keys** and provide them to the developer to replace the Test Keys in the final application setup. > > This ensures security and maintains clear control over your live payment environment. ### Related Information * [API Best Practices](/docs/api/best-practices) * [API Glossary](/docs/api/glossary) * [API Keys FAQ](/docs/payments/dashboard/faqs#i-cannot-generate-live-mode-api-keys-even-though-my-account-is-activated-how-do-i-generate-the-api-keys) # Balances Source: https://razorpay.com/docs/payments/dashboard/account-settings/balances Details about various balances available and how you can add funds and maintain them from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States There are two types of balances available on the Dashboard: * [Available Balance](#available-balance) * [Negative Available Balance](#negative-available-balance) * [Reserve Balance](#reserve-balance) ## Available Balance After the deduction of fees and tax, the payments received from your customers are added to your **Available Balance**. * This accumulated amount is settled to your bank account as per your settlement cycle. * We use your available balance to process chargebacks, refunds to your customers and settlements to your linked accounts. Always maintain sufficient available balance in your account to ensure your transactions do not fail. Your available balance is now segregated based on the channel type that is, **Online (Domestic transactions + International Cards), In-person and International**. ![account settings balances razorpay](https://razorpay.com/docs/build/browser/assets/images/account-settings-balances.jpg) > [!WARNING] > > **Watch Out!** > > * Refunds processed using your available balance incur no extra charges. We only deduct the refund amount. > * Fees and taxes from the original transaction are not reversed in you refund. As a result, you refund amount can be lesser than the original transaction. #### Negative Available Balance Negative available balance is when your available balance becomes less than zero. * If opening balance is โ‚น0, your negative balance is -โ‚น500 (due to 0-500). * If opening balance is โ‚น300, your negative balance is -โ‚น200 (due to 300-500). Negative balance impacts your customer satisfaction. Ensure you maintain sufficient available balance or add Reserve Balance. ## Reserve Balance Reserve Balance allows you to process refunds or settlements to linked accounts when you do not have a sufficient available balance/have [negative available balance](#negative-available-balance). The amount you add as the reserve balance becomes the maximum negative limit for your account. Your transactions up to this limit do not fail. > [!NOTE] > > **Handy Tips** > > Your Dashboard shows 2 different reserve balances: > > * **Reserve Balance**, on this page. You add this money yourself from your own bank account. It sits as a buffer so refunds and linked-account settlements still go through when your available balance runs low. > * **Reserve balance**, under **Settlements**. This is money we hold back from your international payments and release to you later, to cover chargebacks and disputes. You never add to it, and you cannot use it to cover a refund. Know more about [Reserves on International Payments](/docs/payments/settlements/reserves). ### How does Reserve Balance Work When your available balance becomes 0, we use your reserve balance to process transactions up to this limit, that is, โ‚น1000. Your transactions will not fail. * To increase your negative balance limit, you can [add funds to your reserve balance](#add-funds-to-reserve-balance) from the Dashboard. You will have to transfer funds to your reserve balance only once in most cases. * You can add funds to Reserve Balance using the Dashboard through either [UPI](#add-funds-to-reserve-balance) or [Bank Transfer](#add-funds-to-reserve-balance). > [!WARNING] > > **Watch Out!** > > Add funds only through the settlement account registered with us. ## Example of Available Balance and Reserve Balance Let us say you have an available balance of โ‚น0 and a reserve balance of โ‚น1,000 | Scenario | Without Reserve Balance | With Reserve Balance | | - | - | - | | Opening Balance | Available Balance โ†’ โ‚น0 Reserve Balance โ†’ โ‚น0 | Available Balance โ†’ โ‚น0 Reserve Balance โ†’ โ‚น1,000 | | You receive and capture payment of โ‚น1000. Let us say we charge a fee of โ‚น5 to process this transaction. | Available Balance โ†’ โ‚น995 Reserve Balance โ†’ โ‚น0 | Available Balance โ†’ โ‚น995 Reserve Balance โ†’ โ‚น1,000 | | You process a full refund of โ‚น1000 for the above payment. | The refund fails since you do not have a sufficient available balance. | The refund is successfully processed. Available Balance โ†’ negative โ‚น5 Reserve Balance โ†’ โ‚น1,000 | ### Add Funds to Reserve Balance You can add funds to Reserve balance through UPI or bank transfer payment methods. > [tab] Add Funds Using UPI > > To add funds to Reserve balance using UPI: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** in the left navigation. > 3. Click **Balances** under **Payments and refunds** section. > 4. Click **Add Funds**. > > ![Add Reserve balance](https://razorpay.com/docs/build/browser/assets/images/reserve-balance.jpg) > > 5. Select **UPI**. > 6. Enter the description and amount to be added. > 7. Click **Add Credits**. > 8. Enter the email and contact number on the checkout pop-up page and click **Proceed**. > 9. Select UPI, enter UPI ID or scan the QR, click **Pay Now** and complete the payment. > > Your Reserve balance is updated. > > > [!NOTE] > > > > **Handy Tips** > > > > It may take 2-3 hours for the Reserve balance to reflect in your Razorpay Account. > [tab] Add Funds Using Bank Transfer > > To add funds to Reserve balance using bank transfer: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** in the left navigation. > 3. Click **Balances** under **Payments and refunds** section. > 4. Click **Add Funds**. > 5. Select **Bank Transfer**. > 6. Copy the account number and IFSC code. > > ![Copy IFSC and account number](https://razorpay.com/docs/build/browser/assets/images/copy-ifsc.jpg) > > 7. Open your netbanking portal, create a beneficiary with these details and transfer the amount. > > > [!NOTE] > > > > **Handy Tips** > > > > It may take 2-3 hours for the Reserve balance to reflect in your Razorpay Account. ## Segregated Balances Razorpay now supports balance segregation based on payment channel type. If you are an omni-channel business (PG + POS) or a cross-border business, your balances are maintained separately for each channel type. > [accordion] Benefits > > * **No cross-channel fund mixing**: Complete isolation between Online (Domestic transactions + International Cards), In-Person and APM International funds. > * **Regulatory compliance**: Adherence to RBI guidelines on fund segregation. > * **Zero settlement failures**: Settlements never fail due to cross-channel balance issues. > * **Instant Settlements for all businesses**: Instant Settlements now available for omni-channel and cross-border businesses. > * **Automated POS rental collection**: Device rentals deducted only from In-Person balance. > * **Better visibility**: Clear channel-wise and balance view. ### Types of Segregated Balances | Channel Type | Description | Transactions Included | Additional Details | | - | - | - | - | | Online (Domestic transactions + International Cards) | Domestic online payments and international card transactions | PG domestic transactions (cards, UPI, netbanking and wallets), international card payments | Supports Instant Settlements. | | In-Person | POS terminal transactions | All POS/offline transactions | POS device rentals are automatically collected from this balance. Operates independently from online transactions. | | Alternate Payment Method (International) | Balance from international payment methods such as PayPal, Stripe and other cross-border payment methods | International bank transfers, cross-border payments via supported APM providers | Settled separately from domestic balances. Subject to forex conversion and international settlement timelines. | ### How Segregated Balances Work With balance segregation: * **Credit Operations**: When a payment is captured, it is credited to the appropriate balance based on the payment channel: * Domestic online payment โ†’ Online balance * International card payment โ†’ Online balance * POS transaction โ†’ In-Person balance * International APM payment โ†’ APM (International) balance * **Debit Operations**: Settlements, refunds, chargebacks and adjustments are processed only from the respective balance account. A refund for a POS payment will only debit from your PG In-Person balance. * **Independent Settlements**: Each balance account has its own settlement cycle and can have Instant Settlements enabled independently. ### View Segregated Balances You can view your segregated balances on the Dashboard: 1. Log in to the Dashboard. 2. On the Home Page, you will see separate balance cards for each active balance account. 3. Navigate to **Account & Settings** โ†’ **Balances** for a detailed view. Each balance card displays: * Current balance amount. * Channel type (Online (Domestic transactions + International Cards), In-Person or APM International). * Next settlement date. * Link to view settlement history. > [!NOTE] > > **Handy Tips** > > With segregated balances, your POS operations and online payments work completely independently. A high volume of online refunds will never affect your POS settlements and vice versa. ## FAQs > [accordion] Can I transfer funds between my segregated balances? > > No, inter-channel fund transfers are not supported to maintain regulatory compliance and fund isolation. > [accordion] How are refunds handled with segregated balances? > > Refunds are debited from the same balance where the original payment was credited. For example, an In-Person payment refund will debit from your In-Person balance, not your Online (Domestic transactions + International Cards) balance. > [accordion] Why are international card payments in the Online balance but international APM in a separate balance? > > International card transactions flow through similar payment rails as domestic cards, so they are grouped in the Online (Domestic transactions + International Cards) balance. International Alternate Payment Methods use different payment flows and are therefore maintained in a separate APM (International) balance for proper fund isolation. > [accordion] Will my Reserve Balance work with segregated balances? > > Reserve Balance functionality remains available. Contact our [support team](https://razorpay.com/support/) for specific configuration based on your balance structure. ### Related Information * [About Account and Settings](/docs/payments/dashboard/account-settings) * [About Dashboard](/docs/payments/dashboard) # Bank Account Details Source: https://razorpay.com/docs/payments/dashboard/account-settings/bank-account-details Steps to update your bank account details on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can request a change to your settlement (bank) account linked to your account. After you provide the necessary details and documents, we will verify the account and update the information. We will contact you if further clarifications are required. ## Change Bank Account Details To request a bank account change: 1. Log in to your Dashboard. 2. Click **Account & Settings** in the left navigation. 3. Click **Bank account details** under **Bank accounts and settlements** section and click **Change bank account**. 4. Enter the OTP sent to your registered mobile device on the **2-Step Verification** pop-up page. 5. Enter the details of the new bank account you want to link with your account. The new bank account will be your new settlement account. 6. Upload a copy of your account statement and click **Save**. > [!NOTE] > > **Handy Tips** > > * You will receive email notifications for the following: > * When you initiate a request to update the settlement bank account details. > * When the bank account details are successfully updated. > * We may reach out to you for clarification via email, SMS, and the Dashboard during the verification process. Navigate to **Account & Settings** and submit the necessary information in the appropriate section. Our team will go through the information you provide and help you resolve the issue. ### Resolve Bank Account Update Issues If you are unable to update your bank account details, you may contact our [support team](https://razorpay.com/support). To expedite the resolution, we require a short video of a **cancelled cheque**. This video helps us verify your bank details. Please ensure the below information is **clearly visible**: * **Beneficiary Name**: This must precisely match your business name as registered on Razorpay. * **Proprietorships**: The name can also match your promoter's PAN name. * **IFSC Code** * **Bank Account Number** > [!WARNING] > > **Watch Out!** > > **If the beneficiary name on your existing bank account does not match with your Razorpay-registered business name (or promoter's PAN name for proprietorship)**, you have two options: > > * **Open a new bank account** where the beneficiary name accurately reflects your registered business name or your promoter's PAN name on Razorpay. > * Or, you can **provide a letter on your bank's official letterhead**. This letter must be signed and sealed by your bank manager, explicitly affirming that the bank account number associated with the IFSC code belongs to your registered business name. # Business Details Source: https://razorpay.com/docs/payments/dashboard/account-settings/business-details Steps to view business details on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore While signing up for an account, you are required to provide information about your business, such as your Business Name and Type. These details are recorded on the Dashboard. ## View Business Details To view business details: 1. Log in to the Dashboard. 2. Click **Account & Settings** and navigate to **Business details** under **Business Settings**. 3. The following information is listed: * **Business Name** * **Business Type** * **Registration Date** * **Registered By** ![Razorpay Dashboard - Account & Settings - Business Details](https://razorpay.com/docs/build/browser/assets/images/payments-dashboard-business-details.jpg) # Business Website Details Source: https://razorpay.com/docs/payments/dashboard/account-settings/business-website-details Steps to add or update your business website or app details on the Razorpay Dashboard. You can also add or update additional website details. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You must provide your live website or mobile app details during account activation. * Without these details, you will not be able to access live mode API keys and hence **cannot accept payments from your website or app**. * You can still accept payments from customers using **Invoices** and **Payment Links** generated via the Dashboard. ## Add and Edit Website/App/Additional Websites > [tab] Add Website/Mobile App > > To add your website or mobile app details: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** in the left navigation. > 3. Click **Business website detail** under **Website and app settings** section. ![add website/app](https://razorpay.com/docs/build/browser/assets/images/acc-settings-dashboard-biz-website-details.jpg) > 4. Click **Add website/app details**. ![add website/app](https://razorpay.com/docs/build/browser/assets/images/biz-website-details.jpg) > 5. Click **Proceed to update website/app**. ![add website/app](https://razorpay.com/docs/build/browser/assets/images/proceed-update-biz-website-details.jpg) > 6. Select where you want to collect payments: **Website or App** ![add website/app](https://razorpay.com/docs/build/browser/assets/images/website-app-add-dashboard.jpg) > 7. Add test account **username and password**. > > ![add website/app](https://razorpay.com/docs/build/browser/assets/images/dashboard-add-business-website-details-test-acc-details.jpg) > > 8. Click **Submit** website for review. > [tab] Update Website/Mobile App > > To update website or mobile app details: > > 1. Log in to the Dashboard. > > 2. Click **Account & Settings** in the left navigation. > > 3. Click **Business website detail** under **Website and app settings** section. > > 4. Click **Edit** next to the website/app that you want to edit. ![add website/app](https://razorpay.com/docs/build/browser/assets/images/dashboard-edit-business-website-details.jpg) > > 5. Click **Proceed to update website/app**. ![add website/app](https://razorpay.com/docs/build/browser/assets/images/dashboard-proceed-edit-business-website-details.jpg) > > 6. Select **Website** or **App**, based on what you want to update. > > > [accordion] Follow these steps if you own a website: > > > > 1. Select **Website**. > > 2. Enter the **Website URL**. > > 3. Provide the links for these pages: **About us**, **Contact us**, **Pricing details**, **Terms and conditions**, **Privacy policy** and **Refunds policy**. > > 4. Upload a sample invoice. The accepted file formats are PNG, JPG and PDF. > > 5. Provide your website's **Test Account credentials** if required or select **No** for **Does your website require login from user to complete payment?** if logging in is not required. > > 6. Click **Submit website for review**. > > > > ![Enter Website URL](https://razorpay.com/docs/build/browser/assets/images/update-website.jpg) > > > > After the details are provided, our team will review the request. We will update the details on the Dashboard. > > > [accordion] Follow these steps if you own an app: > > > > 1. Select **App**. > > 2. Enter the **App URL**. > > 3. Provide your website's **Test Account credentials** if required or select **No** for **Does your app require login from user to complete payment?** if logging in is not required. > > 4. Click **Submit app for review**. > > > > ![Enter App URL](https://razorpay.com/docs/build/browser/assets/images/update-app.jpg) > > > > After the details are provided, our team will review the request. We will update the details on the Dashboard. > > > [!NOTE] > > > > **Handy Tips** > > > > We may reach out to you for clarifications via email, WhatsApp, SMS and Dashboard during the verification process. > > Navigate to **Account & Settings** and submit the necessary information in the appropriate section. Our team will go through the information you provide and help you resolve the issue. > [tab] Additional Website/Mobile App > > You can accept payments using your account on multiple websites. To do this, you need to share the details of the additional web pages with us. You can add one main website and five additional websites. > > > [!NOTE] > > > > **Handy Tips** > > > > This feature is available only if your services/products fall under the e-commerce business category. > > To add an additional website: > > 1. Log in to the Dashboard. > > 2. Click **Account & Settings** in the left navigation. > > 3. Click **Business website detail** under **Website and app settings** section. > > 4. Click **Add additional website/app details**. > > 5. Click **Proceed to update website/app**. > > ![add website/app](https://razorpay.com/docs/build/browser/assets/images/proceed-update-biz-website-details.jpg) > > 6. Provide the website or app details: > > > [accordion] Follow these steps if you own a website: > > > >
  1. Select **Website**.
  2. > >
  3. Enter the **Website URL**.
  4. > >
  5. Provide the links for these pages: **About us**, **Contact us**, **Pricing details**, **Terms and conditions**, **Privacy policy** and **Cancellation/Refund policy**.
  6. > >
  7. **Upload invoice**: Upload a sample invoice. The accepted file formats are PNG, JPG and PDF.
  8. > >
  9. **Reason for adding new website**: Enter the reason for adding a new website. Enter a minimum of 50 words.
  10. > >
  11. Provide your website's **Test Account credentials** if required or select **No** for **Does your website require login from user to complete payment?** if logging in is not required.
  12. > >
  13. Click **Submit website for review**.
![add website/app](https://razorpay.com/docs/build/browser/assets/images/dashboard-additional-website-details.jpg) > > > [accordion] Follow these steps if you own an app: > > > > 1. Select **App**. > > 2. Enter the **App URL**. > > 3. **Reason for adding new website**: Enter the reason for adding a new website. Enter a minimum of 50 words. > > 4. Provide your website's **Test Account credentials** if required or select **No** for **Does your app require login from user to complete payment?** if logging in is not required. > > 5. Click **Submit app for review**. > > > > ![add website/app](https://razorpay.com/docs/build/browser/assets/images/dashboard-additional-app-details.jpg) > > > > After you provide the details, our team will review the request. We will update the details on the Dashboard. * If you add or update your **primary website**, instant checks are run to validate your website, policy pages and business industry. In case the website requirements are not met, you can re-check and enter the valid URLs as prompted or create policy pages with Razorpay. ![Update website checks](https://razorpay.com/docs/build/browser/assets/images/website-dashboard-checks.jpg) * If you add or update **additional websites**, our team will review manually and notify you. # Capture and Refund Settings Source: https://razorpay.com/docs/payments/dashboard/account-settings/capture-refund Steps to configure payment capture and refund settings on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can accept online payments from your customers. When a customer makes a payment, it usually flows through different [payment states](/docs/payments/payments#payment-life-cycle). Check how to [capture payments](/docs/payments/dashboard/account-settings/capture-refund#payment-capture-settings) and [set refunds](/docs/payments/dashboard/account-settings/capture-refund#choose-refund-speed). ## Payments in Authorised state By default, once your customer completes a payment, it is automatically moved to the `captured` state. However, the payment can remain in the `authorized` state in the following scenarios:\ * **Late authorization**: Due to external factors such as network issues or technical errors, Razorpay may not immediately receive payment status from the bank. In this case, Razorpay polls the APIs intermittently for 3 days to check the status. If we receive the payment status as successful, the payment is moved to the `authorized` state. Know more about [late authorization](/docs/payments/payments/late-authorisation). * **Specific business use case**: Some businesses such as those in the Ecommerce industry, may retain the payment in the `authorized` state and later move them to the `captured` state. > [!WARNING] > > **Watch Out!** > > * For businesses which have the **Direct Settlement** feature enabled, payments will be auto-captured irrespective of the configuration. > * You must ensure that all payments in theย authorizedย stateย are movedย toย the capturedย state withinย 3ย days of creation.ย Thisย is mandatory because paymentsย thatย areย not capturedย within this period will be refunded automatically to customers. ## Payment Capture Settings You can configure **Payment Capture settings** on the Dashboard. You can choose to: * [Auto-capture all payments](/docs/payments/payments/capture-settings#auto-capture-all-payments) * [Auto-capture with set timeouts](/docs/payments/payments/capture-settings#auto-capture-with-custom-timeouts) * [Manually capture timeout](/docs/payments/payments/capture-settings#manual-capture-timeout) ## Choose Refund Speed You can make Normal Refunds or Instant Refunds. You can also issue refunds in batches. Know more about [Refunds](/docs/payments/refunds). 1. Log in to the Dashboard. 2. Click **Account & Settings**. 3. Click **Capture and refund settings** under **Payments and refunds**. 4. You can choose the type of refund you wish to make a default setting. # Checkout Features Source: https://razorpay.com/docs/payments/dashboard/account-settings/checkout-features Customise your checkout experience with options for language settings, email collection, quick flash checkout, personalised banners and more on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Customise your checkout experience on the Dashboard by setting a default language, enabling email collection , activating flash checkout, making the summary page mandatory and adding a custom banner message to enhance customer engagement. > [card] [Default Language](/docs/payments/dashboard/account-settings/checkout-features#default-language) > > Set the default language for your checkout page when customers don't specify one. > [card] [Collect Email Address From Customers](/docs/payments/dashboard/account-settings/checkout-features#collect-email-address-from-customers) > > Configure the email address field to collect customer email addresses on checkout. > [card] [Flash Checkout](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout) > > Let customers securely save their card details for faster transactions. > [card] [Message Banner](/docs/payments/dashboard/account-settings/checkout-features#message-banner) > > Show custom messages to highlight offers, discounts or important updates. > [card] [Mandate Summary Page](/docs/payments/dashboard/account-settings/checkout-features#mandate-summary-page) > > Display the mandate summary screen for card payments to your users. > [card] [FAQs](/docs/payments/dashboard/faqs#checkout-settings) > > Find answers to frequently asked questions about checkout settings. > [!NOTE] > > **Handy Tips** > > * All the below changes will reflect on [Checkout page](/docs/payments/payment-gateway), [Invoices](/docs/payments/invoices), [Payment Button](/docs/payments/payment-button), [Webstore](/docs/payments/webstore), [Payment Links](/docs/payments/payment-links) and [Payment Pages](/docs/payments/payment-pages). > * You can switch between mobile and desktop views to preview changes. ## Default Language The customers can [view the Checkout page in their preferred language](/docs/payments/payment-gateway/features). If the customer does not specify a language, the default language will be used on the checkout page. > [accordion] To select the default checkout language: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Features** in the **Checkout settings** section. > 3. Select the default language from the drop-down list. For example, **English**. > 4. Click **Save all changes**. > > ![select default language](https://razorpay.com/docs/build/browser/assets/images/checkout-default-language.gif) ## Collect Email Address From Customers By default, the email address field is hidden on checkout. You can choose to configure the email address field based on your requirement. > [accordion] To configure email address field: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Features** in the **Checkout settings** section. > 3. Turn on **Collect email from customers**. > 4. Select either of the following options: > * **Optional (Default)**: Customers can either enter their email address or choose to skip it. > * **Mandatory**: Customers have to enter their email address to proceed. > 5. Click **Save all changes**. > > ![Configure email address field](https://razorpay.com/docs/build/browser/assets/images/checkout-collect-email.jpg) ## Flash Checkout Use Flash Checkout to let your customers securely save their credit and/or debit card details with Razorpay, thereby reducing transaction time. * Customers need to authenticate themselves only once on their mobile devices. Razorpay is PCI-DSS compliant. All the card information is securely saved on our servers. * After the one-time authentication, customers' saved cards are available to accept payments online via Razorpay. > [accordion] To enable flash checkout: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Features** in the **Checkout settings** section. > 3. Toggle on the **Flash checkout** field. > 4. Click **Save all changes**. > > ![Enable flash checkout](https://razorpay.com/docs/build/browser/assets/images/checkout-flash-checkout.jpg) ## Message Banner Show a custom message to your customers on checkout to highlight promotional offers, discounts or important updates, enhancing their shopping experience. > [accordion] To show a message banner: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Features** in the **Checkout settings** section. > 3. Toggle on the **Message banner** field. > 4. Enter your custom message. > 5. Click **Edit** to select the banner color as preferred. > 6. Click **Save all changes**. > > ![Show a message banner](https://razorpay.com/docs/build/browser/assets/images/checkout-message-banner.gif) ## Mandate Summary Page You can display the mandate summary screen for credit and debit card payments to your users. > [accordion] To show mandate summary page: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Features** in the **Checkout settings** section. > 3. Toggle on the **Mandate summary page** field. > 4. Click **Save all changes**. > > ![Show mandate summary page](https://razorpay.com/docs/build/browser/assets/images/checkout-summary-page.jpg) ## Order Banner Display order milestone badges at checkout to boost customer trust and credibility. These badges highlight real order volumes, reassuring customers of your reliability and encouraging them to complete their purchase. For example, if your store has processed 10,000+ successful orders, the badge showcases this achievement, reinforcing trust. > [accordion] To display order milestone banner: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Features** in the **Checkout settings** section. > 3. Toggle on the **Order banner** field. > 4. Click **Save all changes**. > > ![Display order banner](https://razorpay.com/docs/build/browser/assets/images/order-banner.jpg) > [!WARNING] > > **Watch Out!** > > * This feature is automatically enabled and currently available only for businesses with [RTB](/docs/payments/widgets/trusted-business) enabled. > * If a [message banner](#message-banner) exists on the checkout page, the badge information seamlessly integrates within the same section using vertical scrolling. ### Related Information [FAQs](/docs/payments/dashboard/faqs#checkout-settings) # Checkout Styling Source: https://razorpay.com/docs/payments/dashboard/account-settings/checkout-styling Customise your checkout with your brand's colours, logos, fonts, and more on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Customise your Checkout to match your brand's identity by adjusting colors, logos, brand name and logo, fonts, border styles, and sidebar graphics. Additionally, you can show the Razorpay Trusted Business Badge to enhance customer trust in your brand. > [card] [Festive Theme](/docs/payments/dashboard/account-settings/checkout-styling#festive-theme) > > Customise your checkout with festive-themed animations and graphics according to the seasonal celebrations. > [card] [Background Colour](/docs/payments/dashboard/account-settings/checkout-styling#background-colour) > > Customise the checkout background colour according to your brand colour. > [card] [Brand Name and Logo](/docs/payments/dashboard/account-settings/checkout-styling#brand-name-and-logo) > > Decide how you want to display your brand name and logo on checkout. > [card] [Border Style](/docs/payments/dashboard/account-settings/checkout-styling#border-style) > > Choose the border style for various elements on your checkout. > [card] [Font](/docs/payments/dashboard/account-settings/checkout-styling#font) > > Select a font for your brand to apply to all text on the checkout. > [card] [Sidebar Graphic](/docs/payments/dashboard/account-settings/checkout-styling#sidebar-graphic) > > Enhance your checkout sidebar with a decorative graphic. > [card] [Razorpay Trusted Badge](/docs/payments/dashboard/account-settings/checkout-styling#razorpay-trusted-badge) > > Show the Razorpay Trusted Badge to build credibility as a trusted business. > [card] [FAQs](/docs/payments/dashboard/faqs#checkout-settings) > > Find answers to frequently asked questions about checkout settings. > [!NOTE] > > **Handy Tips** > > * All the below changes will reflect on **Checkout** page, **Invoices**, **Payment Button**, **Webstore**, **Payment Links** and **Payment Pages** > * You can switch between mobile and desktop views to preview changes. ## Festive Theme Customise your checkout with festive-themed animations and graphics according to the seasonal celebrations. > [accordion] To add festive theme: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Styling** under **Checkout settings** section. > 3. Toggle on the **Festive Theme** field. > 4. Click **Save all changes**. > > ![Enable festive theme](https://razorpay.com/docs/build/browser/assets/images/checkout-festive-theme.gif) ## Background Colour You can customise the checkout background colour according to your brand colour. > [accordion] To edit background colour: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Styling** under **Checkout settings** section. > 3. In the **Background Color** field, click **Edit**. > 4. You can choose to enter the RGB, HSL or HEX code of your brand colour. > 5. Click **Save all changes**. > > ![Edit background colour](https://razorpay.com/docs/build/browser/assets/images/checkout-background-colour.gif) ## Brand Name and Logo Decide how you want to display your brand name and logo on checkout. You can update the brand name displayed to your customers in the following places: > [!NOTE] > > **Handy Tips** > > * You can update the brand name only to one that is at least 80% similar to the company name or domain name. > * This feature is available for both registered and individual businesses. > * Only users with 'Owner' or 'Admin' roles can update the brand name. > * Bank-related SMS or credit card statements sent to customers will not have the brand name since these are managed by the banks and not Razorpay. Such communication will display the billing name provided by you during account creation and activation process. > [accordion] To edit brand name and logo: > > 1. Log in to the Dashboard. > > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Styling** under **Checkout settings** section. > > 3. In the **Brand name and logo** field, click **Edit**. > > ![Edit brand name and logo](https://razorpay.com/docs/build/browser/assets/images/checkout-title-style.jpg) > > 4. Choose a title style based on your requirement. > > ![Select title style](https://razorpay.com/docs/build/browser/assets/images/checkout-title-style-select.jpg) > > > [tab] Logo & Text > > > > Best for square logos, displaying both your logo and brand name. > > > > 1. Click **Continue to upload**. > > 2. Enter your brand name or business name. > > 3. Drag the file or click **Upload** to add your logo. > > 4. Click **Save and continue**. > > > [tab] Wordmark > > > > Ideal for long, word-based logos, focusing on your brand's name as the main identifier. > > > > 1. Click **Continue to upload**. > > 2. Drag the file or click **Upload** to add your logo. > > 3. Click **Save and continue**. > > > [tab] Text only > > > > Displays only your brand name in text format, without a logo. > > > > 1. Click **Continue to upload**. > > 2. Enter your brand name or business name. > > 3. Click **Save and continue**. > > 5. Click **Save all changes**. ## Border Style Choose the border style for various elements on your checkout, such as the checkout, logo, account and payment options. > [accordion] To edit border style: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Styling** under **Checkout settings** section. > 3. In the **Border style** field, you can select **rounded** or **sharp** border style based on your requirement. > 4. Click **Save all changes**. > > ![Edit border style](https://razorpay.com/docs/build/browser/assets/images/checkout-border-style.gif) ## Font Select a font for your brand based on your requirement. > [accordion] To edit font: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Styling** under **Checkout settings** section. > 3. In the **Font** field, select a font for your brand from the drop-down list to apply it to all text on the checkout. > 4. Click **Save all changes**. > > ![Edit font](https://razorpay.com/docs/build/browser/assets/images/checkout-font.gif) ## Sidebar Graphic Enhance your checkout sidebar with a decorative graphic. This setting is available only in desktop view. > [accordion] To add sidebar graphic: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Styling** under **Checkout settings** section. > 3. Toggle on the **Sidebar graphic** field and select a design pattern that fits your needs. > 4. Click **Save all changes**. > > ![Add sidebar graphic](https://razorpay.com/docs/build/browser/assets/images/checkout-sidebar-graphic.gif) ## Razorpay Trusted Badge Show the Razorpay trusted badge on your checkout to build credibility as a trusted business. This reassures your customers (who otherwise might have dropped off due to lack of trust) that they can safely transact with your brand. Know more about [Razorpay trusted badge](/docs/payments/payment-gateway/features/trusted-business#how-razorpay-trusted-business-badge-works). > [accordion] To enable Razorpay trusted badge: > > 1. Log in to the Dashboard. > 2. Navigate to **Accounts & Settings** โ†’ **Checkout Styling** under **Checkout settings** section. > 3. Toggle on the **Razorpay trusted badge** field. > 4. Click **Save all changes**. > > ![Show Razorpay trusted badge on checkout](https://razorpay.com/docs/build/browser/assets/images/checkout-rtb.jpg) # Credits Source: https://razorpay.com/docs/payments/dashboard/account-settings/credits Know about the Amount credits, Fee credits and Refund credits available to you. Manage them and configure alerts from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India There are three types of credits [Amount credits](#amount-credits), [Fee credits](#fee-credits) and [Refund credits](#refund-credits). You can view and add funds to these credits from the Dashboard. Also, you can [configure alerts](#credit-alerts) to receive email notifications when your credits fall below the set threshold. ![Manage Credits on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/credits-overview.jpg) ## Amount Credits Amount credits are the credits against which you can receive payments without any fee deduction. > [!WARNING] > > **Amount credits availability for businesses** > > Amount credits are not applicable for the following payment instruments (applicable to all businesses): > > * EMI payments > * International card transactions > * American Express (AMEX) cards > * Diners Club cards > * Prepaid cards > * Corporate credit cards > [accordion] Example > > If you have a credit of , you will not be charged any fees for payments up to . However, if a transaction exceeds (for example, ), fees apply to the entire amount, and you cannot use your credits for this transaction. Amount credits might be assigned to your account during sign-up if Razorpay runs promotional campaigns. > [accordion] View Amount Credits > > You can view the Amount credits assigned to your Razorpay Dashboard account. However, you cannot add any funds to this credit. > > To view Amount credits history: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** in the left navigation. > 3. Click **Credits** under **Payments and refunds** section. > 4. Click **Past Coupons** under **Amount Credits**. > > ![View amount credits on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-credits-amount-credits.jpg) > > A list of Amount credits assigned to the account in the past is displayed. ## Fee Credits Fee credits are the credits using which businesses can receive the full settlement amount without any fee deduction. Specific business categories use these credits to help them meet regulatory requirements. > [accordion] Example > > If you have a fee credit of , all the transactions will be settled in full, and the fees for these payments will be deducted from the โ‚น100 fee credit. > [accordion] Add Fee Credits > > You can add funds to Fee credits using the Dashboard through UPI or Bank Transfer. > > > [!WARNING] > > > > **Watch Out!** > > > > You should add funds only through the settlement account registered with us. > > > [tab] Add Fee Credits Using UPI > > > > To add Fee Credits using UPI: > > > > 1. Log in to the Dashboard. > > 2. Click **Account & Settings** in the left navigation. > > 3. Click **Credits** under **Payments and refunds** section. > > 4. Click **Add Fee Credits**. > > > > ![Add Fee Credits](https://razorpay.com/docs/build/browser/assets/images/add-fee-credits.jpg) > > 5. Select **UPI**. > > 6. Enter the description and amount to be added. > > 7. Click **Add Credits**. > > 8. Enter the email and contact number on the checkout pop-up page and click **Proceed**. > > 9. Select UPI, enter UPI ID or scan the QR, click **PayNow** and complete the payment. > > > > Your Fee credits balance is updated. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > It may take 2-3 hours for the credits to reflect in your Razorpay account. > > > [tab] Add Fee Credits Using Bank Transfer > > > > To add Fee Credits using Bank Transfer: > > > > 1. Log in to the Dashboard. > > > > 2. Click **Account & Settings** in the left navigation. > > > > 3. Click **Credits** under **Payments and refunds** section. > > > > 4. Click **Add Fee Credits**. > > > > ![Add fee credits](https://razorpay.com/docs/build/browser/assets/images/add-fee-credits.jpg) > > > > 5. Select **Bank Transfer**. > > > > 6. Copy the account number and IFSC code. > > > > ![Copy IFSC and account number](https://razorpay.com/docs/build/browser/assets/images/copy-ifsc.jpg) > > > > 7. Open your netbanking portal, create a beneficiary with these details and transfer the amount. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > It may take 2-3 hours for the credits to reflect in your Razorpay account. > > Your Fee credits balance is updated. > [accordion] View Fee Credit History > > You can view the Fee credits previously added by you. > > To view Fee credit history: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** in the left navigation. > 3. Click **Credits** under **Payments and refunds** section. > 4. Click **View History** under **Fee Credits**. > > A list of Fee credits previously added by you is displayed. > > ![View fee credit history](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-credits-fee-credit-history.jpg) ## Refund Credits Refund credits are the credits you can use to make refunds to customers. This ensures that the refunds are not made from your settlement amount but from a separate credit pool. > [accordion] Example > > If you have a Refund credit of , any refunds to be processed will be deducted from this credit and not from the actual payment. > [accordion] Add Refund Credits > > You can add funds to Refund credits using the Dashboard through either UPI or Bank Transfer. > > > [!WARNING] > > > > **Watch Out!** > > > > You should add funds only through the settlement account registered with us. > > > [tab] Add Refund Credits Using UPI > > > > To add Refund credits using UPI: > > > > 1. Log in to the Dashboard. > > 2. Click **Account & Settings** in the left navigation. > > 3. Click **Credits** under **Payments and refunds** section. > > 4. Click **Add Refund Credits**. > > > > ![Add refund credits from the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/add-refund-credits.jpg) > > 5. Select **UPI**. > > 6. Enter the description and amount to be added. > > 7. Click **Add Credits**. > > 8. Enter the email and contact number on the checkout pop-up page and click **Proceed**. > > 9. Select UPI, enter UPI ID or scan the QR, click **PayNow** and complete the payment. > > > > Your Refund credits balance is updated. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > It may take 2-3 hours for the credits to reflect in your Razorpay account. > > > [tab] Add Refund Credits Using Bank Transfer > > > > To add Refund credits using bank transfer: > > > > 1. Log in to the Dashboard. > > > > 2. Click **Account & Settings** in the left navigation. > > > > 3. Click **Credits** under **Payments and refunds** section. > > > > 4. Click **Add Refund Credits**. > > > > ![Add refund credits](https://razorpay.com/docs/build/browser/assets/images/add-refund-credits.jpg) > > > > 5. Select **Bank Transfer**. > > > > 6. Copy the account number and IFSC code. > > > > ![Copy IFSC and account number](https://razorpay.com/docs/build/browser/assets/images/copy-ifsc.jpg) > > > > 7. Open your netbanking portal, create a beneficiary with these details and transfer the amount. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > It may take 2-3 hours for the credits to reflect in your Razorpay account. > [accordion] View Refund Credit History > > You can view the Refund credits previously added by you. > > To view Refund credit history: > > 1. Log in to the Dashboard. > 2. Click **Account & Settings** in the left navigation. > 3. Click **Credits** under **Payments and refunds** section. > 4. Click **View History** under **Refund Credits**. > > A list of Refund credits previously added by you is displayed. > > ![View refund credit history](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-credits-refund-credit-history.jpg) ## Credit Alerts You can configure alerts to receive email notifications when any of your credits fall below the set threshold amount. This helps you monitor your credit balance and add funds to them whenever necessary. You can set three alert levels, wherein: * Alert Level 1: Level set by you on the Dashboard. * Alert Level 2: Automatically set as 50% of Alert Level 1. * Alert Level 3: Automatically set as 25% of Alert Level 1. > [accordion] Example > > You can set your Refunds credit alert as . This means that whenever your Refund credits balance falls below: > > * : The first email is sent to your registered email address. > * : The second email is sent. > * : The third and final email is sent. > [accordion] Configure Credit Alerts > > You can configure credit alerts using the Dashboard. > > To configure alerts: > > 1. Log in to the Dashboard. > > 2. Click **Account & Settings** in the left navigation. > > 3. Click **Credits** under **Payments and refunds** section. > > 4. Click **Manage Alerts**. > > 5. Set up the alerts for each credit type. You need to enter the value of Alert Level 1 only. > > > [!NOTE] > > > > **Handy Tips** > > > > If you do not want to receive any alerts, set the value to `0`. # Customer Support Details Source: https://razorpay.com/docs/payments/dashboard/account-settings/customer-support-details Steps to add or update your business' customer support details on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore You can add your support details to the transaction emails sent to your customers. This will help your customers know how to reach you for any queries. ## Add Support Details To add support details: 1. Log in to the Dashboard. 2. Click **Account & Settings** and navigate to **Customer support details** under **Business settings** section. ![Add Customer Support Details on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/payments-dashboard-customer-support-details-add.jpg) 3. Click **Add** and enter: * Phone Number * Email * Website/ Contact Us Link 4. Click **Submit**. ## Edit Support Details To edit support details: 1. Log in to the Dashboard. 2. Click **Account & Settings** and navigate to **Customer support details** under **Business settings** section. 3. Navigate to the phone number, email or website/contact us link field and click **Edit**. ![Edit Customer Support Details on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/payments-dashboard-customer-support-details-edit.jpg) 4. Click **Submit**. # Email, SMS and WhatsApp Notifications Source: https://razorpay.com/docs/payments/dashboard/account-settings/email-sms-whatsapp Steps to add or update notification settings on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore You can configure email, SMS and WhatsApp notification settings on the Dashboard. ## Manage Email Notifications You can configure the email addresses to receive email notifications like payments received, daily payment reports and webhooks. You will also receive an email notification for both successful and failed settlements. > [!NOTE] > > **Handy Tips** > > Settlement emails will be sent to the email addresses provided on the Dashboard. > [accordion] To enable email notifications: > > 1. Log in to the Dashboard. > 2. Click **Accounts & Settings** and go to **Email** under **Notification settings**. > 3. Enter email addresses under **Email Notifications**. If you want to enter multiple email addresses, separate them by a comma. ## Manage SMS Notifications You can enable **SMS Notifications** to receive SMS notifications for successful and failed settlements. > [accordion] To enable SMS notifications: > > 1. Log in to the Dashboard. > 2. Click **Accounts & Settings** and go to **SMS** under **Notification settings**. > 3. Enable **SMS Notifications**. > > ![Manage SMS Notifications](https://razorpay.com/docs/build/browser/assets/images/manage-sms-notifications.jpg) > > After SMS notifications are enabled, you start receiving notifications on the registered phone number. By default, this feature is set to **Enabled**. You can disable it using the toggle button. ## Manage WhatsApp Notifications You can receive WhatsApp notifications regarding settlements, account configuration changes and more on your registered contact number. You can enable this feature during the sign-up process or later from the Dashboard. > [!NOTE] > > **Handy Tips** > > This feature is available only to the owner user role. Know about the various [user roles](/docs/payments/dashboard/account-settings/manage-team). > [accordion] To enable WhatsApp notifications: > > 1. Log in to the Dashboard. > 2. Click **Accounts & Settings** and go to **WhatsApp** under **Notification settings**. > 3. Enable **WhatsApp Notifications**. > > ![Manage WhatsApp Notifications](https://razorpay.com/docs/build/browser/assets/images/manage-whatsApp-notifications.jpg) > > After WhatsApp notifications are enabled, you start receiving notifications on the registered number. You can disable the WhatsApp notifications from the Dashboard. # FIRS Source: https://razorpay.com/docs/payments/dashboard/account-settings/firs Steps to generate FIRS certificate from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India FIRS Certificate is a document that acts as evidence that you have received funds from a foreign country. The document is recognised as proof in scenarios such as getting GST refunds, claiming drawbacks from the government, or being required by beneficiary banks for compliance purposes. You can now generate FIRS from the Dashboard. Know more about [FIRS Automated Process](/docs/payments/international-payments/firs-automated-process). ## Generate FIRS Certificate All new and existing users accepting international payments can easily obtain the FIRS certificate on the Dashboard in a downloadable format. To generate FIRS certificate: 1. Log in to the Dashboard and navigate to **Account & Settings**. 2. Under **International payment settings** click **Foreign inward remittance statement (FIRS)**. 3. You can view a list of FIRS certificates based on your monthly transactions in a downloadable format. ![List of FIRS certificates](https://razorpay.com/docs/build/browser/assets/images/pay-ip-firs-view-new.jpg) 4. There are two sections. * The FIRS certificates provided by the bank. * Razorpay-generated statements. > [!NOTE] > > **Handy Tips** > > Razorpay-generated statements act as an alternative to FIRS certificates provided by banks. ![List of FIRS certificates downloadable format](https://razorpay.com/docs/build/browser/assets/images/pay-ip-firs6.jpg) If the FIRS is not generated from the bank or you need a consolidated list of FIRS, click on **Request for Razorpay Statement**. You can view or download the FIRS certificate from your Dashboard. ![FIRS request screen](https://razorpay.com/docs/build/browser/assets/images/pay-no-firs.jpg) > [!NOTE] > > **Handy Tips** > > Generating reports can take up to 1 hour. > > ![FIRS request sent screen](https://razorpay.com/docs/build/browser/assets/images/pay-firs-request-new.jpg) # GST Details Source: https://razorpay.com/docs/payments/dashboard/account-settings/gst-details Steps to view your business' GST details on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India While signing up for a Razorpay account you are required to provide GST-related information. You can find these details recorded on the Dashboard. ## View GST Details To view GST details: 1. Log in to the Dashboard. 2. Click **Account & Settings** and navigate to **GST Details** under **Business settings** section. 3. The following information is listed: * **GST Number** * **Registered Address** * **Status** * **Razorpay's GST Number** ## Add or Update GST details You can add or update your GST details from the Dashboard. Your account details like name, business name and registered address will change as per the updated GST details. > [!NOTE] > > **Handy Tips** > > * This feature is available only for registered Razorpay users. > * Only users with 'Owner' or 'Admin' roles can add or update the GST details. To add or update GST details: 1. Log in to the Dashboard. 2. Click **Account & Settings** in the left navigation. 3. Click **GST details** under **Business settings** section. * To add your GST details, click **Add GST details**. ![Add GST details on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-profile-add-gst-details.jpg) * To update your GST details, click **Update GST details**. 4. In the **Add GST details** pop-up page: * Enter the GSTIN. This will appear on the invoices sent by Razorpay. * Upload a copy of the GSTIN Certificate and click **Submit**. ![Submit GST details on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-profile-add-gst.jpg) After you provide the details, our team will review the request. During the verification process, we may reach out to you for clarifications. ### Frequently Asked Question (FAQs) > [accordion] After updating the GST details, will the older invoices still be associated with my old GST value? > > Yes, invoices downloaded before updating the GST details will have the older value of GSTIN associated with them. # International Payment Codes Source: https://razorpay.com/docs/payments/dashboard/account-settings/international-payment-codes Steps to configure international payment codes (purpose code, IEC code, HS code) on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay allows foreign (non-Indian) businesses to accept payments from Indian customers without any additional paperwork or registration. ## Accept Payments From Indian Customers Follow the steps given below to onboard and accept payments from Indian customers: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings**. 3. You must provide the Purpose Code information when applying for international payments. 1. Click **International Payment Codes** under **International payment settings**. ![International payment codes](https://razorpay.com/docs/build/browser/assets/images/firs-purpose-code-update-new.jpg) 2. Update your purpose code under the **International Payment Codes** section. ![Purpose code update](https://razorpay.com/docs/build/browser/assets/images/firs-purpose-code-update2-new.jpg) 3. Select the appropriate **Purpose Code**. Based on your business requirements, you also need to provide your **HS Code** or **IEC Code**. > [tab] Add HS Code > > 1. Click **International Payment Codes** under **International payment settings**. > > 2. Update your HS Code under the **International Payment Codes** section. > > 3. Select the appropriate **Harmonised System Code**, also known as HS Code. > > > [!NOTE] > > > > **Handy Tips** > > > > * For Software: HSCode is **85238020** and HSDescription is **Other Information technology software**. > > * For Goods: Refer to the list from the [DGFT website](https://www.dgft.gov.in/CP/). > [tab] Add IEC Code > > 1. Click **International Payment Codes** under **International payment settings**. > > 2. Update your **IEC Code** under the **International Payment Codes** section. > > 3. Select the appropriate **Purpose Code**. > > 4. Enter the 10-digit Importer/Exporter Code (IEC) and click **Next**. > > ![Import Export Code](https://razorpay.com/docs/build/browser/assets/images/import-export-code.jpg) > > > [!WARNING] > > > > **Watch Out!** > > > > The IEC is a code issued by the Indian Director General of Foreign Trade (DGFT) to Indian companies that intend to export from India. You can apply for an IEC at the [DGFT website](https://www.dgft.gov.in/CP/). > > > > The IEC code input screen appears for specific purpose codes, (P0103) being one of them. 4. Review and click **Confirm**. The Razorpay Activation/Operations team verifies the selected **Purpose Code**. As consumers or buyers, you get an option to make payments through the Razorpay Payment Gateway. On selecting Razorpay, various payment methods will be displayed on Razorpay checkout to complete the payment. # Manage Team Source: https://razorpay.com/docs/payments/dashboard/account-settings/manage-team Manage your team, add or remove users and provide appropriate roles to control access on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Manage your team of users who can access the Dashboard. You can provide specific access to a user or a set of users. **Example** You need someone in your organisation to perform day-to-day operations such as handling refunds and settlements. In this case, you can give Dashboard access to a person and assign the **Operations** role. This limits their access to actions related to refunds and settlements only. ## Standard User Roles There are some predefined user roles that you can assign to your team members. You can use these roles to limit a user's access to the Dashboard. Check each role and the permissions associated with it. > [accordion] Owner > > **Actions Allowed** > > > [accordion] Pseudo Owner > > The Pseudo Owner role provides full owner-level access to trusted team members for business continuity when the primary owner is unavailable (on leave, travel or emergencies). This role has identical permissions to the Owner role with enhanced audit tracking. > > **Actions Allowed** > > > > **Actions Not Allowed** > > * Delete the primary owner account > > > [!WARNING] > > > > **Watch Out!** > > > > * Maximum of 2 Pseudo Owners allowed per Razorpay account. > > * Assignment requires additional authentication (OTP/2FA). > > * Owner receives email confirmation when a Pseudo Owner is assigned. > > * All actions are logged with "Pseudo Owner" designation for audit purposes. > [accordion] View-Only (Auditor) > > The View-Only role provides complete visibility into all Dashboard data without any ability to perform actions or make changes. This role is designed for stakeholders who need to monitor, review or audit your payment operations. > > **Actions Allowed** > > > > **Actions Not Allowed** > > > > > [!WARNING] > > > > **Watch Out!** > > > > * All operational buttons (Refund, Create Payout, Edit Settings, Save) are hidden or disabled. > > * Form fields on configuration pages are displayed in read-only mode. > > * Attempting any restricted action displays: "Permission Denied. Please contact the owner." > > * All page views are logged for audit and compliance purposes. > > > [!NOTE] > > > > **View-Only (Auditor) Role is Best For** > > > > * Internal and external auditors > > * Compliance officers > > * Senior management and executives > > * Business analysts > > * Regulatory reviewers > [accordion] Admin > > **Actions Allowed** > > > > **Actions Not Allowed** > > * Manage Teams > [accordion] Manager > > **Actions Allowed** > > > > **Actions Not Allowed** > > > [accordion] Operations > > **Actions Allowed** > > > > **Actions Not Allowed** > > > [accordion] Finance > > **Actions Allowed** > > > > **Actions Not Allowed** > > > [accordion] ePos > > **Actions Allowed** > > > > **Actions Not Allowed** > > > [accordion] Dispute Manager > > The Dispute Manager role is designed for team members who handle chargebacks and payment disputes. This role provides focused access to dispute management functions while restricting access to sensitive financial operations. > > **Actions Allowed** > > * View all disputes and dispute details > * Accept disputes > * Contest disputes and submit evidence > * Download dispute reports > * Search and filter disputes > * View dispute summary metrics (pending, accepted, contested) > > **Actions Not Allowed** > > > > > [!NOTE] > > > > **Dispute Manager Role is Best For** > > > > * Dedicated chargeback teams. > > * Customer support specialists handling dispute cases. > > * Third-party dispute management agencies. > [accordion] Marketing (Offers Manager) > > **Actions Allowed** > > > > **Actions Not Allowed** > > > [accordion] Finance Manager > > **Actions Allowed** > > > > **Actions Not Allowed** > > > [accordion] Fraud Operations > > **Actions Allowed** > > > > **Actions Not Allowed** > > > [accordion] Fraud Analyst > > **Actions Allowed** > > > > **Actions Not Allowed** > > > [accordion] R\&D > > The R\&D role is designed for developers and engineering teams who need to configure and troubleshoot webhooks without access to payments, settlements or other financial operations. > > **Actions Allowed** > > > > **Actions Not Allowed** > > > [accordion] Support > > **Actions Allowed** > > > > **Actions Not Allowed** > > > [!NOTE] > > **Handy Tips** > > A team member can be assigned only one role, as each role is tied to a specific email address. A user can have multiple roles if they have different email addresses. > [!NOTE] > > **Handy Tips** > > * A team member should be assigned a role as the role is tied to an email address. A user can have multiple roles if they have different email ids. > * Use the [Dispute Manager](/docs/payments/dashboard/account-settings/manage-team#dispute-manager) role for team members who only need to handle chargebacks without access to refunds or bank details. > * Use the [Pseudo Owner](/docs/payments/dashboard/account-settings/manage-team#pseudo-owner) role sparingly for trusted individuals who need to manage the account when the Owner is unavailable. > * Use the [View-Only](/docs/payments/dashboard/account-settings/manage-team#view-only-auditor) role for auditors and stakeholders who need visibility without operational access. > [accordion] Invite a Registered User > > 1. Log in to the Dashboard. > 2. Navigate to the **Account & Settings** โ†’ **Business settings** and click **Manage Team**. > 3. Click **Invite New Member**. > 4. Type in the email address of the user whom you want to invite. Select a role from the drop-down list. > 5. Click **Send Invitation** to invite the user. A list of accepted and pending invitations is displayed on the same page. > 6. Click **Resend** to re-invite the user or **Cancel** to cancel the invitation. > [accordion] Accept Invite - Existing User > > To accept an invitation: > > 1. Log in to the Dashboard. > 2. Navigate to the **Account & Settings** โ†’ **Business settings** and click **Invitations**. > 3. Click **Accept** next to the invite. > > ![Accept invite to be team member (for an existing Razorpay user)](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-accept-invitation.jpg) > > > [!NOTE] > > > > **Switching Accounts** > > > > After accepting the invite, the invited user can switch between their and your account using the **Switch Merchant** option available on the Dashboard header. > > You cannot access their account unless they invite you to join their team. > [accordion] Invite a New User > > You can invite a user who is not registered with Razorpay to join your team. Such users are sent an invitation link via email. > > To invite a new user: > > 1. Log in to the Dashboard. > 2. Navigate to the **Account & Settings** โ†’ **Business settings** and click **Manage Team**. > 3. Click **Invite New Member**. > 4. Enter the member's email id and select the user role to be assigned. > 5. Click **Send Invitation**. > > ![Send invite to new member (for a new Razorpay user)](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-invite-new-user.jpg) > [accordion] Update Role of a User > > You can change the user's role after the invitation is sent to the user or after the invitation is accepted by the user. > > To update a user's role: > > 1. Log in to the Dashboard. > 2. Navigate to the **Account & Settings** โ†’ **Business settings** and click **Manage Team**. > 3. Select the new role for the user from the drop-down. > 4. Click **Update**. > [accordion] Remove a User > > You can remove a user from your team to remove their complete access from your Dashboard. > > To remove a user from your team: > > 1. Log in to the Dashboard. > 2. Navigate to the **Account & Settings** โ†’ **Business settings** and click **Manage Team**. > 3. Click **Remove** to remove a user from the **Team Member** list. Once removed, the user can no longer access your Dashboard. > 4. Click **Cancel** to remove a user from the **Pending Invitations** list. > [accordion] Enable 2-Step Verification (2FA at Team Level) > > You can set 2-step verification for your entire team for enhanced security and protection of your Dashboard data thus preventing malicious attacks or misuse of your sensitive business data. > > To enable 2-step verification for your team: > > 1. Log in to the Dashboard. > 2. Navigate to the **Account & Settings** โ†’ **Business settings** and click **Manage Team**. > 3. Enable the **2-Step Verification to the team** option. > 4. Enter the OTP sent to your registered mobile device. (This step is not required if you had already performed OTP verification during login.) > 5. Enter your account password and confirm. > > You have now set up 2FA for your entire team. ## Frequently Asked Questions (FAQs) > [accordion] What to do if a user account is locked? > > If a user enters the wrong OTP 9 times, their account will be locked for security reasons. In such scenarios, the user should contact their respective account owner. The account owner can unlock the users' accounts. > [accordion] What to do if a user loses their mobile device? > > If a user loses their mobile device: > > * **If they use an authenticator app and still receive SMS on their verified phone number**, for example on a new phone with the same number, they can click **Use SMS OTP** on the **Two Step Verification** screen to sign in. They can then turn off the authenticator app and set it up again on the new phone. Know more about [what to do with a new or lost phone](/docs/payments/dashboard/account-settings/security-sign-in#new-phone-or-lost-phone). > * **If they use an authenticator app and cannot sign in**, they should raise a request with our [Support Team](https://razorpay.com/support/#request). The account owner's **Invalidate 2FA** option does not remove the authenticator app. > * **If they do not use an authenticator app**, they should reach out to their respective account owner. The account owner can **Invalidate 2FA** for the user, that is reset 2FA for the user. The user will be asked to enter their mobile number the next time they log in to the Dashboard. > [accordion] What to do if the account owner is locked? > > If you are the account owner and have entered the wrong OTP 9 times, your account will be locked for security reasons. In such scenarios, contact our [Support Team](https://razorpay.com/support/#request) to **Reset 2FA** for your account. > [accordion] What to do if the account owner loses their mobile device? > > If you are the account owner and have lost your mobile device: > > * **If you use an authenticator app and still receive SMS on your verified phone number**, click **Use SMS OTP** on the **Two Step Verification** screen to sign in. Then turn off the authenticator app and set it up again on your new phone. Know more about [what to do with a new or lost phone](/docs/payments/dashboard/account-settings/security-sign-in#new-phone-or-lost-phone). > * **If you use an authenticator app and cannot sign in**, contact our [Support Team](https://razorpay.com/support/#request) for help signing in. > * **If you do not use an authenticator app**, contact our [Support Team](https://razorpay.com/support/#request) to **Reset 2FA** for your account. > [accordion] What is the Dispute Manager role? > > The Dispute Manager role is designed for team members who handle chargebacks and payment disputes. Users with this role can view, accept and contest disputes and download dispute reports. They cannot create refunds or access settlement/bank details. This role is ideal for dedicated chargeback teams or third-party dispute management agencies. > [accordion] What is the Pseudo Owner role? > > The Pseudo Owner role provides full owner-level access to trusted team members for business continuity. It is useful when the primary owner is unavailable (on leave, travel or emergencies). Pseudo Owner role has the same permissions as the Owner role except they cannot delete the primary owner account. A maximum of 2 Pseudo Owners can be assigned per account and assignment requires additional authentication. > [accordion] What is the View-Only (Auditor) role? > > The View-Only role provides read-only access to all Dashboard data. Users with this role can view transactions, settlements, disputes and settings but cannot perform any actions or make changes. This role is ideal for auditors, compliance officers and senior management who need visibility without operational access. All page views are logged for audit purposes. > [accordion] How many Pseudo Owners can I have? > > You can provide Pseudo Owner access to a maximum of 2 users for each Razorpay account. If you need more, contact [Razorpay support](https://razorpay.com/support/#request) to discuss your requirements. > [accordion] Can a Dispute Manager issue refunds? > > No, Dispute Managers cannot create refunds. If a refund is needed to resolve a dispute, the Dispute Manager must coordinate with a team member who has refund permissions (Owner, Pseudo Owner, Admin, Manager or Operations roles). > [accordion] Can a View-Only user download reports? > > No, users with view-only access can only view reports and data on the Dashboard. They cannot download or export files. This restriction helps maintain data security for audit and compliance purposes. > [accordion] What is the R\&D role? > > The R\&D role is designed for developers and engineering teams who manage webhooks. Users with this role can create, view, edit and delete webhooks and view webhook logs (event logs and request/response headers from the last 3 hours). They cannot generate API keys, view payments, settlements or disputes, create refunds or manage teams. This role is ideal for engineering teams that need to configure and troubleshoot webhook deliveries without access to financial operations. # Payment Configuration Source: https://razorpay.com/docs/payments/dashboard/account-settings/payment-configuration Select the payment methods and instruments you want to display, rearrange them to customise your checkout and create custom payment blocks for different customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Perform multiple configurations related to the payment methods and instruments that you want to show on your checkout page. * Choose the payment methods and instruments you want to display at checkout * Arrange them in your preferred order * Create custom payment blocks for specific customer segments, ensuring they see the most relevant options. This enhances the user experience, improves discoverability and boosts conversion rates. > [!NOTE] > > **Handy Tips** > > * You can hide, show, create custom blocks and rearrange payment methods and instruments as required, but you cannot enable or disable them from this setting. Know more about how to [enable/disable payment methods](/docs/payments/dashboard/account-settings/payment-methods#enable-payment-methods). > * You can switch between mobile and desktop views to preview changes. ## View Default Configuration To view Razorpay's default payment configuration: 1. Navigate to **Accounts & Settings** โ†’ **Payment Configuration** under **Checkout settings** section. 2. Click **View** against the **Standard Payment Options** section. This setting is read-only and cannot be edited. ![Navigate to payment config and view the standard payment options](https://razorpay.com/docs/build/browser/assets/images/editor-view-std.gif) ## Configure Payment Options Follow these steps to configure your payment options: 1. Log in to the Dashboard. 2. Navigate to **Accounts & Settings** โ†’ **Payment Configuration** under **Checkout settings** section. Following are the types of configurations: > [accordion] Basic Configuration > > You can customise the payment options to display only the methods you want your customers to see, instead of Razorpay's default configuration. > > 1. Click **Create a custom payment configuration**. > 2. Enter the **Configuration name** and click **Save**. > > ![Create custom config on Dashboard](https://razorpay.com/docs/build/browser/assets/images/editor-custom-config.gif) > 3. By default, all payment methods available on your account are enabled. You can show or hide payment methods as needed. Additionally, you can rearrange them in your preferred order by dragging and dropping, based on customer preferences, success rates, or usage frequency. > > ![Hide/Show and Rearrange Payment Methods](https://razorpay.com/docs/build/browser/assets/images/editor-hide-rearrange.gif) > 4. Click **Save all changes**. > [accordion] Advanced Configuration > > Create custom blocks to highlight specific payment methods or instruments above other options. You can create multiple custom blocks as required. > > 1. Click the plus icon next to **Create a custom payment block** > > 2. Enter a block name. For example, **Preferred Methods**. This appears at checkout as a separate section above the default standard payment options. > > 3. Click **+ Add a single payment instrument** to highlight a specific instrument. > > 4. Select a payment method from the drop-down and choose a payment instrument. > > 5. Click **Save**. > > ![Create Custom Blocks](https://razorpay.com/docs/build/browser/assets/images/editor-custom-block.gif) > > 6. You can further customise the following payment methods. Select a payment method: > > > [tab] UPI > > > > Show/hide UPI QR Code, UPI Apps and UPI ID/Number. > > > > ![Configure UPI payment option](https://razorpay.com/docs/build/browser/assets/images/editor-customise-upi.gif) > > > [tab] Netbanking > > > > Show/hide specific banks. > > > > ![Configure Netbanking payment option](https://razorpay.com/docs/build/browser/assets/images/editor-customise-netbanking.gif) > > > [tab] Cards > > > > Configure card payment options based on: > > > > * **Card Type**: Show/hide debit and credit cards. > > * **Card Provider**: Choose from available card networks. > > * **Card Issuer**: Select specific issuers. > > * **BIN Number**: Add one or multiple BINs (first 6-8 digits of a card number) to filter eligible cards. The system validates and saves the BINs, ensuring only specified cards are allowed for transactions. > > > > ![Configure card payment options](https://razorpay.com/docs/build/browser/assets/images/editor-customise-card.gif) > > > [tab] EMI > > > > Configure EMI payment options based on: > > > > * **Card Type**: Show/hide debit and credit cards. > > * **Card Provider**: Select the EMI card networks from the list. > > * **Card Issuer**: Select the card issuer from the list. > > * **BIN Number**: Add one or multiple BINs (first 6-8 digits of a card number) to filter eligible cards. The system validates and saves the BINs, ensuring only the specified cards are eligible for EMI plans. > > > > ![Configure EMI payment options](https://razorpay.com/docs/build/browser/assets/images/editor-customise-emi.gif) > > > [tab] Wallets > > > > Show/hide various providers of wallets. > > > > ![Configure wallet payment option](https://razorpay.com/docs/build/browser/assets/images/editor-customise-wallet.gif) > > > [tab] Pay Later > > > > Show/hide various providers of pay later. > > > > ![Configure pay later payment option](https://razorpay.com/docs/build/browser/assets/images/editor-customise-pay-later.gif) > > > [tab] COD > > > > Show/hide cash on delivery. > > > > ![Configure COD payment option](https://razorpay.com/docs/build/browser/assets/images/editor-customise-cod.jpg) > > 7. Click **Save all changes**. If you have multiple custom blocks, drag and drop them to rearrange them in your preferred order. > > ![Rearrange multiple custom blocks](https://razorpay.com/docs/build/browser/assets/images/editor-rearrange-custom-blocks.gif) > > > [!WARNING] > > > > **Watch Out!** > > > > To delete a block, navigate to your saved payment configurations. Identify the block, scroll to the bottom and click **Delete block** โ†’ **Delete** โ†’ **Save all changes**. ### Save Configuration as Default If needed, you can save a configuration as the default, which displays the payment methods to your customers based on this setup. 1. Identify the configuration you want to set as default and click on the options icon โ†’ **Save as Default**. Click **Save all changes**. 2. Once saved, this configuration will be displayed to your customers at checkout. ![Save configuration as default](https://razorpay.com/docs/build/browser/assets/images/editor-set-default.gif) 3. All the changes will reflect on the **Checkout** page, **Invoices**, **Payment Button**, **Webstore**, **Payment Links** and **Payment Pages**. 4. Share the Configuration ID with your developer to integrate this setup. You can also define conditions for displaying this configuration to a particular set of customers by using the Configuration ID. ### Sample Configuration By default, the checkout displays payment options in the following order: > [card] Sample Checkout > > ![Payment options order on checkout](https://razorpay.com/docs/build/browser/assets/images/editor-sample-config.jpg) > [card] Payment Options > > * **Recommended Methods**: These are automatically determined based on the customer's phone number, prioritising their most frequently used or preferred payment methods. This order cannot be modified or disabled. > * **Custom Blocks**: Payment methods/instruments configured within a custom block, if any. > * **All Payment Methods**: The remaining payment methods displayed based on your configuration. # Dashboard | Payment Methods Source: https://razorpay.com/docs/payments/dashboard/account-settings/payment-methods Enable and disable different Payment Methods from the Razorpay Dashboard. Check how to respond to Action Required statuses. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Check the available payment methods, enable and disable payment methods or request for new payment methods. ## View Available Payment Methods You can view the payment methods enabled for your account from the **Account & Settings โ†’ Payment Methods** tab. You can raise requests for additional payment methods. The requests initiated from this panel are raised with our partner banks and the onboarding process for the payment method is started. > [!NOTE] > > **Handy Tips** > > ## Enable Payment Methods Activation of each of the payment methods involves onboarding with our partner banks. The average activation time is 10 working days, which can vary based on the payment method and banks. ## Request Payment Methods > [accordion] To raise a request for a payment method: > > 1. Log in to the Dashboard and select **Account & Settings** on the left navigation. > > 2. Click the payment method you want to request under the **Payment Methods** tab, for example, **Cards**. > > 3. Click the drop-down on the **Additional details required** tab and click **Add now** to update the business website or GSTIN details. > > ![Payment methods - cards - add additional details](https://razorpay.com/docs/build/browser/assets/images/payments-request-payment-method-additional-details.jpg) > > > [!WARNING] > > > > **Watch Out!** > > > > The **Additional details required** tab must be updated to request any payment method. > > 4. Fill in the business website/app details and click **Proceed to update website/app**. Know more about [how to add website details](/docs/payments/dashboard/account-settings/business-website-details). > > 5. Fill in the GSTIN details and click **Submit**. Know more about [how to add GSTIN details](/docs/payments/dashboard/account-settings/gst-details). > > > [!NOTE] > > > > **Handy Tips** > > > > The **Additional details** are requested by our banking partners and are specific to the payment method. > > 6. Once you submit all the required information, the status of the information provided changes to **Under Review**. > > ![Payment methods under review](https://razorpay.com/docs/build/browser/assets/images/payment-payment-method-request-under-review.jpg) > > 7. Once the required information is reviewed and updated, click **Request**. > > 8. Fill in the required details and click **Next**. > > 9. Click **Submit Request**. > > 10. The status of the payment method changes to **Requested**. ## Payment Method Request States To view the status of your payment method request: 1. Log in to the Dashboard and navigate to **Account & Settings**. 2. Click any payment method under **Payment methods**. 3. You can view the list of payment methods and providers and their status. ![Payment methods tab on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-payment-methods-setting_1.jpg) Some payment methods are enabled by default, while you need to raise a request for others. Below are the various statuses your request can go through. | Status | Description | | - | - | | **Under Review** | Our team is validating the information provided. | | **Updated** | The provided information is verified successfully. | | **Requested** | A request has been raised, but no action has been taken yet. | | **Cancelled** | A request was initially raised but was later cancelled by you or your team member. | | **Pending** | The request has been taken up for onboarding by our partner banks. | | **Action Required** | In some cases, we may not be able to fulfil a request as our banking partners seek certain clarifications. For example, there may be some missing information in the activation form. In such cases, the request is placed in the `Action Required` state, along with a comment indicating the actions required from your end. You can [respond to the Action Required](#respond-to-action-required) status. | | **Rejected** | The request is rejected for your account. This generally happens due to category restrictions. See the Comments for more information. | | **Re-initiated** | The previous request in the `Action Required` state has now been re-initiated after the action is complete. | | **Activated** | This indicates that the method is now live and available on standard checkout. | ## Respond to Action Required You can respond to any discrepancies or clarifications raised for payment method requests with comments, attachments, or both.\ Our Banking Ops team validates your payment method request. If they find any discrepancies or need further clarification regarding the website or documents, we change the request status from **Pending** to **Action Required**. You can provide these details from the Dashboard.\ To respond to the discrepancies or clarifications requested: 1. On the Dashboard, navigate to **Account & Settings โ†’ Payment Methods**. 2. Look for the payment method you requested and click **Update Request Form**. 3. Provide the requested clarifications. 4. Fill in the required details, add attachments if requested, and click **Submit Form**. 5. The status of your request changes from **Action Required** to **Reinitiated**. Razorpay re-reviews requests and responds within 7 days. ## Disable Payment Methods Raise a request with our [Support team](https://razorpay.com/support/) to disable any Payment Method. ## Coverage The **Payment Methods** tab shows most payment instruments that can be enabled for your account. Keep an eye on this page as we continue to add more payment methods. If you have questions about specific payment methods, please reach out to our [Support team](https://razorpay.com/support/#request) . ## Pricing All methods requested via the Payment Methods tab will be enabled for your account using [Standard Pricing](https://razorpay.com/pricing/) or the default pricing configured for the payment method for your account. # Security & Sign-in Source: https://razorpay.com/docs/payments/dashboard/account-settings/security-sign-in Verify your Razorpay Dashboard sign-ins with a 6-digit code from an authenticator app instead of waiting for an SMS OTP. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can sign in to the Razorpay Dashboard with a 6-digit code from an authenticator app on your phone instead of waiting for an SMS OTP. Setup takes about a minute. After that, the Dashboard asks for the code from your app at sign-in and no SMS is sent. SMS OTP stays on as your backup. > [!NOTE] > > Authenticator app sign-in is being rolled out to merchants in India in phases. If you do not see the **Authenticator app** card on the **Security & sign-in** page, contact your account manager or raise a request with our [Support team](https://razorpay.com/support/#request). > [!WARNING] > > Authenticator app sign-in works on the web Dashboard only. The Razorpay mobile app does not support it yet, so after you set it up, the mobile app cannot complete your sign-in. If you sign in using the mobile app, wait before you set this up. ## Before You Start * Use the web Dashboard at [dashboard.razorpay.com](https://dashboard.razorpay.com) in a browser, on your computer or your phone. * Install an authenticator app on your phone. Google Authenticator, Microsoft Authenticator, Authy, 1Password, Duo and any other app that generates time-based 6-digit codes work. * Keep a verified phone number on your profile. It is your backup if your phone is not with you, and some sensitive actions still start with an SMS OTP. * Each team member sets up the authenticator app for their own login. Setting it up for yourself does not change anything for other users on your account. ## Set Up an Authenticator App 1. Log in to the Dashboard and click **Account & Settings**. Under **Your profile**, click **Manage** next to **Security & sign-in**. ![Your profile section with the Manage link next to Security and sign-in highlighted](https://mintcdn.com/razorpay-881012b3/BlHJjVbCB8-c6vlX/static/docs-home/assets/security-sign-in-manage-link.jpg?fit=max\&auto=format\&n=BlHJjVbCB8-c6vlX\&q=85\&s=46f916ea19de22da92c47af10ee0a46e) 2. You see two cards: **SMS OTP** and **Authenticator app**. On the **Authenticator app** card, click **Set up authenticator app**. ![Security and sign-in page with the Set up authenticator app button highlighted on the Authenticator app card](https://mintcdn.com/razorpay-881012b3/BlHJjVbCB8-c6vlX/static/docs-home/assets/security-sign-in-set-up-button.jpg?fit=max\&auto=format\&n=BlHJjVbCB8-c6vlX\&q=85\&s=36634d21155733557d5bed58b3b31655) 3. Open your authenticator app, choose to add an account and scan the QR code. If scanning does not work, click **Copy** next to the setup key and enter the key in your app instead. Do not share the QR code or setup key with anyone. ![Set up authenticator app dialog showing a blurred QR code and setup key](https://mintcdn.com/razorpay-881012b3/BlHJjVbCB8-c6vlX/static/docs-home/assets/security-sign-in-qr-code.jpg?fit=max\&auto=format\&n=BlHJjVbCB8-c6vlX\&q=85\&s=9feb9b1f5b066bb37f7edb0a2ca6a251) 4. Your app shows a 6-digit code for Razorpay that changes every 30 seconds. Enter the current code and click **Verify and finish**. If the code changes while you type, enter the new one. The setup window lasts 10 minutes. If it expires, close the dialog and start again. ![Set up authenticator app dialog with a 6-digit code entered and the Verify and finish button highlighted](https://mintcdn.com/razorpay-881012b3/BlHJjVbCB8-c6vlX/static/docs-home/assets/security-sign-in-verify-and-finish.jpg?fit=max\&auto=format\&n=BlHJjVbCB8-c6vlX\&q=85\&s=5b9c24550ecd69a3121767141348d7ae) 5. The **Authenticator app** card now shows the date you set it up. The authenticator app is now your first sign-in step and **SMS OTP** stays on as your backup. ![Security and sign-in page showing the authenticator app as the first verification step and SMS OTP as the backup](https://mintcdn.com/razorpay-881012b3/BlHJjVbCB8-c6vlX/static/docs-home/assets/security-sign-in-authenticator-on.jpg?fit=max\&auto=format\&n=BlHJjVbCB8-c6vlX\&q=85\&s=507bd8b6f266e98611241b5428626c16) ## Sign In With Your Authenticator App 1. Sign in with your email and password, or with Google, as usual. The **Two Step Verification** screen asks for the code from your authenticator app. 2. Open your app, enter the current 6-digit code and click **Verify**. ![Two Step Verification screen asking for the authenticator app code with the Verify button highlighted](https://mintcdn.com/razorpay-881012b3/BlHJjVbCB8-c6vlX/static/docs-home/assets/security-sign-in-sign-in-code.jpg?fit=max\&auto=format\&n=BlHJjVbCB8-c6vlX\&q=85\&s=69ab32699fad8c6f2eb469c8516009c5) On your own computer, keep **Skip OTP on this browser for 30 days** selected and the Dashboard does not ask for a code on that browser for 30 days. Clear the checkbox on shared or public computers. > [!NOTE] > > If a code does not work, wait for the next code in your app instead of entering the same digits again. After 9 incorrect codes, your account is locked for security reasons. ### Use SMS OTP Instead If your phone is not with you, you can sign in with an SMS OTP. This option appears only if your profile has a verified phone number with SMS OTP on. 1. On the **Two Step Verification** screen, click **Use SMS OTP**. ![Two Step Verification screen with the Use SMS OTP link highlighted](https://mintcdn.com/razorpay-881012b3/BlHJjVbCB8-c6vlX/static/docs-home/assets/security-sign-in-use-sms-otp.jpg?fit=max\&auto=format\&n=BlHJjVbCB8-c6vlX\&q=85\&s=bc2e66c06a92bc2ab939454ee2832ffe) 2. Enter the OTP sent to your verified phone number to complete the sign-in. To go back to the code from your app, click **Use authenticator code**. ![SMS OTP screen with the Use authenticator code link highlighted](https://mintcdn.com/razorpay-881012b3/BlHJjVbCB8-c6vlX/static/docs-home/assets/security-sign-in-use-authenticator-code.jpg?fit=max\&auto=format\&n=BlHJjVbCB8-c6vlX\&q=85\&s=aec332809904f73be39674c065d5372b) ## Verify Sensitive Actions Sensitive actions on the Dashboard, such as generating or regenerating [API keys](/docs/payments/dashboard/account-settings/api-keys) and inviting [team members](/docs/payments/dashboard/account-settings/manage-team), ask you to verify again in a **2-Step Verification** window. The window sends an SMS OTP first. To use your authenticator app instead, click **Use authenticator code** in the window. If the SMS cannot be delivered, the window switches to your authenticator app automatically. After you verify, either at sign-in or in the Dashboard, you are not asked again for 30 minutes. > [!NOTE] > > These sensitive actions still need a verified phone number on your profile. [Add and verify a phone number](/docs/payments/dashboard/account-settings/account-details#update-phone-number) before you need it. ## Turn Off the Authenticator App 1. Go to **Account & Settings** โ†’ **Security & sign-in** and click **Turn off authenticator app** on the **Authenticator app** card. This option works only when SMS OTP is on and your phone number is verified, so you always have one way to sign in. ![Authenticator app card with the Turn off authenticator app button highlighted](https://mintcdn.com/razorpay-881012b3/BlHJjVbCB8-c6vlX/static/docs-home/assets/security-sign-in-turn-off.jpg?fit=max\&auto=format\&n=BlHJjVbCB8-c6vlX\&q=85\&s=0579d2ad3ec1a341da540d69c0276613) 2. Enter the OTP sent to your phone and click **Continue**. Turning off always asks for an SMS OTP, even if you verified a few minutes ago. ![2-Step Verification window with the SMS OTP entered and the Continue button highlighted](https://mintcdn.com/razorpay-881012b3/BlHJjVbCB8-c6vlX/static/docs-home/assets/security-sign-in-turn-off-sms-confirm.jpg?fit=max\&auto=format\&n=BlHJjVbCB8-c6vlX\&q=85\&s=d904af6a92d252661de3cf046402809a) Your next sign-in uses SMS OTP. You can set up the authenticator app again at any time. ## New Phone or Lost Phone | Situation | What to do | | - | - | | Moving to a new phone | Before you reset the old phone, move your accounts within the authenticator app. Google Authenticator and Authy both support this. Alternatively, [turn off the authenticator app](#turn-off-the-authenticator-app) and [set it up again](#set-up-an-authenticator-app) on the new phone. | | Lost your phone, but you still receive SMS on your verified number | Sign in using [Use SMS OTP](#use-sms-otp-instead), turn off the authenticator app and set it up again on your new phone. | | No access to your authenticator app or your verified phone number | Contact your account manager or raise a request with our [Support team](https://razorpay.com/support/#request). This applies to team members too, as the account owner cannot reset the authenticator app for you. | ## FAQs > [accordion] Why don't I see the Authenticator app card? > > Authenticator app sign-in may not be available for your account yet, or your organisation may manage 2-step verification centrally. Contact your account manager or raise a request with our [Support team](https://razorpay.com/support/#request), and share the email address you sign in with. > [accordion] Which authenticator apps can I use? > > Any app that generates time-based 6-digit codes, such as Google Authenticator, Microsoft Authenticator, Authy, 1Password and Duo. > [accordion] Does the authenticator app replace SMS OTP? > > At sign-in, yes. The Dashboard asks for the code from your authenticator app first. SMS OTP stays on as your backup if you have a verified phone number. > [accordion] Can I turn on the authenticator app for my whole team? > > No. Each team member sets up the authenticator app for their own login. There is no account-wide setting. > [accordion] Is it safe to skip OTP on this browser for 30 days? > > **Skip OTP on this browser for 30 days** trusts one browser on one device. Use it only on your own computer. > [accordion] Can I use the authenticator app on the Razorpay mobile app? > > Not yet. Authenticator app sign-in works on the web Dashboard only. # Settlement Details Source: https://razorpay.com/docs/payments/dashboard/account-settings/settlement-details Steps to view your settlement details on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can view details regarding your settlement cycle and next settlement date on the Dashboard. ## View Settlement Details To view settlement details: 1. Log in to the Dashboard. 2. Click **Account & Settings** and navigate to **Settlement details** under **Business accounts and settlements** section. 3. You can view the following information: * **Settlement Details**: Click **View Settlement Cycle** to view default and other settlement cycles. * **Available Balance**: After the deduction of fees and tax, the payments received from your customers are added to your Available Balance. * **Next Settlement**: Date and time of next settlement. ![razorpay settlements details](https://razorpay.com/docs/build/browser/assets/images/account-settings-settlements-details.jpg) ## Segregated Balances If you are an omni-channel business (using both Payment Gateway and POS) or a cross-border business, your balances are **segregated by channel type (Online (Domestic transactions + International Cards), In-person and Alternate Payment Method (International))**. This ensures complete fund isolation and regulatory compliance. ![razorpay settlements details](https://razorpay.com/docs/build/browser/assets/images/account-settings-settlements-details-segg-bal.jpg) ### Types of Segregated Balances Razorpay maintains separate balances based on your payment channels: | Channel Type | Description | Transactions Included | Additional Details | | - | - | - | - | | Online (Domestic transactions + International Cards) | Domestic online payments and international card transactions | PG domestic transactions (cards, UPI, netbanking and wallets), international card payments | Supports Instant Settlements. | | In-Person | POS terminal transactions | All POS/offline transactions | POS device rentals are automatically collected from this balance. Operates independently from online transactions. | | Alternate Payment Method (International) | Balance from international payment methods such as PayPal, Stripe and other cross-border payment methods | International bank transfers, cross-border payments via supported APM providers | Settled separately from domestic balances. Subject to forex conversion and international settlement timelines. | ### View Channel-Wise Balances To view your segregated balances: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings โ†’ Settlement details**. 3. You will see balance cards for each channel type such as: * **Online (Domestic transactions + International Cards)**: Balance from domestic online payments and international card transactions. * **In-Person**: Balance from POS terminal transactions (all POS/offline transactions). * **Alternate Payment Method (International)**: Balance from international bank transfers. Each balance card displays: * Current available balance. * Next settlement date and amount. * Settlement cycle applicable to that balance. ### How Segregated Settlements Work With balance segregation: * Each channel type (Online (Domestic transactions + International Cards), POS, Cross-border) maintains its own isolated balance. * Settlements are processed separately for each balance account. * Refunds and chargebacks are debited only from the respective channel balance. * Instant Settlements can be enabled independently for each balance account. > [!NOTE] > > **Handy Tips** > > Balance segregation ensures that your POS settlements never fail due to online refunds consuming your funds and vice versa. Each channel operates independently. # Your Support Tickets Source: https://razorpay.com/docs/payments/dashboard/account-settings/support-tickets Raise a support ticket and view details of existing tickets raised by you on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can track the tickets raised by you on the Dashboard under the **Support Tickets** tab. This makes it easier to find the tickets and saves time spent on searching for ticket details in your emails. > [!NOTE] > > **Handy Tips** > > * Only the last three tickets in Open state are displayed. Closed tickets do not appear here. > * The **Support Tickets** tab is available for both Live and Test modes of the Dashboard. > * Only **Owner** and **Admin** can raise support tickets using this tab. > * You can view only those tickets that were raised using the Dashboard. ## Track Status of Open Tickets You can view only those tickets that were raised using the Dashboard. To track the status of your open support tickets: 1. Log in to the Dashboard. 2. On the left navigation, click **Accounts & Settings**. 3. Navigate to **Business settings** โ†’ **Support Tickets**. 4. A list of the last three tickets in open status pops up. Click on the ticket ID to view details. ![Click Ticket ID to view ticket details](https://razorpay.com/docs/build/browser/assets/images/support-tickets-raise-new-query.jpg) 5. You can request an update, provide information or add attachments such as an error screenshot. Provide the details and click **Send a Reply**. ![Reply to Support Ticket](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-support-tickets-send-reply.jpg) ## Raise New Support Tickets You can create a new support ticket from the Dashboard. To raise a new ticket: 1. Log in to the Dashboard. 2. Click **Help & Support**. ![Raise a Ticket - Help and Support pop-up - Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/dashboard-support.jpg) 3. Check the FAQs for common concerns. If the FAQs can not resolve your concern, click **Contact Us**. 4. You have the following options in the **Contact Us** section: * Create ticket: Check existing queries or raise a new support ticket. * Chat or Request for callback: Start a live chat with us or request a callback for quicker resolution (selected users only). ![Raise a Ticket - Help and Support pop-up - Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/dashboard-support-options-new.jpg) 5. Select the nature of the request. Check out the existing information before raising the ticket. If you do not find relevant information, please explain your issue, attach relevant documents or screenshots if possible, and click **Create support ticket**. ![Select the topic of a new query](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-support-ticket-details.jpg) Our Support team will get back to you at the earliest. However, reply to the same ticket in case of a follow-up instead of raising a new ticket. > [!NOTE] > > **Handy Tips** > > A list of the last three tickets in open status pops up. Click the ticket id to view details. # Transaction Limits Source: https://razorpay.com/docs/payments/dashboard/account-settings/transaction-limits Steps to update transaction limits on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can update transaction limits on the Dashboard for both [domestic](/docs/payments/dashboard/account-settings/transaction-limits#update-domestic-transaction-limits) and [international](/docs/payments/dashboard/account-settings/transaction-limits#update-limit-per-international-transaction) transactions. ## Update Domestic Transaction Limits You can update the domestic transaction limit for your account. For example, if you could accept only per transaction, you can update it to a higher amount, such as . > [!WARNING] > > **Watch Out** > > The maximum transaction limit depends on your business category. To update your per domestic transaction limit: 1. Log in to the Dashboard. 2. Click **Account & Settings** in the left navigation. 3. Click **Transaction limits** under **Payment and refund** section. 4. Click the edit icon next to the **Limit per domestic transaction** field. 5. In the pop-up page that is displayed, provide the following information: 1. **Required Limit**: Enter the desired per transaction limit amount. 2. **Why do you want to increase limit?**: Enter the reason you want to increase the per domestic transaction limit. You should enter a minimum of 100 words. 3. **Upload invoice**: Upload a sample invoice. The accepted file formats are PNG, JPG and PDF. 4. Click **Submit Details**. ![Provide invoice to update the limit per domestic transaction](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-myaccount-profile-transaction-limit-submit.jpg) After the details are provided, our team will review the request. We will update the details on the Dashboard. > [!NOTE] > > **Handy Tips** > > We may reach out to you for clarifications on email, WhatsApp, SMS, and Dashboard during the verification process. > Navigate to **Account & Settings** and submit the necessary information in the appropriate section. Our team will go through the information you provide and help you resolve the issue. ## Update Limit per International Transaction You can update the international transaction limit for your Razorpay account. For example, if you could accept only โ‚น5,000 per transaction, you can update it to a higher amount, such as โ‚น10,000. > [!WARNING] > > **Watch Out** > > The maximum transaction limit depends on your business category. To update your per international transaction limit: 1. Log in to the Dashboard. 2. Click **Account & Settings** and go to **Transaction limits** under **Payment and refund** section. 3. Click the edit icon next to the **Limit per international transaction** field. 4. In the pop-up page that is displayed, provide the following information: 1. **Required Limit**: Enter the desired per transaction limit amount. 2. **Why do you want to increase limit?**: Enter the reason you want to increase the per international transaction limit. You should enter a minimum of 100 words. 3. **Upload invoice**: Upload a sample invoice. The accepted file formats are PNG, JPG and PDF. 4. Click **Submit Details**. After the details are provided, our team will review the request. We will update the details on the Dashboard. > [!NOTE] > > **Handy Tips** > > We may reach out to you for clarifications on email, WhatsApp, SMS, and Dashboard during the verification process. > Navigate to **Account & Settings** and submit the necessary information in the appropriate section. Our team will go through the information you provide and help you resolve the issue. # Webhooks Source: https://razorpay.com/docs/payments/dashboard/account-settings/webhooks Steps to set up webhooks on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can [set up](#set-up-webhooks), [edit](#edit-a-webhook), [enable/disable](#enable/disable-a-webhook) and [delete](#delete-a-webhook) webhooks from the Dashboard. ## Set Up Webhooks Watch this video to see how to set up a webhook. [YouTube video player](https://www.youtube.com/embed/Xiikw4_CcQk?si=b6kYHKIp1xikPrJZ) To set up webhooks: 1. Log in to the Dashboard and navigate to **Accounts & Settings**. 2. Click **Webhooks** under **Website and app settings**. 3. Click the **+ Add New Webhook** button. ![Add a new webhooks button on the Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-1.jpg) 4. In the **Webhook Setup** pop-up page: * Enter the **URL** where you want to receive the webhook payload when an event is triggered. We recommend using an HTTPS URL. > [!NOTE] > > **Handy Tips** > > * You can set up to **30 URLs** to receive Webhook notifications. Webhooks can only be delivered to public URLs. > * If your URL contains `razorpay` as a domain, you will not be able to add the URL and will receive an error. > * If you attempt to save a localhost endpoint as part of a webhook setup, you will notice an error. Know more about [testing Webhooks on an application running on localhost](/docs/webhooks/validate-test#application-running-on-localhost). * Enter a **Secret** for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about [how to validate webhooks](/docs/webhooks/validate-test). > [!NOTE] > > **Handy Tips** > > * When setting up the webhook, specify a secret. Use this secret to validate that the webhook is from Razorpay. Entering the secret is optional but recommended. The secret should never be exposed publicly. > * The webhook secret does not need to be the Razorpay API key secret. * In the **Alert Email** field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook related notifications like failures, deactivation and so on. * Select the required events from the list of **Active Events**. ![List of active webhook events on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-2.jpg) 5. Click **Create Webhook**. After you set up a webhook, it appears on the list of webhooks. ![List of webhooks on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhooks-list.jpg) 6. You can select the webhook and click **Edit** to make more changes. > [!NOTE] > > **Next Step - Validate and Test Your Webhooks** > > You should validate and test your webhooks before you go live. Know more about [validating and testing your webhooks](/docs/webhooks/validate-test). ## Edit a Webhook You can edit your webhook to replace the webhook URL, modify the secret, change the alert email and add or remove events. To edit webhooks: 1. Log in to the Dashboard and navigate to **Accounts & Settings**. 2. Click **Webhooks** under **Website and app settings**. 3. In the list, select the webhook you want to edit. 4. In the right panel, click **Edit**. 5. The **Webhook Setup** pop-up page is displayed. You can modify the following: * Webhook URL * Secret * Alert Email * Active Events ![Edit Webhooks on Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-edit-2.jpg) 6. Click **Save Webhook** to save changes. > [!NOTE] > > **Next Step - Validate and Test Your Webhooks** > > You should validate and test your webhooks before you go live. Know more about [validating and testing your webhooks](/docs/webhooks/validate-test). ## Deactivation All webhook responses must return a status code in the range `2XX` within a window of 5 seconds. If we receive response codes other than this or the request times out, it is considered a failure. On failure, a webhook is re-tried at progressive intervals of time, defined in the exponential back-off policy, for 24 hours. If the failures continue for 24 hours, the webhook is disabled. You need to enable the webhook from the Dashboard after fixing the errors at your end. Know more about [enabling Webhooks](/docs/webhooks/setup-edit-payments#enable/disable-a-webhook). > [!NOTE] > > **Handy Tips** > > When a webhook gets disabled, you receive an email notification on the email id you configured while setting up the webhooks. ## Enable/Disable a Webhook To enable or disable a webhook: 1. Log in to the Dashboard and navigate to **Accounts & Settings**. 2. Click **Webhooks** under **Website and app settings**. 3. In the list, select the webhook you want to edit. 4. Change the status to **Enabled** or **Disabled** in the right panel as required. ## Delete a Webhook To delete a webhook: 1. Log in to the Dashboard and navigate to **Accounts & Settings**. 2. Click **Webhooks** under **Website and app settings**. 3. In the list, select the webhook that you want to delete. 4. In the right panel, click **Delete**. Click **Yes, Delete** in the dialogue box to confirm. ### Related Information * [Webhooks](/docs/webhooks) * [Set Up and Edit Payout Webhooks](/docs/webhooks/setup-edit-payouts) * [Validate and Test Webhooks](/docs/webhooks/validate-test) # Custom Views Source: https://razorpay.com/docs/payments/dashboard/analytics-suite/custom-analytics Custom Views in the Analytics suite lets you build, plot and track the metrics that matter to your business. Save up to five views and monitor them daily. With Custom Views, you can build analytics panels for the metrics and combinations specific to your business. Create a view for any area you want to track, like success rate, refunds or sales, and add the metrics you want to monitor within it. For example, plot payment success rate for Visa and Mastercard over the last 7 days. Create up to **5 views**, with **3 charts** each, giving you up to **15 metrics** to track at once. ![](https://razorpay.com/docs/build/browser/assets/images/custom-view-analytics-1.png) ## Set Up Custom Views ### Open Custom Views In the Dashboard menu, go to **Analytics**. Custom Views sits next to **Overview** and **Refunds** in Analytics. Every saved view appears in the menu under **Custom Views**. Click a view to open it, or click **+ Add new view** to start a blank one. ![](https://razorpay.com/docs/build/browser/assets/images/custom-view-analytics-4.png) ### Build a Chart Follow the steps below to build a chart: 1. **Choose a metric:** Click the metric name at the top of a chart to pick a metric. Metrics are grouped into 5 categories: Success Rates, Volume, Sales, Failures and Refunds. 2. **Add filters:** Up to 3. Values within one filter combine with **OR**. Different filters combine with **AND**. Click **More Options โ†’ Show all** to see every dimension. 3. **Choose how to split:** Split the chart with up to 2 parameters. Each combination becomes its own line, bar or table column. 4. **Pick a time range:** Up to 90 days, grouped by hour, day, week or month. 5. **Compare with an earlier period:** Choose **Previous period** or a custom date range. ![](https://razorpay.com/docs/build/browser/assets/images/custom-view-analytics-2.png) > [!NOTE] > > The panel adjusts its suggestions based on what you have already picked. For example, choosing UPI under Payment Methods narrows your split options to UPI-only dimensions like Channel and UPI Flow. Card-only dimensions are removed, so you do not end up with an empty or misleading chart. Switch how a chart renders with the icons next to the date range: **Trend line**, **Bar chart** or **Data table**. ![](https://razorpay.com/docs/build/browser/assets/images/custom-view-analytics-6.png) ### Metrics Supported The table below lists the metrics you can plot, grouped by category: | Category | Metric | Definition | | :- | :- | :- | | **Success rates** | Payment success rate (%) | Percentage of payment attempts that were successfully authorised. | | | Order success rate (%) | Percentage of attempted orders that resulted in a successful payment. Each order is counted once, regardless of retries. | | **Volume** | Payment count (#) | Total payment attempts in the selected period, including retries on the same order. | | | Order count (#) | Total orders where at least one payment was attempted. Each order is counted once, even if your customer retried the payment. See [Orders](/docs/payments/orders) and [Payments](/docs/payments). | | **Sales** | GMV (โ‚น) | Total value of orders with a payment successfully authorised in the selected period. | | | Net GMV (โ‚น) | GMV net of refunds for payments in the selected period. | | | Average transaction value (โ‚น) | GMV divided by total transactions. Shows your average successful payment amount. | | **Failures** | Payment failure rate (%) | Percentage of payment attempts that failed. | | | Failed payment count (#) | Number of payment attempts that failed. | | | Top payment failure reasons | Top 5 most common error reasons across failed payments in the selected period. | | **Refunds** | Refund rate (%) | Share of payments authorised in the selected period that have been refunded. | | | Refund count (#) | Refund transactions processed in the selected period. | | | Refund amount (โ‚น) | Total value of refunds processed in the selected period. | > [!NOTE] > > Order-level metrics take their attributes from the order's latest payment attempt. If a customer tries UPI twice and then pays by card, that order counts as a card payment. ### Filters and Splits The table below lists the dimensions available as filters and splits: | Dimension | Filter | Split | Notes | | :- | :-: | :-: | :- | | Payment Methods | โœ“ | โœ“ | โ€” | | Gateway | โœ“ | โœ“ | Applicable only for merchants on Optimizer. | | Channel | โœ“ | โœ“ | Website, Android and iOS channels supported. | | Card Type | โœ“ | โœ“ | โ€” | | Card Network | โœ“ | โœ“ | โ€” | | Card Issuer | โœ“ | โœ“ | โ€” | | Netbanking Bank | โœ“ | โœ“ | โ€” | | UPI Flow | โœ“ | โœ“ | Collect or Intent. | | Bank Identification Number (BIN) | โœ“ | โ€” | Filter only. | | Amount range | โœ“ | โ€” | Filter only, "is between" operator. | | Custom Identifier | โœ“ | โœ“ | Up to 3 of your own fields. | ### Download, Duplicate and Export Every change you make to a view saves automatically and stays saved across sessions. For example, a date range like **last 14 days** is stored as a rolling preset, so the view always shows the latest data when you open it. ![](https://razorpay.com/docs/build/browser/assets/images/custom-view-analytics-5.png) For a view, the following actions are available: * Rename view * Duplicate view * Download view * Delete view ![](https://razorpay.com/docs/build/browser/assets/images/custom-view-analytics-3.png) > [!WARNING] > > Deleting a view is permanent. Duplicate a view first if you want to keep the original while experimenting with a different view. ### Configuration Limits | Limit | Value | | :- | :- | | Saved views | 5 per merchant | | Charts per view | 3 | | Filters per chart | 3 | | Splits per chart | 2 | | Maximum date range | Up to 90 days | # Overview Source: https://razorpay.com/docs/payments/dashboard/analytics-suite/overview Overview in the Analytics suite is designed for the key metrics you track daily in your business. You can pin key metrics for quick reference, check success rate trends, analyse how payments flow across touchpoints and get a better understanding on transaction errors. All widgets support data download for further analysis. ![](https://razorpay.com/docs/build/browser/assets/images/overview.png) ### **Apply Global Filters** ![](https://razorpay.com/docs/build/browser/assets/images/anlaytics-global-filters.png) > [!NOTE] > > Please note data will be available since the time Analytics has been enabled on your account. Global filters apply to all elements on the Dashboard. You can: 1. Select the **Date Range**. 2. Click **Compare with** to compare the selected range against another date range. 3. Set **View by** to **Orders** or **Payments**. * **Orders** (default) groups data by order, counting each order once even with multiple payment attempts. * **Payments** groups data by individual payment attempts, including retries. * Learn more on [Orders](/docs/payments/orders) and [Payments](/docs/payments). 4. For Optimizer Merchants (routing to external PA/PGs): Filter by **Gateway** (specific gateway, **No Gateway**, or All). 5. Filter by **Payment methods** (specific method or All). 6. Click **Clear Filter** to clear all selections and return to default. > [!NOTE] > > No Gateway refers to transactions where the customer abandoned checkout before a gateway was selected for routing. These are not attributed to any gateway. Your selection for global filters persist across sessions. ### **Pin Key Metrics** You can pin upto 4 of your most-tracked metrics as KPI chips to the top of the Dashboard. By defualt, GMV, Transaction count, Average Transaction Value, and Success Rate are pinned. Please note, each KPI value reflects your Global Filter selection. ![](https://razorpay.com/docs/build/browser/assets/images/kpi-chips.png) > [!NOTE] > > Each Metric is defined based on your View By selection in the Global Filter. * Click **Edit** to choose from the full metric list. Please refer the table below for complete Metric definitions: | Metric | Orders View | Payments View | | :- | :- | :- | | **Transaction Count** | Total orders where at least one payment was attempted. Each order is counted once, even if your customer retries the payment. | Total payment attempts in the selected period, including retries on the same order. | | **GMV** | Total value of orders with a payment successfully authorised in the selected period. | Total value of payments successfully authorised in the selected period. | | **Net GMV** | GMV net of refunds for orders in the selected period. | GMV net of refunds for payments in the selected period. | | **Avg Transaction Value** | GMV divided by orders where at least one payment was authorised. Shows your average order size. | GMV divided by total successful transactions. Shows your average successful payment amount. | | **Success Rate** | Percentage of attempted orders that resulted in an authorised payment. Each order is counted once, regardless of retries. | Percentage of payment attempts that were successfully authorised. | | **Failed Transaction Count** | Not available for Orders view. Orders remain in the Attempted state if all payment attempts fail against the order. | Number of payment attempts that failed. | | **Failure Rate** | Not available for Orders view. Orders remain in the Attempted state if all payment attempts fail against the order. | Percentage of payment attempts that failed. | | **Top Failure Reason** | Not available for Orders view. Orders remain in the Attempted state if all payment attempts fail against the order. | Most common error reason across failed payments in the selected period. | | **Refund Rate** | Share of orders in the selected period that have at least one payment refunded. | Share of payments authorised in the selected period that have been refunded. | | **Refund Count** | Refund transactions processed in the selected period. | Refund transactions processed in the selected period. | | **Refund Amount** | Total value of refunds processed in the selected period. | Total value of refunds processed in the selected period. | ### Track Success Rate Trends ![](https://razorpay.com/docs/build/browser/assets/images/success-rate.png) The Success rate chart plots order success rate over time for the selected filters. * Group by **Hourly, Daily, Weekly or Monthly** (default: Daily). * Use **Compare with** (Global Filters) to compare against another date range. * Toggle **Include customer errors** to view actionable success rate excluding customer-side errors (chart-level filter only). * Switch views: **Trend line, Bar chart, Data table**. * **Download** as CSV. > [!NOTE] > > Customer-side errors are payment failures caused by the customer rather than your integration or the gateway, such as the customer abandoning the payment, entering an incorrect OTP or having insufficient funds. These are usually outside your control, so excluding them shows your actionable success rate. To learn more about customer errors, see the full list of [Payment Errors](/docs/errors) . ### Analyse Transaction Flow ![](https://razorpay.com/docs/build/browser/assets/images/transaction-flow.png) The Transaction flow chart visualises how payments move across payment method, gateway, and final status. * Toggle between Count and GMV for a different view of transaction flow * Final transaction status updates by View by: * Payments: Authorised, Failed, Refunded, Captured * Orders: Attempted, Paid * **Download** via the top-right option. > [!NOTE] > > The gateway stage is shown only for merchants using [Optimizer](/docs/payments/optimizer) . It is not applicable for payments processed directly through Razorpay. ### **Transaction Failures Deep Dive** ![](https://razorpay.com/docs/build/browser/assets/images/transaction-failure.png) Helps identify why payments fail. You can: * View overall **Failure rate** and **Failed transactions** count for selected filters. * Quick summary of failure sources click a source to filter the table below, double-click to remove. * Table of **Source, Step, Reason** for deep-dives * View each combination's share (%) of overall failures. * **Compare with** adds a trend column showing lift vs. selected time range, plus delta on top metrics. * **Download** the data. See Payment Errors for the full list of Razorpay error codes. > [!NOTE] > > Failure rate calculation by View by: > > * Orders: (orders where all linked attempts failed) รท (all orders attempted) > * Payments: failed payments รท all payments created # Refund Analytics Source: https://razorpay.com/docs/payments/dashboard/analytics-suite/refund-analytics Track refund rate, amount, count and success rate in the Analytics suite. See how refunds trend over time and open any refund for full detail without leaving the page. The Refunds page in the Analytics suite shows how refunds are trending across your business. The page goes from insights at the top to specifics at the bottom: track your key refund metrics, see how they move over time and open any individual refund for detail without leaving the page. Go to **Analytics** โ†’ **Refunds** on the [Razorpay Dashboard](https://dashboard.razorpay.com/) to get started. ![Refunds page in the Analytics suite showing key metrics and the refund trends chart](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-1.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=6c6c0fc837884ad39b65aceb6272298b) ## **Apply Filters** The filters at the top of the page apply to every widget below them: key metrics, trends and the refunds breakdown. Use the filters to: * Select the **Period**: Today, Yesterday, Last 7 Days (default), Last 14 Days, Last 30 Days or a **Custom** range of up to **90 days**. * Click **Compare with** to compare the selected period against the **Previous period** or a **Custom** date range. * Filter by **Payment methods**: Card, Netbanking, UPI or All. Expand Card or UPI to pick a sub-type. * Filter by refund **Status**: Pending, Processed, Failed or All. * Filter by refund **Speed**: Normal, Instant or All. * Filter by **Gateway**: a specific gateway or All. Available only for [Optimizer](/docs/payments/optimizer) merchants who route payments to gateways other than Razorpay. * Click **ร—** on any filter to clear it. ![Period filter open with Today, Yesterday, Last 7 Days, Last 14 Days, Last 30 Days and Custom range options](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-2.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=d770230c4adfb85f538656f16426849f) ![Compare with filter open showing Previous period and Custom date range options](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-3.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=345b69a98618c3b5a3d8779091f83367) ![Payment methods filter open with All, Card, Netbanking and UPI options](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-4.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=bf1834fded15ced7b503f33cf1c079fe) ![Status filter open with All, Pending, Processed and Failed options](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-5.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=f7e761e05c3179261bd52dc706dc1f9e) ![Speed filter open with All, Normal and Instant options](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-6.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=fbac9000cf32b07e7a7d1b9378b51f26) > [!NOTE] > > The **Gateway** filter only shows for [Optimizer](/docs/payments/optimizer) merchants routing payments to gateways other than Razorpay. ## **Track Key Metrics** Key metrics give you a quick read on refund health for the selected filters. * The page shows 4 metrics by default: **Refund rate**, **Refund amount**, **Refund count** and **Refund success rate**. * Hover over a metric name to see its definition. * Click **Edit** to choose which metrics to display. Pin up to **4** metrics. Selecting a new metric replaces the one selected last. * Each metric value reflects your filter selection. ![Configure metrics dialog with Refund rate, Refund amount, Refund count and Refund success rate selected](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-7.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=524a67ebb95ac4d313c1662bdd9df4e2) The table below lists the refund metrics and their definitions: | Metric | Definition | | :- | :- | | **Refund rate (%)** | Share of payments authorised in the selected period that have been refunded. | | **Refund amount (โ‚น)** | Total value of refunds processed in the selected period. | | **Refund count (#)** | Refund transactions processed in the selected period. | | **Refund success rate (%)** | Share of refunds created that have been processed in the selected period. | | **Refund TAT** | Turn Around Time (TAT) for a refund to reach a final status, shown as the median and the 90th percentile. Available only for [Optimizer](/docs/payments/optimizer) merchants, for refunds processed through gateways other than Razorpay. | > [!NOTE] > > Refund rate and Refund success rate depend on the payments authorised and the refunds initiated in the selected period. Refunds for recent payments may still be in progress, so these rates can read lower for the last few days and settle over time. ## **Track Refund Trends** The Refund trends chart plots how refunds move over time for the selected filters. * Switch between the **Amount**, **Count** and **Success rate** tabs. * Hover over any point on the chart to see its exact value. * Use **Compare with** in the filters to compare against another date range. * Switch the view to **Trend line**, **Bar chart** or **Data table**. * Click **Download** to export the chart data as a CSV file. * Track **TAT** for refunds processed through external gateways and split the trends by gateway. Available only for [Optimizer](/docs/payments/optimizer) merchants. ![Refund trends chart on the Amount tab with a tooltip showing the refund amount for a selected day](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-8.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=347f2e140006ec51e995828b657cf459) ## **View the Refunds Breakdown** The Refunds breakdown lists every refund that matches your filters, newest first. * Use the quick filters to view **All**, **Processed**, **Pending** or **Failed** refunds. * Each row shows the **Refund ID**, **Created on** date and time, **Status** and **Amount**. * Click **Details** on any row to open the refund in the right pane. * Click **Download** to export the list. ![Refunds breakdown table listing refunds with Refund ID, Created on, Status and Amount columns](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-9.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=778568134228f2cb0306b82c2d81e4f3) ## **Open Refund Details** Click **Details** on any row to open the right pane with the full context of a refund. The right pane shows: * **Transaction details:** Payment ID, Bank Retrieval Reference Number (RRN), Order ID, Invoice ID, Payment method, Customer details and Processed by. * **Refund details:** Refund ID, Acquirer Reference Number (ARN) or RRN, Refund speed, Issued on, Gateway code and Gateway message. * **Refund timeline:** Each step from payment creation to authorisation, refund creation and refund processing, with timestamps. ![Refund details pane showing Transaction details and Refund details for a selected refund](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-10.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=40a9e2fc768e1005cf611ec52096f9ab) ![Refund details pane scrolled to Refund details and the refund timeline with timestamped steps](https://mintcdn.com/razorpay-881012b3/N9mwRqc34zgz5l6O/static/docs-home/assets/refund-analytics-11.jpg?fit=max\&auto=format\&n=N9mwRqc34zgz5l6O\&q=85\&s=f0cac314aad48d6db4b9132ba07a686b) From the right pane: * Click **View details** to open the refund on the **Refunds** page under **Transactions**. * Click the copy icon next to any ID to copy its value. > [!NOTE] > > Share the ARN or RRN with your customer when they ask about a refund. Their bank can use it to trace the credit. Normal refunds take 3 to 5 working days to process. The money reaches your customer in 5 to 7 working days. Instant refunds reach your customer within minutes. Know more about [Instant Refunds](/docs/payments/refunds/instant). ## **Related Information** * [Refunds](/docs/payments/refunds) * [Instant Refunds](/docs/payments/refunds/instant) * [Optimizer](/docs/payments/optimizer) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/dashboard/faqs Find answers to frequently asked questions about Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States ## Edit Login Information > [accordion] How do I change the login/registered email ID of my account? > > You can change your login/registered email ID from **Account & Settings** on the Dashboard. Know more about [Updating Login Email](/docs/payments/dashboard/account-settings/account-details#update-login-email). > [accordion] How do I change the password of my account? > > To change your password, enter your email ID on the Forgot Password page and complete the password reset process. > [accordion] How do I change the phone number registered with my account? > > Follow these steps to change the phone number: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings**. > 3. Click the edit icon next to the **Phone number** field. > > ![Edit contact number on Razorpay Dashboard.](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-settings-edit-phone-number.jpg) > 4. Enter the OTP sent to your registered email address and click **Confirm**. > > ![Enter the otp received on email](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-settings-enter-email-otp.jpg) > 5. Enter the new phone number and click **Update**. > > ![Enter the new phone number](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-settings-enter-new-phone-number.jpg) > [accordion] How can I change the email ID where I receive the transaction-related mail? > > You can add the email ID from the Dashboard by following these steps: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings**. > 3. Click **Email** under the **Notification settings** section. > > ![Update email notifications](https://razorpay.com/docs/build/browser/assets/images/dashboard-email-notifications.jpg) > 4. Add the email ID in the **Email Notifications**. > 5. Click **Save Changes**. ## Edit Business Information > [accordion] How do I change the account details displayed on the Dashboard? > > You change your account details such as display name, your name, email and phone number from the [Account Details section](/docs/payments/dashboard/account-settings/account-details) on **Account & Settings** on the Dashboard. > [accordion] How do I change my business Website URL? > > To change your business website URL, navigate to **Account & Settings** โ†’ **Business website details** and click the edit icon in the **Business Website/App details field**. Know more about how to [edit your business website/app URL](/docs/payments/dashboard/account-settings/business-website-details). > [accordion] Can I change my business type on the Razorpay? > > Yes, changing your business type on Razorpay is allowed under certain conditions. The key requirement is that the PAN associated with the Merchant id (MID), will remain the same before and after the change. For example, moving from `Individual` to `Sole Proprietorship` is permitted since the PAN does not change in such cases. Similarly, changes like `Private Limited` to `Public Limited` may also be supported.\\ > > Currently, this is a manual, offline process. To request a business type change, you must contact [support team](https://razorpay.com/support/) with the relevant details and documents. > [accordion] What documents are required to change my business type on Razorpay? > > To change your business type, you must submit documents that support your new business entity and validate the reason for the change. While the exact documents may vary based on the type of change requested, you should typically be prepared to provide: > > * Proof of your new business entity. See [list of KYC documents](/docs/payments/business-types-kyc-documents#kyc-documents). > * PAN card: To confirm that the PAN remains the same across the entity change. > * Reason for the change. For example, updating GST details or aligning your account with current business filings and compliance requirements. > Since each request is handled manually, additional documents may be requested during the review process. Contact [support team](https://razorpay.com/support/) to initiate your request. > For more information, see [Change Business Information](/docs/payments/change-business-information). > [accordion] How can I update my bank account information? > > You can request a change in bank account details from the Dashboard. Watch the video explaining [how to change bank account details](/docs/payments/dashboard/account-settings/bank-account-details). > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings**. > 3. Click **Bank account details** details under the **Bank accounts and settlements** section. > 4. Click **Change bank account**. > 5. Enter the OTP sent to your registered mobile device on the **2-Step Verification** pop-up page. > 6. On the **Change Bank Account Details** pop-up page, add bank details such as branch IFSC, bank account number, and beneficiary name and upload your business' bank statement or a cancelled cheque. > 7. Click **Save**. > > For security reasons, only the Owner or Admin of the account will be able to access this option from the Dashboard. After the request is placed, the beneficiary details will be validated and updated within one business day. > [accordion] How can I update my business name on the payment confirmation mail sent to customers by Razorpay? > > You can change the billing label on the automated emails sent by Razorpay to your customers. > > > [!NOTE] > > > > **Handy Tips** > > > > The billing label must match your registered business name or the domain name. > > * If you are a registered business or individual business, you can use the [brand name and logo](/docs/payments/dashboard/account-settings/checkout-styling#brand-name-and-logo) feature on the Dashboard to update the business name. > [accordion] How can I change my GSTIN? > > You can use the [Add or Update GST details](/docs/payments/dashboard/account-settings/gst-details) feature on the Dashboard to update the GST details. > [accordion] How do I change the KYC details provided during account activation? > > To change your KYC details, please raise a request with our [support team](https://razorpay.com/support/). > [accordion] How long does it take to get a new or updated website/domain approved? > > The approval process takes about 24-48 hours. > > When you submit a new or updated website domain for approval, the process involves two main stages: > > 1. **Bank Verification System (BVS) Checks:** These initial automated checks typically take **3โ€“5 minutes**. > 2. **Agent Resolution/Final Approval:** Once the BVS checks are complete and the workflow is created, it takes an agent approximately **24โ€“48 hours** for final review and resolution. > > The approval status will be updated on your Razorpay Dashboard. > [accordion] My website verification request has been pending for a long time. What should I do? > > If your website verification request has been pending for an extended period, contact Razorpay support with the following details: > > * Your Razorpay account id/Merchant id. > * Website URL submitted for verification. > * Date of submission. > > The support team will review your request and expedite the verification process. Once approved, you will receive confirmation and can proceed with generating API keys for integration. ## Integration Related > [accordion] What is Razorpay Dashboard? > > Razorpay Dashboard is a user interface for you to configure and operate your Razorpay account. The Dashboard home page provides all information about the activity on your account. > > It includes a wide range of analytics and real-time charts that provide insight into the business performance and any action you may need to take, such as unanswered disputes or auto-refunds. > [accordion] Is a GST certificate mandatory for using Razorpay Payment Gateway? > > No, a GST certificate is not mandatory for businesses with an annual turnover below โ‚น20 lakhs. > [accordion] I have added my Razorpay account to my website domain. Can I also add it to a sub-domain? > > To add your Razorpay account to your sub-domain, raise a request with our [Support Team](https://razorpay.com/support/#request). > [accordion] How do I integrate Razorpay? > > You can integrate Razorpay with your website or app using SDKs and plugins. Refer to our [list of integrations](https://razorpay.com/integrations/). You can also accept payments without integrations using our range of [products](/docs/payments). > [accordion] What is a webhook? How do I use it? > > Webhooks enable a web application to send information to another application in real-time when a specific event happens after integration. Use Razorpay Webhooks to configure and receive notifications when a specific event occurs. Know more about [Webhooks](/docs/webhooks). > [accordion] How to provide a clarification requested by Razorpay? > > During the verification process, we may contact you for clarifications on email, WhatsApp, SMS, and the Dashboard. Navigate to **Account & Settings** and submit the necessary information in the appropriate section. Our team will review the information you provide and help resolve the issue. > [accordion] How do I close my Razorpay account? > > Log in to the Dashboard and [raise a support request](/docs/payments/mobile-app/settings#raise-a-new-ticket) to close your Razorpay account. > [accordion] I already have one website integrated. How do I add a second (additional) website for payments? > > Before integrating, you must register your additional website or app details on the Dashboard. You can add **one main website** and up to **five additional websites**. > > Follow these steps to register your second website: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **Business website detail**. > 3. Click **Add additional website/app details**. > > Know more about the complete process, required documentation (for example, policy links, reason for adding) and review time by referring to the [Additional Website/Mobile App documentation](/docs/payments/dashboard/account-settings/business-website-details#additional-website%2Fmobile-app). ## Reports > [accordion] How can I generate reports? > > All of your transaction data can be exported as reports in CSV format and can be mailed to yourself. You can also download a monthly or a daily report from the Reports Section of the Dashboard. > [accordion] Can I generate an annual report? > > No. You cannot generate an annual report at the moment. You can only generate reports for the last 90 days. ## Checkout Settings > [accordion] I am unable to save my new brand name. Why? > > Ensure your new brand name is at least 80% similar to the company name or domain name. > [accordion] I am unable to upload the wordmark. Why? > > Ensure you are adding only a wordmark and not a logo. A wordmark consists solely of text with a transparent background, whereas a logo may include both text and symbols. > [accordion] Can I add a custom sidebar graphic? > > No, you cannot add a custom sidebar graphic. > [accordion] Can I customise the text colour on the message banner? > > No, text colour customisation for the message banner is not currently supported. > [accordion] How does Bank Identification Number (BIN) based customisation help? > > BIN based customisation allows you to control payment method eligibility by specifying one or more BINs (first 6-8 digits of a card number). The system validates and saves these BINs, ensuring that only selected cards are allowed for transactions. This helps you restrict or enable specific card types based on your business needs. Know how to [customise the card payment option based on BIN](/docs/payments/dashboard/account-settings/payment-configuration#configure-payment-options). > [accordion] How does displaying UPI QR Code at checkout help? > > On Desktop-web, displaying the UPI QR Code simplifies checkout experience by eliminating manual UPI ID entry. After customers scan the QR code with their mobile UPI app, the system automatically extracts their linked UPI ID using their registered phone number. Know how to [show/hide UPI QR Code on checkout](/docs/payments/dashboard/account-settings/payment-configuration#configure-payment-options). > [accordion] How does displaying the UPI ID/Number field at checkout help? > > Displaying the UPI ID field improves the checkout experience on both Mobile-web and Desktop-web. Customers can manually enter their UPI ID, offering greater flexibilityโ€”especially if they cannot scan a QR code. The system instantly validates the UPI ID, reducing errors and improving transaction success rates. Know how to [show/hide UPI ID/Number field on checkout](/docs/payments/dashboard/account-settings/payment-configuration#configure-payment-options). ## Miscellaneous > [accordion] How can I apply for my TDS reimbursement? > > To apply for your TDS reimbursement, raise a request with our [Support Team](https://razorpay.com/support/#request), sharing your merchant ID and TDS certificate. > [accordion] My account is activated. How do I switch to live mode? > > You can switch between the **Test and Live** modes using the drop-down option at the top of the Dashboard. > > ![Switch between Test and Live modes](https://razorpay.com/docs/build/browser/assets/images/test-live-1.jpg) > [accordion] I cannot generate Live mode API keys even though my account is activated. How do I generate the API keys? > > You can generate the Live mode API keys by providing your live website details. Follow these steps: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings**. > 3. Click **Business website details** under the **Website and app settings** section. > > ![Account and settings on Razorpay Dashboard.](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-profile-profile.jpg) > 4. Click the edit icon. > > ![Add website/app details](https://razorpay.com/docs/build/browser/assets/images/add-website-app-details.jpg) > 5. Enter your website URL and click **Add Details**. > > ![Enter website/app URL on Razorpay Dashboard.](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-profile-enter-url.jpg) > 6. Our team will review your website/app URL details. Post review, your website details are updated, and you should be able to generate API keys in the Live Mode. > [accordion] What is a Chargeback? > > Chargeback is a refund claim initiated by the customers with their issuer banks. In such cases, the bank starts an official inquiry. Know more about [Chargebacks](https://razorpay.com/chargeback/). > [accordion] How do I report a fraud/cybercrime? > > Please raise a [Support Ticket](https://razorpay.com/support/) and our team will get back to you at the earliest. > [accordion] Where can I find my Account ID/Merchant ID on the Dashboard? > > You can find your Account ID/Merchant ID at the top-right corner of your Dashboard in alpha-numeric characters. > > ![image title](https://razorpay.com/docs/build/browser/assets/images/dashboard-mid.jpg) > [accordion] Why is my payment not visible on the dashboard? > > Refresh your dashboard and follow the steps to [view payment details](https://razorpay.com/docs/payments/payments/dashboard/#view-payment-details) : > > 1. Ensure you are on the right mode (test/live) and check the Payments section again. > 2. Use the right filtering options to view payments. > 3. You can also search using the payment ID. > [accordion] Why are my payments failing? > > Payment failure reasons are displayed on the dashboard against each transaction. To check the reason for each failed payment, navigate to **Transactions โ†’ Payments โ†’ Details**. > [accordion] When will the payments be deposited in my bank account? > > The settlement date and time is stated on dashboard. To check, you can go to **Dashboard โ†’ Transactions โ†’ Settlements**. > [accordion] How can email and SMS notifications be enabled? > > You can configure your email and SMS notifications from your Dashboard. To know more, check [notification settings](/docs/payments/dashboard/account-settings/email-sms-whatsapp). # Razorpay Home Source: https://razorpay.com/docs/payments/dashboard/razorpay-home Razorpay home page with visual representation of all your transactions and activities on Payments, RazorpayX, Payroll, Partners or Rize Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The Dashboard Home page provides a consolidated view of your business activity across Razorpay Payments and Banking Plus services. Use this page to monitor transactions, view earnings and spends, gain insights into payment performance, and take action directly through quick-access cards. ## Navigation Use the navigation bar on the top of the page to navigate between different Razorpay suite of products such as Payments, Banking Plus, Payroll, Partners program and more. ![razorpay home dashboard](https://razorpay.com/docs/build/browser/assets/images/razorpay-home.jpg) > [!WARNING] > > **Watch Out!** > > * The unified dashboard gives you a visual summary of all the Razorpay services you use. However, the actual data for each service is stored securely within the specific Razorpay group entity that provides it, not centrally on the dashboard. > * The dashboard presents insights with respect to the products you use. Hence, the descriptions are only relevant for your products. You can choose to use the other products directly from Razorpay Home. Log in to your [Razorpay account](https://accounts.razorpay.com) to access Razorpay Home. ## Critical Actions Razorpay displays system-wide alerts at the top of the page to keep you informed. These alerts will notify you of any important announcements or actions you need to take. For instance, you might see an alert if your funds are on hold or if there are pending tasks related to your international payments. ## Quick Actions > [tab] Payments > > Use these shortcuts to navigate to commonly used features related to payment collection and reporting: > > * **Transactions**: View all payment transactions. > * **Settlements**: Track the settlement of collected payments to your account. > * **Payment Links**: Create shareable links to collect payments without a website or app. > * **Reports**: Generate and download detailed reports. > [tab] Banking Plus > > Use these shortcuts to manage disbursals and financial statements: > > * **Payouts**: Send money to vendors, employees or customers. > * **A/c Statement**: View or download your Razorpay Current Account statement. ## Your Business with Razorpay This section shows a snapshot of your financial flows within Razorpay: > [tab] Earnings > > Displays the total amount received via Razorpay Payments during the selected date range. > > * **Online (Domestic transactions + International Cards)**: Breaks down domestic and international payments. > * **Offline payments with POS**: Link available to set up or view POS-based payments. > [tab] Spends > > Displays the total money disbursed via Razorpay Banking Plus. > > * **API and Bulk Payouts** โ€“ Payouts made via integrations or dashboard. > * **S2P** | **Vendor Payouts** โ€“ Payments made to suppliers or vendors. > * **Pay salaries with Razorpay Payroll** โ€“ Shortcut to Razorpayโ€™s Payroll service. > [tab] Balances > > Displays the balance amount for Razorpay Payments/RazorpayX. > > * **Settlement A/c Balance**: Shows the real-time balance available for settlements in your Razorpay account. > * **Current Account Balance**: Shows the real-time balance available in your RazorpayX powered current account. > * **View breakup**: Shows a balance breakup across payment channels (Online (Domestic transactions + International Cards), In-person, International) ## Payment Insights This widget helps track how well your payments are performing. ![payments insights](https://razorpay.com/docs/build/browser/assets/images/payments-insights-razorpay-home.jpg) | Metric | Description | | - | - | | Payments Collected | Total money collected through Razorpay. | | Success Rate | The percentage of successful transactions vs. total attempts. | | Refunds | Value and count of refunded transactions. | Each widget includes: * Percentage change from the previous week. * A link to Insight by RAY for data-backed recommendations to improve performance. You can filter data using the time range dropdown: * Yesterday * Last Week * Last Month Click [**See detailed insights**](/docs/payments/dashboard) for a more granular view on the Payments home page. ## Other Insights This section covers operational and growth-related widgets. ![other insights](https://razorpay.com/docs/build/browser/assets/images/other-insights-razorpay-home.jpg) | Term | Description | | - | - | | Payouts | Displays total amount disbursed via Payouts with insights by RAY. | | Employees and Payroll | Set up Razorpay Payroll and disburse salaries. | | Customers | This area will provide tools to acquire and retain customers using Razorpay solutions. | # Re-KYC Source: https://razorpay.com/docs/payments/dashboard/re-kyc Ensure compliance with RBI guidelines by completing your Re-KYC process. Update your KYC details securely to avoid service disruptions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Understand what is Re-KYC and why it is needed. The frequency of Re-KYC updates and timelines depend upon the risk classification of your business. ## What is Re-KYC Re-KYC (Re-Know Your Customer) is a mandatory periodic process where financial institutions must update and verify their customers' information to maintain regulatory compliance. This procedure ensures your account details remain current and helps protect the financial system from fraud and security threats. Unlike the initial KYC completed during account setup, Re-KYC is an ongoing process to ensure that your profile remains accurate and up-to-date. The Reserve Bank of India (RBI) mandates this process to maintain the integrity of the banking system and ensure customer information reflects any life changes, such as address updates, employment changes or contact information modifications. ## Business Risk Classifications and Re-KYC Timelines Your business falls into any one of these risk classification based on the nature of your business. | Business Risk Classification | Nature of Business | Re-KYC Timeline | | - | - | - | | **High-Risk Business** | Complex financial activities, frequent large transactions or from specific geographic regions. Require stringent monitoring and regular updates to mitigate potential risks | Re-KYC is required every 2 years. | | **Medium-Risk Business** | Moderate financial activity levels, such as salaried employees with stable incomes. Require periodic updates less frequently than high-risk businesses, but more often than low-risk profiles. | Re-KYC is required every 8 years. | | **Low-Risk Business** | Simple financial profiles with stable income sources. Often include pensioners and individuals with long-standing, stable accounts who require the least frequent updates. | Re-KYC is required every 8 years. | ## Complete Re-KYC Process Razorpay periodically collects and updates Re-KYC data from businesses as per [RBI guidelines](https://www.rbi.org.in/commonman/English/scripts/notification.aspx?id=2607#18). #### When to Complete Re-KYC A **Re-KYC completion deadline** and banner will appear on your dashboard when action is needed. Please complete the process by the date shown to ensure uninterrupted use of all Razorpay products. ### How to Complete Re-KYC To complete Re-KYC: 1. Click **Update KYC**. 2. A new tab with your **Basic details** opens up. Review the details to ensure they are up-to-date. If you need to change any information, click the **pencil icon** to edit the details. Once everything is correct, click **Continue**. For example, to edit your name: 1. Click the **pencil** icon next to your name. 2. You will be able to edit your name. Make the required changes and click **Continue**. 3. Verify your business type, PAN and other relevant documents. In case the details are incorrect or not up-to date, click the **pencil** icon to make changes and upload your latest documents. 4. Click **Continue**. You can upload `.pdf`, `.jpeg`, `.png` or `.jpg`. Ensure that the file size does not exceed 25 MB. Know more about [KYC Documents](/docs/payments/business-types-kyc-documents#kyc-documents). 5. Complete all the steps, select the check box and click **Submit Application**. > [!WARNING] > > **Watch Out!** > > If your Re-KYC documents are non-compliant or require clarification, we will move your account to the **Needs Clarification** state. You must then re-upload or re-submit the necessary documents. Check the various Re-KYC statuses and the actions required based on your account ownership. #### Actions and Consequences if Re-KYC is Not Completed | Timeline | Action | | | - | - | - | | **30 Days Before Re-KYC Deadline** | Your **settlements will be put on hold 30 days before the deadline** if your Re-KYC is not completed. You must update your KYC details before the due date to ensure continuous service. | | | **30 Days After Re-KYC Deadline** | If your Re-KYC remains incomplete 30 days after the deadline, your settlements will stay on hold. We will then notify you that your account status will be updated to **Live Disabled**. | | | **60 Days After Re-KYC Deadline** | If your Re-KYC remains incomplete 60 days after the deadline, your account status will be changed to **Live Disabled**. | | #### Example This example demonstrates the critical actions and consequences if the Re-KYC process is not completed. Let's say your business's **Re-KYC Deadline is January 30th**. | Date | Status/Action Required | Consequence if Incomplete | | | - | - | - | - | | **December 31st** | **30 Days Before Re-KYC Deadline** | If Re-KYC is still pending, your daily settlements will be put on hold to prevent the use of non-compliant funds. | | | **March 1st** | **30 Days After Re-KYC Deadline** | Settlements remain on hold. You will be formally notified that your account status is being updated to **Live Disabled.** | | | **March 31st** | **60 Days After Re-KYC Deadline** | Your account status is changed to **Live Disabled**. | | ### Re-KYC Status for Account Owners * **Pending**: As per RBI guidelines, you must verify your KYC periodically to validate the information shared during onboarding and update it if required. Please ensure all the necessary tasks are completed on time to avoid future disruptions. It will take 5-10 minutes to complete the process. * **In Progress**: You have made progress on your re-KYC, but it is not complete yet. Please review your details and upload any remaining documents to finish the process. * **Under Review**: We are currently working on your case. We will notify you within \[X hours, starting value = 72 hours] with a status update, or if we need any other details. * **Needs Clarification**: Some submitted documents/details are incorrect or incomplete. Please resolve them at the earliest to complete your re-KYC process. * **Rejected**: Based on your re-KYC details, your business does not meet our terms of service. Please reach out to [our support team](https://razorpay.com/support/) for further assistance. * **Approved**: You can continue doing your business with Razorpay. ### Re-KYC Status for Non-Owners * **Pending**: As per RBI guidelines, the account owner must verify the KYC periodically to validate the information shared during onboarding and update it if required. Please ensure all the necessary tasks are completed on time to avoid future disruptions. It will take 5-10 minutes for them to complete the process. * **In Progress**: The account owner is currently updating the KYC details. Please ensure that they update all the details. * **Under Review**: We are currently working on your case. We will notify you within \[X hours, starting value = 72 hours] with a status update, or if we need any other details. (If ETA is breached, this changes to: "It is taking more time to work on your case than we expected. Please bear with us. Please reach out to [our support team](https://razorpay.com/support/) for assistance.") * **Needs Clarification**: Some documents/details submitted by the account owner are incorrect/incomplete. Please ensure that they are able to resolve them to complete the re-KYC process. * **Rejected**: Based on the re-KYC, your business does not meet our terms of service. Please reach out to [our support team](https://razorpay.com/support/) for further assistance. * **Approved**: You can continue doing your business with Razorpay. # About Reports Source: https://razorpay.com/docs/payments/dashboard/reports Download and schedule various types of reports from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States We offer many reports to track the cash flow of your business. * **Download** all your transaction data for a specific day, month, or time frame according to your business requirements as a CSV, XLS, or XLSX file or emailed to the intended recipients. * **Schedule** reports you want to receive. Select the desired delivery frequency (daily, weekly, monthly), and specify the email address where the reports will be sent using the Dashboard. ## Download Reports > [accordion] To download a report: > > 1. Log in to the Dashboard and click **Reports**. > > ![Schedule Reports](https://razorpay.com/docs/build/browser/assets/images/schedule-report-left-nav.jpg) > > 2. Click **Download Report**. > > 3. Click **What report is this?** to select the report type and format. > > ![Download Reports Type and Format](https://razorpay.com/docs/build/browser/assets/images/download-report-type-format2.jpg) > > 4. To select the time frame of the report, click **What will you receive in this report?**. You can also select a custom time range by clicking the **Custom** button and selecting your preferred time and date. > > ![Download Reports Timeframe](https://razorpay.com/docs/build/browser/assets/images/download-report-time-select.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > You can now download data for the **Current Financial Year** or **Previous Financial Year** for Payments, Settlements and Settlement Reconciliation reports. Select these options directly from the date picker. > > > > For all other reports, a maximum time frame of 95 days applies. > > 5. Click **Yes** on the **Do you want this report in an email?** section to add the email recipients with whom you want to share the report and click **Start Download**. > > ![Download Reports Add Email](https://razorpay.com/docs/build/browser/assets/images/download-report-add-email.jpg) > 6. Your report request will begin processing. You can track the status and download the report in the **Downloads** section. > > ![Download Reports Add Email](https://razorpay.com/docs/build/browser/assets/images/downloads-section3.jpg) ## Schedule Reports Scheduling reports offers numerous advantages. It guarantees punctual and regular data provision, streamlining decision-making with timely information. > [accordion] To schedule a report: > > 1. Log in to the Dashboard and click **Reports**. > 2. Click **Schedule Report**. > 3. In the **What report is this?** section, select the type of report and enter the Schedule Name Select the format in which you want to receive the report. > 4. In the **What will you receive in this report?** section: > * Select the time duration for which you want to schedule the report. > > > [!NOTE] > > > > **Handy Tips** > > > > When selecting the duration for a scheduled report, it is important to ensure that you choose the **T+1** date. The **T+1** date refers to the day immediately following the current date. > > * Select the Data Duration from the drop-down. > > * Select the frequency of the report schedule. > > * Select the time of the day to schedule your report. > > 5. Click **Who will receive this report?** section to add the email recipients with whom you want to share the report and click **Create Schedule**. Your report will be scheduled. You can track and manage all your schedules in the **Schedules** section. ![schedule Reports section](https://razorpay.com/docs/build/browser/assets/images/schedule-section2.jpg) ## View and Edit Schedules You can also access and review previous schedules associated with a specific scheduled report. This allows you to view the scheduled report's history and corresponding configuration. You can also modify a scheduled report's configuration as per your requirements. > [accordion] To view and edit schedules: > > 1. Log in to the Dashboard and click **Reports**. > 2. Click **Schedules** and click **Open** on the schedule you want to view under **View Activity**. > 3. Click **Edit Schedule** to modify the existing settings of the scheduled report. > 4. Click **Edit Schedule** to save the changes. > > ![save edit schedule reports](https://razorpay.com/docs/build/browser/assets/images/save-edit-activity.jpg) ## Limit on Reports There is a limit on the number of concurrent reports that can be generated from the Dashboard. Once the maximum threshold is reached, new reports will only be created after at least one of the reports in the **processing** state has been generated. > [!NOTE] > > **Handy Tips** > > You can generate a maximum of 3 reports at the same time. Get in touch with our [Support Team](https://razorpay.com/support/#raise-a-request) for increasing this limit for your account. # About Custom Reports Source: https://razorpay.com/docs/payments/dashboard/reports/custom-reports Custom reports empower you to tailor data analysis, gain deeper insights and meet specific business needs with personalised financial reporting tools. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Custom Reports enables you to build personalised reports precisely tailored to your business requirements. This feature offers deeper insights and streamlines your reconciliation and overall business analysis. ## Standard Reports vs Custom Reports Custom Reports lets users select and combine specific data fields from various Razorpay entities (e.g., payments, refunds, settlements). Generate customised reports that provide precise data configurations, moving beyond standard predefined formats to suit operational requirements. Start with Standard Reports to understand your data and establish reporting routines. Use Custom Reports when: * You are manually combining data from 2+ Standard Reports regularly. * Your business complexity requires multi-entity analysis. * Strategic decision-making needs deeper, correlated insights. ## Use Cases Here are a few use cases of Custom Reports. > [accordion] Enhanced Financial Reconciliation > > With access to detailed fields across all transaction types, you can build reports that streamline your reconciliation processes by: > > * Matching payments to settlements with precise timing data > * Tracking refunds against original transactions > * Monitoring fee structures and tax implications > * Analysing transaction flows across different payment methods > [accordion] Comprehensive Tax and Compliance Support > > The schema includes extensive tax and fee tracking across all entities, enabling you to: > > * Generate tax reports with precise breakdowns by transaction type > * Track GST implications through vendor data > * Monitor TDS categories and compliance requirements > * Create audit trails with detailed transaction histories Here is a [**sample use case for using Custom Reports**](/docs/payments/dashboard/reports/custom-reports/create-custom-reports#sample-use-case). # Create Custom Reports Source: https://razorpay.com/docs/payments/dashboard/reports/custom-reports/create-custom-reports Build Custom Reports from your Razorpay data. Gain deeper insights, streamlining financial operations for your business. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Custom Reports lets you build personalised reports that precisely match your business needs. This feature offers deeper insights, streamlining your reconciliation and overall business analysis. ## Create a Custom Report 1. Log in to the Dashboard. 2. Go to **Reports**. 3. Click **Create Custom Report**. 4. Select a report type from the **Select Base Report Type** field. ![create custom report select base report](https://razorpay.com/docs/build/browser/assets/images/dashboard-reports-create-custom-report-select-base.jpg) 5. Enter a report name for your custom report in the **Report Name** field. 6. Add a description for your custom report in the **Report Description** for this report. Click **Next**. ![create custom report select base report](https://razorpay.com/docs/build/browser/assets/images/dashboard-reports-create-custom-report-name-desc.jpg) 7. In the **Column selection and arrangement** view, drag and drop the columns to rearrange them in the order you want them to appear in your report. Click **Next**. ![select and adjust columns](https://razorpay.com/docs/build/browser/assets/images/dashboard-custom-reports-column-slt-adj.jpg) 8. Rename column names for each selected column. Remove a column if required. Click **Create**. ![rename custom report column](https://razorpay.com/docs/build/browser/assets/images/dashboard-custom-reports-column-rename.jpg) 9. Once your custom report is created, select **Custom Reports** in the **Filter** dropdown. ![filter custom report](https://razorpay.com/docs/build/browser/assets/images/dashboard-custom-reports-find-report.jpg) > [!WARNING] > > **Watch Out!** > > You can only modify reports you have created. You can make 15 custom reports, with up to 50 columns each. You have successfully created a custom report. ## Download a Custom Report 1. Click the **download** icon on your custom report's card. 2. Use the **Select report** option to choose which report you wish to download. 3. Enter a preferred file name in the **Save Report As** field (optional). 4. Select your preferred file format: **CSV, Excel or Txt** (optional). 5. Select a linked account in the **Select an Account** field. ![add basic details for custom report download](https://razorpay.com/docs/build/browser/assets/images/dashboard-custom-reports-download-basic-details.jpg) 6. **Select duration** for the data coverage of the report from these options: * Today * Yesterday * Past Week * Past 15 days * Past Month * Past Quarter Toggle the **Custom** option to select a custom date range. ![add duration for custom report download](https://razorpay.com/docs/build/browser/assets/images/dashboard-custom-reports-download-duration.jpg) 7\. To receive your custom report via email, toggle **Yes** for the **Do you want this report in an email?** section. ![add email for custom report download](https://razorpay.com/docs/build/browser/assets/images/dashboard-custom-reports-download-email.jpg) 8\. Click **Start Download**. 9\. Navigate to the **Downloads** tab and click **Download**. ![add email for custom report download](https://razorpay.com/docs/build/browser/assets/images/dashboard-custom-reports-downloads-tab.jpg) You have successfully downloaded your custom report. ## Sample Use Case Here is a sample use case to demonstrate how you can use custom reports: > [accordion] Business Analysis Report > > * **Company**: Acme Gadgets - An online electronics retailer > * **Challenge**: The finance team spends 15+ hours monthly compiling data from multiple Standard Reports for board presentations > * **Goal**: Create a unified custom report for comprehensive monthly business analysis > > #### Report Configuration > > * **Report Name**: Monthly Business Performance Dashboard > * **Base Report Type**: Payments > * **Reporting Period**: Past Month > > #### Selected Data Fields > > | Entity | Selected Columns | Business Purpose | > | - | - | - | > | Payments | Payment ID, Amount, Currency, Status, Method, Customer Email, Customer Contact, Created At, Captured At, Fee, Tax, Net Amount, Order ID | Core transaction analysis | > | Orders | Order ID, Amount, Status, Amount Paid, Amount Due, Created At | Order completion tracking | > | Refunds | Refund ID, Payment ID, Amount, Status, Created At, Fees, Tax | Refund impact analysis | > | Settlements | Settlement ID, Amount, Status, Created At, Fees, Tax, UTR | Cash flow tracking | > | Customers | Customer ID, Name, Email, Contact | Customer segmentation | > | Cards | Card Type, Network, Issuer, Last 4 Digits | Payment method insights | ## Fields and Columns To find details about the available list of fields, columns and fields go through the [**Custom Reports Data Schema documentation**](/docs/payments/dashboard/reports/data-schema). # Reports Data Schema Source: https://razorpay.com/docs/payments/dashboard/reports/data-schema Explore reporting data schema on payments, refunds, settlements and more to build insightful reports. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Create standard and custom reports from your data. Utilise our schema documentation for all entities, columns and their descriptions. ## Refunds Records details of amounts returned to customers from processed payments. Details of the available columns are listed below: | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Unique Transaction Reference | String | | Yes | | Settled By | String | Indicates the entity responsible for settling the refund. | Yes | | Notes | String | Additional notes or comments related to the refund. | Yes | | Refund ID | Integer | Unique identifier for the refund. | No | | Fees | Integer | The processing fees associated with the refund. | No | | Tax | Integer | The tax amount applied to the refund. | No | | Amount | Integer | The total amount of the refund. | No | | Receipt | String | The unique receipt number for the refund. | Yes | | Currency | String | The currency in which the refund was processed (for example, 'INR'). | No | | Created At | Date/Time | Timestamp when the refund record was created. | No | | Payment ID | String | The ID of the original payment to which the refund is linked. | No | | Speed Requested | String | The requested processing speed for the refund. | No | | Status | String | The current status of the refund (for example, `processed`, `pending`, `failed`). | No | ## Transactions Captures comprehensive records of all financial movements, including debits, credits and associated fees. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Tax | Integer | The tax amount associated with the transaction. | Yes | | Debit | Integer | The debit amount the transaction. | No | | Amount | Integer | The total amount of the transaction. | No | | Credit | Integer | The credit amount of the transaction. | No | | Currency | String | The currency of the transaction. | No | | Entity ID | Integer | The ID of the entity related to this transaction (for example, payment ID, refund ID). | No | | Created At | Date/Time | Timestamp when the transaction record was created. | No | | Type | String | The type of transaction (for example, 'payment', 'refund', 'settlement'). | No | | Settled | Boolean | Indicates if the transaction has been settled (True/False). | No | | Fees | Integer | The total fees associated with the transaction. | No | | On Hold | Boolean | Indicates if the transaction amount is currently on hold (True/False). | Yes | | Settled At | Date/Time | Timestamp when the transaction record was settled. | Yes | | Settlement ID | String | The ID of the settlement associated with this transaction. | Yes | ## Orders Represents the initial request or intent to collect a payment, often preceding the actual payment capture. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Order ID | String | Unique identifier for the order. | No | | Notes | String | Additional notes or comments for the order. | Yes | | Receipt | String | The unique receipt number for the order. | Yes | | Offer ID | String | The ID of any offer applied to the order. | Yes | | Updated At | Date/Time | Timestamp when the order record was last updated. | No | | Amount Paid | Integer | The total amount paid for the order. | Yes | | Amount | Integer | The total amount of the order. | No | | Status | String | The current status of the order (for example, `created`, `paid`, `fulfilled`). | No | | Attempts | Integer | The number of payment attempts made for the order. | No | | Currency | String | The currency of the order. | No | | Created At | Date/Time | Timestamp when the order was created. | No | ## UPI Metadata Stores additional details and technical information related to UPI (Unified Payments Interface) transactions. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Settled By | String | The tax amount associated with the transaction. | Yes | ## Disputes Manages details and statuses of chargebacks or disagreements initiated by customers regarding transactions. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Dispute ID | String | Unique identifier for the dispute. | No | | Adjustment ID | String | Unique identifier for the adjustment. | No | | Payment ID | String | Unique identifier for the payment on which dispute was raised. | No | | Order ID | String | The ID of the order associated with this payment. | No | | Amount | Integer | The total amount of the payment. | No | | Currency | String | The currency in which the payment was made. | No | | Amount Deducted | Integer | Total amount deducted. | No | | Amount Reversed | Integer | Total amount reversed after the dispute was raised. | No | | Reason Code | String | A detailed description of the reason for the dispute. | No | | Dispute Created At | Date/Time | Timestamp when the dispute record was created. | No | | Resolved At | Date/Time | Timestamp when the dispute record was resolved. | Yes | ## Settlements Tracks the process of transferring accumulated funds from Razorpay to your linked bank account. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Created At | Date/Time | Timestamp when the settlement record was created. | No | | Settlement ID | String | Unique identifier for the settlement. | No | | UTR (Unique Transaction Reference) | String | The Unique Transaction Reference number for the settlement. | Yes | | Status | String | The current status of the settlement (for example, `processed`, `pending`, `failed`). | No | | Amount | Integer | The total amount of the settlement. | No | | Tax | Integer | The tax amount associated with the settlement. | Yes | | Fees | Integer | The total fees deducted from the settlement amount. | No | ## Payments Holds the core information about successful and failed payment attempts, including amount, method and customer details. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Settled By | String | Indicates the entity that settled the payment. | Yes | | Notes | String | Additional notes or comments for the payment. | Yes | | Payment Method | String | The method used for the payment (for example, 'card', 'netbanking', 'upi', 'wallet'). | Yes | | Captured At | Date/Time | Timestamp when the payment was captured. | No | | Payment ID | String | Unique identifier for the payment. | No | | Customer Email | String | The email address of the customer who made the payment. | Yes | | Customer Contact | String | The contact number of the customer who made the payment. | Yes | | Currency | String | The currency in which the payment was made. | No | | Order ID | String | The ID of the order associated with this payment. | Yes | | Created At | Date/Time | Timestamp when the payment record was created. | No | | Status | String | The current status of the payment (for example, `captured`, `failed`, `refunded`). | No | | Amount | Integer | The total amount of the payment. | No | | Fee | Integer | The fee associated with the payment. | Yes | | Tax | Integer | The tax amount applied to the payment. | Yes | | Receiver ID | String | The ID of the receiver of the payment. | Yes | | Error Code | String | The error code if the payment failed. | Yes | | Invoice ID | String | The ID of the invoice associated with this payment. | Yes | | VPA | String | The Virtual Payment Address (VPA) used for UPI payments. | Yes | | Error Description | String | A detailed description of the error if the payment failed. | Yes | | Receiver Type | String | The type of the receiver of the payment. | Yes | | Bank | String | The bank used for the payment. | Yes | | Wallet | String | The wallet used for the payment. | Yes | | Card ID | String | The ID of the card used for the payment. | Yes | | Description | String | A general description of the payment. | Yes | | International | Boolean | Indicates if the payment was an international transaction (True/False). | Yes | | Refund Status | String | The status of any refund associated with this payment. | Yes | | Amount Refunded | Integer | The amount that has been refunded from this payment. | No | | Amount Transferred | Integer | The amount transferred out of this payment. | Yes | | Primary Transaction ID | String | Stores the main transaction identifier from payment gateways. | Yes | | Retrieval Reference Number | String | **RRN** (Retrieval Reference Number) Mainly used for UPI transactions as a unique identifier for reconciliation and sometimes for Cards/EMI | Yes | | Auth Code | String | | Yes | | Updated At | Date/Time | Timestamp when the payment record was last updated. | No | ## Transfers Records the movement of funds from one account or entity to another within the Razorpay ecosystem. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Transfer ID | String | Unique identifier for the transfer. | No | | Amount | Integer | The total amount of the transfer. | No | | Currency | String | The currency of the transfer. | No | | Created At | Date/Time | Timestamp when the transfer record was created. | No | | Amount Reversed | Integer | The amount reversed from this transfer. | Yes | | Notes | String | Additional notes or comments for the transfer. | Yes | | Source Type | String | The type of the source for the transfer (for example, 'payment'). | No | | Source ID | String | The ID of the source entity for the transfer. | No | | Tax | Integer | The tax amount applied to the transfer. | Yes | | Fees | Integer | The fees associated with the transfer. | Yes | | On Hold | Boolean | Indicates if the transferred amount is currently on hold (True/False). | No | | To ID | String | The ID of the recipient of the transfer. | No | | On Hold Until | Date/Time | The timestamp until which the transferred amount is on hold. | Yes | ## Reversals Documents the reversal of previously completed transfers or other financial movements. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Reversal ID | String | Unique identifier for the reversal. | No | | Currency | String | The currency of the reversal. | No | | Created At | Date/Time | Timestamp when the reversal record was created. | No | | Amount | Integer | The amount of the reversal. | No | | Notes | String | Additional notes or comments for the reversal. | Yes | ## Customers Contains demographic and contact information for the individuals or businesses making payments or associated with transactions. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Customer ID | String | Unique identifier for the customer. | No | | Customer Name | String | The full name of the customer. | Yes | | Customer Email | String | The email address of the customer. | Yes | | Customer Contact | String | The contact number of the customer. | Yes | ## Payment Links Enables the creation and management of shareable web links for collecting payments. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Payment Link ID | String | Unique identifier for the payment link. | No | | Title | String | The title or name of the payment link. | Yes | ## Contacts Stores general contact information for various entities or individuals relevant to your business operations. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Contact ID | String | Unique identifier for the contact. | No | | Contact Name | String | The name of the contact. | No | | Contact Type | String | The type of contact (for example, 'customer', 'vendor'). | Yes | | Contact Email | String | The email address of the contact. | Yes | | Notes | String | Additional notes or comments for the contact. | No | | Contact Number | String | The contact number of the entity. | Yes | | Created At | Date/Time | Timestamp when the contact record was created. | No | | Reference ID | String | An external reference ID for the contact. | Yes | ## Fund Accounts Consists of details of the bank accounts or other financial instruments used for payouts and settlements. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Fund Account ID | String | Unique identifier for the fund account. | No | | Account Type | String | The type of fund account (for example, `bank_account`, `vpa`). | No | ## Credits Represents a form of balance or credit available to a merchant or customer. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Credit Type | String | The type of credit. | No | ## Credit Transactions Records the specific actions where credits are used or adjusted. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Credits Used | Integer | The number of credits used in the transaction. | No | ## Payment Link (Customers) Stores customer-specific information related to interactions with payment links. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Customer ID | String | Unique identifier of the customer associated with a payment link. | Yes | | Customer Name | String | The name of the customer. | Yes | | Customer Email | String | The email address of the customer. | Yes | | Customer Contact | String | The contact number of the customer. | Yes | ## Offshore Remittance Information about payments made to foreign bank accounts. | Column Name | Type | Description | Is Nullable? | | - | - | - | - | | Merchant ID | String | Unique identifier of the merchant | No | | Settlements ID | String | Unique identifier of the settlement associated with the transaction | No | | Transaction ID | String | Unique identifier of the transaction | No | | Type | String | The type of transaction carried out. For example, `payment`, `refund`. | No | | Order ID | String | Unique identifier for the order. | No | | Transaction Date | Date/Time | Timestamp when the transaction record was made. | No | | Transaction Currency | String | The currency in which the transaction was made. | No | | Gross Transaction Amount | Integer | The total amount of the transaction inclusive of the tax component. | No | | MDR | Integer | Fee charged by Razorpay for each debit or credit transaction made. | No | | Tax | Integer | The tax amount applied to the transaction. | No | | Net Transaction Amount | Integer | The actual amount transacted, excluding taxes and fees. | No | | Net Debit | Integer | The amount debited from the account as part of the transaction. | No | | Net Credit | Integer | The amount credited to the account as part of the transaction. | No | | MTS Reference Number | String | Unique identifier generated by the payment gateway or processing system. | No | | Offshore Remittance Date | Date/Time | Timestamp when the amount was credited to the receiver's account. | No | | Total Offshore | Integer | Total amount of transaction made for a particular MTS Reference Number (in the foreign currency). | No | | Remittance Currency | String | Currency used for the offshore transaction. For example, `USD`. | No | | Total Amount | Integer | Total amount of transaction made for a particular MTS Reference Number (in the local currency). | No | | Domestic Currency | String | Domestic currency used for the transaction. For example, `INR`. | No | | Notes | String | Additional notes or comments related to the offshore remittance. | Yes | # List of Standard Reports Source: https://razorpay.com/docs/payments/dashboard/reports/list-of-reports Check and download the various types of Reports available on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States The table below lists the various reports supplied as default and gives a brief description of each report. Click the report name to download the sample report of that product. Know [how to download reports.](/docs/payments/dashboard/reports#download-reports) ## Payment Gateway | Report Name | Description | | - | - | | [Settlements](https://razorpay.com/docs/build/browser/assets/images/sample-settlements-report.xlsx) | This report provides a list of the settlement(s) in the selected time range. | | [Payments](https://razorpay.com/docs/build/browser/assets/images/sample-payments-report.xlsx) | This report provides details of all payments created within the selected time range. It also helps you verify whether a payment is international or domestic. | | [Combined Report](https://razorpay.com/docs/build/browser/assets/images/sample-combined-report.xlsx) | This report provides all transactions (payments, refunds, adjustments and transfers) and settlements made in the selected time range. | | [Orders](https://razorpay.com/docs/build/browser/assets/images/sample-orders-report.xlsx) | This report provides details of all orders that were created in the selected time range. | | [Refunds](https://razorpay.com/docs/build/browser/assets/images/sample-refunds-report.xlsx) | This report provides details of all refunds that were initiated in the selected time range. | | [Instant Refunds](https://razorpay.com/docs/build/browser/assets/images/sample-instant-refunds-report.xlsx) | This report provides details of all the instant refunds initiated in the selected time range. | | [Settlement Recon](https://razorpay.com/docs/build/browser/assets/images/sample-settlements-recon-report.xlsx) | This report provides a detailed list of all transactions (payments, refunds, and adjustments) against every settlement in the selected time range. | | [Monthly Invoice](https://razorpay.com/docs/build/browser/assets/images/sample-monthly-invoice-report.xlsx) | An invoice for transactions and the corresponding payments. | > [!NOTE] > > **Handy Tips** You can currently download only the Monthly Invoices report. ## Route | Report Name | Description | | - | - | | [Transfers](https://razorpay.com/docs/build/browser/assets/images/sample-transfers-report.xlsx) | This report provides details of all transfers made to your linked accounts in the selected time range. | | [Reversals](https://razorpay.com/docs/build/browser/assets/images/sample-reversals-report.xlsx) | This report provides details of all reversals that were made against any linked account transfers. | | [Custom Transfers with Notes](https://razorpay.com/docs/build/browser/assets/images/sample-custom-transfers-report.xlsx) | This report provides details of all transfers (including the custom notes added) that were made to your linked accounts in the selected time range. | ## Payment Links | Report Name | Description | | - | - | | [Payment Links](https://razorpay.com/docs/build/browser/assets/images/sample-payment-links-report.xlsx) | This report provides details of all the standard payment links that were created in the selected time range. | ## Payment Button | Report Name | Description | | - | - | | [Payment Buttons](https://razorpay.com/docs/build/browser/assets/images/sample-payment-buttton-report.xlsx) | This report provides details of all the payment buttons that were created in the selected time range. | ## Payment Pages | Report Name | Description | | - | - | | [Payment Pages](https://razorpay.com/docs/build/browser/assets/images/sample-payment-page-report.xlsx) | This report provides details of all the payment pages that were created in the selected time range. | ## Subscriptions | Report Name | Description | | - | - | | [Subscriptions](https://razorpay.com/docs/build/browser/assets/images/sample-subsciptions-report.xlsx) | This report provides details of all subscriptions that were created in the selected time range. | ## QR Codes | Report Name | Description | | - | - | | [QR Codes](https://razorpay.com/docs/build/browser/assets/images/sample-qrcode-report.xlsx) | This report provides details of all QR Codes that were created in the selected time range. | ## International Business - Import Flow | Report Name | Description | | - | - | | [Offshore Remittance](https://razorpay.com/docs/build/browser/assets/images/sample-offshore-remittance-report.xlsx) | This report contains the details of the transactions settled to your bank account, along with the foreign currency amount details. | # Support Source: https://razorpay.com/docs/payments/dashboard/support If you are a business using Razorpay products or exploring Razorpay solutions, contact our Support Team for all your technical and product queries. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States If you are a registered Razorpay user and need help, connect with [Razorpay Support team](https://razorpay.com/support/). Refer to [Razorpay Docs](https://razorpay.com/docs) for details about each of Razorpay products, integrations, like [Payment Gateway](https://razorpay.com/docs/payments/payment-gateway) and [API Reference Guide](https://razorpay.com/docs/api/). > [!NOTE] > > **You are a registered Razorpay User** > > If you have a Razorpay User ID (Merchant ID/MID), and you: > > * Run a business or are a freelancer. > * Use Razorpay products to receive payments from your end-users and/or make payouts for business purposes. > > Not registered yet? [Sign up with Razorpay](https://easy.razorpay.com/) ## Contact Razorpay Support > [accordion] To contact the Razorpay Support team: > > 1. Log in to the Dashboard. > > 2. Click **Help** for **Quick actions** or to **Get in touch**. > > ![Raise a Ticket - Help and Support pop-up - Dashboard](https://razorpay.com/docs/build/browser/assets/images/dashboard-support.jpg) > > 3. You have the following options in the **Get in touch** section: > * [Create support ticket](#create-support-ticket): Check existing queries or raise a new support ticket > * [Contact Us](#contact-us): Start a live chat with us or request a callback for quicker resolution (selected users only) > > ![Raise a Ticket - Help and Support pop-up - Dashboard](https://razorpay.com/docs/build/browser/assets/images/dashboard-support-options-new.jpg) > > You can also scroll further down and click **Documentation** to know about the various Razorpay offerings, integrations and APIs. ## Create Support Ticket You can check existing queries or raise a new support ticket through the Dashboard. Watch this video to know how to raise a ticket. [YouTube video player](https://www.youtube.com/embed/02WXIXGhHIQ?si=WyY-Y68JZVvDynzk) > [accordion] To raise a new ticket: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **Support tickets** (under Business settings). > 3. Click **Support tickets**. > 4. Click **+ Raise New Query** and select the relevant topic and sub-topic. > 5. Enter the details of your query and **Upload file** if necessary. Click **Create support ticket**. > 6. **Confirm** your phone number. The support ticket is created and details are sent to your registered email id. Click **Done**. ### Track Status of Existing Tickets Know how to [track your support tickets](/docs/payments/dashboard/account-settings/support-tickets) on the Dashboard. > [!NOTE] > > **Handy Tips** > > For a faster support experience, reply to the relevant existing ticket instead of creating a new ticket. ## Contact Us This feature is available for selected users only. If it is visible for your account, you can chat with a member of the Support Team between 10 a.m. and 10 p.m. on all working days for instant communication. ![Contact Razorpay Support](https://razorpay.com/docs/build/browser/assets/images/payments-support-contact-us.jpg) > [accordion] To start a live chat with us: > > 1. Log in to the Dashboard. > 2. Click **Help**, in the **Get in touch** section, click **Contact Us**. > 3. Select the relevant topics and sub-topics. > 4. On the pop-up, click **Start Chat** for a live chat or **Request for callback**. > [!NOTE] > > **Customer Looking for Refunds** > > If you are a customer who has used one of the Razorpay products to make payments and looking for a refund, read about [Customer Refunds](/docs/payments/customers/customer-refunds). ## Escalate a Support Ticket Escalating a ticket moves your ticket to a priority resolution queue. A representative will then contact you by phone within the next two hours to address your issue. The **Escalate Now** button appears on your support ticket within the Dashboard when we do not meet our committed Turnaround Time (TAT) or Service Level Agreement (SLA) for ticket resolution. To escalate a support ticket: 1. Locate the **Escalate Now** button on the Dashboard. ![Dashboard - Escalate Ticket](https://razorpay.com/docs/build/browser/assets/images/escalation-tool-escalate-now.jpg) * You can find this button in the help chat as shown below: ![Dashboard - Escalate Ticket on Help Chat](https://razorpay.com/docs/build/browser/assets/images/escalation-tool-help-chat.jpg) * This button will also show up on the **Account & Settings > Support Tickets** page: ![Dashboard - Escalate Now on Support Tickets](https://razorpay.com/docs/build/browser/assets/images/escalation-tool-support-tickets.jpg) 2. Click **Escalate Now**. The ticket is now escalated and is moved to a priority resolution queue. ![Dashboard - Escalated Ticket](https://razorpay.com/docs/build/browser/assets/images/escalation-tool-escalated-ticket.jpg) # Test and Live Modes Source: https://razorpay.com/docs/payments/dashboard/test-live-modes Check the Test (sandbox environment) and Live modes available on the Razorpay Dashboard and the difference between them. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [!WARNING] > > **Watch Out!** > > The Dashboard offers two modes: **Test** and **Live**. Both modes provide the same functionalities, except that real payments cannot be accepted in **Test** mode. Refer the [table below](/docs/payments/dashboard/test-live-modes#test-mode-vs-live-mode) for more details. ## Test Mode Vs Live Mode | Test Mode | Live Mode | | - | - | | The Test mode is a replica of your account in a sandbox environment. This allows you to test all aspects of your integration before you go live. | After thoroughly testing your integration, you can switch to the Live mode and start accepting payments from customers. | | The Test mode is available to you as soon as you complete the sign-up process. You can use Test mode as long as you want. | The Live mode is available after you activate your account from the Dashboard. | | Generate API keys in Test mode to use the API keys in Test mode. | Generate API keys in Live mode to use the API keys in Live mode. | | Actions taken in the test mode have no consequences in your live environment. Transactions and entities created in the test mode do not appear in the live mode. **No real money is used in the test mode**. | Payments made by your customers are settled to your account according to your settlement cycle. | > [!NOTE] > > **Separate Set of API Keys in Test and Live Mode** > > You have to generate a separate set of API keys for Live and Test modes. Know more about [Generating API Keys on Dashboard](/docs/payments/dashboard/account-settings/api-keys). ## Enable Test Mode You can turn on **Test Mode** using the toggle on your Razorpay Dashboard. ![Switch between Test and Live modes on Dashboard](https://razorpay.com/docs/build/browser/assets/images/test-mode-new.jpg) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/faqs Find answers to some Frequently Asked Questions (FAQs) about Razorpay. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States ## Master KYC & Account Verification > [accordion] What is Central KYC Registry (CKYC) and how does it help me? > > **Central KYC Registry (CKYC)** is a centralised government database maintained by CERSAI (Central Registry of Securitisation Asset Reconstruction and Security Interest of India) containing verified KYC records from all financial institutions in India. > > **Benefits for businesses:** > > * **Instant Verification:** If you have CKYC records (from bank, mutual fund, insurance), verification happens in seconds. > * **No Document Uploads:** Many required documents are auto-fetched from CKYC. > * **Skip Video KYC:** Businesses can bypass Video KYC completely. > * **Faster Activation:** Complete onboarding in minutes instead of days. > [accordion] How do I give consent to download my CKYC records? > > The consent process differs for individuals and businesses: > > **For Individuals/Unregistered Businesses:** > > 1. Enter your Personal PAN. > 2. Razorpay checks if CKYC record exists. > 3. Enter mobile number linked to your CKYC record. > 4. Enter OTP sent by CKYC system. > 5. Your CKYC record is downloaded with documents. > > **For Registered Businesses:** > > 1. Enter Business PAN and upload PAN document. > > 2. Date of Incorporation is extracted from PAN document. > > 3. Razorpay checks CKYC using PAN and Date of Incorporation. > > 4. Your business CKYC record is downloaded. > > > [!WARNING] > > > > **Watch Out!** > > > > The mobile number must be the same one registered with your CKYC record (typically the same as the mobile number linked to Aadhaar). > [accordion] What is Video KYC and when is it required? > > **Video KYC** is a live video call with a Razorpay agent to verify your identity when CKYC data is not available. > **Video KYC is NOT Required when:** > > * CKYC data is successfully fetched for your entity. > * You can proceed directly with document submission. > > **Video KYC is Required when:** > > * CKYC search returns no record for your business. > * CKYC OTP verification fails. > * You do not have existing CKYC records. > > Only the **Authorised Signatory** needs to complete Video KYC. Ultimate Beneficial Owners (UBOs) do NOT need Video KYC. > [accordion] Why must I show the original PAN card during Video KYC? > > RBI regulations require verification of original documents during Video KYC. > > The Authorised Signatory must physically hold and display the original PAN card on camera. This ensures: > > * Document authenticity. > * Prevention of fraudulent submissions. > * Compliance with regulatory requirements. > > **NOT Accepted:** > > * Printed copies of PAN. > * Screenshots of PAN. > * E-PAN displayed on mobile screen. > > **Accepted:** > > * Original physical PAN card only. > [accordion] Is UBO verification mandatory for my business type? > > **UBO verification is mandatory if your business type is:** > > * Private Limited Company (>10% shareholding) > * Public Limited Company (>10% shareholding) > * Section 8 Company (>10% shareholding) > * Partnership Firm (>10% holding) > * Limited Liability Partnership (>10% contribution) > * Trust (โ‰ฅ10% interest - includes exactly 10%) > * Society (>15% interest - higher threshold) > > **UBO Declaration is not required if your business type is:** > > * Individual/Unregistered Business (owner is the merchant) > * Sole Proprietorship (owner is the merchant) > * Hindu Undivided Family (HUF) > * Government Entity > * Judicial Person > * Local Authority > > **For Each UBO:** Provide PAN number (verified), Aadhaar document (front & back) and ownership percentage (self-declared). > [accordion] What if I do not have a CKYC record? > > If CKYC you do not have a CKYC record, follow the standard verification flow: > > **Your Onboarding Path:** > > 1. **Upload Required Documents:** Based on your business type. > 2. **Complete Video KYC:** Live video call with original PAN display. > 3. **Digilocker Verification:** Within 3 days of video call. > 4. **Review:** Our team reviews your submission (3-4 business days). > > **After Successful Onboarding:** > > Razorpay uploads your KYC data to CKYC for future use. This helps: > > * Speed up any future KYC processes. > * Enable instant verification with other financial institutions. > * Reduce document resubmission across services. > [accordion] Which business types can never be auto-activated? > > The following entity types always require manual review and can never be auto-activated via CKYC. They are identified by the **4th character** in their business PAN: > > * **Hindu Undivided Family (HUF)** - PAN 4th letter: **H** > * **Government Entity** - PAN 4th letter: **G** > * **Judicial Person** - PAN 4th letter: **J** > * **Local Authority** - PAN 4th letter: **L** > > These entities have **unique regulatory, legal and ownership structures** that require detailed manual verification regardless of CKYC availability. > > **All other business types** can be auto-activated if: > > * CKYC data is successfully fetched. > * All required documents are present. > * Business category supports auto-activation. > [accordion] What documents are NEW requirements under Master KYC? > > New mandatory documents (Effective January 1, 2026): > > **For Private/Public Limited Companies:** > > * **Memorandum of Association (MOA)** - NEW. > * **Articles of Association (AOA)** - NEW. > * **Board Resolution or Power of Attorney** - NEW (for Authorised Signatory). > * **UBO Declaration** - NEW (for shareholders >10%). > > **For Sole Proprietorship:** > > * **2 Business Documents** - NEW requirement (from approved list). > * Previously only 1 document (GSTIN) was required. > > **For All Registered Businesses:** > > * **Ultimate Beneficial Owner (UBO) Declaration** - NEW. > * **Power of Attorney** - NEW (if Authorised Signatory is not owner/director/partner). > > **Removed Requirements:** > > * Website policies (Terms, Refund, Privacy) - No longer required at onboarding. > [accordion] Can I track my CKYC verification status? > > Yes, you can track CKYC verification status on your Dashboard. > > **Status Indicators:** > > * **Checking CKYC:** System searching for your CKYC record. > * **Awaiting Consent:** Waiting for mobile OTP verification. > * **CKYC Fetched:** Records successfully downloaded. > * **CKYC Not Found:** No record exists, proceed with manual verification. > * **Consent Failed:** OTP verification failed, retry or use manual method. > > **If CKYC Fetch Fails:** > > 1. System automatically switches to traditional verification. > 2. You will be prompted to upload documents. > 3. Video KYC requirement will be displayed. > 4. Proceed with Digilocker + Video KYC flow. > > Check your Dashboard notifications and email for real-time updates on your KYC status. > [accordion] What happens if my Video KYC verification fails? > > Common reasons for Video KYC failure: > > * Poor video quality (lighting, connection). > * Face mismatch between PAN, Aadhaar and live video. > * Original PAN card not shown (showing e-PAN or printout). > * Digilocker verification not completed within 3 days. > * Wrong person attended the call (not the Authorised Signatory). > > **What Happens Next:** > > 1. You will receive notification of failure reason. > 2. Can retry Video KYC (no limit on retries). > 3. Ensure all requirements are met before retry. > > **How to Avoid Failure:** > > * Use original physical PAN card. > * Ensure good lighting and stable internet. > * Authorised Signatory must attend (not someone else). > * Complete Digilocker verification first. > * Enable camera, microphone, GPS permissions. > * Schedule call during the **8 AM - 7 PM (Monday to Sunday)** window. > > Contact our [support team](https://razorpay.com/support/) if you face repeated failures. > [accordion] Do I need to complete separate CKYC for my business and myself? > > Yes, for registered businesses, entity CKYC and individual CKYC are separate. > > **Two Types of CKYC Records:** > > **1. Entity CKYC (Business)** > > * For the registered business entity > * **Contains**: Business PAN, Certificate of Incorporation, MOA/AOA and so on. > * **Used for**: Business identity verification > > **2. Individual CKYC (Authorised Signatory)** > > * For the person authorised to sign on behalf of business > * **Contains**: Personal PAN, Aadhaar, address proof > * **Used for**: Authorised Signatory verification > > **Example - Private Limited Company:** > > * **Entity CKYC:** Company's CKYC record (Business PAN and Date of Incorporation) > * **Individual CKYC:** Director's CKYC record (Director's personal PAN) > > **For Individuals/Proprietorships:** > > * Only one CKYC record (individual's record) > * Proprietorship may have separate entity CKYC in some cases > > Both records are checked during onboarding. If either is missing, that portion requires manual verification/Video KYC. ## Account Activation > [accordion] Do you support freelancers or individuals? > > Yes, we do support freelancers/individual business entities. You can [sign up here](https://dashboard.razorpay.com/#/access/signup/) and submit your activation form. > [accordion] I submitted the activation form a while ago. How can I get my account activated? > > If you have already submitted the activation form but have not received any communication, please check your email inbox, including the spam or junk folders. Look for an email from Razorpay that would have been sent shortly after submitting the activation form. In case you don't find the email, please raise a request to [Razorpay Support](https://razorpay.com/support/) and our team will get back to you. > [accordion] I have signed up with Razorpay. How do I complete my activation form? > > Follow the steps given below to complete the activation process: > > 1. Log in to your Dashboard. > 2. Complete Account Activation and KYC Verification steps. > 3. Submit the activation form. > [accordion] I have submitted my activation form, but my account is not activated. Can I start integrating? > > Yes, you can start integrating without your account getting activated. But you must have an active account for the [settlements](/docs/payments/settlements). Check the [various integration options available](https://razorpay.com/integrations/) to you. If you face any issues during the integration, [raise a Razorpay Support request.](https://razorpay.com/support/#request) > [accordion] I have submitted my activation form. When will my account get activated? > > Activation of an account is subject to approval from our banking partners (Working days do not include Saturdays, Sundays and bank holidays). > > We will update your account status after receiving the bank's response. > [accordion] My account has not been activated; it has been too long since I got any update. What do I do? > > We try our best to have everyone's account activated on time. However, since you have not received an update on this, please raise a request with [Razorpay Support](https://razorpay.com/support/). Our team will update you at the earliest on the status of your account. > [accordion] What are the documents needed to sign-up? > > To ensure a smooth sign-up process, it is important to provide the necessary documents as per Razorpay's requirements. Check the [list of documents](/docs/payments/business-types-kyc-documents#kyc-documents) required for signing up at Razorpay. > [accordion] 8 . What payment methods are supported by Razorpay? > > Razorpay supports [various payment methods](/docs/payments/payment-methods#supported-payment-methods) to cater to diverse customer preferences. > [accordion] Why is my settlement on hold and my account under review after activation? > > Our compliance team and partner banks perform routine audits of your KYC documents. We might temporarily pause your settlements during this time. Look out for clarifications asked by our team on your registered email. Upon receiving your response, we will process the application within 2 days and re-enable settlements for you. > > > [!NOTE] > > > > **Handy Tips** > > > > You can still accept payments from your customers. > [accordion] Can I change my business type once my account is created? > > No, you cannot change your business type once the account is created. However, you can update the business type if you still need to submit your KYC details. > [accordion] I am unable to use my mobile number. It shows that the mobile number already exists. How can I create an account using the same number? > > You can refer to [Create Multiple Account](/docs/payments/set-up#set-up-multiple-accounts). > [accordion] Can a UK company register with Razorpay? > > No, only Indian companies can register. You can refer to [Razorpay](https://razorpay.com/sg/) for Singapore. > [accordion] I donโ€™t have GST and a current account. It is a very small, new business. How can I proceed without the above details? > > Submitting GST and current account details is not mandatory. You can select **I donโ€™t have GST** and proceed with a savings account. > [accordion] How do I know my KYC status? > > The status of your KYC is communicated on your Dashboard. > [accordion] How do I submit my HUF document? > > Select your business type as HUF during onboarding to submit your HUF document. You can edit all the fields if you still need to submit the form. > [accordion] I am unable to add comments to my activation form. It says "locked by admin". How can I resolve this? > > You cannot edit a KYC form once it is submitted. If more information is required, we will email you. > [accordion] Can I update my PAN Card details? > > Once your KYC is verified, you can contact our [Support Team](https://razorpay.com/in/support/) to update your PAN card details. ## Account Configuration > [accordion] Can I disable the customer receipt emails from Razorpay? > > Customers receive email receipts for the transactions on their account (payments or refunds). Unfortunately, this is mandated by our partner banks and hence cannot be disabled. > [accordion] I have signed up using my phone number. How do I setup my password? > > To setup a password: > > 1. Enter your email address and click **Forgot?**. You will receive a verification link on your email ID. > > ![dashboard password setup](https://razorpay.com/docs/build/browser/assets/images/dashboard-password-reset.jpg) > 2. Click the verification link and setup your password. ## Account Rejection > [accordion] Why has my account been rejected? > > Your account may have been rejected because we do not support your business sub-category. You can refer to our [terms](https://razorpay.com/terms/) to know more. # About International Payments Source: https://razorpay.com/docs/payments/international-payments Accept payments in international currencies, through international bank accounts and/or payments via cards issued by foreign banks. Check the list of supported purpose codes and currencies. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [card] [International Payments Changelog](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to Razorpay International Payments (since Jan 2024). [International Payments](https://www.youtube.com/embed/iK8MmzWqG80?si=LHcToE1Pbba6NK5_) International Payments Watch this video to know what Razorpay offers for International Payments. You can accept payments from your customers in more than 160+ foreign currencies using our Payment Gateway and other products such as Payment Pages, Payment Button, Payment Links and Invoices. Razorpay supports [3D Secure 2.0](/docs/payments/payment-methods/cards/features/3ds2.0) for international cards. > [card] [List of Purpose Codes](/docs/payments/international-payments#list-of-purpose-codes) > > Download the list of transaction purpose codes. > [card] [Supported Products](/docs/payments/international-payments#supported-products) > > List of products available for international payments. > [card] [Supported Currencies](/docs/payments/international-payments#supported-currencies) > > List of supported currencies for international payments. ## Get Started Check these steps to accept international payments from [Indian Businesses](/docs/payments/international-payments#indian-businesses) and [International Businesses](/docs/payments/international-payments#international-businesses). ### Indian Businesses Indian businesses can easily activate international payment methods to expand their global reach. > [accordion] New Razorpay User > > If you are a new user, you will need to complete the following steps displayed on the onboarding screens to activate international payment methods. > > 1. Sign up for an [account](https://accounts.razorpay.com/auth/). > 2. On the onboarding screen, select **Outside India (International)** and click **Start Onboarding**. > > ![International Payments Onboarding](https://razorpay.com/docs/build/browser/assets/images/ip-onboarding.jpg) > 3. Fill up the following details to complete the onboarding: > * Basic Details: > * Name (Business or Individual). > * Phone number. > * Email address. > * Payment channels you want to enable. > * Business Details: > * Type of business: Individual, Sole Proprietorship, Partnership, Private Limited, Public Limited, LLP, NGO and so on. > * Personal PAN (for individuals) or Business PAN. > * Business Documents: > * GSTIN certificate (if GST registered). > * Udyam registration certificate (for MSMEs). > * Complete your KYC: > * Business address with proof. > * Authorised signatory details. > * Complete video KYC: > * Requires Aadhaar and PAN card. > * Live video verification with Razorpay agent. > * Takes approximately 3-4 minutes. > ![Onboarding flow](https://razorpay.com/docs/build/browser/assets/images/ip-onborading-flow.jpg) > 4. Follow the on-screen instructions to provide any additional details or documentation required for activation. > [accordion] Existing Razorpay User > > If you are an existing Razorpay user, to activate international payment methods, follow the steps given below. > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **International payments** (under Payment methods). > 3. Select the payment method you wish to activate, such as **International Cards** or **International Bank Transfers** and click **Activate** button corresponding to the payment method. > > ![International cards and Bank transfer activate](https://razorpay.com/docs/build/browser/assets/images/ic-ibt-activate.jpg) > 4. Follow the on-screen instructions to provide any additional details or documentation required for activation. Indian businesses can use **International Bank Transfer** to open **SWIFT accounts** and **Local bank accounts** to accept international payments. > [tab] International Bank Transfer > > **International Bank Transfer** (MoneySaver Export Account) enables the [Local Currency Bank Transfer](/docs/payments/international-payments/international-bank-transfer) method and [Swift Transfer](/docs/payments/international-payments/international-bank-transfer) method to accept payments from buyers outside India without additional paperwork. The final settlement is done in the bank accounts of Indian businesses in INR. > > **Local Currency Bank Transfer**: Accept payments from buyers outside India without additional paperwork. The final settlement is done in the bank accounts of Indian businesses in INR. This significantly improves the customer experience by allowing international buyers to make local bank account transfer to Indian businesses. > > **Swift Transfers**: Accept payments from buyers outside India without additional paperwork. The final settlement is done in the bank accounts of Indian businesses in INR. This significantly improves the customer experience by allowing international buyers globally to make SWIFT Transfer to Indian businesses. > [tab] Local Payment Methods > > [Local Payment Methods](/docs/payments/international-payments/local-payment-methods) allows you to accept international payments from customers specific geographies in the form of online local payment method using the Razorpay Checkout form. > > * [Giropay](/docs/payments/payment-methods/giropay) for German customers. > * [Sofort](/docs/payments/payment-methods/sofort) for European customers. > * [Trustly](/docs/payments/payment-methods/trustly) for UK and European customers. > * [POLi](/docs/payments/payment-methods/poli) for Australian customers. ### International Businesses Non-Indian businesses looking to accept payments from Indian customers via Razorpay and get their settlement in a foreign bank account. Check the [list of supported purpose codes](https://razorpay.com/docs/build/browser/assets/images/transaction_purpose_codes.xlsx) and [currencies](/docs/payments/international-payments#supported-currencies). Razorpay allows foreign (non-Indian) businesses to accept payments from Indian customers without any additional paperwork or registration. Your Indian customers can make payments via local payment methods such as credit cards, debit cards, UPI and netbanking. The funds are settled in your overseas bank account. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please fill out the [form](https://form.typeform.com/to/C5OlR4YQ) to get this feature activated on your account. > [!WARNING] > > **Watch Out!** > > Your international payment will fail if you send us a dummy email id and phone number of the customer. ## Payment Methods for International Payments Based on Business Type Select the payment method based on your business type: > [tab] Registered Businesses > > If you are an eligible registered business with a valid website, you can accept international payments made using: > > > [tab] Individuals > > * If you are an individual, such as a freelancer, you must [integrate PayPal](/docs/payments/payment-methods/wallets/paypal) to accept international payments. > * [International Bank Transfer](/docs/payments/international-payments/international-bank-transfer) > [accordion] List of Purpose Codes > > Download the complete [list of transaction purpose codes](https://razorpay.com/docs/build/browser/assets/images/transaction_purpose_codes.xlsx) that can be selected in the onboarding process. \\ > [accordion] Supported Products > > The following products support international payments: > > | Product | International Payments Supported | > | - | - | > | Payment Gateway (Checkout) | Yes | > | Invoices | Yes | > | Payment Links | Yes | > | Payment Pages | Yes | > | Subscriptions | Yes | > | Route | No | > | Smart Collect | No | > | RazorpayX | No | > [accordion] Supported Currencies > > Following is the list of supported currencies: > > | Currency Name | ISO Code | Exponent | > | - | - | - | > | United Arab Emirates Dirham | AED | 2 | > | Albanian lek | ALL | 2 | > | Armenian dram | AMD | 2 | > | Australian dollar | AUD | 2 | > | Aruban florin | AWG | 2 | > | Azerbaijan Manat | AZN | 2 | > | Convertible Mark | BAM | 2 | > | Barbadian dollar | BBD | 2 | > | Bangladeshi taka | BDT | 2 | > | Bulgarian Lev | BGN | 2 | > | Bahraini Dinar | BHD | 3 | > | Burundi Franc | BIF | 0 | > | Bermudian dollar | BMD | 2 | > | Brunei dollar | BND | 2 | > | Bolivian boliviano | BOB | 2 | > | Brazilian Real | BRL | 2 | > | Bahamian dollar | BSD | 2 | > | Bhutanese Ngultrum | BTN | 2 | > | Botswana pula | BWP | 2 | > | Belize dollar | BZD | 2 | > | Canadian dollar | CAD | 2 | > | Swiss franc | CHF | 2 | > | Chilean Peso | CLP | 0 | > | Chinese yuan renminbi | CNY | 2 | > | Colombian peso | COP | 2 | > | Costa Rican colon | CRC | 2 | > | Cuban peso | CUP | 2 | > | Cabo Verde Escudo | CVE | 2 | > | Czech koruna | CZK | 2 | > | Djibouti Franc | DJF | 0 | > | Danish krone | DKK | 2 | > | Dominican peso | DOP | 2 | > | Algerian dinar | DZD | 2 | > | Egyptian pound | EGP | 2 | > | Ethiopian birr | ETB | 2 | > | European euro | EUR | 2 | > | Fijian dollar | FJD | 2 | > | Pound sterling | GBP | 2 | > | Ghanian Cedi | GHS | 2 | > | Gibraltar pound | GIP | 2 | > | Gambian dalasi | GMD | 2 | > | Guinean Franc | GNF | 0 | > | Guatemalan quetzal | GTQ | 2 | > | Guyanese dollar | GYD | 2 | > | Hong Kong dollar | HKD | 2 | > | Honduran lempira | HNL | 2 | > | Croatian kuna | HRK | 2 | > | Haitian gourde | HTG | 2 | > | Hungarian forint | HUF | 2 | > | Indonesian rupiah | IDR | 2 | > | Israeli new shekel | ILS | 2 | > | Indian rupee | INR | 2 | > | Iraqi Dinar | IQD | 3 | > | Iceland Krona | ISK | 0 | > | Jamaican dollar | JMD | 2 | > | Jordanian Dinar | JOD | 3 | > | Japanese Yen | JPY | 0 | > | Kenyan shilling | KES | 2 | > | Kyrgyzstani som | KGS | 2 | > | Cambodian riel | KHR | 2 | > | Comorian Franc | KMF | 0 | > | Korean Won | KRW | 0 | > | Kuwaiti Dinar | KWD | 3 | > | Cayman Islands dollar | KYD | 2 | > | Kazakhstani tenge | KZT | 2 | > | Lao kip | LAK | 2 | > | Sri Lankan rupee | LKR | 2 | > | Liberian dollar | LRD | 2 | > | Lesotho loti | LSL | 2 | > | Moroccan dirham | MAD | 2 | > | Moldovan leu | MDL | 2 | > | Malagasy Ariary | MGA | 2 | > | Macedonian denar | MKD | 2 | > | Myanmar kyat | MMK | 2 | > | Mongolian tugrik | MNT | 2 | > | Macanese pataca | MOP | 2 | > | Mauritian rupee | MUR | 2 | > | Maldivian rufiyaa | MVR | 2 | > | Malawian kwacha | MWK | 2 | > | Mexican peso | MXN | 2 | > | Malaysian ringgit | MYR | 2 | > | Mozambique Metical | MZN | 2 | > | Namibian dollar | NAD | 2 | > | Nigerian naira | NGN | 2 | > | Nicaraguan cordoba | NIO | 2 | > | Norwegian krone | NOK | 2 | > | Nepalese rupee | NPR | 2 | > | New Zealand dollar | NZD | 2 | > | Rial Omani | OMR | 3 | > | Peruvian sol | PEN | 2 | > | Papua New Guinean kina | PGK | 2 | > | Philippine peso | PHP | 2 | > | Pakistani rupee | PKR | 2 | > | Polish Zloty | PLN | 2 | > | Paraguayan Guarani | PYG | 0 | > | Qatari riyal | QAR | 2 | > | Romanian Leu | RON | 2 | > | Serbian Dinar | RSD | 2 | > | Russian ruble | RUB | 2 | > | Rwanda Franc | RWF | 0 | > | Saudi Arabian riyal | SAR | 2 | > | Seychellois rupee | SCR | 2 | > | Swedish krona | SEK | 2 | > | Singapore dollar | SGD | 2 | > | Sierra Leonean leone | SLL | 2 | > | Somali shilling | SOS | 2 | > | Salvadoran colรณn | SVC | 2 | > | Swazi lilangeni | SZL | 2 | > | Thai baht | THB | 2 | > | Tunisian Dinar | TND | 3 | > | Turkish Lira | TRY | 2 | > | Trinidad and Tobago dollar | TTD | 2 | > | New Taiwan Dollar | TWD | 2 | > | Tanzanian shilling | TZS | 2 | > | Ukrainian Hryvnia | UAH | 2 | > | Uganda Shilling | UGX | 0 | > | United States dollar | USD | 2 | > | Uruguayan peso | UYU | 2 | > | Uzbekistani so'm | UZS | 2 | > | Vietnamese Dong | VND | 0 | > | Vatu | VUV | 0 | > | CFA Franc BEAC | XAF | 0 | > | East Caribbean Dollar | XCD | 2 | > | CFA Franc BCEAO | XOF | 0 | > | CFP Franc | XPF | 0 | > | Yemeni rial | YER | 2 | > | South African rand | ZAR | 2 | > | Zambian Kwacha | ZMW | 2 | > > * For any other additional currencies, which are not a part of the above list and that you might want us to support, kindly raise a request on our [Support Portal](https://razorpay.com/support/#request). > > > [tab] Two Decimal Currencies > > > > * When selling a product for โ‚น 1000 in the domestic market, you pass `INR` in the `currency` parameter and `100000` in the `amount` parameter (since the amount should be in paise). > > * When selling in the international market, you might want to charge \$20 for the same product. In this case, you must pass `USD` in the `currency` parameter and `2000` in the `amount` parameter (since the amount should be in cents).\\ > > > > For example: AED, AMD, INR and so on. > > > [tab] Three Decimal Currencies > > > > * When selling in the international market with a three-decimal unit, you might want to charge 99.999 KD for the same product. In this case, you must pass `KWD` in the `currency` parameter and `99999` in the `amount` parameter. > > > [tab] Zero Decimal Currencies > > > > * When selling in the international market with a zero-decimal unit, such as Japanese Yen (JPY), which does not have a concept of decimal values, you might want to charge 99 JPY for the same product. In this case, you must pass `JPY` in the `currency` parameter and `99` in the `amount` parameter. > [accordion] Forex Holiday Calendar 2026 > > Forex Holiday Calendar 2026 highlights days when forex trading is impacted due to holidays in India and the United States. > > [Download Forex Holiday Calendar 2026](https://razorpay.com/docs/build/browser/assets/images/forex-2026-holiday-calendar.pdf) > > > [!NOTE] > > > > **Handy Tips** > > > > * **INR Holidays (Orange-Shaded Days)**: USD/INR conversions will not be possible as the Indian forex market remains closed. These are Mumbai holidays when forex trading is unavailable. > > > > * **USD Holidays (Yellow-Shaded Days)**: Currency trading is available in India for Tom/Spot/Forwards, but USD nostro transfers will not be processed due to US bank closures. However, cash deals may be done on a selective basis. > > > [tab] Jan > > > > ![Forex Holiday Calendar Jan 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-jan-2026.jpg) > > > [tab] Feb > > > > ![Forex Holiday Calendar Feb 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-feb-2026.jpg) > > > [tab] Mar > > > > ![Forex Holiday Calendar Mar 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-mar-2026.jpg) > > > [tab] Apr > > > > ![Forex Holiday Calendar Apr 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-apr-2026.jpg) > > > [tab] May > > > > ![Forex Holiday Calendar May 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-may-2026.jpg) > > > [tab] Jun > > > > ![Forex Holiday Calendar Jun 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-jun-2026.jpg) > > > [tab] Jul > > > > ![Forex Holiday Calendar Jul 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-jul-2026.jpg) > > > [tab] Aug > > > > ![Forex Holiday Calendar Aug 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-aug-2026.jpg) > > > [tab] Sep > > > > ![Forex Holiday Calendar Sep 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-sep-2026.jpg) > > > [tab] Oct > > > > ![Forex Holiday Calendar Oct 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-oct-2026.jpg) > > > [tab] Nov > > > > ![Forex Holiday Calendar Nov 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-nov-2026.jpg) > > > [tab] Dec > > > > ![Forex Holiday Calendar Dec 2026](https://razorpay.com/docs/build/browser/assets/images/forex-holiday-calendar-dec-2026.jpg) # Accept International Payments From Indian Customers Source: https://razorpay.com/docs/payments/international-payments/accept-international-payments-from-indian-customers Non-Indian businesses looking to accept payments from Indian customers via Razorpay and get their settlement in a foreign bank account. Check the list of transaction purpose codes and supported currencies. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay allows foreign (non-Indian) businesses to accept payments from Indian customers without any additional paperwork or registration. Your Indian customers can make payments via local payment methods such as credit cards, debit cards, UPI and netbanking. The funds are settled in your overseas bank account. [https://www.youtube.com/embed/CkZeUU2q68s](https://www.youtube.com/embed/CkZeUU2q68s) > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please fill out the [form](https://form.typeform.com/to/C5OlR4YQ) to get this feature activated on your account. ## Current Challenges * Limited payment methods are available to end customers. For example, UPI and recurring payments are not supported by most payment providers. * Registration in India is a tedious and long process and is often subjected to regulations and reporting requirements. * International card payments are convenient ways of remitting funds to India from abroad. However, it incurs huge costs, making them a less preferred method for accepting payments. ## Advantages > [tab] Customers > > * **No Card? No Problem!** \\ > > Customers who do not have access to cards can use our **Import Flow** solution to pay through their bank account: through **UPI or Netbanking**, making it easy for them to buy products in foreign countries with lower card coverage. > > * **No Visit to Bank Branch** \\ > > Currently, customers have to visit their bank branch to make an international bank transfer to the seller's account. This process heavily impacts the customer experience as it is time-consuming. Using the **Import Flow** method, you can make bank transfers in your local currency. > > * **The Most Affordable Solution to Transfer Funds Internationally** \\ > > The customer can transfer funds to the seller's bank account. This incurs less cost than international card payments or SWIFT transfers. > > * **Faster Payments Experience** \\ > > Accept payments without a website or app using other Razorpay products, such as Payment Links and Payment Pages. > [tab] Businesses > > * **Wide Range of Domestic Payment Methods** \\ > > * [UPI](/docs/payments/payment-methods/upi) > * [Netbanking (All Banks)](/docs/payments/payment-methods/netbanking) > * [Card (Mastercard, Visa, Rupay, Diners)](/docs/payments/payment-methods/cards) > * UPI Autopay > * [Card Recurring](/docs/payments/recurring-payments/cards/integrate) > * [Emandate](/docs/payments/recurring-payments/emandate/integrate) > > * **Better Success Rates** \\ > > Card Payments are an expensive mode of payment. Also, international card payments have a lower success rate due to ever-increasing fraudulent attempts and extensive risk checks done by banks. > > * **No Indian Entity Required** \\ > > International Businesses do not need to spend significant time and resources in setting up an Indian entity or opening a local bank account in India. Razorpay's hassle-free onboarding helps you to collect payments as soon as the KYC process is completed. > > * **Multi-currency Settlement Support** \\ > > Razorpay supports all major currencies, including USD, EUR, CAD, GBP, JPY, SGD, AUD, PLN, CHF, KRW, AED and KWD, among others, for transactions originating from India. > > * **Powerful Dashboard** \\ > > Analyse detailed reports about payments, settlements, and refunds to make better business decisions. > > * **Maximum Compliance** \\ > > Razorpay complies with the latest standards of compliance like Tokenisation and Mandate management and holds the Reserve Bank of India's PA/PG license. Businesses can thus stay on top of regulatory and compliance requirements seamlessly with Razorpay. ## Supported Merchant Categories Razorpay supports these merchant categories: > [accordion] Import (Goods) > > | Category | Description | > | - | - | > | S0101 | Advance payment against imports made to countries other than Nepal and Bhutan. | > | S0102 | Payment towards imports - settlement of invoice other than Nepal and Bhutan. | > | S0103 | Imports by diplomatic missions other than Nepal and Bhutan. | > | S0104 | Intermediary trade/transit trade, that is third country export passing through India. | > | S0108 | Goods acquired under merchanting/payment against import leg of merchanting trade. | > [accordion] Transport Services > > | Category | Description | > | - | - | > | S0201 | Payments for surplus freight/passenger fare by foreign shipping companies operating in India. | > | S0202 | Payment for operating expenses of Indian shipping companies operating abroad. | > | S0203 | Freight on imports - Shipping companies. | > | S0204 | Freight on exports - Shipping companies. | > | S0205 | Operational leasing/rental of vessels (with crew) - Shipping companies. | > | S0206 | Booking of passages abroad - Shipping companies. | > | S0207 | Payments for surplus freight/passenger fare by foreign airlines companies operating in India. | > | S0208 | Operating expenses of Indian airlines companies operating abroad. | > | S0209 | Freight on imports - Airlines companies. | > | S0210 | Freight on exports - Airlines companies. | > | S0211 | Operational leasing/rental of vessels (with crew) - Airline companies. | > | S0212 | Booking of passages abroad - Airlines companies. | > | S0214 | Payments on account of stevedoring, demurrage and port handling charges (Shipping companies). | > | S0215 | Payments on account of stevedoring, demurrage and port handling charges (Airlines companies). | > | S0216 | Payments for passenger - Shipping companies. | > | S0217 | Other payments by shipping companies. | > | S0218 | Payments for passenger - Airlines companies. | > | S0219 | Other payments by airlines companies. | > | S0220 | Payments on account of freight under other modes of transport (Internal waterways, roadways, railways, pipeline transports and others). | > | S0221 | Payments on account of passenger fare under other modes of transport (Internal waterways, roadways, railways, pipeline transports and others). | > | S0222 | Postal and courier services by air. | > | S0223 | Postal and courier services by sea. | > | S0224 | Postal and courier services by others. | > [accordion] Travel Services > > | Category | Description | > | - | - | > | S0301 | Business travel. | > | S0303 | Travel for pilgrimage. | > | S0304 | Travel for medical treatment. | > | S0305 | Travel for education (including fees and hostel expenses). | > | S0306 | Other travel (including holiday trips and payments for settling international credit cards transactions). | > [accordion] Insurance and Pension Services > > | Category | Description | > | - | - | > | S0601 | Life insurance premium except term insurance. | > | S0602 | Freight insurance - relating to import and export of goods. | > | S0603 | Other general insurance premium including reinsurance premium and term life insurance premium. | > | S0605 | Auxiliary services including commission on insurance. | > | S0607 | Insurance claim settlement of non-life insurance and life insurance (only term insurance). | > | S0608 | Life insurance claim settlements. | > | S0610 | Premium for pension funds. | > | S0611 | Periodic pension entitlements for example monthly, quarterly or yearly payments of pension amounts by Indian pension fund companies. | > [accordion] Telecommunication, Computer and Information Services > > | Category | Description | > | - | - | > | S0801 | Hardware consultancy/implementation. | > | S0802 | Software consultancy/implementation. | > | S0803 | Database, data processing charges. | > | S0804 | Repair and maintenance of computer and software. | > | S0805 | News agency services. | > | S0806 | Other information services - Subscription to newspapers and periodicals. | > | S0807 | Off-site software imports. | > | S0808 | Telecommunication services including electronic mail services and voice mail services. | > [accordion] Other Business Services > > | Category | Description | > | - | - | > | S1003 | Operational leasing services (other than financial leasing) without operating crew, including charter hire - Airlines companies. | > | S1004 | Legal services. | > | S1005 | Accounting, auditing, book-keeping services. | > | S1006 | Business and management consultancy and public relations services. | > | S1007 | Advertising, trade fair service. | > | S1008 | Research and development services. | > | S1009 | Architectural services. | > | S1013 | Environmental services. | > | S1014 | Engineering services. | > | S1015 | Tax consulting services. | > | S1016 | Market research and public opinion polling service. | > | S1017 | Publishing and printing services. | > | S1020 | Commission agent services. | > | S1021 | Wholesale and retailing trade services. | > | S1022 | Operational leasing services (other than financial leasing) without operating crew, including charter hire - Shipping companies. | > | S1023 | Other technical services including scientific/space services. | > [accordion] Personal, Cultural and Recreational Services > > | Category | Description | > | - | - | > | S1101 | Audio-visual and related services like motion picture and video tape production, distribution and projection services. | > | S1103 | Radio and television production, distribution and transmission services. | > | S1104 | Entertainment services. | > | S1105 | Museums, library and archival services. | > | S1106 | Recreation and sporting activities services. | > | S1107 | Education (for example fees for correspondence courses abroad). | > | S1108 | Health service (payment towards services received from hospitals, doctors, nurses, paramedical and similar services rendered remotely or on-site). | > | S1109 | Other personal, cultural and recreational services. | > [accordion] Manufacturing Services > > | Category | Description | > | - | - | > | S1701 | Payments for processing of goods. | ## Prerequisites You must meet the following prerequisites to accept payments from your Indian customers: * Ensure you have an active Razorpay account with [KYC verification completed](/docs/payments/set-up#kyc-details). * Foreign businesses with goods and services that can accept payments using this solution are:\ 1. Digital Goods\ 2. Digital Services\ 3. Online Travel Agencies (OTA)\ 4. Physical Goods\ 5. Travel\ 6. Education ## How it Works Follow the steps given below to onboard and accept payments from Indian customers: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings**. 3. You must provide the Purpose Code information when applying for international payments. 1. Click **International Payment Codes** under **International payment settings**. ![International payment codes](https://razorpay.com/docs/build/browser/assets/images/firs-purpose-code-update-new.jpg) 2. Update your purpose code under the **International Payment Codes** section. ![Purpose code update](https://razorpay.com/docs/build/browser/assets/images/firs-purpose-code-update2-new.jpg) 3. Select the appropriate **Purpose Code**. Based on your business requirements, you also need to provide your **HS Code** or **IEC Code**. > [tab] Add HS Code > > 1. Click **International Payment Codes** under **International payment settings**. > > 2. Update your HS Code under the **International Payment Codes** section. > > 3. Select the appropriate **Harmonised System Code**, also known as HS Code. > > > [!NOTE] > > > > **Handy Tips** > > > > * For Software: HSCode is **85238020** and HSDescription is **Other Information technology software**. > > * For Goods: Refer to the list from the [DGFT website](https://www.dgft.gov.in/CP/). > [tab] Add IEC Code > > 1. Click **International Payment Codes** under **International payment settings**. > > 2. Update your **IEC Code** under the **International Payment Codes** section. > > 3. Select the appropriate **Purpose Code**. > > 4. Enter the 10-digit Importer/Exporter Code (IEC) and click **Next**. > > ![Import Export Code](https://razorpay.com/docs/build/browser/assets/images/import-export-code.jpg) > > > [!WARNING] > > > > **Watch Out!** > > > > The IEC is a code issued by the Indian Director General of Foreign Trade (DGFT) to Indian companies that intend to export from India. You can apply for an IEC at the [DGFT website](https://www.dgft.gov.in/CP/). > > > > The IEC code input screen appears for specific purpose codes, (P0103) being one of them. 4. Review and click **Confirm**. The Razorpay Activation/Operations team verifies the selected **Purpose Code**. As consumers or buyers, you get an option to make payments through the Razorpay Payment Gateway. On selecting Razorpay, various payment methods will be displayed on Razorpay checkout to complete the payment. ## List of Purpose Codes Download the complete [list of transaction purpose codes](https://razorpay.com/docs/build/browser/assets/images/transaction_purpose_codes.xlsx) you can select during the onboarding process. \ ## Documents and Details Required Given below is a list of documents required: 1. The Import/Export code is required when selling tangible goods. 2. All import transactions should be accompanied by invoices. 3. Airway bill is mandatory to import goods if and when required. ## Frequently Asked Questions (FAQs) > [accordion] What is the pricing for using this solution? > > Please connect with your sales/business team on a case-to-case basis. > [accordion] What is the settlement TAT for international payments? > > The default settlement cycle is as per applicable law(s). You can view your settlement cycle on the Razorpay Dashboard. > [accordion] Do you support multiple settlement currencies? > > The funds will be settled in your local currency. We support all major currencies including USD, EUR, CAD, GBP, JPY, SGD, AUD, PLN, CHF, KRW, AED and KWD, among others. > [accordion] Do you need any bills/invoices from me? > > You should provide invoices for all your import transactions if and when asked. In the case of physical goods, you should also share the airway bill, along with the invoices. > [accordion] Which card networks do you support? Is support for certain networks limited by geographical region? > > For Indian customers, following card networks are supported: > > * Visa > > * Mastercard > > * Diners > > * Rupay > > * Amex > > * Discover > > > [!WARNING] > > > > **Watch Out!** > > > > To enable Diners and Discover cards, contact our [support team](https://razorpay.com/support/#request). > [accordion] What if my end customer raises a dispute with Razorpay? > > The chargeback will be handled as-is, which means that a dispute is raised between networks/issuing banks and the business, and the chargeback is processed based on the final decision taken by the networks/banks involved. > [accordion] Are refunds supported on these transactions? > > Yes, Razorpay supports refunds. You can enable it via your existing refund integration with Razorpay or via the Dashboard. > [accordion] Is this feature available on all Razorpay integrations? > > Yes, this feature is available on all [Razorpay integrations](/docs/payments/payment-gateway). > [accordion] Do we need to collect the PAN details from customers? > > Yes, PAN details from the customers are necessary for security approval. > [accordion] Is there any restriction on maximum transaction value? > > Yes, the maximum transaction value is restricted to USD 30k across all the supported payment methods. # Accept Payments from International Customers Source: https://razorpay.com/docs/payments/international-payments/accept-payments-from-international-customers Razorpay offers affordable solutions for Indian businesses to accept International Bank Transfers and International Card Payments, with funds settled directly to local bank accounts, ensuring minimal conversion loss and a smooth global payment experience. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Razorpay provides Indian businesses with a comprehensive suite of payment solutions to accept international payments effortlessly. Our platform supports various payment methods, allowing businesses to cater to global customers securely and efficiently. ## Supported Payment Methods > [accordion] International Cards > > Indian businesses can accept payments from international debit and credit cards issued across the globe. Our platform ensures a seamless experience for both businesses and customers. > > > [accordion] Use Cases / Challenges > > > > * **Ecommerce:** Accept payments from global customers for products or services. > > * **Education:** Collect tuition fees from international students. > > * **Challenges:** Exchange rate fluctuations, compliance with international regulations, and varying card acceptance rates. > > > [accordion] Prerequisites > > > > To accept international payments, you need to meet the eligibility criteria established by our banking partners. Know more about the [prerequisites](/docs/payments/international-payments/international-debit-credit-cards#eligibility-and-prerequisites). > > > [accordion] Onboarding Flow > > > > For detailed steps on the application process, refer to the [onboarding flow](/docs/payments/international-payments/international-debit-credit-cards#application-process). > > > [accordion] Method Details > > > > * **Card Types:** Visa, MasterCard, American Express, and more. > > * **Currencies:** Accept payments in multiple currencies, ensuring convenience for international customers. > > * **Security:** PCI DSS compliance, 3D Secure, and robust fraud detection. > [accordion] Local Payment Methods > > Razorpay enables Indian businesses to accept payments via local payment methods, ensuring better outreach and customer convenience in specific regions. > > > [accordion] Use Cases / Challenges > > > > **Uses Cases** \\ > > > > * **Retail & Ecommerce:** Expand customer reach by accepting payments in local currencies, enhancing the purchasing experience for international buyers. > > * **Subscription Services:** Provide flexible local payment options to subscribers in different countries. > > * **B2B Transactions:** Facilitate cross-border partnerships by supporting convenient payment methods. > > > > **Challenges** \\ > > > > * Ensuring payment method compatibility across various countries. > > * Adapting to regional payment regulations and compliance. > > * Navigating potential delays in settlement times for some local payment methods. > > > [accordion] Prerequisites > > > > * You must have an active Razorpay account with KYC verification completed. > > * Enablement of local payment features on the Dashboard. > > * Business readiness to comply with local regulations and settlement timelines for international transactions. > > > [accordion] Onboarding Flow > > > > You can accept payments from international customers in the form of online instant international bank transfers using the Razorpay Checkout form, refer to the [onboarding flow](/docs/payments/international-payments/local-payment-methods#request-local-payment-method). > > > [accordion] Method Details > > > > * **Supported Payment Options:** Various local bank transfer methods, mobile wallet options, and region-specific payment services. > > * **Supported Currencies:** Multiple local currencies that cater to the preferences of international customers. > > * **Security Measures:** End-to-end encryption and multi-layered security protocols to protect payment data and reduce fraud risk. > [accordion] International Bank Transfer (MoneySaver Export Account) > > Razorpay provides cost-effective solutions for Indian businesses to manage international payments and receive funds directly in their local bank accounts. This ensures minimal conversion loss and a seamless experience when dealing with global clients. > > > [accordion] Use Cases / Challenges > > > > **Use Cases:** \\ > > > > * **Export Businesses:** Receive payments for goods or services sold to international clients, directly in your bank account. > > * **Professional Services:** Simplify international payment collection for consulting or freelance work. > > * **B2B Transactions:** Improve cash flow management for businesses dealing with overseas clients or suppliers. > > > > **Challenges:** \\ > > > > * Exchange rate volatility and its impact on the final amount received. > > * Compliance with international fund transfer regulations. > > * Potential delays in receiving funds through certain transfer methods. > > > [accordion] Prerequisites > > > > You must meet the following prerequisites set to accept payments from your international customers. > > > > * Know more about the [Local Currency Bank Accounts](/docs/payments/international-payments/international-bank-transfer#prerequisites) prerequisites. > > * Know more about the [SWIFT Transfer](/docs/payments/international-payments/international-bank-transfer#prerequisites) prerequisites. > > > [accordion] Onboarding Flow > > > > For detailed steps on the activation process, refer to the [Local Currency Bank Transfer](/docs/payments/international-payments/international-bank-transfer#prerequisites) and [SWIFT Transfer](/docs/payments/international-payments/international-bank-transfer#prerequisites) activation steps. > > > [accordion] Method Details > > > > * ACH (Local USD Bank Transfer Rails) > > * SEPA (Local EUR Bank Transfer Rails) > > * FPS (Local GBP Bank Transfer Rails) > > * SWIFT ### Related Information * [Purpose Codes](/docs/payments/international-payments/purpose-codes) * [Currency Conversion](/docs/payments/international-payments/currency-conversion) * [FIRS Automated Process](/docs/payments/international-payments/firs-automated-process) # Address Verification System Source: https://razorpay.com/docs/payments/international-payments/address-verification-system Use Razorpay's AVS as an address verification service to identify and reduce the risk of fraud in international payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore The Address Verification System (AVS) verifies if a customer's billing address (postal code and the billing street address) matches the billing address on file with the card issuer. Based on the response from the issuer, Razorpay will accept or cancel the transaction. This helps prevent fraud in international payments. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. > [!TIP] > > **Availability** > > This feature is available only for US, UK, and Canada cards. > [accordion] Example > > Suppose an international customer, John Doe, uses a Wells Fargo credit card to make an online purchase on your website with the following address: > > ``` > 1304 Main Street, Anytown, Illinois, 60473 > ``` > > The AVS will compare the numbers **1304** and/or **60473** with the address on file with Wells Fargo.\\ > > If the match is successful, Razorpay authorises the transaction. In case of a mismatch, Razorpay declines the transaction. > [accordion] Advantages > > The advantages of using the Address Verification System are: > > * **Extra layer of security for your customers:** Your customer's lost or stolen credit card cannot be used for fraudulent transactions as the address entered during the transactions will not match the address in the card issuer's database. Razorpay will not authorize such transactions. This protects customers from credit card fraud to an extent. > * **Higher chances of winning cashback disputes**: Suppose your customer's stolen or lost card is > used for transactions, and the fraudulent party uses the customer's correct address. In that case, AVS cannot detect such transactions as fraudulent as there is no address mismatch. Razorpay authorises such transactions. If the customer files a chargeback dispute, you are more likely to win the dispute as the transaction passed the AVS check. > [accordion] Prerequisites > > * [Integrate](/docs/payments/payment-gateway/web-integration/standard) with Razorpay Standard Checkout. This feature is available for all types of Standard Checkout, including server language SDKs, e-commerce plugins, and products such as Invoices, Payment Button, Payment Links and Payment Pages. > * Enable [international payments](/docs/payments/international-payments) for your Razorpay account. ## How it Works Below is a diagram of the workflow: ![AVS Workflow](https://razorpay.com/docs/build/browser/assets/images/international-payments-address-verification-system-flow.jpg) ## How Customers Add Card and Address Details at Checkout Your customers can add their card and address details on the checkout pop-up page for address verification. 1. The customer selects `card` as the payment method and enters the credit card details. ![Address Verification Service - Customer enters credit card details](https://razorpay.com/docs/build/browser/assets/images/international-payments-avs-checkout-card.jpg) 2. The customer is asked to enter their billing address. This is a one-time activity and Razorpay will save the address securely. Customer will not be asked to provide the address on repeat transactions. ![Address Verification Service - Customer enters address details](https://razorpay.com/docs/build/browser/assets/images/international-payments-avs-address-details.jpg) 3. The Address Verification System matches both addresses. There can be three types of matches: * **Complete Match**: The address provided by the customer matches exactly with the address available with the card issuer. * **Partial Match**: This indicates that the billing address being compared has the same ZIP code or the same numeric values in the street address, but not both. * **No Match**: A `no match` response indicates that neither part of the billing address matches the card issuer data. This can act as a strong signal of potential fraud. 4. Based on the match, Razorpay takes the following actions: * Authorise the transaction: The transaction is authorised, and the credit card is debited. * Cancel the transaction: The transaction is declined. ## Frequently Asked Questions (FAQs) > [accordion] Do I need to make any changes to my integration? > > No, if you use Razorpay Standard Checkout, you do not need to make any change to your integration. This feature will work out-of-the-box once it is enabled for your account. > [accordion] Is this feature available for domestic payments? > > No, this feature is available only for international payments. > [accordion] Can my customer complete the payment in case of a partial match? > > Yes, your customer can complete the payment even if there is a partial match. # India Billing API - Integration Guide for Stripe Merchants Source: https://razorpay.com/docs/payments/international-payments/billing-api Integrate Razorpay India Billing API with your existing Stripe billing to execute payments for Indian customers using UPI Autopay, card mandates and smart retries. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Keep Stripe as your billing system. Let Razorpay execute payments in India. The India Billing API lets you continue using Stripe for billing, subscriptions and usage metering. For Indian customers, Razorpay handles payment execution, including UPI Autopay, card mandates, Pre-Debit Notifications (PDN) and RBI compliance, without changing your existing Stripe workflows. This integration is proven with Replit, which uses Stripe for billing, subscriptions and usage metering. For Indian users, payment execution routes through Razorpay with zero changes to their Stripe workflows. ## How It Works Stripe decides when and how much to charge. Razorpay executes those charges in India, compliantly, with UPI Autopay, smart retries and pre-debit notifications. Your existing Stripe billing, invoicing and reconciliation workflows remain untouched. For Indian customers, Razorpay handles coupon validation (coupon creation remains at Stripe), mandate creation, PDN delivery, payment execution and status reporting back to Stripe. Razorpay also calculates and adds 18% GST on the amount debited from Indian customers. See [Charges, Taxes and Limits](#charges-taxes-and-limits). ## What Changes vs. What Stays the Same | Stays the Same (Stripe) | New (Razorpay Handles) | | - | - | | Billing logic, pricing, plans | UPI Autopay and card mandate creation | | Subscription lifecycle management | RBI-compliant Pre-Debit Notifications | | Invoice creation and reconciliation | Payment execution and smart retries | | Your billing/invoicing taxes | 18% India GST added on the debited amount | | Usage metering (Orb/Metronome) | Mandate limit handling and FX conversion (USD โ†’ INR โ†’ USD) | | Webhooks your app listens to | Payment status reporting back to Stripe | ## Prerequisites * Share your Stripe API key with Razorpay. * Create custom payment methods (`Razorpay_UPI` and `Razorpay_Card`) in Stripe. * Create a plan mapping between your Stripe plans and Razorpay. * For usage-based billing, configure your webhook endpoint to forward Stripe's `invoice.payment_attempt_required` events to Razorpay's `/v1/cb/stripe/webhook`. Your server is the intermediary: Stripe sends the event to your endpoint and you forward it to Razorpay. This is not required for scheduled subscription renewals. ## Integration Flows The India Billing API supports three flows. No billing rebuild is required. 1. [Mandate Setup](#flow-1-mandate-setup) 2. [Subscription Payments](#flow-2-subscription-payments) 3. [Usage-Based Billing](#flow-3-usage-based-billing) Additionally, you can accept [one-time credit pack payments](#one-time-credit-pack-payments) using the standard Razorpay Orders flow. ## Flow 1: Mandate Setup This is a one-time flow for each customer. When a customer selects a plan on your pricing page, Razorpay opens its checkout, collects customer details and allows the customer to apply coupons. 1. Customer selects a plan on your pricing page. 2. Your server calls the [Create Checkout Session API](#create-checkout-session) to create a Razorpay checkout session. 3. Your frontend invokes Razorpay Custom JS with the `checkout_session_id`. The Custom JS renders the pricing breakdown (including GST), lets the customer validate coupons and creates the subscription on authorisation. 4. Customer authorises the payment. Razorpay creates the mandate and reports the payment outcome back to Stripe. 5. Stripe marks the invoice as paid and the subscription as active. 6. Your app provisions access via existing Stripe webhooks. > [!NOTE] > > **Handy Tips** > > The checkout session is consumed by Razorpay Custom JS on your frontend. Custom JS exposes helpers to fetch the pricing and GST breakdown, validate coupons and create the subscription. Contact your Razorpay account manager for the Custom JS integration snippet. ### Create Checkout Session Use this API to create a checkout session for mandate setup. `POST /v1/cb-checkout/session>` ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/cb-checkout/session \ -H "Content-Type: application/json" \ -d '{ "mode": "subscription", "purpose": "create", "customer_id": "", "amount": 50000, "currency": "USD", "items": [ { "price_id": "", "quantity": 1 } ], "method_id": "", "promocode_id": "", "metadata": { "user_id": "" } }' ``` ```json Response theme={null} { "checkout_session_id": "rzp_ckout_...", "expiry": 1735689600, "expires_in": 1800 } ``` > [accordion] Request Parameters > > `mode` *mandatory* > : `string` The checkout mode. Set this to `subscription` for mandate setup. > > `purpose` *mandatory* > : `string` The purpose of the checkout session. Possible values: > > * `create`: Set up a new subscription and mandate. > * `upgrade`: Change the plan for an existing subscription. > * `migrate`: Move an existing Stripe-card customer to a Razorpay mandate. > > See [Checkout Purposes](#checkout-purposes). > > `customer_id` *mandatory* > : `string` The Stripe customer ID. For example, `cus_abc123`. > > `amount` *mandatory* > : `integer` The amount in the smallest currency unit. For example, for \$500.00, pass `50000`. > > `currency` *mandatory* > : `string` The currency code. For example, `USD`. > > `items` *mandatory* > : `array` An array of line items for the checkout session. Each item contains: > > `price_id` *mandatory* > : `string` The Stripe price id. > > `quantity` *mandatory* > : `integer` The quantity for the line item. > > `method_id` *mandatory* > : `string` The Razorpay custom payment method ID (`RAZORPAY_CPMT_ID`). This identifies the payment method type (UPI or card) created in Stripe during one-time setup. > > `promocode_id` *optional* > : `string` The promotional code to apply to the checkout session. Coupon creation happens at Stripe. Razorpay validates and applies the coupon at checkout. > > `metadata` *optional* > : `object` Additional custom metadata for the session. For example: > > `user_id` > : `string` Your internal user identifier. > [accordion] Response Parameters > > `checkout_session_id` > : `string` The unique identifier for the checkout session. Use this to invoke Razorpay Custom JS on your frontend. > > `expiry` > : `integer` The Unix timestamp at which the checkout session expires. > > `expires_in` > : `integer` The time in seconds until the checkout session expires. The session is valid for 30 minutes (`1800` seconds). ### Checkout Purposes The `purpose` field in the [Create Checkout Session API](#create-checkout-session) determines the intent of the session. | Purpose | Description | | - | - | | `create` | Sets up a new subscription and mandate for a customer who does not yet have one. | | `upgrade` | Changes the plan for an existing subscription. Any difference in amount (delta) is handled as a credit or refund. | | `migrate` | Moves an existing customer paying by Stripe card onto a Razorpay mandate, without interrupting their subscription. | > [!NOTE] > > **Handy Tips** > > The full request payload for `upgrade` and `migrate` (including plan-change and migration parameters) is shared during onboarding. Contact your Razorpay account manager to enable these flows. ## Flow 2: Subscription Payments Subscription payments are fully automated. After the mandate is set up, Razorpay handles scheduled renewals end-to-end with no frontend involvement and no webhook forwarding from you. The entire flow is driven by Razorpay. 1. A Razorpay cron job identifies subscriptions with an upcoming billing date. 2. Razorpay sends a Pre-Debit Notification (PDN) to the customer around 48 hours before the billing date. 3. On the billing date, Razorpay auto-debits the customer via the stored mandate. Razorpay automatically retries failed debits in line with RBI norms. 4. Razorpay reports the payment outcome to Stripe. Stripe updates the invoice (paid/failed). 5. Your app reacts via existing Stripe webhooks. > [!NOTE] > > **Handy Tips** > > Scheduled renewals do **not** require you to forward any Stripe webhook to Razorpay. Razorpay's cron job initiates the PDN and the debit based on the upcoming billing date. Webhook forwarding is only needed for [usage-based billing](#flow-3-usage-based-billing). ## Flow 3: Usage-Based Billing Usage-based billing is a coupled, single-step model. When your metering system (Orb, Metronome or custom) creates a usage-based invoice on Stripe, Stripe fires an `invoice.payment_attempt_required` event that you forward to Razorpay. Razorpay charges the customer immediately, with no pre-debit notification. 1. Your metering system monitors usage and creates an invoice in Stripe when the threshold is reached (recommended within \$150). 2. Stripe fires `invoice.payment_attempt_required` to your webhook endpoint. 3. Your server forwards the event to Razorpay using the [Stripe Webhook Forwarding API](#stripe-webhook-forwarding). 4. Razorpay immediately debits the customer using the existing mandate. There is no PDN โ€” the Stripe invoice triggers an immediate charge. 5. Razorpay reports the outcome back to Stripe. 6. Your billing system sees the Stripe invoice as paid. No India-specific logic is needed on your end. > [!NOTE] > > **Handy Tips** > > `invoice.payment_attempt_required` is a custom invoice event used to signal that an immediate charge is required. It is not part of the standard Stripe SDK event types, so your webhook handler must handle it explicitly before your exhaustive `switch` on `event.type` (for example, with a string comparison such as `(event.type as string) === "invoice.payment_attempt_required"` in TypeScript). ### Stripe Webhook Forwarding Use this API to forward Stripe usage-based billing events to Razorpay. `POST /v1/cb/stripe/webhook>` ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/cb/stripe/webhook \ -H "Content-Type: application/json" \ -d '{ "provider": "stripe", "data": "" }' ``` > [accordion] Request Parameters > > `provider` *mandatory* > : `string` The billing provider. Set this to `stripe`. > > `data` *mandatory* > : `object` The full Stripe webhook event object, forwarded as-is. > [!WARNING] > > **Watch Out!** > > Forward an event to Razorpay only if it relates to a Razorpay-managed subscription. Determine this from your own records (for example, whether you created the subscription through Razorpay) and fall back to the subscription metadata. Do not forward events for subscriptions billed entirely through Stripe. ## One-Time Credit Pack Payments For one-time payments such as credit packs, use the standard Razorpay Orders flow instead of the checkout session flow. This involves creating a customer, creating an order, verifying the payment signature, fetching the payment and capturing it. ### Step 1: Create a Customer Create a customer with basic details such as name. `POST /v1/customers>` ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ "name": "" }' ``` ```json Response theme={null} { "id": "cust_1Aa00000000004" } ``` > [accordion] Request Parameters > > `name` *mandatory* > : `string` The customer name. > [accordion] Response Parameters > > `id` > : `string` The unique identifier for the customer. For example, `cust_1Aa00000000004`. Use this as the `customer_id` when creating an order. ### Step 2: Create an Order After a customer is created, an order needs to be generated using the Orders API. This order contains details such as the payment amount, currency, customer details. After the order is created, an `order_id` is generated, for example, `order_NGrgEcmYJsfUyl`. Learn more about [Order and Payment states](/docs/payments/orders#order-states). `POST /v1/orders>` ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/orders \ -H "Content-Type: application/json" \ -d '{ "amount": 10000, "currency": "USD", "customer_id": "cust_1Aa00000000004", "customer_details": { "name": "", "email": "", "contact": "", "shipping_address": { "line1": "Mantri apartment", "city": "Bengaluru", "country": "IND", "state": "Karnataka", "zipcode": "560032" } }, "payment": { "capture": "manual", "capture_options": { "manual_expiry_period": 7200 } } }' ``` ```json Response theme={null} { "id": "order_RB58MiP5SPFYyM", "amount": 10000, "currency": "USD" } ``` > [accordion] Request Parameters > > `amount` *mandatory* > : `integer` The payment amount in the smallest currency unit. For example, for \$100.00, pass `10000`. > > `currency` *mandatory* > : `string` The ISO currency code. For example, `USD`. > > `customer_details` *mandatory* > : `object` This contains details about the customer details of the order. > > `name` *mandatory* > : `string` Customer's name. > > * Character length: Between 5 and 50 characters. > * Allowed characters: Uppercase letters (A-Z), lowercase letters (a-z), and spaces (not at the beginning). > * Not allowed characters: Numbers, special characters (e.g., @, ", ,, ., etc.), Unicode characters, emojis, and non-Latin scripts or regional languages. > * Prohibited names: Names must be meaningful and contextually appropriate. > * Avoid using repetitive patterns (e.g., aaa, xyz, kkk kk). > * Names like litri litri, Hfg Gh, or husi husi are not permitted. > * Curse words and offensive names are prohibited. > * Example: `Gaurav Kumar`. > > `email` *optional* > : `string` The customer's email address. A maximum length of 64 characters for the username. For example, in "[gaurav.kumar@example.com](mailto:gaurav.kumar@example.com)", "gaurav.kumar" must not exceed 64 characters. > > `contact` *optional* > : `string` The customer's phone number. A maximum length of 15 characters including country code. For example, `+919123456780`. > > `shipping_address` *mandatory* > : `object` This contains the shipping address of the order. > > `line1` *mandatory* > : `string` Address Line 1 of the address. > > * Character length: Must be between 3 and 100 characters. > * Allowed characters: Uppercase letters (A-Z), lowercase letters (a-z), numbers (0-9), spaces, and special characters (\*&/-()#\_+\[]:'".,.). > * Not allowed characters: Regional languages. > > `city` *mandatory* > : `string` Name of the city. Must be between 3 and 50 characters in length and can only include uppercase (A-Z) and lowercase (a-z) English letters, and spaces. > > `country` *mandatory* > : `string` ISO3 country code of the billing address. Only `IND` is allowed. > > `state` *mandatory* > : `string` Name of the state. It must be between 3 and 50 characters extended and can only include uppercase (A-Z) and lowercase (a-z) English letters and spaces. Please send the full name of the state, for example, Madhya Pradesh. > > `zipcode` *mandatory* > : `string` The ZIP code must consist of 6-digit numeric characters. Only valid Indian ZIP codes will be accepted. Refer to the [list of supported ZIP codes](https://razorpay.com/docs/build/browser/assets/images/IN_zipcodes.xlsx). > > `payment` *mandatory* > : `object` Payment capture configuration. > > `capture` *mandatory* > : `string` Set to `manual` for manual capture. > > `capture_options` *mandatory* > : `object` Contains `manual_expiry_period`. > > `manual_expiry_period` *mandatory* > : `integer` the time in seconds before the authorisation expires. For example, `7200` for 2 hours. > [accordion] Response Parameters > > `id` > : `string` The unique identifier for the order. For example, `order_RB58MiP5SPFYyM`. > > `amount` > : `integer` The order amount in the smallest currency unit. > > `currency` > : `string` The ISO currency code. ### Step 3: Verify Payment Signature Signature verification is a mandatory step to ensure that the callback is sent by Razorpay. The `razorpay_signature` contained in the callback can be regenerated by your system and verified as follows. Create a string for hashing by combining the "razorpay\_payment\_id" from the callback and the Order ID generated in the initial step, separated by a `|`. Proceed to hash this string using SHA256 alongside your API Secret. ``` generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); if (generated_signature == razorpay_signature) { payment is successful } ``` #### Generate Signature on your Server > [accordion] Sample code > > ```java Java theme={null} > /** > * This class defines common routines for generating > * authentication signatures for Razorpay Webhook requests. > */ > public class Signature > { > private static final String HMAC_SHA256_ALGORITHM = "HmacSHA256"; > /** > * Computes RFC 2104-compliant HMAC signature. > * * @param data > * The data to be signed. > * @param key > * The signing key. > * @return > * The Base64-encoded RFC 2104-compliant HMAC signature. > * @throws > * java.security.SignatureException when signature generation fails > */ > public static String calculateRFC2104HMAC(String data, String secret) > throws java.security.SignatureException > { > String result; > try { > > // get an hmac_sha256 key from the raw secret bytes > SecretKeySpec signingKey = new SecretKeySpec(secret.getBytes(), HMAC_SHA256_ALGORITHM); > > // get an hmac_sha256 Mac instance and initialize with the signing key > Mac mac = Mac.getInstance(HMAC_SHA256_ALGORITHM); > mac.init(signingKey); > > // compute the hmac on input data bytes > byte[] rawHmac = mac.doFinal(data.getBytes()); > > // base64-encode the hmac > result = DatatypeConverter.printHexBinary(rawHmac).toLowerCase(); > > } catch (Exception e) { > throw new SignatureException("Failed to generate HMAC : " + e.getMessage()); > } > return result; > } > } > > ``` > > ```php PHP theme={null} > use Razorpay\Api\Api; > $api = new Api($key_id, $key_secret); > $attributes = array('razorpay_signature' => '23233', 'razorpay_payment_id' => '332' , 'razorpay_order_id' => '12122'); > $order = $api->utility->verifyPaymentSignature($attributes) > > ``` > > ```ruby Ruby theme={null} > require 'razorpay' > Razorpay.setup('key_id', 'key_secret') > payment_response = { > 'razorpay_order_id': '12122', > 'razorpay_payment_id': '332', > 'razorpay_signature': '23233' > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > client.utility.verify_payment_signature({ > 'razorpay_order_id': razorpay_order_id, > 'razorpay_payment_id': razorpay_payment_id, > 'razorpay_signature': razorpay_signature > }) > > ``` > > ```c .NET theme={null} > Dictionary attributes = new Dictionary(); > > attributes.Add("razorpay_payment_id", paymentId); > attributes.Add("razorpay_order_id", Request.Form["razorpay_order_id"]); > attributes.Add("razorpay_signature", Request.Form["razorpay_signature"]); > > Utils.verifyPaymentSignature(attributes); > ``` > > ```nodejs Node.js theme={null} > var { validatePaymentVerification } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > ``` > > ```Go Go theme={null} > import ( > "crypto/hmac" > "crypto/sha256" > "crypto/subtle" > "encoding/hex" > "fmt" > ) > > func main() { > signature := "477d1cdb3f8122a7b0963704b9bcbf294f65a03841a5f1d7a4f3ed8cd1810f9b" > secret := "qp3zKxwLZxbMORJgEVWi3Gou" > data := "order_J2AeF1ZpvfqRGH|pay_J2AfAxNHgqqBiI" > //fmt.Printf("Secret: %s Data: %s\n", secret, data) > > // Create a new HMAC by defining the hash type and the key (as byte array) > h := hmac.New(sha256.New, []byte(secret)) > > // Write Data to it > _, err := h.Write([]byte(data)) > > if err != nil { > panic(err) > } > > // Get result and encode as hexadecimal string > sha := hex.EncodeToString(h.Sum(nil)) > > fmt.Printf("Result: %s\n", sha) > > if subtle.ConstantTimeCompare([]byte(sha), []byte(signature)) == 1 { > fmt.Println("Works") > } > } > ``` ### Step 4: Fetch and Verify Payment Fetch the payment details to confirm the payment status. See [Fetch a Payment With ID](/docs/api/payments/fetch-with-id). ### Step 5: Capture Payment Capture the authorised payment. See [Capture a Payment](/docs/api/payments/capture) ## Coupons and Recurring Discounts Recurring coupons work out of the box with Razorpay. No coupon sync or offer mapping is required. 1. Stripe creates the upcoming invoice with the coupon or discount already applied (reduced amount). 2. Razorpay's cron job scans for upcoming Stripe invoices around 48 hours before the billing date and reads the discounted amount. 3. Razorpay sends a PDN to the customer for the discounted invoice amount from Stripe. 4. On the billing date, Razorpay debits the same discounted amount via the stored mandate. > [!NOTE] > > **Handy Tips** > > Any Stripe-level discount is automatically respected by Razorpay during renewal. No special handling is needed on the merchant's side. Stripe is the source of truth for the invoice amount. ## Charges, Taxes and Limits Stripe remains the source of truth for your billing and invoice amounts. For Indian customers, Razorpay applies the following on the amount it debits. ### 18% GST Razorpay calculates and adds 18% GST on the amount debited from Indian customers. The customer is charged the total amount, not just the plan amount. `total_amount = plan_amount + tax_amount` Where `tax_amount = 18% of plan_amount`. The pricing breakdown (plan amount, GST and total) is available on the frontend via Razorpay Custom JS so the customer sees the final amount before authorising. ### \$1 Minimum Charge Every debit must be at least $1.00. If the payable amount is below $1.00 (for example, after a large coupon or discount), Razorpay charges \$1.00 and automatically refunds the difference to the customer. ### UPI Recurring Debit Cap UPI recurring debits are capped at \$250 per transaction. If a debit exceeds this limit, it fails and the customer must switch to a card mandate to complete the payment. ## Pre-Debit Notification (PDN) Timelines Razorpay sends Pre-Debit Notifications to customers before scheduled subscription debits. Usage-based billing charges immediately and has no PDN. | Billing Type | PDN Sent Before Debit | | - | - | | Subscription renewals (UPI Autopay and card mandate) | Around 48 hours before the billing date | | Usage-based billing | No PDN โ€” the Stripe invoice triggers an immediate charge | ## Frequently Asked Questions > [accordion] Do I need to change my Stripe billing logic? > > No. Your existing Stripe billing, invoicing and reconciliation workflows remain untouched, and Stripe stays the source of truth for your invoice amounts. Razorpay handles payment execution for Indian customers and adds 18% GST on the debited amount. See [Charges, Taxes and Limits](#charges-taxes-and-limits). > [accordion] What payment methods does Razorpay support for Indian customers? > > Razorpay supports UPI Autopay and card mandates for recurring payments in India. Both methods are RBI-compliant with automatic pre-debit notifications for scheduled renewals. > [accordion] What happens if a recurring payment fails? > > Razorpay automatically retries failed debits in line with RBI norms. The payment outcome (paid or failed) is reported back to Stripe, and your app reacts via existing Stripe webhooks. > [accordion] Is usage-based billing a separate integration? > > Usage-based billing uses the [Stripe Webhook Forwarding](#stripe-webhook-forwarding) API to forward Stripe's `invoice.payment_attempt_required` events to Razorpay, which then charges immediately with no PDN. Scheduled subscription renewals do not use webhook forwarding โ€” Razorpay's cron job drives them automatically. > [accordion] How are coupons handled? > > Coupon creation and application happen at the Stripe level. Razorpay reads the discounted invoice amount from Stripe and charges accordingly. No coupon sync or offer mapping is required. > [accordion] Does Razorpay add GST to the amount charged? > > Yes. Razorpay calculates and adds 18% GST on the amount debited from Indian customers. The customer is charged `plan_amount + tax_amount`, where `tax_amount` is 18% of the plan amount. See [Charges, Taxes and Limits](#charges-taxes-and-limits). > [accordion] Is there a minimum charge amount? > > Yes. Every debit must be at least $1.00. If the payable amount is below $1.00 (for example, after a large coupon), Razorpay charges \$1.00 and automatically refunds the difference to the customer. > [accordion] Is there a limit on UPI recurring debits? > > Yes. UPI recurring debits are capped at \$250 per transaction. If a debit exceeds this limit, the customer must switch to a card mandate to complete the payment. # Currency Conversion Source: https://razorpay.com/docs/payments/international-payments/currency-conversion Know how currency conversion works in the APIs, Razorpay Dashboard and Settlements. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Razorpay Settlements occur in INR based on the conversion rate at the time of payment. ## Checkout Form and APIs On the checkout form or when using APIs for Razorpay products such as Orders, Payment Links, Subscriptions or Invoices, you need to specify the desired currency and pass the amount in the currency subunit. > [accordion] Sample Code > > The following is a sample API request and response to create an order for \$20: > > ```bash Request theme={null} > curl -u : \ > -X POST https://api.razorpay.com/v1/orders \ > -H "content-type: application/json" > -d '{ > "amount": 2000, > "currency": "USD", > "receipt": "rcptid #11" > }' > ``` > > ```java Java theme={null} > try { > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount", 2000); // amount in the smallest currency unit > orderRequest.put("currency", "USD"); > orderRequest.put("receipt", "order_rcptid_11"); > > Order order = razorpay.Orders.create(orderRequest); > } catch (RazorpayException e) { > // Handle Exception > System.out.println(e.getMessage()); > } > ``` > > ```python Python theme={null} > order_amount = 2000 > order_currency = 'USD' > order_receipt = 'order_rcptid_11' > notes = {'Shipping address': 'Bommanahalli, Bangalore'} # OPTIONAL > > client.order.create(amount=order_amount, currency=order_currency, receipt=order_receipt, notes=notes) > ``` > > ```php PHP theme={null} > $order = $client->order->create([ > 'receipt' => 'order_rcptid_11', > 'amount' => 2000, // amount in the smallest currency unit > 'currency' => 'USD',// > ) > ]); > ``` > > ```csharp .NET theme={null} > Dictionary options = new Dictionary(); > options.Add("amount", 2000); // amount in the smallest currency unit > options.add("receipt", "order_rcptid_11"); > options.add("currency", "USD"); > Order order = client.Order.Create(options); > ``` > > ```ruby Ruby theme={null} > options = amount: 2000, currency: 'USD', receipt: '' > order = Razorpay::Order.create > ``` > > ```javascript Node.js theme={null} > var options = { > amount: 2000, // amount in the smallest currency unit > currency: "USD", > receipt: "order_rcptid_11" > }; > instance.orders.create(options, function(err, order) { > console.log(order); > }); > ``` > > ```json Response theme={null} > { > "id": "order_00000000000001", > "entity": "order", > "amount": 2000, > "currency": "USD", > "receipt": "order_rcptid_11", > "status": "created", > "attempts": 0, > "created_at": 1596208654, > "notes": [] > } > ``` > > `currency` *mandatory* > : `string` Currency in which you want to accept the payment. For example, `GBP`. Check the [supported international currencies.](/docs/payments/international-payments#supported-products) > > `amount` *mandatory* > : `integer` The amount to be charged in the specified currency subunit. > > `receipt` *optional* > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > For example, when selling a product for โ‚น1000 in the domestic market, you pass INR in the `currency` parameter and `100000` in the `amount` parameter (since the amount should be in sub units). > > When selling in the international market, you might want to charge \$20 for the same product. In this case, you must pass `USD` in the `currency` parameter and `2000` in the `amount` parameter (since the amount should be in sub units). > [accordion] Payment Entity > > The [Payment entity](/docs/api/payments/entity) will contain additional fields when the currency is not INR to provide visibility into the conversion rate. > > **Example** > > The following is a sample payment entity for a \$1 payment: > > ```json Payment Entity theme={null} > { > "id": "pay_Donb2t6WkJYhfU", > "entity": "payment", > "amount": 100, > "currency": "USD", > "base_amount": 7129, > "base_currency": "INR", > "status": "captured", > "order_id": "order_CjCr5oKh4AVC51", > "international": true, > "method": "card", > "amount_refunded": 0, > "refund_status": null, > "description": "Payment at the Dollar Store", > "card_id": "card_Donb2wk8eC8EDN", > "email": "", > "contact": "", > "notes": [], > "fee": 207, > "tax": 0, > "error_code": null, > "error_description": null, > "created_at": 1400826750 > } > ``` > > `base_currency` > : `string` The conversion currency that will be used to calculate fees and settlements. This currently defaults to INR and is present only if the `currency` is not INR. > > `base_amount` > : `integer` The converted payment amount that will be used to calculate fees and settlements. Represented in the smallest unit of the `base_currency`. This attribute is currently only present if the `currency` is not INR. ## Select International Currency When using products such as Payment Links or Subscription Links, ensure you select the desired currency from the currency drop-down list and add the amount in the selected currency. For example, if you want to charge \$20 when selling in the international market, select `USD` in the **Currency** drop-down list and enter 20 in the **Amount** field. Watch this video to see how to select the international currency from the Dashboard. ![Select the international currency from the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/select-international-currency-dashboard.gif) ## Settlements After your customers have made the payment, the payment amount is converted to INR and settled to your Razorpay Payment Gateway (PG) account as per your settlement schedule. The exchange rate (according to the processing bank) on the date the payment was made is used to make the conversion. #### Example A customer made a payment of \$10 on February 02, 2019. * **Settlement Schedule**: T+7 business days for domestic transactions, where T is the date of capture of payment. * **Date of payment capture**: February 02, 2019 * **Conversion Rate**: \$1 = โ‚น70 as on February 02, 2019 * **Settlement Amount**: For $10 payment, $10 \* โ‚น70= 700 (minus taxes and fees) is settled to your account on February 09, 2019. # International Payments | FAQs Source: https://razorpay.com/docs/payments/international-payments/faqs Find answers to frequently asked questions about Razorpay International Payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [accordion] Can I avail the early settlement feature for international payments and reduce my settlement period from T+7 working days? > > Yes, you can apply for early settlement on international payments at an additional charge. Please reach out to our [support team](https://razorpay.com/support/). > [accordion] Can NGOs accept international payments via Razorpay? > > Due to certain compliance guidelines, we cannot provide the international payment feature to NGOs. > [accordion] Do you support companies registered outside India? > > Yes, Razorpay serves businesses registered in India. > [accordion] How do I display different currencies (other than INR) on the Razorpay Checkout to my customers? > > * You must get the [international payments feature](/docs/payments/international-payments/international-debit-credit-cards#application-process) enabled on your Razorpay account to accept payments in currencies other than INR. > * The native currencies like USD and SGD, which are a part of the [list of currencies supported by Razorpay](/docs/payments/international-payments#supported-currencies), can be updated as a part of the **currency** parameter on the payment request. > * Raise a request with the [support team](https://razorpay.com/support/#request/merchant/international-payment-acceptance) to display any currencies that are not a part of the above list. > [accordion] Do you support wire transfers for international payments? > > No. Currently, we only support international payments made using cards issued by overseas banks for all the major networks, following are the supported card networks: > > * Visa > > * Mastercard > > * Amex > > * Diners > > * Discover > > > [!WARNING] > > > > **Watch Out!** > > > > To enable Diners and Discover cards, contact our [support team](https://razorpay.com/support/#request). > [accordion] What currencies do you support? > > Razorpay supports more than 100 international currencies. Refer to the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > [accordion] Is there a list of Razorpay products that support international payments? > > Yes. Know more about the [products that support](/docs/payments/international-payments#supported-products) international payments. > [accordion] Who handles the currency conversion? > > * [Supported Currencies](/docs/payments/international-payments#supported-currencies): No currency conversion is required. You can pass the payment amount in the native currency. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion). > * Non-supported Currencies: For the currencies we do not support, you will have to handle conversion at your end and pass it to Razorpay in INR. > [accordion] What is the settlement cycle for international payments? > > The default settlement cycle is as per applicable law(s). You can view your settlement cycle on the Razorpay Dashboard. > [accordion] How does the settlement happen for international payments? > > The Settlement currency is INR (Indian rupees) for all transactions made using Razorpay. Thus, international payments are settled in INR. The exchange rate at the time of the payment creation is considered for conversion. # FIRS Automated Process Source: https://razorpay.com/docs/payments/international-payments/firs-automated-process Know about FIRS certificate, why you need it and how to obtain it from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India FIRS Certificate is a document that acts as evidence that you have received funds from a foreign country. The document is recognised as proof in scenarios such as getting GST refunds, claiming drawbacks from the government, or being required by beneficiary banks for compliance purposes. You can now generate FIRS from the Dashboard. > [accordion] Why do you need FIRS Certificate > > FIRS certificate contains important information about inward remittance, such as: > > * Sender details > * Converted amount details > * Amount of foreign currency > * UTR and account number > * Date of certificate issuance > [!WARNING] > > **Watch Out!** > > It is important to update your Purpose code to generate FIRS Certificates. ## Purpose Code Update Follow the steps to update your purpose code: 1. Log in to the Dashboard and navigate to **Accounts & Settings**. 2. Click **International Payment Codes** under **International payment settings**. ![International payment codes](https://razorpay.com/docs/build/browser/assets/images/firs-purpose-code-update-new.jpg) 3. Update your purpose code under the **International Payment Codes** section. ![Purpose code update](https://razorpay.com/docs/build/browser/assets/images/firs-purpose-code-update2-new.jpg) > [!NOTE] > > **Handy Tips** > > If you do not find your Transaction Purpose Code in the [Transaction Code list](https://razorpay.com/docs/build/browser/assets/images/transaction_purpose_codes.xlsx), contact the [Razorpay Support team](https://razorpay.com/support/) from your Dashboard. 4. The Razorpay Activation/Operations team checks whether the selected **Purpose Code** is correct. ## Generate FIRS Certificate All new and existing users accepting international payments can easily obtain the FIRS certificate on the Dashboard in a downloadable format. To generate FIRS certificate: 1. Log in to the Dashboard and navigate to **Account & Settings**. 2. Under **International payment settings** click **Foreign inward remittance statement (FIRS)**. 3. You can view a list of FIRS certificates based on your monthly transactions in a downloadable format. ![List of FIRS certificates](https://razorpay.com/docs/build/browser/assets/images/pay-ip-firs-view-new.jpg) 4. There are two sections. * The FIRS certificates provided by the bank. * Razorpay-generated statements. > [!NOTE] > > **Handy Tips** > > Razorpay-generated statements act as an alternative to FIRS certificates provided by banks. ![List of FIRS certificates downloadable format](https://razorpay.com/docs/build/browser/assets/images/pay-ip-firs6.jpg) If the FIRS is not generated from the bank or you need a consolidated list of FIRS, click on **Request for Razorpay Statement**. You can view or download the FIRS certificate from your Dashboard. ![FIRS request screen](https://razorpay.com/docs/build/browser/assets/images/pay-no-firs.jpg) > [!NOTE] > > **Handy Tips** > > Generating reports can take up to 1 hour. > > ![FIRS request sent screen](https://razorpay.com/docs/build/browser/assets/images/pay-firs-request-new.jpg) # Glossary Source: https://razorpay.com/docs/payments/international-payments/glossary List of commonly used terms related to Razorpay International Payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States The following table lists all the commonly used terms in international payments and their descriptions. | Terms | Description | | - | - | | International Payments | International payments are transactions where the payer and the payee are in different countries, involving cross-border funds transfer and currency conversion processes. | | Currency Conversionโ€‹ | The process of converting one currency into another during an international transaction. Razorpay Settlements occur in INR based on the conversion rate at the time of payment. | | Purpose Codes | Specific codes issued by the Reserve Bank of India (RBI) to denote the nature of foreign currency transactions. Each payment must be tagged with a purpose code to ensure compliance with regulations. | | SWIFT Transfer | An international payment method that uses the SWIFT network to transfer funds between banks globally. | | FIRS (Foreign Inward Remittance Statement) | A document that provides proof of funds received from a foreign country, essential for compliance, claiming GST refunds, and other regulatory purposes. | | Non-3DS Transactions | Payments processed without the 3D Secure protocol, often used for international card transactions. These transactions carry higher risk due to the lack of an additional authentication step. | | Address Verification System (AVS) | A security feature that verifies the customer's billing address against the address on file with the card issuer to prevent fraud. | | 3D Secure (3DS) | An additional layer of security for online card transactions where the cardholder must authenticate the transaction using a password or a one-time codeโ€‹. | # International Bank Transfer (MoneySaver Export Account) Source: https://razorpay.com/docs/payments/international-payments/international-bank-transfer Accept international payments through local currency bank accounts with Razorpay's International Bank Transfer. Open virtual accounts in US, UK, Europe, Australia, Canada and more to receive payments via ACH, FPS, SEPA, NPP, EFT, SWIFT and more. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Activate International Bank Transfer](/docs/payments/international-payments/international-bank-transfer#activate-international-bank-transfer) > > Check the steps to activate International Bank Transfer. > [card] [International Bank Transfer Dashboard](/docs/payments/international-payments/international-bank-transfer#accessing-the-dashboard) > > International Bank Transfer dashboard homepage overview. International Bank Transfer enables Indian businesses to accept international payments through local currency bank accounts without the complexity of opening foreign bank accounts. Your international buyers can pay you using familiar local payment methods like ACH, FPS, SEPA and SWIFT, whilst you receive settlements directly in your Indian bank account in INR. > [accordion] Advantages > > > [tab] For Your Business > > > > * **Competitive Pricing** \\ > > > > International bank tranfers cost only 1% with Zero Forex Markup vs traditional banks and other fintech platforms. > > > > * **Faster Settlement TAT** \\ > > > > Receive your payments within 1 business day of the payment being captured vs traditional bank transfer that takes 5-7 business days. > > > > * **Complete Compliance** \\ > > > > Receive your FIRC within minutes of the amount being credited to your INR account; built-in invoice management and buyer detail collection to ensure RBI and partner compliance. > > > > * **Hassle-free setup** \\ > > > > Opening bank accounts in foreign countries typically requires extensive paperwork and physical presence. Razorpay offers a real-time, completely digital solution to activate foreign currency accounts across different geographies. > > > > * **Multi-currency support** \\ > > > > Accept payments in 30+ currencies through USD, GBP and EUR virtual accounts, with support for ACH, FPS, SEPA and SWIFT transfers. > > > > * **Easy platform integration** \\ > > > > Seamlessly connect your virtual accounts to Amazon Seller Central, Upwork, Deel and other marketplaces or freelancing platforms. > > > > * **Higher success rates** \\ > > > > International card payments often fail due to fraud checks and risk validations. Bank transfers have significantly higher success rates, improving your conversion. > > > > * **No chargebacks on push transfers** \\ > > > > Push-based bank transfers are authorised payments that cannot be reversed through chargebacks, protecting you from fraudulent disputes and providing better cash flow predictability. This does not apply to [Flash Links (ACH Debit)](/docs/payments/international-payments/international-bank-transfer/flash-links-ach-debit), which is a pull-based payment and can be reversed by the payer through a chargeback. > > > [tab] For Your Customers > > > > * **No card required** \\ > > > > Customers without access to international cards can pay through their bank accounts, making it easy for you to sell in countries with lower card penetration. > > > > * **No bank branch visit needed** \\ > > > > Customers can make payments online through local bank transfers (like ACH) instead of visiting their bank branch for international wire transfers. This significantly improves the payment experience. > > > > * **Familiar payment experience** \\ > > > > Buyers can pay in their local currency using payment methods they are already comfortable with, reducing friction and abandoned payments. > > > > * **Lower costs for buyers** \\ > > > > Local ACH transfers incur lower fees compared to international card payments or SWIFT transfers, making your products more attractive. > > > > * **Faster payments** \\ > > > > Local payment rails process faster than traditional international wire transfers, improving cash flow for your business. > > > > * **Currency flexibility** \\ > > > > Customers can initiate payments in their native currency (USD, GBP, EUR), whilst you receive settlements in INR in your Indian bank account. ## How It Works 1. Activate International Bank Transfer. * New Razorpay user: Sign up for an [account](https://razorpay.com/accept-international-payments/bank-transfers/). * Existing Razorpay user: Log in to the Dashboard. Navigate to **Account & Settings** โ†’ **International payments** (under Payment methods) โ†’ **International bank transfers** and click **Activate**. 2. Receive virtual bank account details for USD, GBP, EUR, AUD, CAD, SWIFT and more. 3. Share these account details with your international buyers. 4. Accept payments when buyers transfer money using local payment methods. 5. Upload invoices and buyer details for each transaction (not required for Amazon, Upwork and Freelancer platform transactions). 6. Track payments through detailed timelines on your dashboard. 7. Receive settlements in INR in your Indian bank account. ## Supported Payment Methods International Bank Transfer supports the following payment methods: | Currency Name | Currency Code | Payment Method | Account Type | | - | - | - | - | | United States Dollar | USD | ACH | Virtual USD Account | | Pound Sterling | GBP | FPS | Virtual GBP Account | | European Euro | EUR | SEPA | Virtual EUR Account | | Canadian Dollar | CAD | EFT | Virtual CAD Account | | Swiss Franc | CHF | SIC ACH/SIC RTGS | Virtual CHF Account | | Swedish Krona | SEK | RIX Instant/RIX RTGS | Virtual SEK Account | | Danish Krone | DKK | DKK Local | Virtual DKK Account | | Australian Dollar | AUD | NPP/Osko/BECS | Virtual AUD Account | | Bahrain Dinar | BHD | SWIFT ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | Virtual SWIFT Account ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | Chinese Yuan | CNY | | | | Czech Koruna | CZK | | | | European Euro | EUR | | | | Pound Sterling | GBP | | | | Hong Kong Dollar | HKD | | | | Hungarian Forint | HUF | | | | Israeli Shekel | ILS | | | | Japanese Yen | JPY | | | | Kenyan Shilling | KES | | | | Kuwait Dinar | KWD | | | | Mexican Peso | MXN | | | | New Zealand Dollar | NZD | | | | Norwegian Krone | NOK | | | | Omani Rial | OMR | | | | Polish Zloty | PLN | | | | Qatar Rial | QAR | | | | Romanian Leu | RON | | | | Saudi Riyal | SAR | | | | Singapore Dollar | SGD | | | | South African Rand | ZAR | | | | Thai Baht | THB | | | | Turkish Lira | TRY | | | | Ugandan Shilling | UGX | | | | United Arab Emirates Dirham | AED | | | | United States Dollar | USD | | --- | ## Use Cases International Bank Transfer is ideal for: * Freelancers and consultants providing services to international clients. * SaaS companies selling software subscriptions globally. * IT services providers working with overseas customers. * Ecommerce sellers on Amazon, eBay, or their own websites. * B2B exporters selling physical goods internationally. * Digital content creators monetising international audiences. * Professional services firms offering consulting, legal or accounting services globally. ## Prerequisites Before activating International Bank Transfer, ensure you meet the following requirements: * Active Razorpay account with KYC verification completed. * PAN details of your business provided during onboarding. * You must be an Indian business that falls under one of the following export purpose codes to use MoneySaver Export Account: | Purpose Code | Description | | - | - | | P0103 | Advance receipts against export contracts, which will be covered later by GR/PP/SOFTEX/SDF (other than Nepal and Bhutan). | | P1004 | Legal services. | | P1005 | Accounting, auditing and bookkeeping services. | | P1006 | Business and management consultancy and public relations. | | P1007 | Advertising, trade fair service. | | P1008 | Research and Development services. | | P1009 | Architectural services. | | P0802 | Software consultancy/implementation (other than those covered in SOFTEX form). | | P1020 | Wholesale and retailing trade services. | | P1002 | Trade related services - commission on exports/imports. | | P1104 | Entertainment services. | | P1015 | Tax consulting services. | | P1016 | Market research and public opinion polling service. | | P1017 | Publishing and printing services. | | P1019 | Commission agent services. | | P1107 | Educational services. | | P1109 | Other personal, cultural and recreational services. | | P1701 | Receipts on account of processing of goods. | | P0301 | Purchases towards travel (includes purchases of foreign TCs, currency notes over the counter, by hotels, emporiums, institutions, as well as amount received by TT/SWIFT transfers or debit to non-resident account). | | P0302 | Business travel. | | P0304 | Travel for medical treatment including TCs purchased by hospitals. | | P0305 | Travel for education including TCs purchased by educational institutions. | | P0306 | Other travel receipts. | | P0601 | Receipts of life insurance premium. | | P0602 | Receipts of freight insurance - relating to export of goods. | | P0603 | Receipts on account of other general insurance premium. | | P0605 | Receipts on account of auxiliary services (commission on insurance). | | P0607 | Insurance claim settlement of non-life insurance and life insurance (only term insurance). | | P0608 | Life insurance claim settlements (excluding insurance) received by residents in India. | | P0801 | Hardware consultancy/implementation. | | P0803 | Database, data processing charges. | | P0804 | Repair and maintenance of computer and software. | | P0805 | News agency services. | | P0806 | Other information services - subscription to newspapers, periodicals and so on. | | P0808 | Telecommunication services including electronic mail services and voice mail services. | | P1013 | Environmental services. | | P1014 | Engineering services. | | P1101 | Audio-visual and related service: Motion picture and video tape production, distribution & projection service. | | P1103 | Radio and television production, distribution and transmission services. | | P1105 | Museums, library and archival services. | | P1106 | Recreation and sporting activity services. | | P1108 | Health service (receipts on account of services provided by Indian hospitals, doctors, nurses, paramedical and similar services rendered remotely or on-site). | * You should have international payment via Payment Link enabled on your account if you want to receive payment from customers in foreign currency, such as USD. The money will be settled in your Indian current account in INR. Know [how to enable international payments for your account](#activate-international-bank-transfer). ## Activate International Bank Transfer The activation process differs based on whether you are a new or existing Razorpay user. > [accordion] New Razorpay User > > If you are new user, you will need to complete the following steps displayed on the onboarding screens to activate international payment methods. > > 1. Sign up for a [Razorpay account](https://razorpay.com/accept-international-payments/bank-transfers/). > 2. On the onboarding screen, select **Outside India (International)** and click **Start Onboarding**. > 3. Fill up the following details to complete the onboarding: > * Basic Details: > * Name (Business or Individual). > * Phone number. > * Email address. > * Payment channels you want to enable. > * Business Details: > * Type of business: Individual, Sole Proprietorship, Partnership, Private Limited, Public Limited, LLP, NGO and so on. > * Personal PAN (for individuals) or Business PAN. > * Business Documents: > * GSTIN certificate (if GST registered). > * Udyam registration certificate (for MSMEs). > * Complete your KYC: > * Business address with proof. > * Authorised signatory details. > * Complete video KYC: > * Requires Aadhaar and PAN card. > * Live video verification with Razorpay agent. > * Takes approximately 3-4 minutes. > 4. Follow the on-screen instructions to provide any additional details or documentation required for activation. > [accordion] Existing Razorpay User > > If you are an existing Razorpay user, to activate **Local Currency Bank Transfer** payment method, follow the steps given below: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **International payments** (under Payment methods). > 3. In the **Local Currency Bank Transfer** section, under the International bank transfers tab, click **Activate**. > > ![International bank transfer ACH activate](https://razorpay.com/docs/build/browser/assets/images/intl-ach-request.jpg) > 4. On the **Purpose code** page, select the correct purpose code from the list and click **Continue**. > > ![International bank transfer purpose code](https://razorpay.com/docs/build/browser/assets/images/ibt-purpose-code.jpg) > 5. On the **Importer - Exporter code** page: > * If you have an IE code, select **Yes**. Enter the 10-digit **IE code** and select **I agree to the Terms and Conditions**. Click **Continue**. > * If the IE code does not apply to you, select **No, because it is not applicable for me** and click **Continue**. > * If you do not have an IE code but want to apply, select **No, but I want to apply for it**, and click **Apply now**. > > ![Import Export Code](https://razorpay.com/docs/build/browser/assets/images/ibt-ie-code.jpg) > > 6. On the Video KYC page, select **Yes, I am Gaurav Kumar**, and click **Start Video KYC** to proceed with the video KYC. > > ![International bank transfer video kyc](https://razorpay.com/docs/build/browser/assets/images/ibt-video-kyc.jpg) > 7. Your request submitted successfully, click **Okay, got it**. > > ![Request submitted successfully](https://razorpay.com/docs/build/browser/assets/images/request-submitted.jpg) ## Accessing The Dashboard After the International Bank Transfer account is activated, you can access your dashboard: **If you are using only International Bank Transfer:** You will automatically land on the International Bank Transfer homepage when you log in with all the international payment tools. **If you are using multiple Razorpay products:** 1. Log in to the Dashboard. 2. On the left navigation, click **Intl Bank Transfer**. 3. You will land on the dashboard homepage with all the international payment tools. ![International Bank Transfers homepage](https://razorpay.com/docs/build/browser/assets/images/intl-bank-transfer-home.jpg) ### Dashboard Overview Dashboard homepage is organised into key sections: > [accordion] Virtual Bank Accounts > > At the top of your homepage, you will see cards for all your virtual bank accounts: > > * USD Account (ACH) > * GBP Account (FPS) > * EUR Account (SEPA) > * SWIFT Account > * SGD, AED, AUD, CHF, DKK, SEK and CAD Accounts (Coming soon) > > ![Virtual accounts on homepage](https://razorpay.com/docs/build/browser/assets/images/international-account-home.jpg) > > #### Accessing Your Account Details > > > [accordion] Virtual Account Details > > > > You can access your virtual account details in two locations: > > > > > [tab] Dashboard Homepage > > > > > > 1. Log in to the Dashboard. > > > 2. Navigate to **Intl Bank Transfer**. > > > 3. On the homepage, you will see cards for all your virtual accounts. > > > 4. Click on any account card to view complete details. > > > > > > ![Virtual accounts on homepage](https://razorpay.com/docs/build/browser/assets/images/international-account-home.jpg) > > > > > [tab] International Accounts Tab > > > > > > 1. From the left navigation menu, click **International Accounts**. > > > 2. You will see a dedicated page with all your virtual account details. > > > 3. Click on any account card to view complete details. > > > > > > ![Virtual accounts on International accounts tab](https://razorpay.com/docs/build/browser/assets/images/international-accounts.jpg) > > #### Share Your Account Details > > There are two ways to share your virtual account details with customers, depending on your preference and their requirements. > > > [accordion] Manually Share Account Details > > > > This is the quickest method when you want to share details via your own email, WhatsApp or other messaging platforms. > > > > 1. On your dashboard homepage or International Bank Accounts page, locate the account you want to share. > > 2. On account card. Click **Copy**. > > > > ![Copy account details manually](https://razorpay.com/docs/build/browser/assets/images/manual-copy-details.jpg) > > 3. Account details are copied to your clipboard. Paste the details into your email, WhatsApp message or other messaging platforms. > > > [accordion] Share Account Details Directly Via Email From The Dashboard > > > > Use the built-in email sharing feature to share the account details. > > > > 1. On your dashboard homepage or International Bank Accounts page, locate the account you want to share. > > 2. On account card. Click **Share**. > > > > ![Share Account details](https://razorpay.com/docs/build/browser/assets/images/share-account.jpg) > > 3. Add Client details: > > * In the **Client name** field, enter your client's full name. > > * In the **Send to** field, enter your client's email address. > > * (Optional) Click **+ Add CC** if you want to copy additional email addresses. > > 4. Click **Send Email**. > > > > ![Add details and send email](https://razorpay.com/docs/build/browser/assets/images/send-email.jpg) > [accordion] Recent Transactions > > Below the virtual accounts section, you will see the most recent payment transactions: > > * Payment id and date. > * Amount in original currency. > * Payment status (Captured, Authorised, Failed). > * Amount saved compared to traditional methods. > * **+ Add Details** button for transactions requiring invoice upload. > > ![Recent transactions section](https://razorpay.com/docs/build/browser/assets/images/recent-payments.jpg) > [accordion] Video Guide > > The dashboard includes comprehensive video guide to help you get started quickly: > > * Getting Started with MoneySaver Export Account. > * Accepting Your First Payment. > * Adding Invoices & Client Details. > * Tracking Payments. > * Managing Marketplace Payouts. > * Connecting to Freelancer Platforms. > [accordion] Understanding Your Savings > > The **Savings Calculator** on the dashboard shows how much you can save using Razorpay International Bank Transfer compared to traditional banks and other platforms. > > > [accordion] Savings Calculator > > > > Located on the dashboard homepage, the calculator helps you understand potential savings: > > > > **How to Use:** > > > > 1. Use the slider to set your monthly payment volume. > > 2. View real-time comparison across three options: > > * Razorpay: Amount you receive (with zero FX markup). > > * Fintech Platforms: Amount after fees. > > * Traditional Banks: Amount after bank charges. > > > > **What It Shows:** > > > > * Exact amount you will receive in INR with each option. > > * Your savings compared to alternatives. > > * Annual savings projection. > > > > **Example:** > > For \$10,000 monthly payments: > > > > * **Razorpay**: โ‚น8,77,700 (Zero FX markup, Free FIRC) > > * **Fintech Platforms**: โ‚น8,21,599 (โ‚น66,101 less) > > * **Banks**: โ‚น8,80,642 (โ‚น7,706 less) > > > > ![Savings calculator](https://razorpay.com/docs/build/browser/assets/images/savings-calculator.jpg) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > The calculator uses current exchange rates and actual fee structures for accurate comparisons. Check regularly to see your savings. > [accordion] Platform Integration > > If you are selling on Ecommerce marketplaces or offering services on freelancing platforms, you can connect your Razorpay International Bank Transfer to receive payments directly from these platforms. > > International Bank Transfer integrates with: > > > [tab] Online Marketplaces > > > > * Amazon.us (United States) - USD > > * Amazon.co.uk (United Kingdom) - GBP > > * Amazon EU (European Union) - EUR > > * Amazon.com.au (Australia) - AUD > > * Amazon DK (Denmark) - DKK > > * SWIFT-based Marketplaces - Multiple currencies > > * Amazon.ca (Canada) - CAD (Coming soon) > > * Amazon.ae (United Arab Emirates) - AED (Coming soon) > > * Amazon CH (Switzerland) - CHF (Coming soon) > > * Amazon.se (Sweden) - SEK (Coming soon) > > > [tab] Freelancing Platforms > > > > * Upwork (Global freelancing job marketplace) > > * Deel (Freelance contracts & payouts) > > * Toptal (Elite freelance talent network) > > * Freelancer (Bid-based freelance jobs platform) > > * Fiverr (Freelance services marketplace) ## Unsupported Merchant Categories International Bank Transfer does not support the following MCCs because of compliance reasons. | MCC | Description | | - | - | | 5933 | Pawnbrokers (Pawn Shops) | | 8651 | Political organisations | | 5094 | Precious metals and stones, including diamond traders | | 7995 | Gambling - Betting (including lottery tickets, casino gaming chips, off-track betting and wagers at race tracks) | | 5813 | Alcohol - Drinking Places (Alcoholic Beverages, Bars, Taverns, Cocktail lounges, Nightclubs and Discotheques) | | 5993 | Tobacco (Cigar Stores and Stands) | | 5193 | Seeds or plants (Florists Supplies, Nursery Stock, and Flowers) | | 5966 | Outbound telemarketing (Direct Marketing-Outbound Telemarketing Merchants) | In addition to the above categories, International Bank Transfer does not support businesses in the prohibited industries mentioned in [Razorpay Terms and Conditions (Part 17)](https://razorpay.com/terms). ## Frequently Asked Questions (FAQs) > [accordion] I have customers spread across the US, UK and Europe. I want to offer our customers a cheaper, more reliable, and better payment experience. Can I collect payments in USD, GBP or EUR currency? > > Yes, you can offer services to your international customers from the US and other countries by providing them with a local currency bank account, and they can pay in their respective currencies. > [accordion] How can I transfer money from the local currency bank accounts to my current account with an Indian bank? > > The money is settled in your current account in INR currency by Razorpay after deducting the appropriate charges. > [accordion] Can I keep funds in these local currency accounts for a month or more for other payouts in foreign currency? > > No, you cannot hold the funds in the local currency accounts. > [accordion] Do I need to share any bills/invoices with Razorpay? > > Yes. You must provide invoices for all the transactions accepted via MoneySaver account. Airway bill is mandatory for the export of physical goods. Our banking partners require this for audit purposes as mandated by RBI. The settlement will not be initiated without a valid invoice copy, airway bill (in case of delivery of physical goods) and buyer's address details.\\ > > You should [upload the invoices](/docs/payments/international-payments/international-bank-transfer/transactions-invoices#uploading-invoices-and-business/buyer-details) on the Dashboard to enable Razorpay to settle funds to the Indian bank account. > [accordion] Does Razorpay need the buyer's address details along with the invoices? > > Yes. You must provide the buyer's address details and invoices for all the transactions accepted via a MoneySaver account. You should [upload the buyer's address details](/docs/payments/dashboard/buyers-address-details) on the Dashboard to enable Razorpay to settle funds to the Indian bank account. > [accordion] How can I provide invoices for these payment transactions? > > An invoice or airway bill (in case of delivery of physical goods) is mandatory for export transactions. You may [upload invoices](/docs/payments/international-payments/international-bank-transfer/transactions-invoices#uploading-invoices-and-business/buyer-details) to your Dashboard. The payment is settled once you share a valid invoice. > [accordion] What is the pricing for using this method? > > Please refer to the pricing details mentioned [here](https://razorpay.com/accept-international-payments/bank-transfers/). > [accordion] What is the settlement TAT? > > For push-based bank transfers, such as ACH, FPS, SEPA and SWIFT, the settlement cycle is T+1 from the time the payment is captured or invoice details are shared against a payment, whichever is later.\\ > > [Flash Links (ACH Debit)](/docs/payments/international-payments/international-bank-transfer/flash-links-ach-debit) settles later because it is a pull-based rail with a chargeback window. See the [ACH Debit settlement timeline](/docs/payments/international-payments/international-bank-transfer/flash-links-ach-debit#track-ach-debit-transactions). > [accordion] Does Razorpay support multiple settlement currencies for a seller? > > Yes, we support INR settlements to your current account in India and non-INR settlements to your EEFC account. > [accordion] Will I get FIRS for these transactions for tax purposes? > > FIRS will be sent to your contact email within 24 hours after settlement. > [accordion] What if my end customer raises a dispute with Razorpay? > > Disputes do not apply to push-based bank transfers, such as ACH, FPS, SEPA and SWIFT, as the payer initiates the transfer.\\ > > This does not apply to [Flash Links (ACH Debit)](/docs/payments/international-payments/international-bank-transfer/flash-links-ach-debit), which is a pull-based payment. ACH debits can be reversed by the payer through a chargeback. See [Chargebacks and reversals](/docs/payments/international-payments/international-bank-transfer/flash-links-ach-debit#chargebacks-and-reversals). > [accordion] Are refunds supported on these transactions? > > No, refunds are not supported for push-based bank transfers, such as ACH, FPS, SEPA and SWIFT.\\ > > Refunds are supported for [Flash Links (ACH Debit)](/docs/payments/international-payments/international-bank-transfer/flash-links-ach-debit) transactions. > [accordion] What is the payment flow for the consumer/buyer? > > The payment flow is given below: > > 1. The customer receives your virtual bank account details shared by you via email, WhatsApp or invoice. > 2. The customer adds your virtual bank account details as a beneficiary in their bank account or online banking portal. > 3. The customer initiates a local bank transfer to your account using their preferred payment method. > 4. The payment amount reflects on your Razorpay dashboard within a few hours of the customer initiating the transfer. ### Related Information * [Flash Links (ACH Debit)](/docs/payments/international-payments/international-bank-transfer/flash-links-ach-debit) * [Connect Platforms](/docs/payments/international-payments/international-bank-transfer/connect-platforms) * [Transactions and Invoices](/docs/payments/international-payments/international-bank-transfer/transactions-invoices) # Connect Online Marketplaces and Freelancing Platforms Source: https://razorpay.com/docs/payments/international-payments/international-bank-transfer/connect-platforms Connect your Razorpay International Bank Transfer (MoneySaver) Account to Online Marketplaces like Amazon and Freelancing Platforms like Upwork, Deel, Toptal and Freelancer. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Online Marketplaces](/docs/payments/international-payments/international-bank-transfer/connect-platforms#online-marketplaces) > > Check the steps to integrate with Online Marketplaces. > [card] [Freelancing Platforms](/docs/payments/international-payments/international-bank-transfer/connect-platforms#freelancing-platforms) > > Check the steps to integrate with Freelancing Platforms. If you are selling on ecommerce marketplaces or offering services on freelancing platforms, you can connect your Razorpay International Bank Transfer to receive payments directly from these platforms. ## Supported Platforms International Bank Transfer integrates with: > [tab] Online Marketplaces > > * Amazon.us (United States) - USD > * Amazon.co.uk (United Kingdom) - GBP > * Amazon EU (European Union) - EUR > * Amazon.com.au (Australia) - AUD > * Amazon DK (Denmark) - DKK > * SWIFT-based Marketplaces - Multiple currencies > * Amazon.ca (Canada) - CAD (Coming soon) > * Amazon.ae (United Arab Emirates) - AED (Coming soon) > * Amazon CH (Switzerland) - CHF (Coming soon) > * Amazon.se (Sweden) - SEK (Coming soon) > [tab] Freelancing Platforms > > * Upwork (Global freelancing job marketplace) > * Deel (Freelance contracts & payouts) > * Toptal (Elite freelance talent network) > * Freelancer (Bid-based freelance jobs platform) > * Fiverr (Freelance services marketplace) ## Online Marketplaces ### Amazon Marketplace Integration Amazon is one of the most popular platforms for Indian sellers. Here is how you can connect your Razorpay account to Amazon Seller Central. #### Prerequisites You must meet the following prerequisites to accept international payments from your customers: * You must have an Amazon Global Selling account. * Active Razorpay account with KYC verification completed. * You must have an active Razorpay account with KYC verification completed. * You must be an Indian business that falls under one of the following export purpose codes to use MoneySaver Export Account: | Purpose Code | Description | | - | - | | P0103 | Advance receipts against export contracts, which will be covered later by GR/PP/SOFTEX/SDF (other than Nepal and Bhutan). | | P1004 | Legal services. | | P1005 | Accounting, auditing and bookkeeping services. | | P1006 | Business and management consultancy and public relations. | | P1007 | Advertising, trade fair service. | | P1008 | Research and Development services. | | P1009 | Architectural services. | | P0802 | Software consultancy/implementation (other than those covered in SOFTEX form). | | P1020 | Wholesale and retailing trade services. | | P1002 | Trade related services - commission on exports/imports. | | P1104 | Entertainment services. | | P1015 | Tax consulting services. | | P1016 | Market research and public opinion polling service. | | P1017 | Publishing and printing services. | | P1019 | Commission agent services. | | P1107 | Educational services. | | P1109 | Other personal, cultural and recreational services. | | P1701 | Receipts on account of processing of goods. | | P0301 | Purchases towards travel (includes purchases of foreign TCs, currency notes over the counter, by hotels, emporiums, institutions, as well as amount received by TT/SWIFT transfers or debit to non-resident account). | | P0302 | Business travel. | | P0304 | Travel for medical treatment including TCs purchased by hospitals. | | P0305 | Travel for education including TCs purchased by educational institutions. | | P0306 | Other travel receipts. | | P0601 | Receipts of life insurance premium. | | P0602 | Receipts of freight insurance - relating to export of goods. | | P0603 | Receipts on account of other general insurance premium. | | P0605 | Receipts on account of auxiliary services (commission on insurance). | | P0607 | Insurance claim settlement of non-life insurance and life insurance (only term insurance). | | P0608 | Life insurance claim settlements (excluding insurance) received by residents in India. | | P0801 | Hardware consultancy/implementation. | | P0803 | Database, data processing charges. | | P0804 | Repair and maintenance of computer and software. | | P0805 | News agency services. | | P0806 | Other information services - subscription to newspapers, periodicals and so on. | | P0808 | Telecommunication services including electronic mail services and voice mail services. | | P1013 | Environmental services. | | P1014 | Engineering services. | | P1101 | Audio-visual and related service: Motion picture and video tape production, distribution & projection service. | | P1103 | Radio and television production, distribution and transmission services. | | P1105 | Museums, library and archival services. | | P1106 | Recreation and sporting activity services. | | P1108 | Health service (receipts on account of services provided by Indian hospitals, doctors, nurses, paramedical and similar services rendered remotely or on-site). | > [accordion] Integration Steps > > Follow the steps given below to change your deposit account in Amazon Seller Central: > > 1. Log in to Amazon Seller Central account. > 2. Navigate to **Settings** and click **Account Info**. > > ![Amazon Account Info](https://razorpay.com/docs/build/browser/assets/images/amazon-account-info.jpg) > 3. Navigate to the **Payment Information** tab and click **Deposit Methods**. > > ![Amazon Payment Information](https://razorpay.com/docs/build/browser/assets/images/amazon-payment-information.jpg) > 4. Enter the relevant bank account details based on your selling region: > * ACH account โ€“ Amazon USA > * FPS account โ€“ Amazon UK > * SEPA account โ€“ Amazon Europe > * NPP/Osko/BECS Account - Amazon Australia > * EFT Account - Amazon Canada > * RIX Account - Amazon Sweden > ![Amazon Deposit Methods](https://razorpay.com/docs/build/browser/assets/images/amazon-deposit-methods.jpg) > 5. Select the **Default Account** check box (Under **Type of Account**) to make Razorpay as your primary deposit method and click **Set Deposit Method**. > > ![Amazon Set the Deposit Methods](https://razorpay.com/docs/build/browser/assets/images/amazon-set-deposit-methods.jpg) ## Freelancing Platforms If you are offering services on freelancing platforms, you can connect your Razorpay International Bank Transfer to receive payments directly from these platforms. > [accordion] Freelancing Platforms > > Detailed step-by-step integration guides for each freelancing platform are available on the dashboard: > > 1. Log in to the [Razorpay Dashboard](https://dashboard.razorpay.com/app/money-saver/connect-platforms). > 2. Navigate to **Connect Platforms** on the left navigation with Intl Bank Transfer. > 3. On Freelancing Platforms section. Click the platform you want to connect (**Upwork**, **Deel**, **Toptal** or **Freelancer**). > 4. Follow the on-screen instructions to integrate with the specific platform. > > ![Freelancing platforms section](https://razorpay.com/docs/build/browser/assets/images/freelancing-platforms.jpg) ### Related Information [Transactions and Invoices](/docs/payments/international-payments/international-bank-transfer/transactions-invoices) # Flash Links (ACH Debit) Source: https://razorpay.com/docs/payments/international-payments/international-bank-transfer/flash-links-ach-debit Accept payments from your US customers directly from their US bank account using ACH Debit (ACH Pull). US payers pay Indian exporters via a familiar pay-by-bank experience, and you receive settlements in INR in your Indian bank account. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India **ACH Debit** (also known as **ACH Pull**) lets your US customers pay you directly from their US bank account using a familiar "pay by bank" method. Instead of relying on expensive traditional wire transfers, your US buyers authorise a bank debit, and you receive settlements in INR in your Indian bank account. ACH Debit is available two ways: as a **Flash Link (ACH Debit)** that you generate and share, and automatically as an option at **Razorpay Checkout** for eligible US payments. See [Accept Payments via ACH Debit](#accept-payments-via-ach-debit) for both flows. ACH Debit is an addition to [International Bank Transfer (MoneySaver Export Account)](/docs/payments/international-payments/international-bank-transfer). It is available only for merchants who have International Bank Transfer activated and Flash Links (ACH Debit) enabled on their account. > [accordion] Advantages > > > [tab] For Your Business > > > > * **Lower cost than wire transfers** \\ > > > > ACH Debit is significantly cheaper than traditional SWIFT wire transfers, letting your US customers pay you without the high per-transfer fees and FX markups of wires. > > > > * **Fewer card-related failures at submission** \\ > > > > Bank-based ACH payments avoid the common card failure reasons, such as expiry, limits or card network blocks. Note that ACH debits can still be reversed after payment through a chargeback. See [Chargebacks and reversals](#chargebacks-and-reversals). > > > > * **Familiar experience for US payers** \\ > > > > US customers pay from their bank account using a method they already use for domestic payments, reducing friction and abandoned payments. > > > > * **Suited to high-value B2B payments** \\ > > > > ACH Debit works well for large invoices where cards are expensive and wires are slow, making it ideal for services and B2B exports. > > > > * **Settlement in INR with compliance built in** \\ > > > > You receive settlements in INR in your Indian bank account, with FIRS and invoice management handled as part of International Bank Transfer. > > > [tab] For Your Customers > > > > * **Pay directly from a bank account** \\ > > > > Customers pay from their existing US bank account without needing an international card or visiting a bank branch. > > > > * **1-click bank connection** \\ > > > > Customers can securely connect most US banks through Plaid, so they do not have to enter bank details manually. > > > > * **Lower fees than cards or wires** \\ > > > > ACH Debit typically costs the payer less than international card payments or wire transfers. > > > > * **Clear, familiar authorisation** \\ > > > > Customers review and accept a standard bank authorisation before the payment is submitted, so they always know what they are approving. ## How It Works 1. Activate [International Bank Transfer](/docs/payments/international-payments/international-bank-transfer#activate-international-bank-transfer) and get Flash Links (ACH Debit) enabled on your account (see [Enable Flash Links (ACH Debit)](#enable-flash-links-ach-debit)). 2. Share a Flash Link (ACH Debit) with your US customer, or let ACH Debit appear automatically at Checkout for eligible US payments. 3. Your customer opens the link, connects their US bank account (via Plaid) or enters their bank details, and authorises the ACH debit. 4. The payment is submitted to the ACH network for processing. 5. Track the payment status and timeline on your dashboard. 6. Receive settlement in INR in your Indian bank account. ## Eligibility The ACH Debit option is shown to a payer only when all of the following are true: * The payer is located in the **United States** (based on the payer's IP/location). * The payment currency is **USD**. * **International Bank Transfer (MoneySaver)** is activated for your account. * **Flash Links (ACH Debit)** is enabled for your account. Because eligibility is based on the payer's IP/location, a US payer who is travelling abroad, or connecting through a VPN outside the US, may not see the ACH Debit option. You must also meet the standard [International Bank Transfer prerequisites](/docs/payments/international-payments/international-bank-transfer#prerequisites), including a valid export purpose code. ## Enable Flash Links (ACH Debit) Flash Links (ACH Debit) is enabled on top of International Bank Transfer and is not a self-serve dashboard toggle. To get it enabled on your account: 1. Ensure [International Bank Transfer](/docs/payments/international-payments/international-bank-transfer#activate-international-bank-transfer) is already activated. 2. Contact your Razorpay account manager or [Razorpay Support](https://razorpay.com/support/) to request Flash Links (ACH Debit). Once enabled, ACH Debit becomes available through Flash Links and at Checkout for eligible US payments. ## Accept Payments via ACH Debit There are two ways your US customers can pay you using ACH Debit. > [tab] Invoices > > Generate a Flash Link (ACH Debit) by creating an invoice from your International Bank Transfer dashboard and sharing it with your US customer: > > 1. Log in to the Dashboard and navigate to **Intl Bank Transfer**. > 2. Create a new invoice and add the **Customer details** and **Items**. > 3. In the **Payment collection** step, select **Flash Links (ACH Debit)** ("Collect via ACH debit"). You can also enable **Bank Transfer** (where your customer pushes the payment from their bank) on the same invoice. > 4. Finalise the invoice, then copy the generated link or send it to your customer directly over email from the dashboard. > > Because you provide the invoice and customer details while creating the invoice, your customer is not asked to enter their billing address again when they pay. > [tab] Checkout > > If you use Razorpay Checkout, ACH Debit appears automatically as a payment option, with **no API or integration changes required**, when: > > * Your account is activated for International Bank Transfer and Flash Links (ACH Debit) is enabled. > * The payer's location is the United States. > * The transaction currency is USD. > > Your customer selects **ACH Debit** at Checkout to pay from their US bank account. ## Payer Experience When your US customer pays through a Flash Link (ACH Debit) or at Checkout: 1. The customer selects **ACH Debit** ("Pay directly from bank account"). 2. **Connect a bank account:** The customer connects their US bank account through **Plaid**. If they prefer, or if the bank connection is unavailable, they can enter their bank details manually. * When entering details manually, the customer provides their **routing number** and **account number**. 3. **Provide name and address (if required):** Whether the customer is asked for their name and billing address depends on how the payment was initiated. When you generate a Flash Link (ACH Debit) by creating an invoice from the International Bank Transfer dashboard, these details are captured during invoice creation and are not requested again. When the payment is initiated another way, such as at Checkout, the customer provides their full name and billing address at this step. 4. **Authorise the payment:** The customer reviews and accepts a standard ACH debit authorisation before submitting. The authorisation states that they permit the debit from their bank account and notes the expected processing time. The exact wording is shown on the payment page. 5. **Confirmation:** After submitting, the customer sees a success screen confirming the payment has been submitted to the ACH network for processing. They receive a payment confirmation email once the payment succeeds. ## Track ACH Debit Transactions You can monitor your ACH Debit payments from the **Transactions** section of your International Bank Transfer dashboard. * ACH Debit transactions are labelled as **ACH Debit** payments, and you can filter transactions by this method. * Transaction details include the payment ID, amount, created date, customer details, bank name, account type and the masked bank account number (last 4 digits visible). * A timeline view shows each status change for the payment. ACH Debit transactions move through the following statuses: | Status | Description | | - | - | | Authorised | The bank account is verified and the payment has been submitted to the ACH network. This is a transitionary state. | | Captured | The payment has been processed successfully. | | Failed | The payment could not be processed and was rejected before capture, for example because of invalid account details or insufficient funds. The failure reason is shown. | | Refunded | The payment was refunded to the customer by you. See [Refunds](#refunds). | A captured payment can still be reversed later if the payer raises a chargeback. See [Chargebacks and reversals](#chargebacks-and-reversals). > [!NOTE] > > **Handy Tips** > > Because ACH is a bank-based rail with a chargeback window, settlement takes longer than card payments. Settlement is around **T+5 business days from the time the payment is captured, or from when a valid invoice is provided, whichever is later**. As with all International Bank Transfer payments, settlement is not initiated until a valid invoice is available for the transaction. ## Chargebacks and Reversals ACH Debit is a pull-based payment, so a debit can be reversed by the payer *after* it has been captured through a chargeback. This is different from push-based International Bank Transfer payments, which cannot be reversed. How a chargeback is handled depends on whether the payment has been settled to you: * **Chargeback within 3 days of payment:** Razorpay returns the amount directly to the payer, and no settlement occurs to your account. * **Chargeback after the payment has been settled to you:** * You are fully liable to return the payment amount, plus any additional processing fees required to send the funds back to the payer. * Razorpay reserves the right to withdraw the chargeback amount and fees directly from your Razorpay account or linked settlement account. * For details, refer to the [Razorpay chargeback policy](https://razorpay.com/terms/). > [!NOTE] > > **Handy Tips** > > Because of the chargeback window, we recommend confirming that a payment has settled before treating it as final, especially for high-value orders or before shipping goods or delivering services. ## Refunds Unlike push-based International Bank Transfer payments, ACH Debit transactions **support refunds**. * Refunds are available for ACH Debit transactions that have been captured. * Both **full** and **partial** refunds are supported. * Refunds typically take **5โ€“10 business days** to appear in your customer's bank account. * Refund status follows Razorpay's standard refund states (`pending`, `processed`, `failed`), and refund history is visible in the transaction details. > [!NOTE] > > A refund is a return of funds that you initiate. It is different from a [chargeback](#chargebacks-and-reversals), where the payer reverses a captured debit. ## Reports ACH Debit transactions appear in your payment reports with the following differences: * The payment **method** column value is `intl_bank_transfer`, and the bank-transfer sub-type is `ach_pull`. Merchants can filter on these column values to isolate ACH Debit transactions. * The **Card Type** and **Card Network** columns are blank. * The **Bank Name** and **Account Type** columns are populated for ACH transactions. * The **failure reason** column is populated for failed transactions. * The masked bank account number (last 4 digits) is included. ## Pricing For ACH Debit pricing, refer to the pricing details mentioned [here](https://razorpay.com/accept-international-payments/bank-transfers/). ## Frequently Asked Questions (FAQs) > [accordion] What is ACH Debit (ACH Pull)? > > ACH (Automated Clearing House) is the US electronic bank transfer network. ACH Debit, also called ACH Pull, is a method where the payment is "pulled" from the customer's US bank account after they authorise it. This lets your US customers pay you directly from their bank account instead of using a card or a wire transfer. > [accordion] Which US banks are supported? > > Customers can connect most US banks through Plaid, including major banks. If a customer's bank cannot be connected, they can enter their bank details manually. > [accordion] Who can pay using ACH Debit? > > ACH Debit is available for payers located in the United States paying in USD, when your account has International Bank Transfer activated and Flash Links (ACH Debit) enabled. > [accordion] What is the settlement timeline? > > Settlement for ACH Debit is around T+5 business days from the time the payment is captured, or from when a valid invoice is provided, whichever is later. As with all International Bank Transfer payments, settlement is not initiated without a valid invoice. This is longer than card payments because ACH is a bank-based rail with a chargeback window. > [accordion] Are refunds supported? > > Yes. Full and partial refunds are supported for captured ACH Debit transactions. Refunds typically take 5โ€“10 business days to reach your customer's bank account. A refund is a return of funds that you initiate, and is different from a chargeback; see the question below. > [accordion] How are chargebacks handled? > > ACH Debit is a pull-based payment, so the payer can reverse a captured debit through a chargeback. > > * If the payer issues a chargeback within 3 days of payment, Razorpay returns the amount directly to the payer, and no settlement occurs to your account. > * If the payer issues a chargeback after the payment has been settled to you, you are fully liable to return the payment amount plus any additional processing fees required to send the funds back to the payer. Razorpay reserves the right to withdraw the chargeback amount and fees directly from your Razorpay account or linked settlement account. > > For details, refer to the [Razorpay chargeback policy](https://razorpay.com/terms/). See also [Chargebacks and reversals](#chargebacks-and-reversals). > [accordion] Do I need to make any changes to my Checkout integration? > > No. If you use Razorpay Checkout, ACH Debit appears automatically for eligible US payments (payer located in the US, currency USD) once International Bank Transfer and Flash Links (ACH Debit) are enabled on your account. No API or integration changes are required. > [accordion] Do I need to upload invoices for ACH Debit transactions? > > Yes. As with other International Bank Transfer payments, invoices and buyer details are required for compliance. When you generate a Flash Link (ACH Debit) from the dashboard, you create the invoice as part of the flow. Learn more about [managing invoices and transactions](/docs/payments/international-payments/international-bank-transfer/transactions-invoices). > [accordion] Will I receive FIRS for these transactions? > > Yes. FIRS is provided for International Bank Transfer settlements, including ACH Debit, for your tax and compliance needs. FIRS is sent to your contact email within 24 hours after settlement. ### Related Information * [International Bank Transfer](/docs/payments/international-payments/international-bank-transfer) * [Transactions and Invoices](/docs/payments/international-payments/international-bank-transfer/transactions-invoices) * [Connect Platforms](/docs/payments/international-payments/international-bank-transfer/connect-platforms) # Manage Invoices and Transactions Source: https://razorpay.com/docs/payments/international-payments/international-bank-transfer/transactions-invoices Managing Invoices, Tracking Payments and Monitoring Transactions with Razorpay International Bank Transfer. Know how to upload invoices and track payment status. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India For every international payment you receive through International Bank Transfer, you must upload an invoice and buyer details to comply with RBI and banking partner requirements. This guide explains how to manage invoices and track your transactions. > [!WARNING] > > **Watch Out!** > > Uploading invoices and business/buyer details is mandatory for all International Bank Transfer transactions (not required for Amazon, Upwork and Freelancer platform transactions). Without these documents, your payment cannot be settled to your Indian bank account. ## Uploading Invoices and Business/Buyer Details There are two ways to add invoice and buyer details for your payments: > [tab] Dashboard Homepage (Recent Transactions) > > This is the quickest method when you are on your dashboard homepage: > > 1. Log in to the Dashboard and navigate to **Intl Bank Transfer**. > 2. On the homepage, scroll to the **Recent transactions** section. You will see the list of your most recent transactions. > 3. Look for payments with a CTA - **+ Add Details**. These payments require invoice details. > 4. On the right side, click **+ Add Details**. > > ![Recent transactions section](https://razorpay.com/docs/build/browser/assets/images/add-details.jpg) > 5. On the dialog box, you can drag and drop or click **Upload**. > > ![Upload Invoice dialog box](https://razorpay.com/docs/build/browser/assets/images/upload-invoice-box.jpg) > 6. Enter **Business/buyer name** and other required details. > 7. Click **Submit**. > > After the invoice is uploaded and the address details are added, payment will be captured within 60 minutes. > [tab] Transactions Tab > > This method is useful when you want to see all pending invoices at once: > > 1. From the left navigation menu, click **Transactions**. You will see the list of all your transactions. > 2. At the top, you will see two filter tabs: > * **All**: Shows all transactions. > * **Pending Actions**: Shows only transactions that requires invoices. > 3. Look for payments with a CTA - **+ Add Details** and settlement status **Not Initiated**. These payments require invoice details. > 4. On the right side, click **+ Add Details**. > > ![Recent transactions section](https://razorpay.com/docs/build/browser/assets/images/transactions-add-details.jpg) > 5. On the dialog box, you can drag and drop or click **Upload**. > > ![Upload Invoice dialog box](https://razorpay.com/docs/build/browser/assets/images/upload-invoice-box.jpg) > 6. Enter **Business/buyer name** and other required details. > 7. Click **Submit**. > > After the invoice is uploaded and the address details are added, payment will be captured within 60 minutes. ### Related Information [International Bank Transfer](/docs/payments/international-payments/international-bank-transfer) # International Debit and Credit Cards Source: https://razorpay.com/docs/payments/international-payments/international-debit-credit-cards Enable/disable international payments using foreign cards. Check the eligibility criteria, prerequisites and the application process. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Accept international payments from foreign bank cards by enabling international payments on your Dashboard.. > [!NOTE] > > **Feature Enablement** > > International payments require special security and risk checks. We enable this feature only after our banking partners have approved it, ensuring compliance and protecting against fraud. ## Enable Payments from International Debit and Credit Cards To enable international payments for the first time, place a request from the Dashboard. > [accordion] Eligibility and Prerequisites > > You must meet the following eligibility criteria set by our banking partners to accept international payments: > > * You must have an active Razorpay account with KYC verification completed. > * You must have a valid website with the following sections/pages clearly defined: > * **Terms and Conditions** > > * **Privacy policy** > > * **Refund and Cancellation policy** > > * **Shipping policy** > > > [!WARNING] > > > > **Watch Out!** > > > > International payments cannot be enabled for your account without these sections/pages on your website. > > * Check the list for the [business categories not supported by Razorpay](https://razorpay.com/terms/). > [accordion] Application Process > > To request international payments: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **International payments** (under Payment methods). > 3. Click **Activate** to enable the International cards. > > ![Request activation for international card payments](https://razorpay.com/docs/build/browser/assets/images/international-cards-activate.jpg) > 4. Follow the on-screen instructions to provide any additional details or documentation required for activation. > [accordion] Documents and Details Required > > 1. In case of sales of tangible products, Import/Export code is required. > 2. If you have past international transaction experience, the following documents are accepted: > * Bank statement for inward remittance. > * Settlement record from the current payment partner. ## Disable Payments from International Debit and Credit Cards You can disable the **International payments** option on your account from your Dashboard. 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **International payments** (under Payment methods). 3. Use the toggle button to enable or disable international card payments. ![Disable international card payments](https://razorpay.com/docs/build/browser/assets/images/disable-international-cards.jpg) # Local Payment Methods Source: https://razorpay.com/docs/payments/international-payments/local-payment-methods Offer local payment methods as a payment method to customers at Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay supports the following local payment methods instruments to accept payments across different geographies and varied currencies. * [Giropay](/docs/payments/payment-methods/giropay) for German customers. * [Sofort](/docs/payments/payment-methods/sofort) for European customers. * [Trustly](/docs/payments/payment-methods/trustly) for UK and European customers. * [POLi](/docs/payments/payment-methods/poli) for Australian customers. You can accept international payments from customers in the form of online local payment methods using the Razorpay Checkout form. ## Request Local Payment Method To request Local Payment Method, follow these steps: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **International payments** (under Payment methods). 3. Click **Activate** beside **Local payment methods**. ![Razorpay Dashboard image of local payment method activation](https://razorpay.com/docs/build/browser/assets/images/local-payment-method-activate.jpg) 4. An **Instant Bank Transfers Activation** request form appears. Select the payment instrument to be enabled on your Checkout. Click **Save & Next**. > [!NOTE] > > **Handy Tips** > > You can use one or multiple payment instruments as per your needs. ![Razorpay Dashboard image of bank transfer activation-form](https://razorpay.com/docs/build/browser/assets/images/instant-bank-transfer-activation-form.jpg) 5. Fill in the required details and click **Save & Next**. > [!NOTE] > > **Handy Tips** > > * If you are an existing business, some of the required details will be auto-filled. > * You can click the **Edit** button to fill in the incomplete details before submitting the form. ![Razorpay Dashboard image of bank transfer form details](https://razorpay.com/docs/build/browser/assets/images/instant-bank-transfer-form-details.jpg) 6. Fill in the **Management/Ownership** details in the form. When complete form details are filled, click **Submit form** button. ![Razorpay Dashboard image of bank transfer submit form](https://razorpay.com/docs/build/browser/assets/images/instant-bank-transfer-submit-form.jpg) 7. After the form is submitted, the request is sent to activate the selected payment instruments. The feature enablement request goes to our banking partners and will take 15 - 20 business days to be approved. ![Razorpay Dashboard image of bank transfer requested status](https://razorpay.com/docs/build/browser/assets/images/instant-bank-transfer-requested-status.jpg) After the payment instrument is enabled, you will see the **Activated** status beside the selected one. ![Razorpay Dashboard image of bank transfer activated status](https://razorpay.com/docs/build/browser/assets/images/instant-bank-transfer-activated-status.jpg) ## Frequently Asked Questions (FAQs) > [accordion] Am I eligible for this feature? > > All international-enabled businesses will have this feature on the Dashboard. > [accordion] What are the alternative payment methods available via Razorpay? > > Razorpay already supports PayPal, and has now launched POLi for Australians, Trustly for the UK and Europeans, Sofort for Europeans and Giropay for German customers. > [accordion] What are the prices for Alternative Payment Methods? > > You will be charged 3.0% Platform fee for accepting payments via the **Local Payment Methods**. > [accordion] Why is my request rejected? > > The request can be rejected due to multiple reasons: > > * Risky business category: The respective payment method (lets say, Trustly) is not comfortable with your business model. > * Incorrect account details: The banking partner rejects your request if you have provided any incorrect information at the time of your application. > * Outdated website: The customer-facing website is thoroughly checked by our banking partners. The banking partner can reject your request if the website is not updated or has a limited information, including details such as **Terms & Conditions**, **Delivery timelines**, **Refund & Cancellation** policies and so on. > [accordion] Is this feature available on all Razorpay integrations? > > We will give early access to sellers on Razorpay Standard Checkout. The feature will be rolled out to custom and server-to-server (s2s) integration in the upcoming sprints. > [accordion] How much time will it take for my request to get approved? > > The feature enablement request goes to our banking partners and will take 15 - 20 business days to be approved. # Accept Payments Above Your Transaction Limit Source: https://razorpay.com/docs/payments/international-payments/over-limit-transactions Know how we accept and hold international card payments above your transaction limit instead of declining them, and how long we hold each one. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India International card payments above your transaction limit are no longer declined. We accept and hold the payment for a set period, then settle it to you. A ceiling still applies. We decline any payment above your ceiling, as we did before. Your ceiling is set for your account and is usually higher than your limit. Most large payments that used to fail now reach you. Your customer sees no difference. The payment succeeds as normal. > [!NOTE] > > **Handy Tips** > > Every amount, percentage and hold period on this page is an example. Your own terms appear in your Razorpay Dashboard. ## Prerequisites Over-limit payments apply to your account when: * Your account is KYC approved and fully activated. Know more about [KYC Verification](/docs/payments/set-up#set-up-a-razorpay-account-and-complete-kyc). * You have international payments enabled. Know more about [International Payments](/docs/payments/international-payments). * We have enabled over-limit payments on your account and set your limits, hold periods and ceiling. These limits and holds apply only to international card payments. Your domestic payments are unaffected, and their [transaction limits](/docs/payments/payment-methods/transaction-limits) are unchanged. ## Use Cases * A customer places an order larger than your usual ticket size. Earlier we declined the payment. Now we accept it, hold it and settle it to you. * You run a seasonal or high-value campaign where order values rise above your normal limit. Your customers complete payment as usual instead of seeing a failure. ## Your Transaction Limits **Your limit** decides when we hold a payment. Above it, the payment still goes through. It only takes longer to settle. **Your ceiling** decides whether we accept the payment at all. Above it, we decline the payment and it never reaches you. You have 2 limits. One covers your **non-3DS payments**, which the customer's bank did not verify before they went through. The other covers your 3DS payments and is the higher of the two. A single ceiling sits on top of both. Know more about [Support for Non-3D Secure Transactions](/docs/payments/international-payments/support-non-3ds). ## How it Works 1. Your customer makes an international card payment above your transaction limit. 2. We accept and capture the payment as usual. 3. We hold the full payment for a set number of days. The period depends on which limit the payment crossed. 4. We release the amount to your balance on the release date. 5. The released amount settles on your normal settlement cycle. We decline any payment above your ceiling at step 1, so it never reaches your balance. ## Hold Periods for Over-Limit Payments For this section, take an account with the terms in the table below: | Category | Amount | | - | - | | Limit on non-3DS payments | โ‚น3,00,000 | | Limit on your 3DS payments | โ‚น5,00,000 | | Ceiling | โ‚น20,00,000 | The table below lists how long we hold a payment on this account: | The Payment | What Happens | | - | - | | Over โ‚น3,00,000, if it is a non-3DS payment | We hold it for 90 days, then it settles | | Over โ‚น5,00,000, if it is one of your 3DS payments | We hold it for 60 days, then it settles | | Over โ‚น20,00,000 | We decline it | We hold non-3DS payments for longer because disputes on them are more likely. Keep these points in mind: * **We hold the whole payment, not only the amount above your limit.** On a โ‚น6,00,000 3DS payment against a โ‚น5,00,000 limit, we hold all โ‚น6,00,000, not the โ‚น1,00,000 above the limit. * **The hold period does not change with the amount.** A payment slightly above your limit is held for exactly as long as one well above it. The period depends on which limit the payment crossed, not by how much. > [accordion] Example: 6 payments taken on day 1 > > Your settlement cycle is T+7, so anything settling normally reaches you on day 8. The table below lists what happens to each payment: > > | S. No. | Payment | Amount | What Happens | > | - | - | - | - | > | 1 | 3DS | โ‚น2,00,000 | Within the limit. Settles on day 8. | > | 2 | Non-3DS | โ‚น2,50,000 | Within the limit. Settles on day 8. | > | 3 | Non-3DS | โ‚น4,00,000 | Above the โ‚น3,00,000 limit. Held in full, released on day 91. | > | 4 | Non-3DS | โ‚น8,00,000 | Above the โ‚น3,00,000 limit. Held in full, released on day 91. | > | 5 | 3DS | โ‚น8,00,000 | Above the โ‚น5,00,000 limit. Held in full, released on day 61. | > | 6 | 3DS | โ‚น22,00,000 | Above the โ‚น20,00,000 ceiling. Declined. | > > Payments 1 and 2 behave as they did before. We would have declined payments 3, 4 and 5 before this change, and they now reach you, only later than usual. We still decline payment 6. > > Payments 3 and 4 differ in size but wait the same length of time. Payment 3 is smaller than payment 5 yet waits a month longer. It crossed the non-3DS limit, which carries the longer hold. ## When Your Non-3DS Payments Have a Lower Limit If you asked us to enable non-3DS payments, they usually carry their own limit. That limit is lower than the one on the rest of your payments. Payments between that limit and your ceiling still go through. These payments are not held. They settle on the timeline set for that band, which is longer than your normal cycle. The timeline depends on your terms. The two accounts below show the range. Both carry their own limits and their own ceiling, different from the account used above. > [accordion] Example 1: Your non-3DS payments settle on your normal cycle > > The table below lists the terms on this account: > > | Configuration | Your 3DS Payments | Your Non-3DS Payments | > | - | - | - | > | Limit | โ‚น5,00,000 | โ‚น3,00,000 | > | Settlement timeline within its limit | T+7 | T+7 | > | Settlement timeline in the band above its limit | None | 60 days | > | Ceiling | โ‚น5,00,000 | โ‚น5,00,000 | > > The table below lists when each payment settles: > > | Payment Amount | If It Is One of Your 3DS Payments | If It Is a Non-3DS Payment | > | - | - | - | > | Up to โ‚น3,00,000 | Settles on day 8 | Settles on day 8 | > | โ‚น3,00,001 to โ‚น5,00,000 | Settles on day 8 | Settles on day 61 | > | Above โ‚น5,00,000 | Declined | Declined | > > Below โ‚น3,00,000 every payment settles on day 8. Only the โ‚น3,00,000 to โ‚น5,00,000 band behaves differently, and only for non-3DS payments. > > On this account the ceiling equals the limit on your 3DS payments. We therefore never hold a 3DS payment here. We decline it above โ‚น5,00,000. > [accordion] Example 2: Your non-3DS payments already settle on a longer cycle > > Some accounts carry a [reserve](/docs/payments/settlements/reserves) on their non-3DS payments, so those payments settle on a longer cycle to begin with. The lower limit then sits inside that longer cycle. A payment in the band waits longer still, rather than waiting twice. > > The table below lists the terms on this account: > > | Configuration | Your 3DS Payments | Your Non-3DS Payments | > | - | - | - | > | Limit | โ‚น5,00,000 | โ‚น3,00,000 | > | Settlement timeline within its limit | T+7 | T+50 | > | Settlement timeline in the band above its limit | None | 120 days | > | Ceiling | โ‚น5,00,000 | โ‚น5,00,000 | > > The table below lists when each payment settles: > > | Payment Amount | If It Is One of Your 3DS Payments | If It Is a Non-3DS Payment | > | - | - | - | > | Up to โ‚น3,00,000 | Settles on day 8 | Settles on day 51 | > | โ‚น3,00,001 to โ‚น5,00,000 | Settles on day 8 | Settles on day 121 | > | Above โ‚น5,00,000 | Declined | Declined | > > As in Example 1, the ceiling equals the limit on your 3DS payments. We therefore never hold a 3DS payment on this account. In both examples, read the middle row. A โ‚น4,00,000 3DS payment sits inside the โ‚น5,00,000 limit and settles on day 8. The same โ‚น4,00,000 as a non-3DS payment falls in the band above โ‚น3,00,000 and settles later. The group the payment falls into decides the outcome, not its size. ## Raise Your Transaction Limit Raise a support request from your Razorpay Dashboard to increase your transaction limit or your ceiling. We review your account and your use case before deciding, and may ask you for additional documents. If we accept the request, your new limits and hold periods apply from that point. Raising your limit also raises your ceiling, because we work out the ceiling from your limit. ## Turn Off Over-Limit Payments Raise a support request from your Razorpay Dashboard to turn this off. Once we action it, we decline over-limit international card payments and hold nothing, as we did before. Raise another request whenever you want it turned back on. We may also turn it off on your account, for example where compliance or risk requirements call for it. ## Notifications We email you when: * We approve your request to raise your limit or your ceiling. The email confirms your new limits and hold periods. * We turn off over-limit payments on your account. ## View Your Limits and Held Payments Your Razorpay Dashboard shows your current limits and your ceiling under **Settings**. Any held amount appears under **Settlements**, with the date we release it. Each held payment links back to the payment it came from. Use it to see which payments are waiting and when we release each one. Your settlement report shows the amount held against each settlement, so your books tie back. Know more about [settlement reports](/docs/payments/settlements/dashboard#reports). ## Frequently Asked Questions (FAQs) > [accordion] Is there an amount you still decline? > > Yes. We decline anything above your ceiling. Your ceiling appears in your Razorpay Dashboard alongside your limits. > [accordion] What is the difference between my limit and my ceiling? > > Your limit affects **when** you get the money. Your ceiling affects **whether** you get it. We accept a payment above your limit and settle it to you, only later than usual. We decline a payment above your ceiling. > [accordion] Do you hold the whole payment, or only the part above my limit? > > The whole payment. On a โ‚น6,00,000 payment against a โ‚น5,00,000 limit, we hold all โ‚น6,00,000, not โ‚น1,00,000. > [accordion] Why do you hold two payments of similar size for different lengths of time? > > Because they crossed different limits. Non-3DS payments carry a lower limit and a longer hold. Your Razorpay Dashboard shows which of your payments fell into which group. > [accordion] Does the hold get longer the further above the limit I go? > > No. It is the same whether you are โ‚น1,000 above or โ‚น5,00,000 above. > [accordion] Will my customer know anything is different? > > No, unless the payment is above your ceiling, in which case it fails as it would have before. Otherwise the payment goes through normally, and the hold affects only when the money reaches you. > [accordion] Is the held amount a fee? > > No. It is your money. We hold it temporarily and settle it to you in full. We charge no fee on it and nothing accrues on it. > [accordion] Does this apply to my domestic payments? > > No. These limits and holds apply only to international card payments. > [accordion] Can I ask for an over-limit payment to be released early? > > Raise a request from your Razorpay Dashboard. Early release is at our discretion. We look at each request case by case, against the payment, your account history and your dispute record. If we approve it, the amount joins your normal settlement pipeline rather than being paid out immediately. > [accordion] What happens if I need to refund the payment before it settles? > > We pay refunds from your live balance or your refund credits. You cannot refund from a held payment until we release it. Keep enough live balance available if you expect to refund large payments. > [accordion] Can I have this turned off permanently? > > Yes. Raise a support request and we will turn it off, after which we decline over-limit payments as we did before. ### Related Information * [Reserves on International Payments](/docs/payments/settlements/reserves) * [Support for Non-3D Secure Transactions](/docs/payments/international-payments/support-non-3ds) * [Transaction Limits for Payment Methods](/docs/payments/payment-methods/transaction-limits) * [About Settlements](/docs/payments/settlements) # About Purpose Codes Source: https://razorpay.com/docs/payments/international-payments/purpose-codes Learn about Purpose Codes (definition, list and selection) and enabling international payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India A purpose code is a unique identifier issued by a country's central bank that is necessary for the successful execution of international payments. These codes are assigned to each transaction involving foreign currency and specify the purpose for which the transaction is being made. The purpose codes are issued by the Reserve Bank of India (RBI) to specify the nature of foreign currency transactions. For Indian businesses, receiving payments from foreign customers is an **inward remittance**, and sending payments abroad for goods or services is an **outward remittance**. * Each payment must be tagged with an appropriate purpose code, with separate codes for import and export transactions. * Export purpose codes begin with 'P', while import purpose codes start with 'S'. > [!WARNING] > > **Watch Out!** > > It is mandatory to add the purpose codes during international payment enablement. Failure to do so will result in compliance issues and delays in transactions. ## Select Correct Purpose Code You must select the correct purpose code to avoid issues related to regulation compliance. For example, a software development startup in India exporting software to the United States should choose the appropriate purpose code, such as "P0802 - Software consultancy/implementation" when receiving payments. This ensures that the RBI and banks understand the exact nature of the transaction and aids in compliance with Indian regulations. To select the correct purpose code, make sure to: * **Check RBI Purpose code list**: Refer to RBI's comprehensive list of purpose codes and their corresponding descriptions to choose the correct purpose code. You can check with your bank for the purpose code list. * **Engage with Chartered Accountants (CAs)**: CAs can assist in identifying the correct purpose code for your specific business activities. > [!WARNING] > > **Watch Out!** > > Incorrect use of purpose codes can lead to non-compliance with Foreign Exchange Management Act (FEMA) regulations and reporting issues to regulatory agencies. For example, if the purpose of a transaction does not align with the assigned purpose code, it may result in errors when reporting to regulatory authorities. ## List of Purpose Codes Download the complete [list of transaction purpose codes](https://razorpay.com/docs/build/browser/assets/images/transaction_purpose_codes.xlsx) you can select during the onboarding process. \ > [!NOTE] > > **Handy Tips** > > The purpose code selected will apply to all international business transactions. ## Accept Payments from International Customers > [card] [New Razorpay User](/docs/payments/international-payments/purpose-codes#new-razorpay-user) > > Steps to accept payments from international customers if you are a new user. > [card] [Existing Razorpay User](/docs/payments/international-payments/purpose-codes#existing-razorpay-user) > > Steps to accept payments from international customers if you are an existing user. ### New Razorpay User To enable international payments and accept payments from international customers for new users: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **International payments** (under Payment methods). 3. Select the payment method you wish to activate, such as **International Cards** or **International Bank Transfers** and click **Activate** button corresponding to the payment method. 4. On the **International activation form** page, under Business Details, enter all the details based on the business requirements and click **Continue**. 5. On the Purpose code page, select the correct purpose code from the list and click **Continue**. ![Select the purpose code](https://razorpay.com/docs/build/browser/assets/images/select-purpose-code-new.jpg) 6. On the **Importer - Exporter code** page: * If you have an IE code, select **Yes**. Enter the 10-digit **IE code** and select **I agree to the Terms and Conditions**. Click **Continue**. * If the IE code does not apply to you, select **No, because it is not applicable for me** and click **Continue**. * If you do not have an IE code but want to apply, select **No, but I want to apply for it**, and click **Apply now**. 7. On **Supporting details** page, enter all the supporting details and click **Submit details**. Once the details are submitted, the Razorpay Activation/Operations team verifies them. After the verification process is complete, you can start accepting payments. ### Existing Razorpay User To update purpose codes if you are an existing user and have already enabled international payments: 1. Click **International Payments Codes** under **International payment settings**. 2. Update your purpose code under the **International Payment Codes** section. ![Purpose code update](https://razorpay.com/docs/build/browser/assets/images/firs-purpose-code-update2-new.jpg) 3. Select the appropriate **Purpose Code**. Based on your business requirements, you also need to provide your **HS Code** or **IEC Code**. > [tab] Add HS Code > > 1. Click **International Payments Codes** under **International payment settings**. > > 2. Update your HS Code under the **International Payment Codes** section. > > ![Purpose code update](https://razorpay.com/docs/build/browser/assets/images/firs-purpose-code-update2.jpg) > > 3. Select the appropriate **Harmonised System Code**, also known as HS Code. > > > [!NOTE] > > > > **Handy Tips** > > > > * For Software: HSCode is **85238020** and HSDescription is **Other Information technology software**. > > * For Goods: Refer to the list from the [DGFT website](https://www.dgft.gov.in/CP/). > [tab] Add IEC Code > > 1. Click **International Payments Codes** under **International payment settings**. > > 2. Update your **IEC Code** under the **International Payment Codes** section. > > ![Purpose code update](https://razorpay.com/docs/build/browser/assets/images/firs-purpose-code-update2.jpg) > > 3. Select the appropriate **Purpose Code**. > > 4. Enter the 10-digit Importer/Exporter Code (IEC) and click **Next**. > > ![Import Export Code](https://razorpay.com/docs/build/browser/assets/images/import-export-code.jpg) > > > [!WARNING] > > > > **Watch Out!** > > > > The IEC is a code issued by the Indian Director General of Foreign Trade (DGFT) to Indian companies that intend to export from India. You can apply for an IEC at the [DGFT website](https://www.dgft.gov.in/CP/). > > > > The IEC code input screen appears for specific purpose codes, (P0103) being one of them. 4. Review and click **Confirm**. The Razorpay Activation/Operations team verifies the selected **Purpose Code**. As consumers or buyers, you get the option to make payments through the [Razorpay payment gateway](/docs/payments/payment-gateway). On selecting Razorpay, various payment methods will be displayed at the Razorpay checkout to complete the payment. # Superior Plan Integration Guide Source: https://razorpay.com/docs/payments/international-payments/superior-plan Send customer and order details with your international card payments to get the full benefit of the Razorpay Superior plan. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The Superior plan raises your success rate on international card payments by approving more of them. It also covers fraud chargebacks on your international card payments, with no change to your settlement cycle. Superior was earlier called Chargeback Shield. To get the full benefit, send a few extra details with each order: who the customer is, what they are buying and, for travel, who is travelling. Our risk model uses these details to approve genuine payments it would otherwise decline. This page links to the integration guide for your checkout type and business category. ## Prerequisites * Superior is active on your account. Turn it on or off from the **Superior Plan** card on your Razorpay Dashboard. * Your business is in one of the [categories that need extra details](#categories-that-need-extra-details). ## Categories That Need Extra Details Superior covers international card payments in every business category. The extra details on this page are needed today only for these categories: * E-commerce * Digital services, for example, edtech, SaaS, insurance and web development * Airlines and online travel agencies (OTAs) * Hotels If your business is in another category, there are no extra details to send yet. > [!NOTE] > > **Handy Tips** > > * You do not need to send extra details for recurring and subscription payments. > * Shopify stores need no integration. We collect the details through the Shopify app, so you can skip this guide. ## Choose Your Integration Guide Pick the row for how you accept payments and the column for what you sell. Each guide lists the exact fields to send and where to send them. | How You Integrate | E-commerce and Digital Services | Airlines and OTAs | Hotels | | - | - | - | - | | Standard Checkout | [E-commerce and digital guide](/docs/payments/payment-gateway/web-integration/standard/chargeback/build-integration-ecommerce) | [Travel guide](/docs/payments/payment-gateway/web-integration/standard/chargeback/build-integration-travel) | [Hotel guide](/docs/payments/payment-gateway/web-integration/standard/chargeback/build-integration-hotel) | | Custom Checkout | [E-commerce and digital guide](/docs/payments/payment-gateway/web-integration/custom/chargeback/build-integration-ecommerce) | [Travel guide](/docs/payments/payment-gateway/web-integration/custom/chargeback/build-integration-travel) | [Hotel guide](/docs/payments/payment-gateway/web-integration/custom/chargeback/build-integration-hotel) | | S2S | [E-commerce and digital guide](/docs/payments/payment-gateway/s2s-integration/json/v2/build-integration/international-cards/e-commerce) | [Travel guide](/docs/payments/payment-gateway/s2s-integration/json/v2/build-integration/international-cards/travel) | [Hotel guide](/docs/payments/payment-gateway/s2s-integration/json/v2/build-integration/international-cards/hotel) | ### Category Tips * **Digital services**: Follow the e-commerce and digital guide. Skip the shipping address, which does not apply to digital services. * **Airlines**: Pass the full flight number in `carrier_code`. * **Travel and hotels**: Pass the customer's billing address inside the `customer_details` object. * **S2S integrations**: Add the Razorpay Shield JS script to your checkout page first. This is step 1.1 of each S2S guide. ## How the Integration Works 1. **Build**: Follow your guide from the table above. Send all mandatory fields. Recommended fields improve approvals further. 2. **Test**: Run test payments in test mode. Use the Test Integration page for [Standard Checkout](/docs/payments/payment-gateway/web-integration/standard/chargeback/test-integration) or [Custom Checkout](/docs/payments/payment-gateway/web-integration/custom/chargeback/test-integration). 3. **Go live**: Complete the Go-Live Checklist for [Standard Checkout](/docs/payments/payment-gateway/web-integration/standard/chargeback/go-live-checklist) or [Custom Checkout](/docs/payments/payment-gateway/web-integration/custom/chargeback/go-live-checklist) and switch to live API keys. Once the details are flowing in production, tell your account manager or raise a support request from your Razorpay Dashboard. 4. **Integration audit**: Our team audits your orders to check that the fields are passing through correctly. We tell you if any further changes are needed. 5. **Enhanced approvals on**: Once your integration is complete and correct, you get the full benefit of the Superior plan. ### Related Information * [International Payments](/docs/payments/international-payments) * [Support for Non-3D Secure Transactions](/docs/payments/international-payments/support-non-3ds) * [International Chargebacks](/docs/payments/disputes/international-chargebacks) * [Visa Merchant Elevated Risk Program (MERP)](/docs/payments/international-payments/visa-merp) # Support for Non-3D Secure Transactions Source: https://razorpay.com/docs/payments/international-payments/support-non-3ds Enable or disable Non-3DS international card payments from Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore You can enable or disable Non-3D secure international card payments using your Dashboard.. ## Prerequisites Following are the prerequisites to enable/disable Non-3D secure international card payments: * You must have an active Razorpay account with KYC verification completed. * You must have [international payments](/docs/payments/international-payments) enabled for your account. ## Enable/Disable Support for Non-3D Secure Transactions To enable/disable Non-3D Secure transactions, follow these steps: > [tab] Enable > > 1. Log in to the Dashboard. > > 2. Navigate to **Account & Settings** โ†’ **Payment Methods**. > > 3. Select **International Payments** and click **Request** besides **Support for Non-3D Secure transactions** under **International Cards**. > > ![Disable Non-3DS](https://razorpay.com/docs/build/browser/assets/images/non-3ds-disable.jpg) > > 4. A request pop-up is displayed to confirm if you want to enable the support for Non-3D Secure transactions. Click request. > > > [!NOTE] > > > > **Feature Enablement** > > > > * The Razorpay Risk team analyses your request for support on Non-3D Secure transactions. The team can either accept or reject your request based on certain parameters. > > * **Non-3DS cards are processed without second-factor authentication**. These international card payments are prone to a higher risk of fraud and chargebacks. In case of any fraud or service-related chargeback, Razorpay does not take the responsibility and the liability lies with the seller. > > ![Enable Non-3DS](https://razorpay.com/docs/build/browser/assets/images/non-3ds-enable.jpg) > [tab] Disable > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **Payment Methods**. > 3. Select **International Payments** and click on the **Disable** button to disable the support for Non-3D Secure transactions. The **Request** button gets displayed once again. ### Related Information * [Reserves on International Payments](/docs/payments/settlements/reserves) * [Accept Payments Above Your Transaction Limit](/docs/payments/international-payments/over-limit-transactions) # Visa Merchant Elevated Risk Program (MERP) Source: https://razorpay.com/docs/payments/international-payments/visa-merp Know what the Visa Merchant Elevated Risk Program (MERP) is, who it applies to and how the Razorpay Superior plan lowers your risk of being identified. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The Visa Merchant Elevated Risk Program (MERP) is a Visa monitoring programme for the Asia Pacific region, enforced from October 2026. It identifies individual merchants showing clear, high-confidence signs of elevated risk: disproportionate fraud and disputes, abnormal activity and unusual decline behaviour. Unlike Visa's portfolio-level programmes, MERP does not wait for a merchant to reach high volumes. A merchant can be identified early in its processing history. The Razorpay [Superior plan](/docs/payments/international-payments/superior-plan) significantly lowers your chance of being identified. We screen your international card payments for fraud before they reach Visa and cover fraud chargebacks on payments processed under the plan. Know more about [how the Superior plan helps](#how-the-superior-plan-helps). ## Who MERP Applies To MERP applies to merchants accepting Visa payments through acquirers in the Asia Pacific region. This includes all Razorpay merchants in Asia Pacific. Visa evaluates each merchant individually and identifies it by its statement descriptor. Merchants most likely to be identified are those: * Seeing sudden spikes in transaction count or volume, or activity at unusual times. * Seeing a rise in fraud reports, disputes or card declines. * Processing activity that does not match the business they were onboarded for. ## Consequences of a MERP Identification If Visa confirms an identification, the outcome can range from penalties of up to USD 50,000 to losing the ability to accept card payments. | Consequence | What It Means for You | | - | - | | Network non-compliance assessments | Visa levies assessments on the acquirer, which can be passed on to you. | | Fraud chargebacks on authenticated payments | Issuers can raise fraud chargebacks on past payments that were reported as fraud. Payments you considered settled can be charged back. | | Remediation | You may need to explain the flagged activity and document the controls you put in place. | | Account restriction or closure | Your international card payments may be suspended or your account closed. | We have a fixed window to respond to Visa after an identification. If we ask you for information, respond within the timeline in our request so we can contest the identification where the evidence supports it. ## How the Superior Plan Helps MERP identifications are driven by fraud and disputes. The Superior plan helps you accept more international card payments while tackling fraud at the source. * **Fraud screening**: Our risk engine checks every international card payment on the Superior plan and blocks high-risk payments before they reach Visa. Fewer fraudulent payments mean fewer fraud reports and fraud chargebacks, the core signals behind a MERP identification. * **Ongoing monitoring**: We continuously monitor your fraud, dispute and decline signals on international payments. * **Fraud chargeback cover**: If a fraudulent payment does get through, we cover the fraud chargeback on payments processed while the Superior plan was active. > [!NOTE] > > **Handy Tips** > > A payment is covered only if it was processed while the Superior plan was active on your account. ## Reduce Your MERP Risk Moving to the Superior plan is the most direct way to lower your MERP risk. Superior takes care of fraud, but service chargebacks still count towards MERP. These come from customers who, for example, did not receive their order, were not happy with it or forgot about a subscription. The practices below help you keep them low on international payments: * **Delivery**: State timelines before checkout, flag delays with a refund option, ship with tracking, take a signature for high-value orders and keep stock levels accurate. * **Product and pricing**: Use accurate descriptions and images, show the full price including taxes and shipping, publish a clear refund policy and keep a check on products that draw a lot of disputes. * **Subscriptions**: Confirm billing terms upfront, make cancellation easy and send reminders before trials convert and before renewals (7 days before a yearly renewal, 2โ€“3 days before a monthly one). * **Recognisable payments**: Use a clear statement descriptor, a support contact and clear receipts. ## If You Are Identified Under MERP Visa notifies our acquiring bank and we contact you by email. What follows: 1. **Investigation**: We review your activity and may ask for business details, invoices for goods sold, fulfilment proof or transaction receipts. Respond within the timeline in the request. 2. **Contest or remediate**: Where the evidence supports it, we contest the identification with Visa. Either way, we may need a remediation plan, which can require changes from you. 3. **Chargebacks**: For several months after an identification, issuers can raise fraud chargebacks on past payments that were reported as fraud. These are debited from your balance. 4. **Network penalties**: If Visa levies a non-compliance assessment for your identification, we may pass it on to you. 5. **Ongoing monitoring**: We may apply limits, reserves or added checks on your international payments, or suspend them, until risk returns to normal. ### Related Information * [Superior Plan Integration Guide](/docs/payments/international-payments/superior-plan) * [International Chargebacks](/docs/payments/disputes/international-chargebacks) * [Disputes](/docs/payments/disputes) # About Orders Source: https://razorpay.com/docs/payments/orders All about Razorpay Orders, their states and Razorpay Dashboard actions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Order is an important step of the payment life cycle at Razorpay. When a customer clicks the pay button on your website or app, an order is created with a unique identifier. This contains details such as the transaction amount and currency. The order id secures the payment request and one cannot tamper with the order amount. Pass this order id to the Razorpay Checkout. You need to integrate your server with Orders API before proceeding with Razorpay Payment Gateway integration on your website or app. ### Advantages * Single successful payment bound to an order. Prevents multiple payments. * Quick and easy query in the database. Combines multiple payment attempts for a single order. ## Order States Following are the various states of an order: | Status | Description | | - | - | | `created` | When a new order is created, it is in the `created` state. It stays in this state until payment is attempted on it. | | `attempted` | An order moves from `created` to `attempted` state when payment is first attempted on it. It remains in the `attempted` state until a payment associated with that order is captured. | | `paid` | After the payment is captured successfully, the order moves to the `paid` state. No further payment requests are allowed once the order moves to the `paid` state. The order continues to be in the `paid` state even if the payment associated with the order is refunded. If another payment attempt that started before the order moved to `paid` is authorised later, for example, a late authorised payment, that payment is [auto-refunded](/docs/payments/refunds/auto-refunds). | > [!WARNING] > > **Watch Out!** > > If an order is in anย `attempted`ย state with the associated payment id in theย `authorised`ย state, initiating another payment using the same order id is not allowed. ## Order and Payment Flows Following is a pictorial representation of how order and payment flows are closely related: ![Pictorial representation of Order and Payment Flow](https://razorpay.com/docs/build/browser/assets/images/orders-payment-flow.jpg) ## Create Orders You can [create an order using this API](/docs/api/orders/create). ## Dashboard Actions Perform the following actions using the Dashboard: * [View orders](/docs/payments/orders/dashboard#view-order-details-using-api) * [Subscribe to Webhook Events related to orders](/docs/payments/orders/dashboard#subscribe-to-webhook-events) * [View reports related to orders](/docs/payments/orders/dashboard#reports) ### Related Information [Orders APIs](/docs/payments/orders/apis) # Orders APIs Source: https://razorpay.com/docs/payments/orders/apis List of Orders APIs available to perform various actions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can use the Orders APIs to perform various actions. You can perform a few of these actions from the Dashboard as well. ## List of Orders APIs The table below lists the various Orders APIs and gives a brief description of each API: | API | Description | | - | - | | [Create an order](/docs/api/orders/create) | API to create an order | | [Fetch orders](/docs/api/orders/fetch-all) | API to view all orders | | [Fetch orders with expanded payments object](/docs/api/orders/fetch-all-expanded-payments) | API to view all orders with expanded payments object | | [Fetch orders with card parameter expanded in payments object](/docs/api/orders/fetch-all-expanded-card-payments) | API to view all orders with card parameter expanded in the payments object | | [Fetch order by order id](/docs/api/orders/fetch-with-id) | API to view order details by providing the order id | | [Fetch payments for an order](/docs/api/orders/fetch-payments) | API to view all the payments made for the order | | [Update order](/docs/api/orders/update) | API to update the 'Notes' field of an existing order | ### Related Information * [About Orders](/docs/payments/orders) * [Order - Dashboard Actions](/docs/payments/orders/dashboard) # Orders - Dashboard Actions Source: https://razorpay.com/docs/payments/orders/dashboard View Order details, subscribe to webhook events and view reports from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can use the Dashboard to perform the following actions: * [View Order Details from Dashboard](#view-order-details-from-dashboard) * [Subscribe to Webhooks](#subscribe-to-webhook-events) * [View reports](#reports) ## View Order Details From Dashboard Watch this video to see how to view order details from the Dashboard. [YouTube video player](https://www.youtube.com/embed/y5abD3RiaJM?si=KaE175lV4SOraRJ1) To view order details: 1. Log in to the Dashboard. 2. Select **Transactions** from the left menu and click **View All** on the **Orders** tab. 3. A list of all the orders is displayed. 4. Click an **Order Id** to view the details of the order. ### View Order Details Using API * [View all orders using Fetch Orders API](/docs/api/orders/fetch-all). * [View specific details of an order using Fetch an Order with ID API](/docs/api/orders/fetch-with-id). ## Subscribe to Webhook Events Subscribe to Webhook events available for orders to receive notifications. To subscribe to Webhook events: 1. Log in to the Dashboard. 2. Navigate to **Accounts & Settings** โ†’ Webhooks to subscribe to any of the following events: The table below lists the webhook events available for orders. | Webhook Event | Description | | - | - | | `order.paid` | Triggered when an order is successfully paid. | Know more about [Webhooks](/docs/webhooks) and check the [sample payloads](/docs/webhooks/orders). ## Reports Detailed insights can be gained using reports and real-time data on the Dashboard. These reports can then be used for accounting and reconciliation purposes. Know more about [reports](/docs/payments/dashboard/reports). ### Related Information * [About Orders](/docs/payments/orders) * [Orders APIs](/docs/payments/orders/apis) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/orders/faqs Find answers to some Frequently Asked Questions (FAQs) about Razorpay Orders. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [accordion] What happens if an order is in the attempted state with an authorised payment id? > > If an order is in the attempted state with the associated payment id in the authorised state, initiating another payment using the same order id is not allowed. > [accordion] Can an order be attempted more than once? > > No further payment requests are allowed once an order is in the paid state. Even if the payment associated with the order is refunded, the order remains in the paid state. > [accordion] Can I view order details on the Dashboard? > > Yes, you can [view the order details](/docs/payments/orders/dashboard#view-order-details-from-dashboard) from the Dashboard. > [accordion] What are the different states of an order? > > An order can be in one of three states: Created, Attempted, or Paid. Know more about the [different states of an order](/docs/payments/orders#order-states). # About Payment Methods Source: https://razorpay.com/docs/payments/payment-methods Check the different payment methods that can be configured to accept payments from your customers using Razorpay products. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States The Razorpay Checkout offers multiple payment methods, allowing your customer the flexibility to complete the payment using the payment method of their choice. This improves user experience and allows you to offer alternate payment methods to your customer in the case of downtimes or low success rate with one of the payment methods. For example, if you are facing downtime with netbanking, the customer can complete the payment using cards or wallets. You can view the payment methods enabled for your account or [raise requests for additional payment methods or providers](/docs/payments/dashboard/account-settings/payment-methods#enable-payment-methods) on the Dashboard. ## View Payment Methods To view payment methods enabled for you: 1. Log in to the Dashboard. 2. Click **Account & Settings** in the left menu. ![Dashboard - Settings](https://razorpay.com/docs/build/browser/assets/images/payment-methods-view.jpg) 3. Go to **Payment methods** to view the payment methods enabled for your Razorpay account. ![Dashboard - Payment methods](https://razorpay.com/docs/build/browser/assets/images/payment-method-enable.jpg) You can also request for [Additional Payment Methods](/docs/payments/dashboard/account-settings/payment-methods#request-payment-methods) from the Dashboard. ## Supported Payment Methods Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Cash on Delivery](/docs/payments/payment-methods/cod) | `cod` | Requires [Approval](/docs/payments/payment-methods/cod) and Integration. | | Debit Card | `debit` | โœ“ | | Credit Card | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets#supported-wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | | [Sodexo](/docs/payments/payment-methods/sodexo) | `TBD` | Requires [Approval](https://razorpay.com/support) if not on [Optimizer](/docs/payments/optimizer). | ## Supported UPI apps You can accept payments from customers through UPI apps, such as Google Pay, BHIM UPI and PhonePe. Razorpay supports multiple [third-party UPI apps](https://www.npci.org.in/what-we-do/upi/3rd-party-apps) and has direct integration with Google Pay. You can select the appropriate method of [UPI integration](/docs/payments/payment-methods/upi) based on the kind of checkout experience you want to give your customers. ## Google Pay Integration In addition to the [standard](/docs/payments/payment-methods/upi/google-pay) and [custom](/docs/payments/payment-methods/upi/google-pay/custom-integration) checkout integrations, there are certain intent-based payment flows that you can enable on your Checkout. Know more about [Omnichannel](/docs/payments/payment-methods/upi/google-pay/omnichannel) and [Google Pay SDK](/docs/payments/payment-methods/upi/google-pay/custom-integration#intent-based-integration) integrations. ## Transaction Limits * [Transaction Limits for Payment Methods](/docs/payments/payment-methods/transaction-limits) * [UPI Transaction Limits](/docs/payments/payment-methods/transaction-limits/upi) ## Payment Method Error Codes There are certain error codes specific for each payment method supported by Razorpay. Know more about the [Payment Method Error Codes](/docs/errors/payments/payment-methods-error-parameters). # Apple Pay Standard Checkout Source: https://razorpay.com/docs/payments/payment-methods/apple-pay Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Apple Pay is a secure, contactless payment method that allows customers to pay using their Apple devices with Face ID/Touch ID authentication. Once Apple Pay is enabled and integrated, it appears on your Checkout page as a payment option, providing a frictionless checkout experience for international customers. Know more about [Apple Pay](https://www.apple.com/apple-pay/). > [accordion] Advantages > > Integrating Apple Pay as a payment method on Checkout offers you the following advantages: > > * **Higher Conversion Rates**: Up to 58% improvement in checkout conversion rates for international customers. > * **Reduced Friction**: Eliminate manual card entry with biometric authentication (Face ID/Touch ID). > * **Enhanced Security**: Benefit from Apple's tokenisation and liability shift protection. > * **Faster Checkout**: 45% reduction in checkout time for Apple device users. > * **Increased Average Order Value**: Potential 12% increase in transaction value. > * **Global Reach**: Accept payments from customers in 70+ countries. ## Prerequisites Before enabling Apple Pay, ensure you have: * Razorpay Standard Checkout with international payments feature enabled. * HTTPS-enabled website with TLS 1.2 or higher. * Access to your web server to upload verification files. * Registered business entity (non-profit organisations are not eligible). * Display the Apple Pay [brand mark](https://developer.apple.com/apple-pay/marketing/Apple-Pay-Mark.zip) on your website in the payment methods section. Follow [Apple's official marketing guidelines](https://developer.apple.com/apple-pay/marketing/) to display the Apple Pay brand mark to indicate support before checkout. ## Integrate Apple Pay on Standard Checkout Follow the steps given below: > [accordion] Step 1: Domain Registration and Verification > > Apple Pay needs you to host a file in your domain. To find the list of these domains, please log in to the [dashboard](https://dashboard.razorpay.com/app/payment-methods/apple-pay). > > > [!NOTE] > > > > **Handy Tip** > > > > Only domains whitelisted with the accounts service will be visible here. Similar domains are visible as well. Please contact our [Support team](https://razorpay.com/support/) if you cannot find your Apple Pay showing domain here. You need to whitelist your URL. > > > [!WARNING] > > > > **Watch Out!** > > > > * The file path must be exactly as specified (case-sensitive). > > * File hosting is required on websites where Razorpay Checkout loads as an overlay/iframe. This includes: > > * WooCommerce, Magento and other ecommerce platforms where Razorpay appears as an overlay. Any website where `checkout.razorpay.com` iframe is embedded. > > * No file hosting required on: > > * Shopify, Mobile SDKs (Flutter, Native iOS, React Native) and Razorpay no-code solutions, such as [Payment Links](/docs/payments/payment-links), [Payment Pages](/docs/payments/payment-pages), [Payment Handles (razorpay.me)](/docs/payments/mobile-app/accept-payments/razorpay-me) and [Invoices](/docs/payments/invoices). > > * File hosting is required if you use both hosted checkouts and overlay iframe integration (a non-Shopify website where an iframe loads as an overlay and Payment Buttons) on your business id. Please do not activate Apple Pay if you have both these kinds of checkouts unless you have hosted the file at the exact path. > > #### Domain Verification Process: > > 1. Download the [verification file](https://razorpay.com/docs/build/browser/assets/images/apple-developer-merchantid-domain-association.zip). > > 2. Host the file on your server. > * Upload the file to this exact path on your website: > > ``` > /.well-known/apple-developer-merchantid-domain-association > ``` > > * For example, if your domain is `https://www.yourstorename.com`, the file must be accessible at: > > ``` > https://www.yourstorename.com/.well-known/apple-developer-merchantid-domain-association > ``` > > 3. Ensure correct configuration. When setting up Apple Pay domain verification, follow these requirements: > > File Path and Response > > * The verification file must be accessible at the exact path, `/.well-known/apple-developer-merchantid-domain-association`. > * The file must return a direct HTTP 200 status code and not a 301, 302 or any 3xx redirects. > * Apple does not support HTTP URL redirects for the domain association file. > > Server Configuration > > * The file must be served via HTTPS 1.1 protocol. > * The file must have Content-Type: text/plain in the header. > * The file must be externally accessible (not behind authentication). > * The file must not be password protected. > * The file must not be behind a proxy or redirect. > > Network Access > > * Ensure the file is not behind a firewall or access restrictions. > > * If using a firewall, configure it to allow Apple's [IP addresses](https://developer.apple.com/documentation/applepayontheweb/setting-up-your-server). > > 4. Dashboard Configuration and Verification > * Log in to the Dashboard and navigate to **Account & Settings** โ†’ **International payments** (under Payment methods). Click [**Apple Pay**](https://dashboard.razorpay.com/app/payment-methods/apple-pay). > > ![Click Apple Pay on the Dashboard](https://razorpay.com/docs/build/browser/assets/images/click-apple-pay.jpg) > > > [!WARNING] > > > > **Important** > > > > This will only be visible if the business has International payments activated. If you do not have international payments active, you will not see Apple Pay. > > * You will see a list of domains associated with your business account: > * **Verified domains**: Ready for Apple Pay. > * **Unverified domains**: Require file hosting and verification. > * Click **Verify domains** for any unverified domains. > * Domain status will change to "Verified" once file hosting is correctly configured. > [accordion] Step 2: Accept Terms and Conditions > > If you have uploaded the file or have not requested to opt out of Apple Pay, we will assume you are okay with [Apple'sย guidelines](https://developer.apple.com/apple-pay/acceptable-use-guidelines-for-websites/). > [accordion] Step 3: Configuration (Automatic) > > Once domain verification is complete and terms are accepted: > > * Apple Pay will automatically appear on your checkout when accessed by eligible customers. > * No code changes are required for Standard Checkout integration. > * The payment button displays dynamically based on device compatibility. ## Payment Flow For Customers Given below is the payment flow for Apple Pay at Razorpay Checkout: 1. The customer selects **Apple Pay** at checkout. ![Apply Pay on Checkout](https://razorpay.com/docs/build/browser/assets/images/apple-pay.jpg) 2. Apple Pay displays their default card, billing address and the payment amount. 3. They authenticate using Face ID, Touch ID or double-click the side button following the on-screen prompt **Double Click to Pay**. ![Double click to Pay](https://razorpay.com/docs/build/browser/assets/images/apple-pay-double-click-pay.jpg) 4. Upon successful authentication, the payment processes instantly and the customer is returned to your website or app with a confirmation. > [!NOTE] > > **Best Practice: Apple Pay with iFrames** > > As a best practice, if you want to show Apple Pay in an iframe element when the shopper is using Safari as their browser: > > * For shoppers on Safari 17 later: add the `allow` attribute to the iframe to let the iframe communicate correctly with Apple Pay APIs: > `` > * Safari 17 is available on iOS 17 and later, and macOS 12 and later. > * For shoppers on Safari 16 or earlier: match the iframe origin and your top-level origin. The protocols, hosts (full domain name), and ports, when specified, must be the same for both pages. ## Frequently Asked Questions > [accordion] Why is Apple Pay button not appearing on my checkout page? > > If the Apple Pay button is not appearing, check for these common issues: > > * Verify that your domain verification file is correctly hosted and accessible. > * Ensure your website is using HTTPS with proper TLS configuration. > * Confirm that international payments feature is enabled. > * Check if the customer's device supports Apple Pay. > [accordion] Why is my Apple Pay domain verification failing? > > Domain verification failures typically occur due to the following reasons: > > * The verification file must return an HTTP 200 status code (not 301 or 302 redirects). > * The file path must be exactly `/.well-known/apple-developer-merchantid-domain-association`. > * The file must be accessible via HTTPS (not HTTP). > * The file content must exactly match what Razorpay provided, with no modifications or extra characters. > [accordion] Do I need to make any code changes to support Apple Pay on Standard Checkout? > > No code changes are required for Standard Checkout integration. Once domain verification is complete and Apple Pay is enabled on your account, it will automatically appear as a payment option for eligible customers. > [accordion] What is the additional cost for accepting Apple Pay? > > There are no additional charges for Apple Pay transactions. Standard Razorpay payment processing rates apply, same as regular card transactions. > [accordion] Can customers save their Apple Pay details for future purchases? > > Apple Pay uses device-specific tokens that are automatically available for repeat purchases. Customers do not need to manually save payment details as their Apple Wallet handles this seamlessly. > [accordion] How do I identify an Apple Pay transaction in my system? > > Apple Pay transactions can be identified by checking the payment `notes` field in the API response or webhook payload: > > ```json theme={null} > "notes": { > "provider": "apple_pay" > } > ``` > > This `provider` field will always contain `apple_pay` for Apple Pay transactions, making it easy to distinguish them from regular card payments. > [accordion] What is the difference between Apple Pay and card payment webhooks? > > There are structural differences between Apple Pay and standard card payment webhook events: \\ > > Apple Pay Payment: > > ```json theme={null} > "notes": { > "provider": "apple_pay" > } > ``` > > Card Payment: > > ```json theme={null} > "notes": [], > "token_id": "token_RIa2YPNM92wfzv" > ``` > > Key differences: > > * Apple Pay includes `provider: "apple_pay"` in the `notes` field. > * Card payments may include a `token_id` for saved cards. > [accordion] I am not able to verify my URL via the self-serve dashboard. What should I do? > > Check if the file is hosted correctly at your domain by visiting: > `https://www.yourstorename.com/.well-known/apple-developer-merchantid-domain-association`. > > Follow the [Apple Pay documentation](/docs/payments/payment-methods/apple-pay) and ensure the file is publicly accessible. > [accordion] How do I check if Apple Pay is active on my checkout? > > On Mobile: > > * Open Safari in incognito mode on an iPhone with Apple Pay configured. > * Visit your checkout page. > * Apple Pay should appear at the top of payment options and under the cards menu. > > On Desktop: > > * Use Safari on macOS with Apple Pay configured. > * Ensure you are signed into your Apple account. > * Apple Pay will be visible if you have cards linked to your Apple account. > [accordion] Do my card offers apply to Apple Pay payments? > > Yes, for domestic payments in India. Card offers you run on Standard Checkout apply when customers pay with Apple Pay, with no changes to your integration. Know more about [Offers on Apple Pay](/docs/payments/offers/apple-pay). > [accordion] Will Apple Pay work in test mode? > > No, Apple Pay does not work in test mode. > [accordion] I cannot see Apple Pay on desktop. What should I do? > > Apple Pay will be visible on desktop under the following conditions: > > macOS Requirements: > > * Customer must have Apple Pay cards linked to their Apple account. > * User must be signed into their Apple account on their macOS device. > > Alternative scenarios: > > * If the transaction is initiated in a non-INR currency. ### Related Information * [Apple Pay Custom Integration](/docs/payments/payment-methods/apple-pay/custom-integration/web-sdk) * [Apple Pay Integration โ€“ iOS (Custom Checkout)](/docs/payments/payment-methods/apple-pay/ios-custom-checkout) * [Offers on Apple Pay](/docs/payments/offers/apple-pay) # Integration Steps Source: https://razorpay.com/docs/payments/payment-methods/apple-pay/custom-integration Accept Apple Pay payments from international customers on your own checkout UI using the Razorpay Custom Checkout SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Apple Pay is a secure, contactless payment method that lets customers pay using their Apple devices with Face ID/Touch ID authentication. With the Custom Checkout headless SDK, you check Apple Pay eligibility and either let Razorpay render the Apple Pay button or render your own โ€” all on your existing Custom Checkout integration, with no redirect. Know more about [Apple Pay](https://www.apple.com/apple-pay/). This integration works with your existing card payment flow: check eligibility, render a button and initiate the payment with one additional `app` parameter. > [accordion] Advantages > > * Accept payments in over 120 currencies from international customers. > * Reduce checkout time with one-touch biometric payments (Face ID/Touch ID). > * Full control of where and how the Apple Pay button appears on your page. > * Razorpay encapsulates device eligibility โ€” no need to integrate the Apple Pay JS API or write capability-detection logic yourself. > * No need to handle Apple certificates or domain verification beyond hosting one file โ€” Razorpay manages the rest. ## Prerequisites Before you begin, ensure you have: * An existing Razorpay Custom Checkout integration. * Apple Pay enabled and International Payments enabled on your Razorpay account. * HTTPS on your website โ€” Apple Pay requires a secure context. * Your API Key Id. Generate [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. Use Live Mode keys to accept real payments. * Apple Pay domain verification completed for your domain (host the domain association file; Razorpay registers it with Apple). ## Integration Steps Follow the steps given below. ### 1.1 Create an Order on Your Server An order should be created for every payment. * Create an order using the [Orders API](/docs/api/orders/create). This is a server-side call. * Pass the returned `order_id` to your frontend. This ties the order to the payment and secures the request from tampering. > [!WARNING] > > **Watch Out!** > > Payments made without an `order_id` cannot be captured and will be automatically refunded. Create an order before initiating payment. ```bash Request theme={null} curl -X POST https://api.razorpay.com/v1/orders \ -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -H 'content-type:application/json' \ -d '{ "amount": 50000, "currency": "USD", "receipt": "receipt_1" }' ``` The response includes an `id` (for example, `order_XXXXXXXXXX`). Pass this to your frontend for SDK initialisation. For the full list of order request and response parameters, see the [Create an Order API](/docs/api/orders/create). ### 1.2 Load the Custom Checkout Script Include the Custom Checkout script, preferably in the `` of your page: ```html HTML theme={null} ``` > [!NOTE] > > **Handy Tips** > > Load the script from `https://checkout.razorpay.com/v1/razorpay.js` rather than serving a copy. This keeps updates and fixes automatic. Existing Custom Checkout merchants already load this script. ### 1.3 Initialise the SDK Initialise Razorpay with your key and the `order_id` created in step 1.1. Provide a handler to receive the successful payment response (you can also use event listeners โ€” see step 1.6). ```javascript JavaScript theme={null} var razorpay = new Razorpay({ key: 'rzp_live_xxx', order_id: 'order_XXXXXXXXXX', // created server-side at page load contact: '9123456789', email: 'gaurav.kumar@example.com', handler: function (response) { // response.razorpay_payment_id // response.razorpay_order_id // response.razorpay_signature // verify on your server } }); ``` > [accordion] Initialisation Parameters > > | Parameter | Type | Required | Description | > | - | - | - | - | > | `key` | string | Yes | API Key ID (`rzp_test_*` or `rzp_live_*`). | > | `order_id` | string | Yes | Order ID generated via the Orders API. | > | `contact` | string | Optional | Customer's phone number, used to prefill the contact field. | > | `email` | string | Optional | Customer's email address, used to prefill the email field. | > | `handler` | function | Optional | Called with the success response (`razorpay_payment_id`, `razorpay_order_id`, `razorpay_signature`). Alternatively, use event listeners (step 1.6). | ### 1.4 Check Apple Pay Eligibility Use `canMakePayment()` to check whether the customer's device can pay with Apple Pay. Razorpay's SDK encapsulates the device capability check, so you do not integrate the Apple Pay JS API or evaluate `paymentCredentialsAvailable` yourself. ```javascript JavaScript theme={null} // canMakePayment() is async โ€” call it inside an async function or a > > ``` > > > [!NOTE] > > > > **Handy Tip** > > > > Load this script on every page where you intend to render the Apple Pay button. The script must be loaded before the `` component is placed in the DOM. Existing Custom Checkout merchants already load this script and do not need to add a new one. > [accordion] Running Alongside Standard Checkout > > If the same page also uses Razorpay Standard Checkout, load `razorpay.js` before `checkout.js`. > > ```html HTML theme={null} > > > > > ``` > > The `` web component is self-contained โ€” it does not read from or write to `window.Razorpay`. So once `checkout.js` finishes loading and sets up `window.Razorpay` for Standard Checkout, no restore step is needed on your end; both integrations continue to work independently on the same page. > [accordion] Step 3: Create an Order on Your Server > > You must create a Razorpay order on your server before rendering the Apple Pay button. The `order_id` returned from this call is passed directly to the web component. > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/orders \ > -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -H 'content-type:application/json' \ > -d '{ > "amount": 50000, > "currency": "USD", > "receipt": "receipt_1" > }' > ``` > > The response includes an `id` field (for example, `order_XXXXXXXXXX`). Pass this value to your frontend to use as the `order-id` attribute on the component. > > The parameter descriptions and errors are present in the [Create an Order API](/docs/api/orders/create). > [accordion] Step 4: Drop in the Component Tag > > Place the `` component in your HTML at the exact location where you want the Apple Pay button to render. The button loads inline at the position of this component. > > ```html HTML theme={null} > id="checkout" > key="rzp_test_XXXXXXXXXX" > order-id="order_XXXXXXXXXX" > contact="+919876543210" > method="card" > app-name="apple_pay" > > > ``` > > To customise the button appearance, add the optional design attributes: > > ```html HTML theme={null} > id="checkout" > key="rzp_test_XXXXXXXXXX" > order-id="order_XXXXXXXXXX" > contact="+919876543210" > method="card" > app-name="apple_pay" > button-label="pay" > button-theme="dark" > button-width="148px" > button-height="32px" > > > ``` > > The component fetches order details as soon as it is attached, checks Apple Pay eligibility and renders the button automatically once ready. No JavaScript setup is needed for that part. > > > [!NOTE] > > > > **Handy Tip** > > > > The component checks device eligibility on mount and renders the Apple Pay button only if the customer's device supports it. If Apple Pay is not available, nothing is rendered โ€” no additional conditional logic is needed on your end. > [accordion] Step 5: Listen for the Result > > Attach event listeners to the component to handle the payment outcome. > > ```js JavaScript theme={null} > const checkoutEl = document.getElementById('checkout'); > > checkoutEl.addEventListener('payment.success', (e) => { > // e.detail.paymentData.razorpay_payment_id > // e.detail.paymentData.razorpay_order_id > // e.detail.paymentData.razorpay_signature > }); > > checkoutEl.addEventListener('payment.failure', (e) => { > // e.detail.error -> { code, description, source, reason } > }); > > checkoutEl.addEventListener('error', (e) => { > // init/validation failures (bad key, bad order-id, etc.) > }); > ``` > > That is the whole integration. > [accordion] Step 6: Verify the Payment Signature on Your Server > > After a successful payment (the `payment.success` event fires), verify the payment signature on your server before fulfilling the order. > > Send the following fields to your backend: > > * `razorpay_payment_id` > * `razorpay_order_id` > * `razorpay_signature` > > Verify them using the standard [Razorpay signature verification process](/docs/payments/server-integration/python/integration-steps#4-verify-payment-signature). > > > [!WARNING] > > > > **Watch Out!** > > > > Never fulfil an order based solely on the client-side `payment.success` event. Signature verification ensures the payment was genuinely processed by Razorpay and has not been tampered with. ## Component Reference > [accordion] Attributes > > | Attribute | Type | Required | Default | Description | > | - | - | - | - | - | > | `key` | string | Yes | โ€” | Your Razorpay key id (`rzp_test_*` or `rzp_live_*`). | > | `order-id` | string | Yes | โ€” | Razorpay order id created server-side (for example, `order_XXXXXXXXXX`). | > | `contact` | string | Yes | โ€” | Customer's phone number in E.164 format (for example, `+919876543210`). | > | `email` | string | No | โ€” | Customer's email address (for example, `user@example.com`). Recommended for payment confirmation and dispute resolution. | > | `method` | string | Yes | โ€” | Payment method. Use `card`. | > | `app-name` | string | Yes | โ€” | Name of the payment app. Use `apple_pay`. | > | `button-label` | string | No | `pay` | Button label. Values: `pay`, `buy`, `plain`, `checkout`, `donate`. | > | `button-theme` | string | No | `dark` | Button background. `dark` for dark background with light text, `light` for light background with dark text. | > | `button-width` | string | No | `100px` | Button width โ€” any valid CSS value (for example, `148px`). | > | `button-height` | string | No | `44px` | Button height โ€” any valid CSS value (for example, `32px`). | > | `theme-color` | string | No | โ€” | Hex colour for theming the DCC UI (for example, `#528FF0`), shown when Dynamic Currency Conversion is applicable. | ### Events > [accordion] payment.success > > Fired when the payment completes successfully. The event detail contains: > > ```js JavaScript theme={null} > { > status: 'success', > paymentData: { > razorpay_payment_id: string, > razorpay_order_id: string, > razorpay_signature: string > } > } > ``` > > Use these three values to verify the payment on your server before fulfilling the order. > [accordion] payment.failure > > Fired when the payment fails or the customer cancels the payment sheet. > > ```js JavaScript theme={null} > { > status: 'failure', > error: { > code: string, > description: string, > source: string, > reason: string > } > } > ``` > [accordion] error > > Fired if the component fails to initialise โ€” for example, due to an invalid attribute or Apple Pay not being enabled for your business account. > > ```js JavaScript theme={null} > { > errorCode: string, > message: string > } > ``` > > Check that `key`, `order-id`, `method` and `app-name` are all correctly set if you receive this event on load. ## Error Handling Reference Every failure โ€” from `payment.failure` or the `error` event โ€” carries the same shape: ```js JavaScript theme={null} { code: 'PAYMENT_CANCELLED' | 'PAYMENT_FAILED' | 'INTERNAL_ERROR', description: string, // safe to show to the customer source: 'customer' | 'merchant' | 'bank' | 'internal', reason: string, // machine-readable, for logging } ``` | Code | Meaning | Suggested Handling | | - | - | - | | `PAYMENT_CANCELLED` | Customer closed the sheet, or you called `abort()` | Return to the product/cart page | | `PAYMENT_FAILED` | Payment was attempted but declined/failed | Show description, offer retry or another method | | `INTERNAL_ERROR` | Something went wrong on our end (network, script load, etc.) | Show a generic "try again later" message | ## Quick Checklist * Load `https://checkout.razorpay.com/v1/razorpay.js` * Create the order on your server before rendering the tag * Add `` with required attributes * Wire up `payment.success` / `payment.failure` / `error` listeners * Verify the payment signature on your server before fulfilling the order ### Related Information * [Web JS Integration](/docs/payments/payment-methods/apple-pay/custom-integration/web-sdk/web-js-integration) * [Apple Pay Standard Checkout](/docs/payments/payment-methods/apple-pay) # Web JS Integration Source: https://razorpay.com/docs/payments/payment-methods/apple-pay/custom-integration/web-sdk/web-js-integration Integrate Apple Pay using the headless Razorpay JS SDK with amount and currency passed at initialisation, with full control over button rendering and payment flow. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The headless JS integration gives you full control over the Apple Pay button and payment flow. You initialise the Razorpay JS object with the amount and currency at start, then check eligibility and trigger the payment yourself. Know more about [Apple Pay](https://www.apple.com/apple-pay/). > [accordion] Advantages > > Integrating Apple Pay using the headless JS SDK offers you the following advantages: > > * **Full control**: Render your own button or let Razorpay render one for you using `mount()`. > * **Flexible initialisation**: Pass amount and currency at init time when the cart total is known upfront. > * **Device-aware eligibility**: Use `canMakePayment()` to check Apple Pay support before showing the button. > * **Event-driven results**: Handle payment success, failure and errors through event listeners. > * **No extra script for existing merchants**: The SDK ships with the Custom Checkout script you already use. ## Prerequisites Before starting the integration, ensure you have the following: * A Razorpay account with Apple Pay enabled. * An existing Razorpay Custom Checkout integration. * International Payments enabled on your Razorpay account. * Your API Key Id available. Know how to generate [API Keys from the Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). * An HTTPS-enabled domain (TLS 1.2 or higher). Apple Pay requires a secure context and will not function over HTTP. * Server-side capability to create orders via the Razorpay Orders API. * Domains verified in the Dashboard for Apple Pay. ## Integration Steps Follow the steps given below. > [accordion] Step 1: Domain Verification > > Verify your checkout domain(s) for Apple Pay before you go live. To find the list of these domains, please log in to the [dashboard](https://dashboard.razorpay.com/app/payment-methods/apple-pay). > > > [!NOTE] > > > > **Handy Tip** > > > > Only domains whitelisted with the accounts service will be visible here. Similar domains are visible as well. Please contact our [Support team](https://razorpay.com/support/) if you cannot find your Apple Pay showing domain here. You need to whitelist your URL. > > Dashboard Configuration and Verification > > * Log in to the Dashboard and navigate to **Account & Settings** โ†’ **International payments** (under Payment methods). Click [**Apple Pay**](https://dashboard.razorpay.com/app/payment-methods/apple-pay). > > ![Click Apple Pay on the Dashboard](https://razorpay.com/docs/build/browser/assets/images/click-apple-pay.jpg) > > > [!WARNING] > > > > **Important** > > > > This will only be visible if the business has International payments activated. If you do not have international payments active, you will not see Apple Pay. > * You will see a list of domains associated with your business account: > * **Verified domains**: Ready for Apple Pay. > * **Unverified domains**: Need to be verified. > * Click **Verify domains** for any unverified domains. > [accordion] Step 2: Load the Script > > Include the Razorpay Custom Checkout script in your page's `` tag. > > ```html HTML theme={null} > > > > ``` > > > [!NOTE] > > > > **Handy Tip** > > > > Load this script on every page where you intend to use the Apple Pay integration. Existing Custom Checkout merchants already load this script. > [accordion] Running Alongside Standard Checkout > > Both `razorpay.js` (headless Apple Pay) and `checkout.js` (Standard Checkout) register their constructor on the same `window.Razorpay` global. If your page uses both, whichever script loads last overwrites the other's constructor on `window.Razorpay`. Capture the headless constructor as soon as `razorpay.js` loads, and let `checkout.js` load after it so `window.Razorpay` is restored to Standard Checkout's constructor for the rest of your page. > > ```html HTML theme={null} > > > > > ``` > > If you cannot guarantee this load order (for example, scripts injected dynamically or loaded in parallel), queue the captures instead and resolve them once both scripts have loaded: > > ```js JavaScript theme={null} > window.__rzpQueue = window.__rzpQueue || []; > > function enqueueRazorpayCtor(name) { > window.__rzpQueue.push({ name, ctor: window.Razorpay }); > if (window.__rzpQueue.length === 2) { > // Both scripts have loaded โ€” headless SDK loaded first, Standard Checkout loaded second. > const [applePay, standard] = window.__rzpQueue; > window.__rzpApplePay = applePay.ctor; > window.Razorpay = standard.ctor; > } > } > ``` > > Use `window.__rzpApplePay` (instead of `window.Razorpay`) to instantiate the headless Apple Pay object in Step 3, and leave `window.Razorpay` untouched for your existing Standard Checkout code. > > ```js JavaScript theme={null} > const razorpay = new window.__rzpApplePay({ ... }); > ``` > [accordion] Step 3: Initialise with Amount and Currency > > Pass the amount and currency when you initialise Razorpay. Use the `on_payment_initiate_create_order` callback to create the order on your server right before the payment sheet opens. > > ```js JavaScript theme={null} > const razorpay = new Razorpay({ > key: 'rzp_test_XXXXXXXXXX', > prefill: { > contact: '+919876543210', // This is your customer's contact number. > }, > amount: 1000, > currency: 'EUR', > on_payment_initiate_create_order: async () => { > // Called right before the payment sheet opens. > // Create the order on your server here, then: > razorpay.set('order_id', orderIdFromYourServer); > }, > }); > ``` > > > [!WARNING] > > > > **Watch Out!** > > > > `on_payment_initiate_create_order` is where you create the Razorpay order. You must call `razorpay.set('order_id', ...)` inside it before it resolves โ€” the payment cannot be authorised without an order id. > [accordion] Step 4: Listen for the Result > > Register event listeners for payment success and failure. > > ```js JavaScript theme={null} > razorpay.on('payment.success', (response) => { > // response.paymentData.razorpay_payment_id > // response.paymentData.razorpay_order_id > // response.paymentData.razorpay_signature > }); > > razorpay.on('payment.failure', (response) => { > // response.error -> { code, description, source, reason } > }); > ``` > [accordion] Step 5: Check Availability and Trigger the Payment > > Check whether the customer's device supports Apple Pay using `canMakePayment()`, then trigger the payment using one of the following options. > > > [tab] Option 1: mount() (Recommended) > > > > Use `mount()` to have Razorpay render an Apple Pay button into a container element you provide. This is the recommended default โ€” it needs the least code, and the SDK starts the Apple Pay session on click and handles the payment for you. > > > > ```js JavaScript theme={null} > > razorpay.mount({ > > method: 'card', > > app: { name: 'apple_pay' }, > > container: document.getElementById('apple-pay-container'), > > buttonLabel: 'pay', > > buttonTheme: 'dark', > > buttonWidth: '148px', > > buttonHeight: '32px', > > }); > > ``` > > > > `mount()` creates the button, appends it to the container and wires up the click to payment lifecycle for you. The result still comes via the `payment.success` / `payment.failure` events from Step 3. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Call `canMakePayment()` before `mount()` if you want to avoid mounting a button the customer cannot actually use (for example, hide the container on `available: false`). > > > [tab] Option 2: Your Own Button + createPayment() > > > > Use this option only if you need full control over the button's markup and rendering. Use `canMakePayment()` to check eligibility, then call `createPayment()` inside your button's click handler. > > > > ```js JavaScript theme={null} > > const { available, reason } = await razorpay.canMakePayment({ > > method: 'card', > > app: { name: 'apple_pay' }, > > }); > > > > if (!available) { > > // hide your Apple Pay button, show alternatives > > } else { > > // show your button > > } > > > > myButton.addEventListener('click', () => { > > razorpay.createPayment({ > > method: 'card', > > app: { name: 'apple_pay' }, > > }); > > }); > > ``` > > > > > [!NOTE] > > > > > > **Handy Tip** > > > > > > `createPayment()` is fire-and-forget โ€” the outcome always comes through the `payment.success` / `payment.failure` events registered in Step 3. > [accordion] Step 6: Verify the Payment Signature on Your Server > > After a successful payment (the `payment.success` event fires), verify the payment signature on your server before fulfilling the order. > > Send the following fields to your backend: > > * `razorpay_payment_id` > * `razorpay_order_id` > * `razorpay_signature` > > Verify them using the standard [Razorpay signature verification process](/docs/payments/server-integration/python/integration-steps#4-verify-payment-signature). > > > [!WARNING] > > > > **Watch Out!** > > > > Never fulfil an order based solely on the client-side `payment.success` event. Signature verification ensures the payment was genuinely processed by Razorpay and has not been tampered with. ## Error Handling Reference Every failure โ€” from `payment.failure` events or a caught exception โ€” carries the same shape: ```js JavaScript theme={null} { code: 'PAYMENT_CANCELLED' | 'PAYMENT_FAILED' | 'INTERNAL_ERROR', description: string, // safe to show to the customer source: 'customer' | 'merchant' | 'bank' | 'internal', reason: string, // machine-readable, for logging } ``` | Code | Meaning | Suggested Handling | | - | - | - | | `PAYMENT_CANCELLED` | Customer closed the sheet, or you called `abort()` | Return to the product/cart page | | `PAYMENT_FAILED` | Payment was attempted but declined/failed | Show description, offer retry or another method | | `INTERNAL_ERROR` | Something went wrong on our end (network, script load, etc.) | Show a generic "try again later" message | ## Quick Checklist * Load `https://checkout.razorpay.com/v1/razorpay.js` * Initialise `new Razorpay({ amount, currency, ... })` * Implement order creation inside `on_payment_initiate_create_order` * Wire up `payment.success` / `payment.failure` handling * Test `canMakePayment()` handling for devices/browsers where Apple Pay is not available * Verify the payment signature on your server before fulfilling the order ### Related Information * [Web Component Integration](/docs/payments/payment-methods/apple-pay/custom-integration/web-sdk/web-component) * [Apple Pay Standard Checkout](/docs/payments/payment-methods/apple-pay) # iOS Native Integration Source: https://razorpay.com/docs/payments/payment-methods/apple-pay/ios-custom-checkout Accept Apple Pay payments in your native iOS app using Razorpay's Custom Checkout SDK. Build your own UI around the Apple Pay button with Razorpay handling payment processing. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Use Razorpay Apple Pay to add Apple Pay to your iOS app. Razorpay handles payment processing; you build your own UI around the Apple Pay button. > [!NOTE] > > **SDK Version** > > The Apple Pay feature is available in SDK version `2.2.0` and later. ## Prerequisites | Requirement | Details | | - | - | | Razorpay account | With Apple Pay enabled (**Dashboard โ†’ Account & Settings โ†’ Payment Methods**) | | Razorpay API key | `rzp_live_*` (your live key) | | Apple Developer account | Required to configure an Apple Pay Merchant ID | | Apple Pay Merchant ID | For example, `merchant.com.yourcompany.app` โ€” created in the Apple Developer Portal | | Merchant ID certificate | Uploaded to the Razorpay Dashboard so the backend can decrypt Apple Pay tokens | | Xcode 14+ | iOS deployment target 13.0+ | | Physical iOS device | Transactions can only complete on real devices | | Server-side order | Created via the Razorpay Orders API | ## One-Time Setup (Before Code) Complete this setup once before writing any integration code. > [accordion] Apple Developer Portal Steps > > 1. **Create Apple Pay Merchant ID** โ€” In the Apple Developer Portal, go to **Identifiers โ†’ + โ†’ Merchant IDs**. Use the format `merchant.com.yourcompany.app` and register. > > 2. **Share Merchant ID with Razorpay** โ€” Send your Merchant ID to your Razorpay point of contact. The team will share a CSR file with you. > > 3. **Generate Certificate on Apple** โ€” In the Apple Developer Portal, open your Merchant ID โ†’ **Create Certificate** under Apple Pay Payment Processing. Upload the `.csr`, then download the `apple_pay.cer`. > > > [!WARNING] > > > > **Watch Out!** > > > > Certificates expire after 25 months. Set a reminder to renew before expiry. > > 4. **Share Certificate with Razorpay** โ€” Send the `apple_pay.cer` file back to your Razorpay point of contact for configuration. > [accordion] Xcode Steps > > 1. Open your `.xcodeproj`. > 2. Select your app target โ†’ **Signing & Capabilities**. > 3. Click **+ Capability โ†’ Apple Pay**. > 4. Tick the Merchant ID created above. > > This generates a `.entitlements` file. Sample output: > > ```xml Entitlements theme={null} > com.apple.developer.in-app-payments > > merchant.com.yourcompany.app > > ``` ## Integration Steps ### Step 1 โ€” Install via Swift Package Manager The SDK is distributed as a Swift package at `https://github.com/razorpay/razorpay-customui-pod`. 1. In Xcode, select **File โ†’ Add Package Dependenciesโ€ฆ** 2. Paste the package URL: `https://github.com/razorpay/razorpay-customui-pod` 3. Under **Dependency Rule**, choose **Exact Version** and enter `2.2.0`. 4. Click **Add Package**. 5. On the product selection screen, add the `RazorpayApplePay` library to your app target, then click **Add Package**. `RazorpayApplePay` automatically pulls in its dependencies (`RazorpayCustom`, `RazorpayCore`) โ€” you do not need to add those separately. | Product | Add to Target? | Purpose | | - | - | - | | `RazorpayApplePay` | Yes | Apple Pay integration | | `RazorpayCustomUI` | Yes | Umbrella product for the full Custom Checkout suite | ### Step 2 โ€” Import and Conform to the Payment Completion Protocol In your checkout view controller: ```swift Swift theme={null} import UIKit import WebKit import Razorpay import RazorpayApplePay class CheckoutVC: UIViewController, RazorpayPaymentCompletionProtocol { // ... } ``` | Protocol | Purpose | | - | - | | `RazorpayPaymentCompletionProtocol` | Payment success and error callbacks | ### Step 3 โ€” Initialise the SDK with the Apple Pay Plugin ```swift Swift theme={null} private var razorpay: RazorpayCheckout? // Apple Pay runs through PassKit and requires a WKWebView. // Pass a throwaway instance the SDK holds but never navigates. private let dummyWebView = WKWebView() override func viewDidLoad() { super.viewDidLoad() razorpay = RazorpayCheckout.initWithKey( "rzp_live_XXXXXXXXXX", andDelegate: self, withPaymentWebView: dummyWebView, ApplePay: ApplePay.pluginInstance() ) } ``` > [accordion] Initialisation Parameters > > | Parameter | Required | Description | > | - | - | - | > | `key` | Yes | Your Razorpay key ID โ€” for example, `rzp_live_*xxxx` | > | `andDelegate` | Yes | The object conforming to `RazorpayPaymentCompletionProtocol` | > | `withPaymentWebView` | Yes | A `WKWebView` instance. Apple Pay does not use a webview, but Custom Checkout init requires one โ€” pass a throwaway `WKWebView()` that you retain. | > | `ApplePay` | Yes | An instance from `ApplePay.pluginInstance()` | ### Step 4 โ€” Check if the Customer Can Pay Call this before showing your Apple Pay button. It checks whether the user can pay via Apple Pay on their device. ```swift Swift theme={null} applePayButton.isHidden = true razorpay?.applePay?.canMakePayment { [weak self] canPay in DispatchQueue.main.async { self?.applePayButton.isHidden = !canPay } } ``` ### Step 5 โ€” Create an Order on Your Server Create a Razorpay order via the Orders API on your backend and send the `order_id` to your iOS app. ```bash Request theme={null} curl -X POST https://api.razorpay.com/v1/orders \ -u rzp_test_XXXXXXXXXX:your_secret \ -H "Content-Type: application/json" \ -d '{ "amount": 50000, "currency": "INR" }' ``` The response returns an `order_id` such as `order_CuEzONfnOI86Ab`. Pass this to your iOS app. > [accordion] Order Parameters > > | Key | Required | Description | > | - | - | - | > | `amount` | Yes | Payment amount in the smallest currency subunit. For example, for โ‚น299, pass `29900`. For three-decimal currencies such as KWD, BHD and OMR, to accept 295.991, pass `295990`. For zero-decimal currencies such as JPY, to accept 295, pass `295`. | > | `currency` | Yes | The currency in which the transaction should be made. | ### Step 6 โ€” Load the Payment Button Apple's Human Interface Guidelines require the use of `PKPaymentButton` (or a visually compliant variant). Custom buttons will lead to App Store rejection. ```swift Swift theme={null} import PassKit private lazy var applePayButton: PKPaymentButton = { let btn = PKPaymentButton( paymentButtonType: .buy, paymentButtonStyle: .automatic ) btn.addTarget(self, action: #selector(applePayTapped), for: .touchUpInside) return btn }() ``` **Button constraints:** * Use `PKPaymentButton`, not a generic `UIButton` with an Apple Pay icon. * Do not place text or icons inside it. * Respect Apple's minimum height requirement. * Use `.automatic` style on iOS 14+ for automatic light/dark mode adaptation. > [!NOTE] > > **Test on a Real Device** > > Run on a physical iOS device โ€” transactions cannot complete on the simulator. Tap your Apple Pay button, authenticate with Face ID or Touch ID, then confirm the payment record appears in the Razorpay Dashboard. ### Step 7 โ€” Trigger the Payment on User Tap This call must be made in response to a user gesture (such as a button tap). Use the existing `razorpay.authorize(options)` API with an Apple Pay payload. ```swift Swift theme={null} @objc func applePayTapped() { let options: [AnyHashable: Any] = [ "amount": 50000, // in currency subunits (for example, paise) "currency": "INR", "email": "test@example.com", "contact": "+919898989898", "order_id": "order_xxxxxxxxx", "method": "card", "app": [ "name": "apple_pay", "apple_pay": [ "merchant_identifier": "merchant.com.yourcompany.app" ] ] ] razorpay?.authorize(options) } ``` > [accordion] Payment Parameters > > | Key | Required | Description | > | - | - | - | > | `amount` | Yes | Payment amount in the smallest currency subunit. For example, for โ‚น299, pass `29900`. | > | `currency` | Yes | The currency for the transaction. | > | `contact` | Yes | Customer phone number. Maximum length 15 characters, inclusive of country code. | > | `email` | Optional | Customer email address. Maximum length 40 characters. | > | `order_id` | Yes | Unique identifier of the order created in Step 5. | > | `method` | Yes | Must be `"card"`. | > | `app.name` | Yes | Must be `"apple_pay"`. | > | `apple_pay.merchant_identifier` | Yes | Your Apple Pay Merchant ID from the Apple Developer Portal. | ### Step 8 โ€” Handle the Payment Result ```swift Swift theme={null} extension CheckoutVC: RazorpayPaymentCompletionProtocol { func onPaymentSuccess(_ payment_id: String, andData response: [AnyHashable: Any]) { let orderId = response["razorpay_order_id"] as? String ?? "" let signature = response["razorpay_signature"] as? String ?? "" // Send payment_id, orderId, signature to your server // for signature verification. } func onPaymentError(_ code: Int32, description str: String, andData response: [AnyHashable: Any]) { // Handle failure or cancellation } } ``` **Success response keys (in `andData`):** ```json Response theme={null} { "razorpay_payment_id": "pay_XXXXXXXXXX", "razorpay_order_id": "order_XXXXXXXXXX", "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" } ``` **Failure response keys (in `andData`):** ```json Response theme={null} { "error": { "code": "PAYMENT_CANCELLED", "description": "Customer dismissed the payment sheet.", "reason": "payment_cancelled" } } ``` ### Step 9 โ€” Verify Payment Signature on Your Server Always verify the signature on your server before fulfilling the order. Send `razorpay_payment_id`, `razorpay_order_id`, and `razorpay_signature` to your backend for HMAC verification. > [!WARNING] > > **Watch Out!** > > Never fulfil an order based solely on the client-side result. Always verify the payment signature server-side. See the [signature verification guide](/docs/payments/server-integration/nodejs/integration-steps) for Node.js and other language samples. ## Error Codes On failure, read the error code as a `String` from `response["error"]["code"]` inside the `andData` dictionary passed to `onPaymentError`. > [!NOTE] > > **Handy Tips** > > The `code: Int32` parameter of `onPaymentError` is always `0` for Apple Pay โ€” the actionable code is the `String` inside `andData`. | Error | When It Fires | | - | - | | `INVALID_OPTIONS` | Missing `apple_pay.merchant_identifier`, missing or invalid amount, or a merchant key so malformed the request URL cannot be built. | | `NO_SUPPORTED_CARD` | Device supports Apple Pay, but the Wallet has no card for the merchant's supported networks. | | `DEVICE_NOT_SUPPORTED` | Apple Pay unavailable on the device โ€” hardware, OS, region, or restrictions. | | `SHEET_PRESENTATION_FAILED` | PassKit declined to present the payment sheet. | | `PAYMENT_CANCELLED` | Customer dismissed the sheet or cancelled at the Face ID or Touch ID prompt. | | `NETWORK_ERROR` | Connection loss, timeout, or any transport-level failure. | | `PAYMENT_FAILED` | Internal or processing failure (serialise failure, empty or unparseable response) and the normalised code for any backend decline. | ## Complete Working Example > [tab] UIKit > > ```swift Swift theme={null} > import UIKit > import WebKit > import PassKit > import Razorpay > import RazorpayApplePay > > class CheckoutVC: UIViewController, RazorpayPaymentCompletionProtocol { > private var razorpay: RazorpayCheckout? > private let dummyWebView = WKWebView() > @IBOutlet weak var statusLabel: UILabel! > > private lazy var applePayButton: PKPaymentButton = { > let btn = PKPaymentButton(paymentButtonType: .buy, paymentButtonStyle: .automatic) > btn.cornerRadius = 8 > btn.translatesAutoresizingMaskIntoConstraints = false > btn.addTarget(self, action: #selector(applePayTapped), for: .touchUpInside) > return btn > }() > > override func viewDidLoad() { > super.viewDidLoad() > razorpay = RazorpayCheckout.initWithKey( > "rzp_live_XXXXXXXXXX", > andDelegate: self, > withPaymentWebView: dummyWebView, > ApplePay: ApplePay.pluginInstance() > ) > view.addSubview(applePayButton) > NSLayoutConstraint.activate([ > applePayButton.centerXAnchor.constraint(equalTo: view.centerXAnchor), > applePayButton.centerYAnchor.constraint(equalTo: view.centerYAnchor), > applePayButton.widthAnchor.constraint(equalToConstant: 250), > applePayButton.heightAnchor.constraint(equalToConstant: 48) > ]) > applePayButton.isHidden = true > razorpay?.applePay?.canMakePayment { [weak self] canPay in > DispatchQueue.main.async { self?.applePayButton.isHidden = !canPay } > } > } > > @objc func applePayTapped() { > let options: [AnyHashable: Any] = [ > "amount": 50000, "currency": "INR", > "email": "gaurav.kumar@example.com", "contact": "+919876543210", > "order_id": "order_CuEzONfnOI86Ab", "method": "card", > "app": [ > "name": "apple_pay", > "apple_pay": ["merchant_identifier": "merchant.com.yourcompany.app"] > ] > ] > razorpay?.authorize(options) > } > > func onPaymentSuccess(_ payment_id: String, andData response: [AnyHashable: Any]) { > statusLabel.text = "Success: \(payment_id)" > } > > func onPaymentError(_ code: Int32, description str: String, andData response: [AnyHashable: Any]) { > statusLabel.text = "Error: \(str)" > } > } > ``` > [tab] SwiftUI > > ```swift Swift theme={null} > import SwiftUI > import WebKit > import PassKit > import Razorpay > import RazorpayApplePay > > struct ApplePayButton: UIViewRepresentable { > let action: () -> Void > func makeUIView(context: Context) -> PKPaymentButton { > let btn = PKPaymentButton(paymentButtonType: .buy, paymentButtonStyle: .automatic) > btn.addTarget(context.coordinator, action: #selector(Coordinator.tap), for: .touchUpInside) > return btn > } > func updateUIView(_ uiView: PKPaymentButton, context: Context) {} > func makeCoordinator() -> Coordinator { Coordinator(action: action) } > class Coordinator: NSObject { > let action: () -> Void > init(action: @escaping () -> Void) { self.action = action } > @objc func tap() { action() } > } > } > > struct CheckoutView: View { > @StateObject private var coordinator = CheckoutCoordinator() > var body: some View { > VStack { > Text(coordinator.status) > if coordinator.applePayAvailable { > ApplePayButton { coordinator.startPayment() }.frame(height: 48) > } > }.onAppear { coordinator.setup() } > } > } > > class CheckoutCoordinator: NSObject, ObservableObject, RazorpayPaymentCompletionProtocol { > @Published var status = "Ready" > @Published var applePayAvailable = false > private var razorpay: RazorpayCheckout? > private let dummyWebView = WKWebView() > > func setup() { > razorpay = RazorpayCheckout.initWithKey( > "rzp_live_XXXXXXXXXX", > andDelegate: self, > withPaymentWebView: dummyWebView, > ApplePay: ApplePay.pluginInstance() > ) > razorpay?.applePay?.canMakePayment { [weak self] canPay in > DispatchQueue.main.async { self?.applePayAvailable = canPay } > } > } > > func startPayment() { > let options: [AnyHashable: Any] = [ > "amount": 50000, "currency": "INR", > "email": "gaurav.kumar@example.com", "contact": "+919876543210", > "order_id": "order_CuEzONfnOI86Ab", "method": "card", > "app": [ > "name": "apple_pay", > "apple_pay": ["merchant_identifier": "merchant.com.yourcompany.app"] > ] > ] > razorpay?.authorize(options) > } > > func onPaymentSuccess(_ payment_id: String, andData response: [AnyHashable: Any]) { > status = "Success: \(payment_id)" > } > func onPaymentError(_ code: Int32, description str: String, andData response: [AnyHashable: Any]) { > status = "Error: \(str)" > } > } > ``` ## Frequently Asked Questions > [accordion] I use a table view or collection view where payment methods expand on selection. How does the plugin fit? > > The plugin separates detection from payment. Use `canMakePayment` to decide whether to include the Apple Pay row at all. When the user selects that row, show the Apple Pay button. When they tap your CTA, call `razorpay.authorize(options)` with the Apple Pay payload. > > ```swift Swift theme={null} > // On view setup > razorpay?.applePay?.canMakePayment { [weak self] canPay in > DispatchQueue.main.async { > if canPay { self?.paymentMethods.append(.applePay) } > self?.tableView.reloadData() > } > } > > // When user taps the CTA inside the expanded row > @IBAction func payTapped() { > let options: [AnyHashable: Any] = [ /* full Apple Pay payload */ ] > razorpay?.authorize(options) > } > ``` > [accordion] Do I need to import PassKit? > > Yes. PassKit provides Apple's `PKPaymentButton` for the button UI. It is part of iOS, so it adds no dependency weight. You will also need to import `WebKit` since Custom Checkout init requires a `WKWebView` instance. > [accordion] The Apple Pay sheet appears but the transaction always fails. What should I check? > > * **Merchant ID alignment** โ€” Does the Merchant ID you passed in `options["app"]["apple_pay"]["merchant_identifier"]` match the one in your `.entitlements` and the one uploaded to the Razorpay Dashboard? > * **Certificate uploaded** โ€” Is the CSR-signed certificate for that Merchant ID present in the Razorpay Dashboard? > * **Network match** โ€” Are you testing with a card whose network is enabled for your Razorpay account? > * **Backend support** โ€” Is Apple Pay enabled for your account in the Razorpay Dashboard? > > If all four are correct, check the response in `onPaymentError`'s `andData` for the specific failure reason from the backend. ### Related Information * [Apple Pay Standard Checkout](/docs/payments/payment-methods/apple-pay) * [Apple Pay โ€“ Custom Checkout](/docs/payments/payment-methods/apple-pay/custom-integration) * [Apple Pay Web Component Integration](/docs/payments/payment-methods/apple-pay/custom-integration/web-sdk/web-component) # React Native Integration Source: https://razorpay.com/docs/payments/payment-methods/apple-pay/react-native-custom-checkout Accept Apple Pay payments in your React Native app using Razorpay's Custom Checkout SDK. Build your own UI around the Apple Pay button with Razorpay handling payment processing. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Use Razorpay Apple Pay to add Apple Pay to your React Native app. Razorpay handles payment processing while you build your own UI around the Apple Pay button. > [!NOTE] > > **SDK Version** > > The Apple Pay feature is available in `react-native-customui` version `2.3.0` and later. Apple Pay runs on iOS only. ## Prerequisites | Requirement | Details | | - | - | | Razorpay account | With Apple Pay enabled (**Dashboard โ†’ Account & Settings โ†’ Payment Methods**) | | Razorpay API key | `rzp_live_*` (your live key) | | Apple Developer account | Required to configure an Apple Pay Merchant ID | | Apple Pay Merchant ID | For example, `merchant.com.yourcompany.app`, created in the Apple Developer Portal | | Merchant ID certificate | Generated from the CSR that Razorpay shares and sent back to your Razorpay point of contact (see [One-Time Setup](#one-time-setup-before-code)) | | React Native project | With the `react-native-customui` package installed | | Apple Pay plugin pod | `razorpay-applepay-pod` 1.0.1+ added to your `ios/Podfile` (see [Step 2](#step-2-add-the-apple-pay-plugin-pod)) | | Xcode 14+ and CocoaPods | iOS deployment target 12.0+ | | Physical iOS device | Transactions can only complete on real devices | | Server-side order | Created via the Razorpay Orders API | > [!NOTE] > > **iOS Only** > > Apple Pay is available on iOS only. On Android, `canMakePayment()` resolves `false`, so hide the Apple Pay button there. Never call `open()` with `app.apple_pay` on Android. ## One-Time Setup (Before Code) Complete this setup once before writing any integration code. > [accordion] Apple Developer Portal Steps > > 1. **Create Apple Pay Merchant ID:** In the Apple Developer Portal, go to **Identifiers โ†’ + โ†’ Merchant IDs**. Use the format `merchant.com.yourcompany.app` and register. > > 2. **Share Merchant ID with Razorpay:** Send your Merchant ID to your Razorpay point of contact. The team will share a CSR file with you. > > 3. **Generate Certificate on Apple:** In the Apple Developer Portal, open your Merchant ID โ†’ **Create Certificate** under Apple Pay Payment Processing. Upload the `.csr`, then download the `apple_pay.cer`. > > > [!WARNING] > > > > **Watch Out!** > > > > Certificates expire after 25 months. Set a reminder to renew before expiry. > > 4. **Share Certificate with Razorpay:** Send the `apple_pay.cer` file back to your Razorpay point of contact for configuration. > [accordion] Xcode Steps > > 1. Open `ios/YourApp.xcworkspace` in Xcode. > 2. Select your app target โ†’ **Signing & Capabilities**. > 3. Click **+ Capability โ†’ Apple Pay**. > 4. Tick the Merchant ID created above. > > This generates a `.entitlements` file. Sample output: > > ```xml Entitlements theme={null} > com.apple.developer.in-app-payments > > merchant.com.yourcompany.app > > ``` > > The merchant identifier in this entitlement must be the same one you pass as `app.apple_pay.merchant_identifier` at runtime. ## Integration Steps ### Step 1: Install the SDK Install the package from npm: ```sh Terminal theme={null} npm install react-native-customui@^2.3.0 ``` ### Step 2: Add the Apple Pay Plugin Pod The Apple Pay plugin is opt-in. Add it to your `ios/Podfile`, inside your app target: ```ruby Podfile theme={null} pod 'razorpay-applepay-pod', '~> 1.0.1' ``` Then install the pods: ```sh Terminal theme={null} cd ios && pod install ``` Existing apps that already have the pod should run `pod update razorpay-applepay-pod`. > [accordion] Why is the plugin opt-in? > > Declaring the plugin as a hard dependency would force the Apple Pay pod on every app using `react-native-customui`, so you add it explicitly only when you need Apple Pay. > > The SDK resolves the plugin at runtime. If the pod is absent, your app still builds and Apple Pay degrades cleanly: `canMakePayment` returns `false` and `open()` rejects with `DEVICE_NOT_SUPPORTED`. ### Step 3: Initialise Once ```js JavaScript theme={null} import Razorpay from 'react-native-customui'; Razorpay.initRazorpay(KEY_ID); // once, when your checkout screen mounts ``` Eligibility uses the key and SDK instance this creates. Calling `canMakePayment()` before it resolves `false` and logs a console warning; it does not reject. Do not `await` this call, as the promise returned by `initRazorpay` never settles. ### Step 4: Check if the Customer Can Pay Call this before showing your Apple Pay button. It checks whether the user can pay via Apple Pay with your merchant account. ```js JavaScript theme={null} import Razorpay from 'react-native-customui'; const eligible = await Razorpay.canMakePayment(); ``` `canMakePayment` returns a boolean. It is merchant-aware, not a device probe: it fetches the card networks enabled for your Razorpay account and resolves `true` only when Apple Pay is live for your account and the customer's Wallet holds a card on an accepted network. It returns `false` on Android, and when `initRazorpay` has not been called. Hide the Apple Pay button when it is `false`. ### Step 5: Create an Order on Your Server Create a Razorpay order via the Orders API on your backend and send the `order_id` to your app. ```bash Request theme={null} curl -X POST https://api.razorpay.com/v1/orders \ -u rzp_live_XXXXXXXXXX:your_secret \ -H "Content-Type: application/json" \ -d '{ "amount": 50000, "currency": "INR", "receipt": "YOUR_ORDER_REF", "notes": { "orderId": "YOUR_ORDER_REF" } }' ``` The response returns an `order_id` such as `order_CuEzONfnOI86Ab`. Pass this to your app. To carry your own order reference through an Apple Pay payment, set `receipt` and `notes` on the **order** (as shown above). See [Attaching Your Own Order Reference](#attaching-your-own-order-reference). > [!WARNING] > > **Watch Out!** > > Never embed your API secret in the mobile app. Orders must be created by your own backend. A decompiled app bundle exposes any secret it contains, and with it your merchant account. > [accordion] Order Parameters > > | Key | Required | Description | > | - | - | - | > | `amount` | Yes | Payment amount in the smallest currency subunit. For example, for โ‚น299, pass `29900`. For three-decimal currencies such as KWD, BHD and OMR, to accept 295.991, pass `295990`. For zero-decimal currencies such as JPY, to accept 295, pass `295`. | > | `currency` | Yes | The currency in which the transaction should be made. | > | `receipt` | Optional | Your internal order reference. Returned as `order_receipt` in settlement recon and reports. Use this to map an Apple Pay payment back to your own order. | > | `notes` | Optional | Key-value notes stored on the order. Must be a nested JSON object, such as `{ "orderId": "YOUR_ORDER_REF" }`. Readable later via the Orders API. | ### Step 6: Load the Payment Button Apple's Human Interface Guidelines require the use of `PKPaymentButton` (or a visually compliant variant). Custom buttons will lead to App Store rejection. React Native has no built-in Apple Pay button. Expose `PKPaymentButton` to JavaScript with a small native view module (an `RCTViewManager` subclass that returns a `PKPaymentButton`), or use a community package that does the same. Whichever you use, it must render Apple's `PKPaymentButton` and call your payment handler on tap. **Button constraints:** * Use `PKPaymentButton`, not a generic button with an Apple Pay icon. * Do not place text or icons inside it. * Respect Apple's minimum height requirement. * Use the `automatic` style on iOS 14+ for automatic light and dark mode adaptation. * Disable the button while a payment is in flight (see Step 7). > [!NOTE] > > **Test on a Real Device** > > Run on a physical iOS device. Transactions cannot complete on the simulator. Tap your Apple Pay button, authenticate with Face ID or Touch ID, then confirm the payment record appears in the Razorpay Dashboard. ### Step 7: Trigger the Payment on User Tap This call must be made in response to a user gesture (such as a button tap). Do not call it on mount or from a timer. Use the existing `Razorpay.open(options)` API with an Apple Pay payload. ```js JavaScript theme={null} import Razorpay from 'react-native-customui'; function onApplePayTapped() { Razorpay.open({ key_id: 'rzp_live_XXXXXXXXXX', order_id: 'order_CuEzONfnOI86Ab', amount: '50000', // in currency subunits (for example, paise) currency: 'INR', email: 'gaurav.kumar@example.com', contact: '9876543210', method: 'card', app: { name: 'apple_pay', apple_pay: { merchant_identifier: 'merchant.com.yourcompany.app', }, }, notes: { orderId: 'YOUR_ORDER_REF' }, }) .then(data => console.log(data.razorpay_payment_id)) .catch(err => console.log(err.error)); } ``` > [!WARNING] > > **Guard Against Double Taps** > > Apple Pay will not present a second payment sheet while one is pending. If `open()` is called twice, both calls fail with `SHEET_PRESENTATION_FAILED`. Set a busy flag at the start of the tap handler, before any async work such as creating the order, and clear it only after the promise settles. > [accordion] Payment Parameters > > | Key | Required | Description | > | - | - | - | > | `key_id` | Yes | Your Razorpay key ID. For example, `rzp_live_*xxxx`. | > | `amount` | Yes | Payment amount in the smallest currency subunit. For example, for โ‚น299, pass `29900`. Must match the order amount. | > | `currency` | Yes | The currency for the transaction. | > | `contact` | Yes | Customer phone number. Maximum length 15 characters, inclusive of country code. | > | `email` | Yes | Customer email address. Maximum length 40 characters. | > | `order_id` | Yes | Unique identifier of the order created in Step 5. | > | `method` | Yes | Must be `"card"`. | > | `app.name` | Yes | Must be `"apple_pay"`. `method` must also be `"card"`, otherwise a normal card payment opens. | > | `app.apple_pay.merchant_identifier` | Yes | Your Apple Pay Merchant ID from the Apple Developer Portal. | > | `notes` | Optional | Requires `razorpay-applepay-pod` 1.0.1+. Key-value notes attached to the payment. Both nested (`{ "orderId": "YOUR_ORDER_REF" }`) and flat (`"notes[orderId]"`) formats are supported. You can also set a reference on the order instead (see [Attaching Your Own Order Reference](#attaching-your-own-order-reference)). | ### Step 8: Handle the Payment Result `open()` returns a promise. It resolves with the payment payload on success and rejects with an error object on failure or cancellation. ```js JavaScript theme={null} Razorpay.open(options) .then(data => { const { razorpay_payment_id, razorpay_order_id, razorpay_signature } = data; // Send payment_id, order_id and signature to your server // for signature verification. }) .catch(err => { const code = err.error?.code; const description = err.error?.description ?? err.description; if (code === 'PAYMENT_CANCELLED') return; // customer closed the sheet // Show description to the customer, log code }); ``` **Success response (promise resolves with):** ```json Response theme={null} { "razorpay_payment_id": "pay_XXXXXXXXXX", "razorpay_order_id": "order_XXXXXXXXXX", "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" } ``` **Failure response (promise rejects with):** Customer cancels: ```json Response theme={null} { "error": { "code": "PAYMENT_CANCELLED" }, "code": 0, "description": "Payment cancelled by user" } ``` Payment declined after it was created: ```json Response theme={null} { "error": { "code": "PAYMENT_FAILED", "description": "Payment failed", "metadata": { "payment_id": "pay_XXXXXXXXXX" } }, "code": 0, "description": "Payment failed" } ``` `err.error.code` is always present. `err.error.description` is not: errors raised on the device carry only the code, and their message is in the top-level `err.description`. Read `err.error.description` first and fall back to `err.description`. `metadata.payment_id` is present only on `PAYMENT_FAILED` when a payment was created before the failure. ### Step 9: Verify Payment Signature on Your Server Always verify the signature on your server before fulfilling the order. A successful `open()` is not a fulfilled order. Send `razorpay_payment_id`, `razorpay_order_id` and `razorpay_signature` to your backend for HMAC verification. > [!WARNING] > > **Watch Out!** > > Never fulfil an order based solely on the client-side result. Always verify the payment signature server-side. See the [signature verification guide](/docs/payments/server-integration/nodejs/integration-steps) for Node.js and other language samples. ## Attaching Your Own Order Reference To map payments back to your own order ID, pass `notes` in the `Razorpay.open()` options (requires `razorpay-applepay-pod` 1.0.1+). As an optional alternative, set the reference on the **order** instead. Set it at order creation (Step 5): ```json Order theme={null} { "amount": 50000, "currency": "INR", "receipt": "YOUR_ORDER_REF", "notes": { "orderId": "YOUR_ORDER_REF" } } ``` Then read it back: | Where you set it | Where it comes back | | - | - | | Order `receipt` | `order_receipt` in settlement recon and reports | | Order `notes` | `notes` on the order, via the Orders API | ## Error Codes Apple Pay uses the **same** `Razorpay.open()` promise, the same success and error events and the same error envelope as any other payment method in this SDK. If your app already handles card payments, your existing `.then()` and `.catch()` handle Apple Pay with no changes. On failure, read the error code as a string from `err.error.code` in the rejected promise. The top-level `err.code` is a legacy number shared with other payment methods. For Apple Pay it is `0` for every failure, including cancellation, so check `err.error.code === 'PAYMENT_CANCELLED'` to detect a cancel. | Error | When It Fires | | - | - | | `INVALID_OPTIONS` | Missing `app.apple_pay.merchant_identifier`, missing or invalid amount or a merchant key so malformed the request URL cannot be built. | | `NO_SUPPORTED_CARD` | Device supports Apple Pay, but the Wallet has no card for the merchant's supported networks. | | `DEVICE_NOT_SUPPORTED` | Apple Pay unavailable on the device: hardware, OS, region or restrictions. Also returned when the `razorpay-applepay-pod` is not installed. | | `SHEET_PRESENTATION_FAILED` | PassKit declined to present the payment sheet, including when a sheet is already pending. | | `PAYMENT_CANCELLED` | Customer dismissed the sheet or cancelled at the Face ID or Touch ID prompt. | | `NETWORK_ERROR` | Connection loss, timeout or any transport-level failure. | | `PAYMENT_FAILED` | Internal or processing failure (serialise failure, empty or unparseable response) and the normalised code for any backend decline. | ## Currency and Card Networks American Express is accepted for INR payments only. For any other currency the SDK removes American Express from the payment sheet automatically. You do not need to do anything. ## Complete Working Example ```js JavaScript theme={null} import React, { useEffect, useState } from 'react'; import { Platform, Text, View } from 'react-native'; import Razorpay from 'react-native-customui'; import ApplePayButton from './ApplePayButton'; // your PKPaymentButton bridge const KEY_ID = 'rzp_live_XXXXXXXXXX'; const MERCHANT_IDENTIFIER = 'merchant.com.yourcompany.app'; export default function CheckoutScreen({ orderId, amount, currency }) { const [eligible, setEligible] = useState(false); const [busy, setBusy] = useState(false); const [status, setStatus] = useState('Ready'); useEffect(() => { if (Platform.OS !== 'ios') return; Razorpay.initRazorpay(KEY_ID); Razorpay.canMakePayment().then(setEligible); }, []); function onApplePayTapped() { if (busy) return; setBusy(true); Razorpay.open({ key_id: KEY_ID, order_id: orderId, amount: String(amount), currency, email: 'gaurav.kumar@example.com', contact: '9876543210', method: 'card', app: { name: 'apple_pay', apple_pay: { merchant_identifier: MERCHANT_IDENTIFIER }, }, notes: { orderId: orderId }, }) .then(data => setStatus(`Success: ${data.razorpay_payment_id}`)) .catch(err => setStatus(`Error: ${err.error?.code}`)) .finally(() => setBusy(false)); } return ( {status} {eligible && ( )} ); } ``` ## Frequently Asked Questions > [accordion] Can I test Apple Pay on the iOS Simulator or in Razorpay test mode? > > No. The Simulator has no Secure Element, so the Apple Pay token it produces is empty and the payment fails. Razorpay test mode does not process Apple Pay tokens. Test on a physical iOS device with a real card in Wallet, using your `rzp_live_*` key. > [accordion] I show payment methods in a list where each expands on selection. How does Apple Pay fit? > > The SDK separates detection from payment. Use `canMakePayment` to decide whether to include the Apple Pay row at all. When the user selects that row, show the Apple Pay button. When they tap it, call `Razorpay.open(options)` with the Apple Pay payload. > [accordion] The Apple Pay sheet appears but the transaction always fails. What should I check? > > * **Merchant ID alignment:** Does the Merchant ID you passed in `app.apple_pay.merchant_identifier` match the one in your `.entitlements` and the one you shared with Razorpay? > * **Certificate uploaded:** Has your Razorpay point of contact confirmed that the certificate for that Merchant ID is configured? > * **Network match:** Are you testing with a card whose network is enabled for your Razorpay account? > * **Backend support:** Is Apple Pay enabled for your account in the Razorpay Dashboard? > * **Real device:** Are you running on a physical device, not the Simulator? > > If all of these are correct, take `err.error.metadata.payment_id` (when present) from the rejected promise and look up that payment in the Razorpay Dashboard or through the Payments API for the decline reason. > [accordion] canMakePayment returns false but the device has cards in Wallet. Why? > > `canMakePayment` checks your merchant account as well as the device. It returns `false` when Apple Pay is not enabled for your Razorpay account, when none of the cards in Wallet are on a network enabled for your account, when the `razorpay-applepay-pod` is not installed, when `initRazorpay` has not been called, or on Android. ### Related Information * [Apple Pay Standard Checkout](/docs/payments/payment-methods/apple-pay) * [Apple Pay - Custom Checkout](/docs/payments/payment-methods/apple-pay/custom-integration) * [Apple Pay iOS Integration](/docs/payments/payment-methods/apple-pay/ios-custom-checkout) * [Apple Pay Web Component Integration](/docs/payments/payment-methods/apple-pay/custom-integration/web-sdk/web-component) # Bank Transfer Source: https://razorpay.com/docs/payments/payment-methods/bank-transfer Offer bank transfer as a payment method to customers at Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Accept payments from customers using online bank transfers at Razorpay Checkout. ![Checkout screen with Bank Transfer](https://razorpay.com/docs/build/browser/assets/images/pm-checkout-bank-transfer.jpg) > [accordion] On-Demand Feature - Raise a Request > > > [!NOTE] > > > > **Feature Request** > > > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. > [!WARNING] > > **Watch Out!** > > Bank transfer downloads are not supported by default on webviews. This feature is only available on web and native SDKs. ## How it Works 1. Customer selects bank transfer as the payment method on Checkout. 2. A Customer Identifier is created with bank account number and IFSC details and displayed to customer. 3. Customer copies these details and make a netbanking payment from their online banking portal. These Customer Identifiers are linked to the bank account you have registered with Razorpay. The money will be settled to your account as per the settlement schedule. You can choose: * [**Method 1: Create New Customer Identifier Per Order**](#method-1-create-new-customer-identifier-per-order) * [**Method 2: Create New Customer Identifier Per Customer**](#method-2-create-new-customer-identifier-per-customer) > [!WARNING] > > **Watch Out!** > > All bank transfer payments are auto-captured. [Manual capture](/docs/payments/payments/capture-settings#manually-capture-payments) of payments is not supported. ## Method 1: Create New Customer Identifier Per Order This creates a new Customer Identifier per order, every time a customer selects bank transfer as the payment method on Checkout. #### Integration The bank transfer payment method will appear for the [Payment Gateway](/docs/payments/payment-gateway/web-integration/standard) and products such as Payment Links and Payment Pages. > [!NOTE] > > **Payment Links and Payment Pages** > > No additional integration is required if you are using Payment Links and Payment Pages. Raise a request with our [Support Team](https://razorpay.com/support/#request) to activate the feature on your account. Apart from enabling this feature on your account, complete the following steps to integrate this feature on your Razorpay Standard Integration: > [accordion] Step 1: Track Checkout Modal Using `ondismiss` Function > > If you have integrated with [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard), you must implement the `ondismiss` function to track the lifecycle of the Checkout modal. This displays the `close` icon, which the customer can use to exit the Checkout. > > > [!NOTE] > > > > **Handy Tips** > > > > If you are using [Android SDK](/docs/payments/payment-gateway/android-integration/standard), you can rely on the "payment cancelled by user" error response to track the lifecycle of the Checkout modal. > > ```javascript ondismiss function theme={null} > "modal": { > "ondismiss": function(){ > console.log(data); > } > } > ``` > [accordion] Step 2: Attach Event Listeners to `Razorpay` Instance > > For bank transfer payments, Checkout will not give a success or a failure callback. You must attach event listeners to the `Razorpay` instance to track if and when the customer has selected the bank transfer payment method. > > ```javascript Event Listener theme={null} > var rzp = new Razorpay(options); > rzp.on('payment.submit', function (data) { > if (data.method === 'bank_transfer') { > // User has selected Bank Transfer > } > }); > ``` > [accordion] Step 3: Subscribe to Webhook Event > > You must subscribe to the `virtual_account.credited` webhook event on the Dashboard to receive notifications whenever customers make payments using bank transfers. Know how to [set up webhooks](/docs/webhooks/setup-edit-payments). > > **Sample Payload** > > ```json virtual_account.credited theme={null} > { > "entity": "event", > "account_id": "acc_BFQ7uQEaa7j2z7", > "event": "virtual_account.credited", > "contains": [ > "payment", > "virtual_account", > "bank_transfer" > ], > "payload": { > "payment": { > "entity": { > "id": "pay_DETA2KrOlhqQzF", > "entity": "payment", > "amount": 50000, > "currency": "INR", > "status": "captured", > "order_id": "order_DBJOWzybf0sJbb", > "invoice_id": null, > "international": false, > "method": "bank_transfer", > "amount_refunded": 0, > "amount_transferred": 0, > "refund_status": null, > "captured": true, > "description": "NA", > "card_id": null, > "bank": null, > "wallet": null, > "vpa": null, > "email": "gaurav.kumar@example.com", > "contact": "+919000090000", > "customer_id": "cust_1Aa00000000004", > "notes": [], > "fee": 731, > "tax": 112, > "error_code": null, > "error_description": null, > "created_at": 1567675983 > } > }, > "virtual_account": { > "entity": { > "id": "va_DET8z3wBxfPB5L", > "name": "Acme Corp", > "entity": "virtual_account", > "status": "active", > "description": "Virtual Account to test webhook", > "amount_expected": null, > "notes": { > "Important": "Notes for Internal Reference" > }, > "amount_paid": 50000, > "customer_id": "cust_1Aa00000000004", > "close_by": null, > "closed_at": null, > "created_at": 1567675923, > "receivers": [ > { > "id": "ba_DET8z5Z5ghv4hW", > "entity": "bank_account", > "ifsc": "RATN0VAAPIS", > "bank_name": "RBL Bank", > "name": "Acme Corp", > "account_number": "1112220006712324" > } > ] > } > }, > "bank_transfer": { > "entity": { > "id": "bt_DETA2KSUJ3uCM9", > "entity": "bank_transfer", > "payment_id": "pay_DETA2KrOlhqQzF", > "mode": "NEFT", > "bank_reference": "156767598340", > "amount": 50000, > "payer_bank_account": { > "id": "ba_DETA2UuuKtKLR1", > "entity": "bank_account", > "ifsc": "KKBK0000007", > "bank_name": "Kotak Mahindra Bank", > "name": "Gaurav Kumar", > "account_number": "765432123456789" > }, > "virtual_account_id": "va_DET8z3wBxfPB5L" > } > } > }, > "created_at": 1567675983 > } > ``` ## Method 2: Create New Customer Identifier Per Customer This ensures that each customer will be allocated a unique Customer Identifier, whenever they use the bank transfer method on Checkout. This method requires specific integration steps, which are mentioned in the following section. #### Integration The bank transfer payment method will appear for the [Payment Gateway](/docs/payments/payment-gateway/web-integration/standard) and products such as Payment Links and Payment Pages. > [!NOTE] > > **Payment Links and Payment Pages** > > No additional integration is required if you are using Payment Links and Payment Pages. Raise a request with our [Support Team](https://razorpay.com/support/#request) to activate the feature on your account. Apart from enabling this feature on your account, you must implement the following steps in your payment gateway integration: > [accordion] Step 1: Create a Customer > > You must create a customer using the Customers API. You can also do this using the Dashboard. > > The following endpoint creates or add a customer with basic details such as name and contact details. You can use this API for various Razorpay Solution offerings. > > `POST /customers` > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/customers \ > -H "Content-Type: application/json" \ > -d '{ > "name": "", > "contact": "", > "email": "", > "fail_existing": "0", > "notes": { > "notes_key_1": "Tea, Earl Grey, Hot", > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." > } > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject customerRequest = new JSONObject(); > customerRequest.put("name",""); > customerRequest.put("contact",""); > customerRequest.put("email",""); > customerRequest.put("fail_existing", "0"); > JSONObject notes = new JSONObject(); > notes.put("notes_key_1","Tea, Earl Grey, Hot"); > notes.put("notes_key_2","Tea, Earl Greyโ€ฆ decaf."); > customerRequest.put("notes",notes); > > Customer customer = razorpay.customers.create(customerRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > client.customer.create({ > "name": "", > "contact": "", > "email": "", > "fail_existing": "0", > "notes": { > "notes_key_1": "Tea, Earl Grey, Hot", > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." > } > }) > ``` > > ```go Go theme={null} > import ( razorpay "github.com/razorpay/razorpay-go" ) > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > data := map[string]interface{}{ > "name": "", > "contact": "", > "email": "", > "fail_existing": "0", > "notes": map[string]interface{}{ > "notes_key_1": "Tea, Earl Grey, Hot", > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf.", > }, > } > > body, err := client.Customer.Create(data, nil) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->customer->create(array('name' => '', 'email' => '','contact'=>'','notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Greyโ€ฆ decaf')); > ``` > > ```csharp .NET theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary options = new Dictionary(); > > options.Add("name", ""); > options.Add("contact", ""); > options.Add("email", ""); > options.Add("fail_existing", "0"); > > Customer customer = Customer.Create(options); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > Razorpay::Customer.create({ > "name": "", > "contact": "", > "email": "", > "fail_existing": "0", > "notes": { > "notes_key_1": "Tea, Earl Grey, Hot", > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." > } > }) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > instance.customers.create({ > name: "", > contact: "", > email: "", > fail_existing: "0", > notes: { > notes_key_1: "Tea, Earl Grey, Hot", > notes_key_2: "Tea, Earl Greyโ€ฆ decaf." > } > }) > ``` > > ```json Success Response theme={null} > { > "id" : "cust_1Aa00000000004", > "entity": "customer", > "name" : "", > "email" : "", > "contact" : "", > "gstin": null, > "notes": { > "notes_key_1":"Tea, Earl Grey, Hot", > "notes_key_2":"Tea, Earl Greyโ€ฆ decaf." > }, > "created_at ": 1234567890 > } > ``` > > ```json Failure Response theme={null} > { > "error": { > "code": "BAD_REQUEST_ERROR", > "description": "Contact number should be at least 8 digits, including country code", > "source": "business", > "step": "NA", > "reason": "invalid_contact_number", > "metadata": {}, > "field": "contact" > } > } > ``` > > > [tab] Request Parameters > > > > `name` *optional* > > : `string` Customer's name. Alphanumeric value with period (.), apostrophe ('), forward slash (/), at (@) and parentheses are allowed. The name must be between 3-50 characters in length. For example, `Gaurav Kumar`. > > > > `contact ` *optional* > > : `string` The customer's phone number. A maximum length of 15 characters including country code. For example, `+919876543210`. > > > > `email ` *optional* > > : `string` The customer's email address. A maximum length of 64 characters. For example, `gaurav.kumar@example.com`. > > > > `fail_existing` *optional* > > : `string` Possible values: > > > > * `1` (default): If a customer with the same details already exists, throws an error. > > * `0`: If a customer with the same details already exists, fetches details of the existing customer. > > > > `gstin` *optional* > > : `string` Customer's GST number, if available. For example, `29XAbbA4369J1PA`. > > > > `notes` *optional* > > : `object` This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > [tab] Response Parameters > > > > `id` > > : `string` Unique identifier of the customer. For example, `cust_1Aa00000000004`. > > > > `name` > > : `string` Customer's name. Alphanumeric, with period (.), apostrophe ('), forward slash (/), at (@) and parentheses allowed. The name must be between 3-50 characters in length. For example, `Gaurav Kumar`. > > > > `contact` > > : `string` The customer's phone number. A maximum length of 15 characters including country code. For example, `+919876543210`. > > > > `email` > > : `string` The customer's email address. A maximum length of 64 characters. For example, `gaurav.kumar@example.com`. > > > > `gstin` > > : `string` GST number linked to the customer. For example, `29XAbbA4369J1PA`. > > > > `notes` > > : `json object` This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `created_at` > > : `integer` UNIX timestamp, when the customer was created. For example, `1234567890`. > > > > Pass the `customer_id` available in the response to Checkout. > [accordion] Step 2: Create an Order > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order: > > * Using the sample code on the Razorpay Postman Public Workspace. > * By manually integrating the API sample codes on your server. > > #### Razorpay Postman Public Workspace > > You can use the Postman workspace below to create an order: > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > [!NOTE] > > > > **Handy Tips** > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > #### API Sample Code > > Use this endpoint to create an order using the Orders API. > > `POST /orders` > > ```bash Curl theme={null} > curl -X POST https://api.razorpay.com/v1/orders > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > -H 'content-type:application/json' > -d '{ > "amount": 500, > "currency": "INR", > "receipt": "qwsaq1", > "partial_payment": true, > "first_payment_min_amount": 230, > "notes": { > "key1": "value3", > "key2": "value2" > } > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount",50000); > orderRequest.put("currency","INR"); > orderRequest.put("receipt", "receipt#1"); > JSONObject notes = new JSONObject(); > notes.put("notes_key_1","Tea, Earl Grey, Hot"); > notes.put("notes_key_1","Tea, Earl Grey, Hot"); > orderRequest.put("notes",notes); > > Order order = instance.orders.create(orderRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > client.order.create({ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "partial_payment": False, > "notes": { > "key1": "value3", > "key2": "value2" > } > }) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->order->create(array('receipt' => '123', 'amount' => 100, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > ``` > > ```csharp .NET theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary orderRequest = new Dictionary(); > orderRequest.Add("amount", 50000); > orderRequest.Add("currency", "INR"); > orderRequest.Add("receipt", "receipt#1"); > Dictionary notes = new Dictionary(); > notes.Add("notes_key_1", "Tea, Earl Grey, Hot"); > notes.Add("notes_key_2", "Tea, Earl Grey, Hot"); > orderRequest.Add("notes", notes); > > Order order = client.Order.Create(orderRequest); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > para_attr = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "notes": { > "key1": "value3", > "key2": "value2" > } > } > > Razorpay::Order.create(para_attr) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > instance.orders.create({ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "partial_payment": false, > "notes": { > "key1": "value3", > "key2": "value2" > } > }) > ``` > > ```go Go theme={null} > import ( razorpay "github.com/razorpay/razorpay-go" ) > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > data := map[string]interface{}{ > "amount": 50000, > "currency": "INR", > "receipt": "some_receipt_id", > "partial_payment": false, > "notes": map[string]interface{}{ > "key1": "value1", > "key2": "value2", > }, > } > body, err := client.Order.Create(data, nil) > ``` > > ```json Success Response theme={null} > { > "id": "order_IluGWxBm9U8zJ8", > "entity": "order", > "amount": 5000, > "amount_paid": 0, > "amount_due": 5000, > "currency": "INR", > "receipt": "rcptid_11", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1642662092 > } > ``` > > ```json Failure Response theme={null} > { > "error": { > "code": "BAD_REQUEST_ERROR", > "description": "Order amount less than minimum amount allowed", > "source": "business", > "step": "payment_initiation", > "reason": "input_validation_failed", > "metadata": {}, > "field": "amount" > } > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be 3 characters. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY and three decimal currencies, such as KWD, BHD and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7000 is to be received from the customer in two installments of #1 - โ‚น5000, #2 - โ‚น2000 then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > > Know more about [Orders API](/docs/api/orders). > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > [accordion] Step 3: Pass `customer_id` and `order_id` to Checkout > > You must pass the `customer_id` and `order_id` generated in the previous steps to Checkout, as shown below: > > ```javascript Standard Checkout theme={null} > > > > ``` > [accordion] Step 4: Track Checkout Modal Using `ondismiss` Function > > (Only if you are using [Standard Checkout](/docs/payments/payment-gateway/web-integration/standard)) > > If you have integrated with Razorpay Standard Checkout, you must implement the `ondismiss` function to track the lifecyle of the Checkout modal. This displays the `close` icon, which the customer can use to exit the Checkout. > > ```javascript ondismiss function theme={null} > "modal": { > "ondismiss": function(){ > console.log(data); > } > } > ``` > [accordion] Step 5: Attach Event Listeners to `Razorpay` Instance *\[Optional]* > > For bank transfer payments, Checkout will not give a success or a failure callback. You must attach event listeners to the `Razorpay` instance to track if and when the customer has selected the bank transfer payment method. > > ```javascript Event Listener theme={null} > var rzp = new Razorpay(options); > rzp.on('payment.submit', function (data) { > if (data.method === 'bank_transfer') { > // User has selected Bank Transfer > } > }); > ``` > [accordion] Step 6: Subscribe to Webhook Event > > You must subscribe to the `virtual_account.credited` webhook event on the Dashboard to receive notifications whenever customers make payments using bank transfers. Know how to [setup webhooks](/docs/webhooks/setup-edit-payments#set-up-webhooks). > > **Sample Payload** > > ```json virtual_account.credited theme={null} > { > "entity": "event", > "account_id": "acc_BFQ7uQEaa7j2z7", > "event": "virtual_account.credited", > "contains": [ > "payment", > "virtual_account", > "bank_transfer" > ], > "payload": { > "payment": { > "entity": { > "id": "pay_DETA2KrOlhqQzF", > "entity": "payment", > "amount": 50000, > "currency": "INR", > "status": "captured", > "order_id": "order_DBJOWzybf0sJbb", > "invoice_id": null, > "international": false, > "method": "bank_transfer", > "amount_refunded": 0, > "amount_transferred": 0, > "refund_status": null, > "captured": true, > "description": "NA", > "card_id": null, > "bank": null, > "wallet": null, > "vpa": null, > "email": "gaurav.kumar@example.com", > "contact": "+919000090000", > "customer_id": "cust_1Aa00000000004", > "notes": [], > "fee": 731, > "tax": 112, > "error_code": null, > "error_description": null, > "created_at": 1567675983 > } > }, > "virtual_account": { > "entity": { > "id": "va_DET8z3wBxfPB5L", > "name": "Acme Corp", > "entity": "virtual_account", > "status": "active", > "description": "Virtual Account to test webhook", > "amount_expected": null, > "notes": { > "Important": "Notes for Internal Reference" > }, > "amount_paid": 50000, > "customer_id": "cust_1Aa00000000004", > "close_by": null, > "closed_at": null, > "created_at": 1567675923, > "receivers": [ > { > "id": "ba_DET8z5Z5ghv4hW", > "entity": "bank_account", > "ifsc": "RATN0VAAPIS", > "bank_name": "RBL Bank", > "name": "Acme Corp", > "account_number": "1112220006712324" > } > ] > } > }, > "bank_transfer": { > "entity": { > "id": "bt_DETA2KSUJ3uCM9", > "entity": "bank_transfer", > "payment_id": "pay_DETA2KrOlhqQzF", > "mode": "NEFT", > "bank_reference": "156767598340", > "amount": 50000, > "payer_bank_account": { > "id": "ba_DETA2UuuKtKLR1", > "entity": "bank_account", > "ifsc": "KKBK0000007", > "bank_name": "Kotak Mahindra Bank", > "name": "Gaurav Kumar", > "account_number": "765432123456789" > }, > "virtual_account_id": "va_DET8z3wBxfPB5L" > } > } > }, > "created_at": 1567675983 > } > ``` ### Related Information * [Hosted Integration for Bank Transfer](/docs/payments/payment-methods/bank-transfer/hosted-integration) * [Custom Integration for Bank Transfer](/docs/payments/payment-methods/bank-transfer/custom-integration) # About Payments Source: https://razorpay.com/docs/payments/payments Check payments, the various payment states and Razorpay Dashboard actions. Understand late authorisations. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can accept live payments using the Razorpay Payment Gateway once your Razorpay account is activated. ## Payment Life Cycle Following are the various states of a payment: | States | Description | | - | - | | `created` | This is the first state. The customer has provided the payment details, which are sent to Razorpay. The payment has not been processed yet. | | `authorized` | The payment state changes to `authorized` when the bank successfully authenticates the customer's payment details. The money is deducted from the customerโ€™s account by Razorpay. The amount is settled to your account after the payment is manually or automatically captured. Payment in this state is auto-refunded to the customer if not captured within 3 days of creation. | | `captured` | When the payment status is changed to `captured`, the payment is verified as complete by Razorpay. The amount is settled to your account as per the settlement schedule. | | `refunded` | You can refund the payments that have been successfully captured at your end. The amount is reversed to the customer's account. | | `failed` | An unsuccessful payment attempt is marked as `failed`, and the customer will have to retry the payment. Any amount debited will be refunded into customers account in 5-7 working days. | The following state diagram depicts the flow of money through the various payment states: ![Different stages of Payments Life Cycle](https://razorpay.com/docs/build/browser/assets/images/payment-capture-payment-states.jpg) ## Late Authorisation Late authorisation is a situation that arises when a payment is interrupted by external factors such as network issues or technical errors at the customer's or bank's end. In such cases, funds may or may not get debited from the customer's bank account, and Razorpay does not receive a payment status from the bank. Know more about [Late Authorization](/docs/payments/payments/late-authorisation). ## Dashboard Actions You can perform the following actions on payments from the Dashboard: * Configure settings to [auto-capture payments](/docs/payments/payments/capture-settings). * [Manually capture payments](/docs/payments/payments/capture-settings#manually-capture-payments) * [Issue a refund for a payment](/docs/payments/refunds/issue) * [View details of a payment](/docs/payments/payments/dashboard#view-payment-details) * [View settlement details of a payment](/docs/payments/settlements/dashboard#view-settlements-using-dashboard) ### Related Information * [Payment Methods](/docs/payments/payment-methods) * [Test Card Details](/docs/payments/payments/test-card-details) * [Payment Capture Settings](/docs/payments/payments/capture-settings) * [International Payment Support](/docs/payments/international-payments) # Payments APIs Source: https://razorpay.com/docs/payments/payments/apis List of available Payments and Downtime APIs for various actions such as Capture, Fetch and Update. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can use the Payments APIs to perform various actions. You can perform a few of these actions from the Dashboard as well. ## List of Payments APIs The table below lists the various Payments APIs and gives a brief description of each API: | API | Description | | - | - | | [Capture a payment](/docs/api/payments/capture) | API to capture a payment | | [Fetch a payment](/docs/api/payments/fetch-with-id) | API to view details of a payment | | [Fetch multiple payments](/docs/api/payments/fetch-all-payments) | API to get details of all payments | | [Fetch payments based on orders](/docs/api/payments/fetch-payments-orders) | API to get payments based on orders | | [Fetch card details for a payment](/docs/api/payments/fetch-card-details-payment) | API to get the card details for a payment | | [Update a payment](/docs/api/payments/update) | API to update notes of a payment | | [Payment Downtime API](/docs/api/payments/downtime) | API for payment downtime and webhooks | ### Related Information * [About Payments](/docs/payments/payments) * [Payments - Dashboard Actions](/docs/payments/payments/dashboard) # Payment Capture Settings Source: https://razorpay.com/docs/payments/payments/capture-settings Configure auto and manual payment capture settings from Razorpay Dashboard and using APIs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States When a customer makes an online payment, it usually flows through different states. Know more about [payment states](/docs/payments/payments#payment-life-cycle). By default, once your customer completes a payment, it is automatically moved to the `captured` state. However, the payment can remain in the `authorized` state in the following scenarios:\ * **Late authorization** \ Due to external factors such as network issues or technical errors, Razorpay may not immediately receive payment status from the bank. In this case, Razorpay polls the APIs intermittently for 3 days to check the status. If we receive the payment status as successful, the payment is moved to the `authorized` state. Know more about [late authorization](/docs/payments/payments/late-authorisation). * **Specific business use case** \ Some businesses such as those in the Ecommerce industry, may retain the payment in the `authorized` state and later move them to the `captured` state. > [!WARNING] > > **Watch Out!** > > * For **Direct Settlement** merchants, payments will be auto-captured irrespective of the configuration. > * You must ensure that all payments in theย authorizedย stateย are movedย toย the capturedย state withinย 3ย days of creation.ย Thisย is mandatory because paymentsย thatย areย not capturedย within this period will be [refunded automatically](/docs/payments/refunds/auto-refunds) to customers. You can configure **Payment Capture settings** on the Dashboard. You can choose to: * [Auto-capture all payments](#auto-capture-all-payments) * [Auto-capture with set timeouts](#auto-capture-with-custom-timeouts) * [Manually capture timeout](#manual-capture-timeout) > [!NOTE] > > **Handy Tips** > > * Only the Razorpay account owner can configure payment capture settings on the Dashboard. > * Payment Capture settings are applicable only for payments created using the Orders API. | Option | Description | | - | - | | Auto-capture all payments | All payments `authorized` within 3 days from the time of creation are auto-captured. | | Auto-capture timeouts |
  • Allows you to define custom auto-capture timeout.
  • The minimum value is 12 minutes.
  • The maximum value (default) is 3 days.
| | Manual capture timeout |
  • Allows you to define custom manual capture timeout.
  • The minimum value is 12 minutes.
  • The maximum value (default) is 3 days.
| | Auto-refund speed | Payments in the `authorized` state are auto-refunded after the timeout. The available option is **Normal Refund** where the payment is refunded to your customer in 5-7 working days. The refund speed selected here is only applicable to payments that are auto-refunded. | ## Auto-capture All Payments You can use this setting to capture all `authorized` payments automatically. This eliminates the time and effort spent manually capturing payments. **This is the default setting for all customers.** ![ Auto-capture all payments process flow](https://razorpay.com/docs/build/browser/assets/images/payment-capture-auto-capture-all-payments.jpg) Watch this video to know how to set up the **Automatic Capture** option. [https://www.youtube.com/embed/1u0X1k6mh-U](https://www.youtube.com/embed/1u0X1k6mh-U) > [accordion] To auto-capture all `authorized` payments: > > 1. Log in to the Dashboard. > 2. Navigate to the **Account & Settings** option and scroll to the **Payments Capture** option. > 3. Click the **Change** button next to **Automatic Capture**. > 4. Under **Automatic Capture**, click the drop-down and select the time period in the **Capture all payments authorised within** field. For example, 3 days. > 5. Click **Next**. > 6. Select **Refund Automatically** and click **Next**. > 7. Select Normal Refund as the **Refund Speed**. > 8. Click **Save**. ## Auto-capture With Custom Timeouts Once the payment is `created`, you can: * Auto-capture payments that are `authorized` within a certain time period, and * Manually capture payments that are `authorized` after that time period. You can do this by setting up custom timeouts for automatic and manual capture. ### Auto-capture Timeout Let us say you only want to auto-capture payments that are `authorized` within 3 days from creation. | --- Capture Settings |
  • Select **Automatic Capture**
  • Automatic capture timeout = 3 days.
| | - | - | | Payments auto-refunded | If payments are `authorized` after 3 days. | ![Auto Capture Timeout process flow](https://razorpay.com/docs/build/browser/assets/images/payment-capture-auto-capture-timeout.jpg) Watch this video to see how to set up the **Automatic Capture with Timeout** option. [YouTube video player](https://www.youtube.com/embed/_pll_tqFGhY?si=Kvl9jk4KoibLTQFb) ### Auto-capture + Manual Capture Timeouts Let us say you want to: * Auto-capture payments that are `authorized` within 2 days from creation. * Manually capture payments that are `authorized` within 3 days from creation. | --- Capture Settings |
  • Select **Automatic Capture**
  • Automatic capture timeout = 2 days.
  • Manual capture timeout = 3 days.
| | - | - | | Payments auto-refunded if |
  • Payments not `captured` by you within 3 days.
  • Payments are `authorized` after 3 days.
| ![Auto and Manual Capture Timeout process flow](https://razorpay.com/docs/build/browser/assets/images/payment-capture-auto-capture-and-manual-capture-timeouts.jpg) Watch this video to see how to set up the **Automatic and Manual Capture with Timeout** option. [YouTube video player](https://www.youtube.com/embed/6vyGZ8vOqno?si=wqvPQNV4d9Cw-x_m) > [accordion] To configure capture settings: > > 1. Log in to your Dashboard. > 2. Navigate to the **Account & Settings** option and scroll to the **Payments Capture** option. > 3. Click the **Change** button next to **Automatic Capture**. > 4. Under **Automatic Capture**, click the drop-down and select the time period in the **Capture all payments authorised within** field. For example, 2 days. > 5. Click **Next**. > 6. Select **Capture manually via dashboard or API**. > 7. Click the drop-down and select the time period in the **Capture payments manually authorised within** field. For example, 3 days. > 8. Click **Next**. > 9. Select Normal Refund as the **Refund Speed**. > 10. Click **Save**. ## Manually Capture Payments You can use this setting to capture `authorized` payments manually. > [!WARNING] > > **Watch Out!** > > Manual capture of payments is not supported on [bank transfer](/docs/payments/payment-methods/bank-transfer). All bank transfer payments are auto-captured. ### Manual Capture Timeout Let us say you only want to manually capture payments that are `authorized` within 3 days from creation. To do this, you should set the manual capture timeout as 3 days. | --- Capture Settings |
  • Select **Manual Capture**
  • Manual capture timeout = 3 days.
| | - | - | | Payments auto-refunded if |
  • Payments not `captured` by you within 3 days.
  • Payments are `authorized` after 3 days.
| ![Manual Capture Timeout process flow](https://razorpay.com/docs/build/browser/assets/images/payment-capture-manual-capture-only.jpg) Watch this video to set up the **Manual Capture** option. [YouTube video player](https://www.youtube.com/embed/zBcK1KIed30?si=F06RpJcegPNBI8ND) > [accordion] To set up the manual capture: > > 1. Log in to the Dashboard. > 2. Navigate to the **Account & Settings** option and scroll to the **Payments Capture** option. > 3. Click the **Change** button next to **Automatic Capture**. > 4. Select the **Manual Capture** option. > 5. Set the manual capture timeout to 3 days and click **Next**. > 6. Select Normal Refund as the **Refund Speed**. > 7. Click **Save**. You can manually capture payments in the `authorized` state using our [Capture API](/docs/api/payments/capture) or from the [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). All payments that are not captured within the manual timeout period will be auto-refunded. ## Configure Payment Capture Settings Using Orders API Capture values passed in the [Orders API](/docs/payments/payments/capture-settings/api) take precedence over the Payment Capture settings configured on the Dashboard. You can use this to change the capture settings for individual payments. ### Related Information * [How Payment Gateway Works](/docs/payments/payment-gateway/how-it-works) * [Payment States](/docs/payments/payments) * [Refunds](/docs/payments/refunds) * Manually capture payments in the `authorized` state using the [Capture API](/docs/api/payments/capture) or from the [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments) * [Set up and Subscribe to Webhook events](/docs/webhooks/setup-edit-payments) # Payments - Dashboard Actions Source: https://razorpay.com/docs/payments/payments/dashboard View payment details, manually capture payments, issue a refund or view settlement details of a payment from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can use the Dashboard to perform the following actions:
  • [View Payment Details](#view-payment-details)
  • [View Settlement Details of a Payment](#view-settlement-details-of-a-payment)
  • [Manually Capture Payments](#manually-capture-payments)
  • [Issue a Refund](#issue-a-refund)
  • [Subscribe to Webhook Events](#subscribe-to-webhook-events)
## View Payment Details Watch this video to see how to view the payment details. [YouTube video player](https://www.youtube.com/embed/lgeCPKJnNHk?si=-wR4AfdbYeCv_5Cm) To view the details of a payment made to your account: 1. Log in to your Dashboard. 2. Click **Transactions** โ†’ **Payments**. 3. Click a **Payment Id** to view details of the payment. ## View Settlement Details of a Payment Watch this video to view the settlement details of a payment. [YouTube video player](https://www.youtube.com/embed/vatTtGeH9vU?si=fHNUcLgFPali5CFw) To view a detailed break-down of a settlement made to your account: 1. Log in to your Dashboard. 2. Navigate to **Transactions** โ†’ **Payments**. 3. Click on the specific **Payment Id** for which you want to view the settlement details. 4. In the **Payment Details** view, you can view the settlement details. 5. Click on the **settlement\_id** to view the detailed breakdown. ## Manually Capture Payments Watch this video to capture payments manually. [YouTube video player](https://www.youtube.com/embed/txOqhzbbwM4?si=bpN0HoEHcgcYVaFp) To manually capture payments: 1. Log in to the Dashboard. 2. Navigate to **Transactions** โ†’ **Payments**. 3. Under the **Payments** tab, identify the authorized payment you want to capture. 4. Click the relevant **Payment Id**. 5. In the **Payment Details** pane, click **Capture Payment**. 6. A dialog box is displayed. Click **Yes, Capture**. ## Issue a Refund You can issue refunds to your customers from the Dashboard. Know more about [issuing refunds](/docs/payments/refunds/issue). ## Subscribe to Webhook Events You can subscribe to webhook events from the Dashboard. Know more about [Webhooks](/docs/webhooks). To subscribe to webhook events: 1. Log in to the Dashboard. 2. Navigate to **Accounts & Settings** โ†’ **Webhooks** to subscribe to events available for payments. The table below lists the webhook events available for payments. | Webhook Event | Description | | - | - | | `payment.authorized` | Triggered when a payment is authorised. | | `payment.captured` | Triggered when a payment is successfully captured. | | `payment.failed` | Triggered when a payment fails. | > [!NOTE] > > **Handy Tips** > >
    >
  • The payload for a Webhook is a snapshot of the entity when the event occurred. > For example, when a customer makes a payment, its status changes to `authorized`. It can then immediately move to the `captured` state.
  • >
  • The payment can be in the `captured` state when the `payment.authorized` Webhook is fired. However, the payload for the `payment.authorized` event contains details of the events when the payment was authorised, not when it was captured.
  • >
  • In case of network tokenised cards, the last 4 digits will be of the tokenised card and not the actual card.
  • The field `flow` is present only in the case of Turbo UPI Payments.
  • >
Know more about [webhooks](/docs/webhooks) and check the [sample payloads](/docs/webhooks/payments). ### Related Information * [About Payments](/docs/payments/payments) * [Payment APIs](/docs/payments/payments/apis) # Downtime Updates Source: https://razorpay.com/docs/payments/payments/downtime-updates View various downtimes, grouped across different payment methods. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Downtime is a period during which one or more payment options under-perform, leading to considerable delays in payment processing. These downtimes are due to technical issues or outages at Razorpay's partner or issuing banks side. Razorpay informs you about the downtime to communicate it to your customers. ## Bank Downtime Updates Bank Downtimes Updates provides you with an overview of various downtimes grouped across different payment methods on your Dashboard. You can view the latest status of downtimes for netbanking, cards, UPI and Emandate at any point in time. You can also view instrument details for downtimes such as Cards Network, Issuers and Banks in the **Downtime Updates** section on your Dashboard. ![Bank Downtime updates - Payment Methods Status](https://razorpay.com/docs/build/browser/assets/images/bank-downtimes-new.jpg) ## View Downtime Details To view the downtime details: 1. Log in to the Dashboard. 2. Click **Bank Downtimes icon** in the top menu. ![Downtime Details - Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/bank-downtimes-dashboard.jpg) 3. Click on the required VPA handle, Network or Bank to view the details of the downtime. You can view the following information: * Number of downtimes for the day. * Duration of the downtime. * Past 30 days incidents, with downtime date, time, duration and severity levels. ![Bank's downtime - Past 30 days incidents with downtime date, duration and severity levels](https://razorpay.com/docs/build/browser/assets/images/bank-downtimes-details.jpg) > [!NOTE] > > **Handy Tips** > > * The status is auto-refreshed every 5 minutes. > * You can also do a manual refresh after every 5 minutes. ## Downtime Communication on Checkout Razorpay identifies and sends you downtime updates via email for various payment instruments like cards and netbanking. Your customers will be able to view the downtime message on checkout, which will help them choose a payment method with a better success rate. > [!WARNING] > > **Watch Out!** > > We temporarily prevent customers from accessing payment instruments, which are bound to fail on checkout. For example, if all payments made via Netbanking are bound to fail, we show the option in a disabled state on checkout until it recovers. However, they can select an alternative instrument that is more likely to work to complete the payment successfully. > > > [accordion] Customer Experience > > > > ![payment instrument in a disabled state](https://razorpay.com/docs/build/browser/assets/images/payments-downtime-disabled-state-v2.jpg) > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. Razorpay shares updates regarding downtimes on various payment methods at the checkout as shown: > [accordion] Card > > ![Downtime Communication on Checkout for Card](https://razorpay.com/docs/build/browser/assets/images/card-downtime-v2.jpg) > [accordion] UPI > > ![Downtime Communication on Checkout for UPI](https://razorpay.com/docs/build/browser/assets/images/upi-downtime-v2.jpg) > [accordion] Netbanking > > ![Downtime Communication on Checkout for Netbanking](https://razorpay.com/docs/build/browser/assets/images/netbanking-downtime-v2.jpg) ### Related Information * [Payment Downtime API](/docs/api/payments/downtime) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/payments/faqs Find answers to frequently asked questions about Razorpay Payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States ## Payments > [accordion] How does a customer make payments using the Razorpay Payment Gateway? > > Try [Razorpay Checkout](https://razorpay.com/demopg3/). > > > [!WARNING] > > > > **Watch Out!**\\ > > > > This is a real transaction. The money will be deducted from your account when you complete the transaction. The money will be auto-refunded to your account in 4-5 days. > [accordion] How much does Razorpay charge per transaction? > > Under the standard plan designed for small and medium enterprises, Razorpay charges 2% per transaction. Razorpay also offers an enterprise plan designed for large volumes, which gives you the best prices possible for your business. Know more about [pricing](https://razorpay.com/pricing/). > [accordion] Is GST mandatory to accept payments? > > No, GST is not mandatory if your business does not have an annual turnover of over โ‚น20 lakhs. However, if you do not provide your GST details, you would not be able to claim TDS at the time of filing your tax returns. > [accordion] What is the applicable GST? How is it charged? > > 18% GST is charged on the fee deducted for all payment methods except domestic card transactions of amount \< = โ‚น 2,000. You can check the [Monthly Invoice Report](/docs/payments/magic-checkout/analytics/reports#generate-reports) from the **Reports** section of your Dashboard to understand GST charged. > [accordion] How can we test our website or mobile app integration with Razorpay Payment Gateway? > > Razorpay offers a sandbox environment where you can test integrations before going live. To test your integration, [generate test API Keys](/docs/api/authentication#generate-api-keys) in test mode and implement them in your code. Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. No money is deducted as these are simulated transactions. > [accordion] Do you have any test cards that we can use to check our website or mobile app integration with Razorpay Payment Gateway? > > You can use the following test card details to inspect the payment flow with the available payment methods. Use any CVV and any future date as the expiry date. > > * **Mastercard**: 5104015555555558 / 5104060000000008 > * **Visa**: 4386289407660153 > * **Subscription**: 5104015555555558 > * **International MasterCard**: 5555555555554444 / 5105105105105100 > * **International Visa**: 401288888881881 / 4000184186218826 > * **AMEX**: 379862000000006 > [accordion] What is Standard Capture? > > Standard capture is an authorisation followed by a `delayed` capture of the payment. In this scenario, if a customer makes a payment, the amount is deducted from the customer's bank account by Razorpay. The authorised amount is settled to your account only after you initiate a `capture` request. > [accordion] What is auto-capture? How do I enable auto-capture for payments? > > When a customer makes a payment, it goes to the `authorized` state. You need to capture the payments to get them settled to your account. Auto-capture enables the payments to be captured automatically as soon as they are `authorized`. Payments that are `authorized`, but not `captured` are automatically refunded to the customers in 5 days.\\ > > To set up automatic capture of payments, set up [Payment Capture settings](/docs/payments/payments/capture-settings) on your Dashboard. > [accordion] How do I manually capture a payment? > > You can manually capture payments: > > * [From the Dashboard](/docs/payments/payments/capture-settings#manually-capture-payments) > * [Using APIs](/docs/api/payments/capture)\\ > > You need to capture the payments to get them settled to your account. Payments that are `authorized`, but not `captured` are automatically refunded to the customers in 5 days. > [accordion] Can I accept International Payments through Razorpay? > > Yes, you can accept international payments using Razorpay Payment Gateway. Know more about [International Payments](/docs/payments/international-payments). > [accordion] How are payments made by my customers settled to my account? Is any action required from my end? > > No action is required from your end for the settlements. The captured payments are settled automatically to your account as per your settlement cycle. Know more about [Settlements](/docs/payments/settlements). > [accordion] A payment is marked as 'failed' on my Dashboard but money is debited from the customerโ€™s account. What do I do? > > A payment is said to be in the 'failed' state when we do not receive a successful callback message on the transaction from the issuing bank. If the customerโ€™s account is debited and we do not receive a successful callback, the amount will be auto-refunded by the customerโ€™s issuing bank in 7-10 working days.\\ > > In case of a failed payment, we verify the status with the bank at regular intervals. If there is a change in status, the payment moves to the `authorized` state, and a notification is sent to you and the customer.\\ > > In such scenarios, you can choose to do any one of the following: > > * **Provide services**: Capture the payment and provide the service/good as was promised earlier to the customer. > * **Refund the transaction**: If you are not able to provide service to the customer as per the agreed terms (Such as, time of delivery, cost of purchase or inventory issues), refund the payment to the customer. > [accordion] Is Razorpay PCI-DSS compliant? > > Yes, Razorpay is PCI-DSS compliant. > [accordion] What is Late Authorisation? > > Late authorisation is a situation that arises when a payment is interrupted by external factors such as network issues or technical errors at customer's or bank's end. In such cases, funds may or may not get debited from the customer's bank account and Razorpay does not receive a payment status from the bank. Know more about [Late Authorisation](/docs/payments/payments/late-authorisation). > [accordion] Why am I facing issues with the checkout? > > Facing issues with your checkout? Here are possible reasons: > > * Checkout not loading: > * Check for any incorrect parameters in the payload. See[Standard web integration best practices](/docs/payments/payment-gateway/web-integration/standard/best-practices). > * Ensure that the API key in use is valid, non-expired and most recently generated one. See [API keys](/docs/payments/dashboard/account-settings/api-keys). > * Delay in payment processing on Checkout: The delay in payment confirmation, often referred to as 'Late Auth,' is a common issue within the payments ecosystem. Know more about [Late Authorisation](/docs/payments/payments/late-authorisation). > * Payment failed, but debited from customer: If the payment is debited from the customer but does not reflect on the dashboard, the amount will be refunded within 3-7 business days. # Late Payment Authorisations Source: https://razorpay.com/docs/payments/payments/late-authorisation Check the Late Payment authorisation and its causes, differences between normal and late authorised payments and how to handle them. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Late authorisation is a situation that arises when a payment is interrupted by external factors, such as network issues or technical errors at the customer's or bank's end. In such cases, funds may or may not get debited from the customer's bank account, and Razorpay does not receive a bank's payment status. ## How Late Authorisations are Handled If there is no response from the bank about a payment that a customer has made, the Dashboard displays this transaction's status as `Created.` If there is no response, even after 10 minutes, the transaction is marked as `Failed` due to timeout. After that, Razorpay polls the bank at various intervals for 3 days, from the payment creation day. During this time, if our system receives the payment status from the bank as **Successful**, the payment is marked as `Authorized.` The payments authorised in this manner are considered as late authorised. ![Handle Late authorisation](https://razorpay.com/docs/build/browser/assets/images/late_auth.jpg) > [!NOTE] > > **Handy Tips** > > On average, less than 0.5% of the total number of payments get late authorised. In cases where funds get debited from the customer's bank account and are not [captured](/docs/payments/payments), the amount is [auto-refunded](/docs/payments/refunds/auto-refunds) to the customer. As a best practice, you should subscribe to the [**`payment.authorized`** webhook](/docs/webhooks) to get notifications about authorised or failed payments. Not all payments that appear as failed are considered as late authorised. Late authorisation is a special case of handling technical or manual interruptions that prevent Razorpay from receiving payment status from the bank and proceed with the payment flow. ## What Causes Late Authorisation Interruptions that prevent a payment gateway from receiving payment status information from the bank is a common cause for late authorisations. In most cases, payments are interrupted because of any of the following reasons: * Network issues at the customer's end. * Technical issues at the customer's bank's end. * Customers closing the pop-up window or pressing the back button after submitting the OTP. If Razorpay receives the payment status from the bank later, payment is moved to the `authorized` state leading to late payment authorisation. You have little control over these interruptions. Know more about [handling late authorisations](/docs/payments/payments/late-authorisation/handle) to avoid customer inconvenience. ## Normal Authorisations Vs. Late Authorisations The difference in the payment flow for a normal payment and a late authorised payment is explained in the table below: | **Normal Payment** | **Late Authorised Payment** | | - | - | | The customer completes the payment; bank gateway notifies Razorpay. | The customer completes the payment; bank gateway fails to notify Razorpay. | | If the bank gateway response is **Successful** (customer's bank account is debited), Razorpay records this as an **Authorised** payment. | If there is no response from the bank, the payment remains in the **Created** state for the first 10 minutes and is later marked as **Failed** after getting timed out. The customer's bank account may or may not have been debited. | | Once authorised, you can either choose to **capture** or **refund** this payment. | This payment can be **Captured** or **Refunded** only if it is late authorised. | > [!NOTE] > > **Handy Tips** > > Authorised payments are payments that the customer completes. You need to capture the payment for it to be settled in your account. ### Related Information [Handle Late Payment Authorisations](/docs/payments/payments/late-authorisation/handle) # Handle Late Authorised Payments Source: https://razorpay.com/docs/payments/payments/late-authorisation/handle Use Orders API or webhooks to handle late authorisations. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Late authorised payments are rare situations, as only less than 0.5% of the total payments get late authorised. The payments that are **late authorised** and not captured are auto-refunded once the capture time window has passed. Know more about [Payment Capture Settings](/docs/payments/payments/capture-settings) and [auto-refunds](/docs/payments/refunds/auto-refunds). Based on your business needs, you can decide how to handle payments that may get late authorised. This largely depends on whether you can provide services for the late authorised payment. ## If You Wish to Provide Services Later You can keep a track of these payments and fulfil the order when it is authorised. For example, if you are an online marketplace merchant, who sells clothes and accessories, you can mark the order as 'pending' in your system and deliver the order when the payment gets authorised ## If You Cannot Provide Services for Late Authorised Payments Ignore these orders and communicate to the customer. Payments that stay in an `Authorized` state are auto-refunded to customers within 5 working days (without considering the bank's processing time). > [accordion] Example > > If you are an online food delivery service, you need to deliver food immediately on receiving payments. In this case, you cannot wait for late authorisation of payments. Ignore this order and inform the customer about order cancellation and auto-refund of any amount that may have got debited from the customer's account. > [!NOTE] > > **Handy Tips** > > Auto refunds are issued within 5 days. However, if you want to issue a refund instantly, you can capture the payment and issue a refund as per your requirements. Know more about [Refunds](/docs/payments/refunds). ## If You Want to Provide Services Later You can keep a track of these payments and fulfil the order when it is authorised. > [accordion] Example > > If you are an online marketplace merchant, who sells clothes and accessories, you can mark the order as 'pending' in your system and deliver the order when the payment gets authorised. > [!NOTE] > > **Communicate with Your Customers** > > When customers reach out to you about a payment that was debited from their bank accounts before the successful order completion, ensure that you clearly communicate the payment status and how you will be handling it. You can choose to send out a message such as the following: > > If your order has failed, any amount debited will be auto-refunded in 5 working days (not considering your bank's processing time). ## Payment Capture Settings This is the easiest way to handle late authorisation. This feature gives you control over which payments should be auto-captured and which payments should be auto-refunded by allowing you to: * Automatically capture all payments. * Setup custom timeouts for automatic and [manual capture](/docs/payments/payments/capture-settings/api). * Manually capture all payments. Know more about [Payment Capture settings](/docs/payments/payments/capture-settings). ## Orders API Orders API makes it easier to handle cases of late authorisation in the following ways: * It clubs multiple payment attempts against the same order. If one of the payments is successful and another attempt gets **Late Authorised**, the late authorised payment is refunded immediately, and only successful payment is marked against the Order. * Allows you to auto-capture payments based on the parameters passed in the [Orders API](/docs/payments/payments/capture-settings/api). Capture values passed in the Orders API take precedence over the Payment Capture settings configured on the Dashboard. ## Webhooks Webhooks send you notifications when payments move to the **Authorized** state. The webhook `payment.authorized` sends you a notification when the payment you were expecting to be **Late Authorized** moves to **Authorized** state. You can send email notifications to your customers about the payment status, asking them to take further action to deliver the service. You can set up webhooks from the Dashboard. Know more about [webhooks](/docs/webhooks). ## Frequently Asked Question (FAQs) > [accordion] Is Late Authorisation of payment specific to ? > > No. While other gateways also face these interruptions, Razorpay ensures that you have a way of handling late authorised payments using: > > * [Orders API](/docs/api/orders) > * [Webhooks](/docs/webhooks) > * [Payment capture settings on the Dashboard](/docs/payments/payments/capture-settings). > > You can track the status of the payment on the Dashboard. ### Related Information * [Late Authorisations](/docs/payments/payments/late-authorisation) * [About Payments](/docs/payments/payments) # Success Rate Analytics Source: https://razorpay.com/docs/payments/payments/success-rate-analytics View the transaction success rate on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Success rate is the **ratio of successful transactions to the total number of transactions.** **Success Rate** (SR)=Total number of successful (authorised) transactions / Total number of attempted transactions over a given period of time. **Example** If you had 100 transactions in a week and 93 were successful, your success rate would be 93% for that week. View the success rate of all your transactions and perform the various actions: * [All Payment Methods](#all-payment-methods) * [UPI](#upi) * [Cards](#cards) * [Netbanking](#netbanking) > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ## Access Success Rate Analytics (SRA) Dashboard To access the Success Rate Analytics (SRA) Dashboard: 1. Log in to your Dashboard. 2. Navigate to **Transactions** โ†’ **Success Rate**. ![navigate to core success rate on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/core-sr-dashboard-navigate.jpg) > [accordion] Using the Analytics Dashboard, you can: > > * Perform a detailed analysis of your recent transactions. > * View the details of each payment method by clicking on the respective method options such as Cards, UPI, Netbanking and Emandate. > > ![analytics view of core success rate on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/core-sr-dashboard-overview.jpg) > * View the payment volume distribution with the help of a pie diagram and understand the top reasons behind the payment failures. Know more about [failure reasons](#payment-failure-reasons). > > ![payment volume distribution on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/core-sr-dashboard-overview-two.jpg) > * Correlate downtime with your success rate trends for specific methods. ## Date Range Select the date and time for which you want to perform a success rate analysis. You can use a predefined range or opt for a custom range. ![core success rate graph](https://razorpay.com/docs/build/browser/assets/images/core-sr-date-range.jpg) > [!NOTE] > > **Handy Tips** \\ > > * The default date range is 6 hours. > * You can select the date range from upto the last 90 days. > * You can also select a specific time range as per your requirement. Additionally, in the success rate line graph, you can select the time frame for an hourly, daily, weekly, and monthly basis. The table below explains the availability of each time frame: | Time Frame | Explanation | | - | - | | Hourly | Hourly data for graphical representation is available only if the selected date range is less than 1 day. | | Daily | Daily data for graphical representation is available only if the selected date range is between 2 and 14 days. | | Weekly | Weekly data for graphical representation is available only if the selected date range is between 14 and 90 days. | | Monthly | Monthly data for graphical representation is available only if the selected date range is more than 2 months. | > [accordion] Example: Hourly Data for Cards > > ![core success rate graph time frame](https://razorpay.com/docs/build/browser/assets/images/core-sr-graph-timeframe.jpg) ## All Payment Methods **All Payment Methods** provide a high-level view of your transactions and recent performance at the method level (Cards, UPI, Netbanking and Emandate). > [accordion] With the **All Payment Methods** option, you can: > > * View the success rate at the **payment method** level (UPI, Cards, Netbanking and Emandate). > > ![view core success rate for all methods on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/core-sr-dashboard-all-methods.jpg) > * The line graph shows the success rate distribution of all payment methods on an hourly, daily, weekly and monthly basis as per your date range selection. > > ![view core sr graph for all methods](https://razorpay.com/docs/build/browser/assets/images/core-sr-all-methods-graphical.jpg) > * View the payment volume distribution at the method level with the pie chart. > > ![core sr pie diagram all methods](https://razorpay.com/docs/build/browser/assets/images/core-sr-pie-diagram.jpg) > * View the top failure reasons along with the breakdown. Know more about [failure reasons](#payment-failure-reasons). > > ![core sr error reasons](https://razorpay.com/docs/build/browser/assets/images/core-sr-failure-reasons.jpg) ## UPI The **UPI** option provides a high-level view of all UPI transactions and recent performance for the selected date range along with the payment providers details. > [accordion] With the **UPI** option you can: > > * View the success rate of all UPI transactions. > > ![core sr upi](https://razorpay.com/docs/build/browser/assets/images/core-upi-sr.jpg) > * The line graph shows the success rate distribution of **Intent**, **Collect** or **All flows (Intent and Collect)** on an hourly, daily, weekly and monthly basis as per your date range selection. You can select **Intent**, **Collect** or **All flows (Intent and Collect)** to compare the success rate. > > ![core sr graph upi](https://razorpay.com/docs/build/browser/assets/images/core-sr-graphical-upi.jpg) > * View the payment volume distribution of **Intent** and **Collect** with the pie chart. > > ![core sr pie diagram upi](https://razorpay.com/docs/build/browser/assets/images/core-sr-pie-diagram-upi.jpg) > * View the top failure reasons along with the breakdown. Know more about [failure reasons](#payment-failure-reasons). > > ![core sr pie diagram](https://razorpay.com/docs/build/browser/assets/images/core-sr-failure-reasons-upi.jpg) ## Cards The **Cards** option provides a high-level view of all Cards transactions and recent performance along with various other details for the selected date range. Filters available for Cards are as follows: > [!WARNING] > > **Watch Out!** \\ > > The sub-filters vary based on the top transacting **card type**, **card networks** and **banks** for the selected date range. | Filters | Sub- Filters | | - | - | | Card Networks | Examples: Visa, Mastercard, RuPay and Others. | | Banks | Examples: HDFC, ICICI, Axis and Others. | > [accordion] With the **Cards** option you can: > > * View the success rate of all Card transactions. > > ![core sr cards](https://razorpay.com/docs/build/browser/assets/images/core-cards-sr.jpg) > * Filter the transactions to view Cards payments received via **Card Type (Credit, Debit, Prepaid)**, **Card Networks**, or **Banks** as per your requirement. > > ![core sr filters cards](https://razorpay.com/docs/build/browser/assets/images/core-sr-filters-cards.jpg) > * In the success rate line chart, select different **Card Networks**, or **Banks** as per the filter selected to compare the rate between individual **Card Networks**, or **Banks**. > > ![core sr graph cards](https://razorpay.com/docs/build/browser/assets/images/core-sr-graphical-cards.jpg) > > * View the payment volume distribution of all **Card Networks**, or **Banks** as per the filter selected with the pie chart. > > ![core SR Pie diagram Cards](https://razorpay.com/docs/build/browser/assets/images/core-sr-pie-diagram-cards.jpg) > * View the top failure reasons along with the breakdown. Know more about [failure reasons](#payment-failure-reasons). > > ![core SR Pie diagram cards](https://razorpay.com/docs/build/browser/assets/images/core-sr-failure-reasons-cards.jpg) ## Netbanking The **Netbanking** option provides a high-level view of all Netbanking transactions and recent performance along with various other details for the selected date range. > [accordion] With the **Netbanking** option you can: > > * View the success rate of all Netbanking transactions. > > ![core sr netbanking](https://razorpay.com/docs/build/browser/assets/images/core-netbanking-sr.jpg) > > * In the success rate line chart, select different banks to compare rate between various banks. > > ![core sr graph netbanking](https://razorpay.com/docs/build/browser/assets/images/core-sr-graphical-netbanking.jpg) > > > [!WARNING] > > > > **Watch Out!** \\ > > > > The various labels available apply only to the graphical representation. > > * View the payment volume distribution of all banks with the pie chart. > > ![core sr pie diagram netbanking](https://razorpay.com/docs/build/browser/assets/images/core-sr-pie-diagram-netbanking.jpg) > * View the top failure reasons along with the breakdown. Know more about [failure reasons](#payment-failure-reasons). > > ![core sr pie diagram netbanking](https://razorpay.com/docs/build/browser/assets/images/core-sr-failure-reasons-netbanking.jpg) ## Payment Failure Reasons | Failure Reason | Explanation | | - | - | | Customer Related | Customer related failures occur from the customers side. For example: customer cancellations, incorrect CVV, insufficient funds. | | Banking Related | Banking related failures occur due to issues at customer's bank, UPI apps, and external gateways. | | Business Related | Business related failures occur due to issues at business side like non-activation of payment methods or international payments. | | Others | Other failures include errors due to fraud detection or internal provider issues. | # Test Cards Details to Test Payments and Subscriptions Source: https://razorpay.com/docs/payments/payments/test-card-details Use test cards to test Indian, international and EMI payments, and Subscriptions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can test the payment flow using our test cards. > [!WARNING] > > **Watch Out!** > > * You can use these test cards to make payments in **test** mode only. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > * If you use these test cards for **live** mode payments, either of the following error message will be displayed: `card issuer is invalid` or `invalid card input`. Watch this video to see how to use the test card details. [Use the test card details](https://www.youtube.com/embed/2VR0hXpF9RA?si=-meoxCcUgdK8sQsO) > [accordion] To use the test card details: > > 1. At the Checkout, select Card as the payment method. > 2. Enter the **OTP** to access saved cards if required. > 3. Enter the card details. This depends on the flow you are testing. > 4. Enter any random CVV. > 5. Enter any future date as the expiry date. > 6. Click **Pay**. A sample payment page is displayed. > * Enter a random **OTP** between 4 to 10 digits to make the payment successful and click **Submit**. > * Enter a random **OTP** below 4 digits to fail the payment and click **Submit**. Use the following cards for testing. You can use any random CVV and any future date as the expiry date. ## Test Cards for Indian Payments Use the following test cards to test various payment scenarios for Indian payments. You can save any of the test cards below. The saved card flow allows customers to store their card details for future transactions. When a customer selects the option to save their card, Razorpay handles the tokenization process internally. Know more about [Saved Cards](/docs/payments/payment-methods/cards/features/saved-cards). | Network | Card Number | Card Type | Card Sub Type | CVV & Expiry Date | | - | - | - | - | - | | Visa | 4100 2800 0000 1007 | Debit | Consumer | Use a random CVV and any future date | | Mastercard | 5555 5100 0008 1006 | Credit | Business | Use a random CVV and any future date | | Mastercard | 5180 2872 0009 1001 | Prepaid | Consumer | Use a random CVV and any future date | | RuPay | 6527 6589 0000 1005 | Credit | Consumer | Use a random CVV and any future date | | Diners | 3608 280009 1007 | Credit | Consumer | Use a random CVV and any future date | | Amex | 3402 560004 01007 | Credit | Consumer | Use a random CVV and any future date | ### Error Scenarios Use these test cards to simulate and test various error conditions for the following networks. Once you initiate the payment, in success/failure screen, you must select failure to get the right error. Know more about [Cards Error Codes](/docs/errors/payments/cards). > [accordion] BAD\_REQUEST\_ERROR > > | Error reason | Error description | Network | Card number | CVV & expiry date | > | - | - | - | - | - | > | `payment_timed_out` | Your payment could not be completed due to a temporary issue. Try again later. | Visa | 4100 2800 0009 0000 | Use a random CVV and any future date | > | `payment_timed_out` | Your payment could not be completed due to a temporary issue. Try again later. | Mastercard | 5305 6200 0006 0000 | Use a random CVV and any future date | > | `insufficient_fund` | Your payment could not be completed due to insufficient account balance. Try another card or payment method. | Visa | 4100 2800 0008 0001 | Use a random CVV and any future date | > | `insufficient_fund` | Your payment could not be completed due to insufficient account balance. Try another card or payment method. | Mastercard | 5305 6200 0005 0001 | Use a random CVV and any future date | > | `payment_cancelled` | Your payment has been cancelled. Try again or complete the payment later. | Visa | 4100 2800 0007 0002 | Use a random CVV and any future date | > | `payment_cancelled` | Your payment has been cancelled. Try again or complete the payment later. | Mastercard | 5305 6200 0004 0002 | Use a random CVV and any future date | > | `card_declined` | Your payment did not go through as it was declined by the bank. Try another payment method or contact your bank. | Visa | 4100 2800 0006 0003 | Use a random CVV and any future date | > | `card_declined` | Your payment did not go through as it was declined by the bank. Try another payment method or contact your bank. | Mastercard | 5305 6200 0003 0003 | Use a random CVV and any future date | > | `card_declined` | Your payment did not go through as it was declined by the bank. Try another payment method or contact your bank. | Visa | 4100 2800 0005 0004 | Use a random CVV and any future date | > | `card_declined` | Your payment did not go through as it was declined by the bank. Try another payment method or contact your bank. | Mastercard | 5305 6200 0002 0004 | Use a random CVV and any future date | > | `card_declined` | Your payment did not go through as it was declined by the bank. Try another payment method or contact your bank. | Visa | 4100 2800 0004 0005 | Use a random CVV and any future date | > | `card_declined` | Your payment did not go through as it was declined by the bank. Try another payment method or contact your bank. | Mastercard | 5305 6200 0001 0005 | Use a random CVV and any future date | > | `card_disabled_for_` `online_payments` | Your card is disabled for online payments. Please reach to your bank or try with another card. | Visa | 4100 2800 0003 0006 | Use a random CVV and any future date | > | `card_disabled_for_` `online_payments` | Your card is disabled for online payments. Please reach to your bank or try with another card. | Mastercard | 5305 6200 0000 0006 | Use a random CVV and any future date | > | `card_number_invalid` | You have entered an incorrect card number. Try again. | Visa | 4100 2800 0001 0008 | Use a random CVV and any future date | > | `card_number_invalid` | You have entered an incorrect card number. Try again. | Mastercard | 5305 6200 0008 0008 | Use a random CVV and any future date | > [accordion] GATEWAY\_ERROR > > | Error reason | Error description | Network | Card number | CVV & expiry date | > | - | - | - | - | - | > | `gateway_technical_error` | Your payment did not go through due to a temporary issue. Any debited amount will be refunded in 4-5 business days. | Visa | 4100 2800 0002 0007 | Use a random CVV and any future date | > | `gateway_technical_error` | Your payment did not go through due to a temporary issue. Any debited amount will be refunded in 4-5 business days. | Mastercard | 5305 6200 0009 0007 | Use a random CVV and any future date | > | `authentication_failed` | Your payment could not be completed due to incorrect OTP or verification details. Try another payment method or contact your bank for details. | Visa | 4100 2800 0000 0009 | Use a random CVV and any future date | > | `authentication_failed` | Your payment could not be completed due to incorrect OTP or verification details. Try another payment method or contact your bank for details. | Mastercard | 5305 6200 0007 0009 | Use a random CVV and any future date | ## Test Cards for International Payments | Card Network | Card Number | CVV & Expiry Date | | - | - | - | | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date | | Visa | 4012 8888 8888 1881 | Use a random CVV and any future date | > [!NOTE] > > **Handy Tips** > > You may encounter an address collection window when using the Mastercard test card number `5105 1051 0510 5100` for international payments. To complete the test payment, provide the following address details: > > * **Address Line 1**: 21 Applegate Apartment > * **Address Line 2**: Rockledge Street > * **City**: New York > * **State**: New York > * **Country**: US > * **Zipcode**: 11561 ## Test Cards for Subscriptions | Type | Card Network | Card Type | Card Number | CVV & Expiry Date | | - | - | - | - | - | | Domestic | Visa | Credit Card | 4718 6091 0820 4366 | Use a random CVV and any future date | | International | Mastercard | Credit Card | 5104 0155 5555 5558 | Use a random CVV and any future date | | International | Mastercard | Debit Card | 5104 0600 0000 0008 | Use a random CVV and any future date | > [!WARNING] > > **Watch Out!** > > In test mode, you can perform a subsequent debit only within 3 days of token creation, as card tokens are valid for 3 days only. ## Test Card for EMI Payments | Card Network | Card Number | CVV & Expiry Date | | - | - | - | | Mastercard | 5241 8100 0000 0000 | Use a random CVV and any future date | # Test UPI ID Details Source: https://razorpay.com/docs/payments/payments/test-upi-details Use test UPI IDs to test domestic (Indian) one-time payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can test the payment flow using our test UPI IDs. Watch this video to see how to use the test UPI ID details. [https://www.youtube.com/embed/hcoysDHJfGI](https://www.youtube.com/embed/hcoysDHJfGI) To use the test UPI ID details: 1. At the Checkout, select UPI as the payment method. 2. Enter the UPI ID. * Test payment success flow using `success@razorpay`. > [!WARNING] > > **Watch Out!** > > In test mode, payment cancellation will result in a successful payment. Use the **live** mode to test payment cancellation on UPI. * Test payment failure flow using `failure@razorpay`. # Quickstart Guide Source: https://razorpay.com/docs/payments/quickstart Complete guide to get started with Razorpay's payments platform. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Welcome to Razorpay! This guide will walk you through setting up your account and choosing the right products for your business needs. ## Step 1: Create an Account Sign up for a [Razorpay account](https://razorpay.com/signup) and complete the KYC process. * Start using our products or SDK/API integration in Test Mode during the KYC verification process. * After KYC completion and testing, live mode unlocks for real payments. ### Test Mode vs Live Mode > [card] [Test Mode](/docs/payments/dashboard/test-live-modes#test-mode-vs-live-mode) > > * Start integration immediately without KYC completion. > * Use test transactions with dummy data. No real money involved. > * API keys begin with `rzp_test_`. > * Perfect for development and testing. > [card] [Live Mode](/docs/payments/dashboard/test-live-modes#test-mode-vs-live-mode) > > * Requires KYC verification (24-48 hours). > * Accept real customer payments. > * API keys begin with `rzp_live_`. > * Full access to all features. ## Step 2: Select Product [Choose Razorpay products](/docs/payments) based on your business requirements. > [accordion] Online Payments vs. Offline Payments > > Choose between digital payment processing for ecommerce and websites using [Payment Gateway](/docs/payments/payment-gateway), [Magic Checkout](/docs/payments/magic-checkout) and [Payment Links](/docs/payments/payment-links) or physical payment solutions for retail stores and face-to-face transactions with [Razorpay POS](/docs/pos). Know more about [online and offline payment options](/docs/payments#accept-payments). > [accordion] One-time Payments vs. Recurring Payments > > Select single transaction processing for individual purchases using [Payment Gateway](/docs/payments/payment-gateway), [Payment Links](/docs/payments/payment-links) and [Payment Pages](/docs/payments/payment-pages) or automated recurring billing for subscriptions and regular services with [Subscriptions](/docs/payments/subscriptions). Know more about [one-time and recurring payment solutions](/docs/payments#accept-payments). > [accordion] No-code Products vs. Products with Coding Requirements > > Pick ready-to-use payment solutions with simple setup like [Payment Links](/docs/payments/payment-links), [Payment Pages](/docs/payments/payment-pages), [Invoices](/docs/payments/invoices) or refer to our [Payment Gateway SDKs](/docs/payments/payment-gateway#integrate-payment-gateway-web-mobile-ecommerce-plugins) for advanced integration needs. Explore [no-code and developer-friendly options](/docs/payments#accept-payments). > [accordion] Solutions by Industry > > Find tailored payment solutions designed for your industry: [Payment Gateway](/docs/payments/payment-gateway) for ecommerce, [Subscriptions](/docs/payments/subscriptions) for SaaS, [Route](/docs/payments/route) for marketplaces or [Razorpay POS](/docs/pos) for traditional retail businesses. View [industry-specific payment solutions](/docs/payments#solutions-by-industry). > [accordion] Solutions by Platform > > Integrate payments seamlessly with popular ecommerce platforms like Shopify, WooCommerce, Magento using [Payment Gateway ecommerce plugins](/docs/payments/payment-gateway#integrate-payment-gateway-web-mobile-ecommerce-plugins) or build custom solutions using our [Checkout SDKs](/docs/payments/payment-gateway#integrate-payment-gateway-web-mobile-ecommerce-plugins) for Go, PHP, Python, Node.js and [mobile platforms](/docs/payments/payment-gateway#integrate-payment-gateway-web-mobile-ecommerce-plugins) (Android, iOS, React Native, Flutter, Cordova, Capacitor). Browse [platform-specific integration guides](/docs/payments#solutions-by-platform). ## Step 3: Key Dashboard Actions > [accordion] Generate API Keys > > If you are using our APIs, SDKs or plugins, follow these steps to generate API keys for the integration: > > 1. Log in to Dashboard. > > 2. Navigate to **Account & Settings** โ†’ **API Keys** under Website and app settings. > > 3. Click **Generate Key**. > > 4. Download and save **Key ID** and **Key Secret** securely. > > > [!WARNING] > > > > **Important:** > > > > * Only Owner and Admin roles can access API keys. > > * Generate separate keys for Test and Live modes. > > * Key Secret is only visible at generation time. > > [API Keys Documentation โ†’](/docs/payments/dashboard/account-settings/api-keys) > [accordion] Add Team Members > > Follow these steps: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **Business settings** โ†’ **Manage Team**. > 3. Click **Invite New Member**. > 4. Enter their email address and select role from the dropdown. > 5. Click **Send Invitation**. > > [Team Management Guide โ†’](/docs/payments/dashboard/account-settings/manage-team) > [accordion] Configure Webhooks > > We recommend setting up webhooks to receive notifications, if you are integrating with our APIs or SDKs. > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **Webhooks**. > 3. Click **Add New Webhook**. > 4. Enter your endpoint URL. > 5. Select events to monitor. > 6. Add webhook secret for signature verification. > 7. Save and activate. > > [Webhooks Documentation โ†’](/docs/webhooks) > [accordion] Payment Capture Settings > > Log in to the Dashboard. Navigate to the **Account & Settings** option and scroll to the **Payments Capture** section. > > | Option | Description | > | - | - | > | Auto-capture all payments | All payments authorized within 3 days from the time of creation are auto-captured. | > | Auto-capture timeouts |
  • Allows you to define custom auto-capture timeout.
  • The minimum value is 12 minutes.
  • The maximum value (default) is 3 days.
| > | Manual capture timeout |
  • Allows you to define custom manual capture timeout.
  • The minimum value is 12 minutes.
  • The maximum value (default) is 3 days.
| > | Auto-refund speed | Payments in the authorized state are auto-refunded after the timeout. With the Normal Refund option, your payment is refunded to your customer in 5-7 working days. The refund speed selected here is only applicable to payments that are auto-refunded. | > > [Payment Capture Guide โ†’](/docs/payments/payments/capture-settings) ## Next Steps Once your account is created: 1. **Complete KYC**: [Submit KYC documents](/docs/payments/set-up#kyc-details) for live mode activation. 2. **Choose Product/Integration Method**: Select based on your business needs and technical capabilities. 3. **Test Thoroughly**: Use test mode before going live. 4. **Go Live**: Switch to live mode when ready. Use live mode keys if integrating with our APIs/SDKs/plugins. # Razorpay Reviews Source: https://razorpay.com/docs/payments/reviews Collect verified reviews from real, fulfilled Shopify orders over WhatsApp, SMS and email, then display them on your product pages with Razorpay Reviews. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay Reviews asks your customers for a review after their order is delivered, over WhatsApp, SMS and email, then publishes those reviews on your product pages. Every review request goes out against a real, fulfilled order, so every review you collect is tied to a genuine purchase. You manage everything from the **Reviews** section of your Razorpay Dashboard. It is included with your Razorpay account at no extra cost. > [accordion] Why Razorpay Reviews > > * **Every review is tied to a real order.** Requests are issued per fulfilled order through a signed, single-use link. There is no open "write a review" form on your storefront, so there is no route for a review from someone who never bought from you. > * **WhatsApp, SMS and email.** All three, which matters in India, where WhatsApp response rates lead email by a wide margin. > * **Photos and videos included.** Up to five per review, at no extra cost. > * **Start with the reviews you have already earned.** Request reviews for up to 90 days of past orders during setup, and migrate your existing Judge.me reviews across. > * **No extra cost.** Included with your Razorpay account. ## How Reviews Works Here is what happens between a delivered order and a published review: 1. **We check your orders once a day.** Every day, Razorpay Reviews reads your fulfilled Shopify orders from the last 30 days and works out which ones are due for a review request. It is a scheduled check rather than an instant one, so an order fulfilled at midday is picked up in the next day's run. 2. **We work out when to ask.** Each order gets a send time based on your two delays: 7 days after delivery if Shopify has reported it, otherwise 14 days after fulfilment. Both are adjustable between 1 and 30 days. Requests are held to a reasonable sending hour in your store's local time, so a request falling due overnight goes out the next morning. 3. **The request goes out** on each channel you have enabled, for example WhatsApp, SMS and email are all on unless you turn them off. Channels send independently rather than as a fallback chain, so a customer with both an email address and a phone number hears from you on every channel you have left on. A channel is skipped when the customer has no contact detail for it. 4. **Your customer leaves a review.** The message contains a one-tap link with no login and no password. A single link covers every item in the order, so a three-item order means one link and one flow. Links stay valid for 45 days. The form asks for: * **A star rating** - 1 to 5, required. * **Review text** - optional, up to 1,000 characters. * **Photos and videos** - optional, up to five files. Each link works once. If a customer opens it again after submitting, they are told they have already shared their experience for that order. No discount or coupon is issued for leaving a review. 5. **The review is published, or waits for you.** This follows your choice in **Settings > Review publish**: * **Automatically publish reviews** - reviews go live as soon as they arrive, according to your auto-publish rule. You can publish every review, or only those at or above a chosen star rating (2, 3, 4 stars and above, or 5 stars only). Anything below the rating you pick waits for you to approve it. * **Manually moderate reviews** - reviews with text or photos wait in your queue. > [!NOTE] > > Rating-only reviews always publish immediately, in either mode. Only reviews carrying text or photos enter the approval queue. So a bare 2-star rating with no comment appears even while you are moderating manually. 6. **It appears in your widgets.** Published reviews show in the review widget and count towards the rating badge on your product pages. Only published reviews are ever publicly visible. ## Get Started To get started with Razorpay Reviews: 1. Go to **Reviews** in your Razorpay Dashboard and select **Start collecting reviews**. 2. Connect your Shopify store. 3. Set your branding. 4. Install the review widget in your theme. 5. Request reviews for past orders. 6. Check your timing and channels. Refer to the sections below for detailed steps, and to [Collect Reviews](/docs/payments/reviews/collect) for how requests are scheduled, sent and displayed. ## Quickstart ### Before you start You need: * An active Razorpay account with Dashboard access. * A Shopify store that you are an admin of. * Your **Razorpay API key**. Generate or copy it from the [API keys page](https://dashboard.razorpay.com/app/keys). ### Step 1: Open Reviews in your Dashboard Navigate to **Reviews** in your Razorpay Dashboard and select **Start collecting reviews**. ### Step 2: Connect your Shopify store 1. Install the **Razorpay Reviews** app on your Shopify store from the [Shopify App Store](https://apps.shopify.com/razorpay-trusted-badges). 2. Open the app and enter your **Razorpay API key** to link it to your Razorpay account. You can find your key on the [API keys page](https://dashboard.razorpay.com/app/keys). 3. Return to the Razorpay Dashboard. Your store now shows as connected and Reviews can read your orders. > [!NOTE] > > **Handy Tips** > Keep the Shopify tab open while you finish setup. If the connect step does not seem to complete, check that pop-ups are allowed for the Razorpay Dashboard. Authorisation opens in a new window. ### Step 3: Set your branding This is what customers see when you ask them for a review. 1. **Brand name**: your store's name, as customers know it. 2. **Brand logo**: upload in 1:1 aspect ratio, maximum 5 MB, in JPG, PNG or WebP format. ### Step 4: Install the widget in your theme Add the review widget to your Shopify theme so published reviews appear on your product pages. You can skip this step now and do it later from the **Widgets** tab. Refer to [Displaying reviews](/docs/payments/reviews/collect#displaying-reviews) for details. ### Step 5: Request reviews for past orders Choose how far back to go: the last **90 days** (the default), 60 days, 30 days, or do not send to past orders at all. Select **Confirm & send**. This is the fastest way to have reviews on your store from day one. > [!WARNING] > > **Watch Out!** > Backfill sends real messages to real customers. On a busy store, 90 days can mean a lot of WhatsApp and SMS messages going out at once. Choose a shorter window if you would rather start gently. ### Step 6: Check your timing and channels Navigate to **Reviews > Settings > Review collection**. * **Review request methods**: WhatsApp, SMS and email, all on by default. Switch off any you do not want to use. * **Review request scheduling**: two delays, each between 1 and 30 days: * **After delivery**: 7 days by default. * **After fulfilment**: 14 days by default, used when Shopify does not report delivery. Adjust the values if you want to, and save. ### Check it worked * Open one of your product pages and confirm the review widget appears. * Check **Reviews > Home** for submissions as they come in. ### Review states | State | What it means | | - | - | | Submitted | Your customer has sent the review. | | Published | Live on your store. The only publicly visible state. | | Awaiting approval | Manual mode only, and only for reviews with text or photos. | | Hidden | You have hidden it. Always reversible. | Switching from manual approval back to auto-publish releases everything currently waiting, all at once. Every change is recorded, and hiding a review is never permanent - you can re-publish it at any time. ### Your queue does not stall A review left awaiting approval for 7 days publishes automatically. This is deliberate: a queue you have not had time to work through should not quietly suppress genuine reviews your customers took the trouble to write. If you want to keep a review off your store, you can hide it. ## FAQs > [accordion] How do I migrate my existing reviews? > > Connect your Judge.me account and we will pull them across, photos included. Coming from another platform? Email [reviews@razorpay.com](mailto:reviews@razorpay.com) and we will help you move. Refer to [Migrating your reviews](/docs/payments/reviews/collect#migrating-your-reviews) for details. > [accordion] Why can't I upload a CSV of reviews? > > Razorpay Reviews keeps a verification trail behind every review, so shoppers can trust what they read. A spreadsheet carries no evidence that its rows came from real buyers, so we do not accept one - it would quietly weaken that guarantee for every other review on your page. A Judge.me import arrives with its own provenance, which is why it is supported. > [accordion] When do reviews appear on my store? > > Immediately, if auto-publish is on - that is the default. In manual mode, reviews with text or photos wait for your approval, though rating-only reviews still publish straight away. > [accordion] Do I need to edit my theme code? > > No. You add the widget once from your Shopify theme editor. > [accordion] What does it cost? > > Nothing extra. Razorpay Reviews is included with your Razorpay account. ### Related Information * [Collect Reviews](/docs/payments/reviews/collect) # Collect Reviews Source: https://razorpay.com/docs/payments/reviews/collect Configure when review requests are sent, how reviews are displayed on your Shopify store, and how to migrate reviews from Judge.me. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Decide when your customers are asked, how they hear from you, where reviews show up on your store, and how to bring across reviews you have already collected elsewhere. ## Scheduling In **Settings > Review collection**, set two delays: * **After delivery** - 7 days by default. Used whenever Shopify reports the order as delivered. * **After fulfilment** - 14 days by default. The fallback, used when delivery is not reported. Both accept 1 to 30 days. Timing is worked out by a daily job, so treat your delay as the day after which review alert is sent rather than an exact hour. ## Channels WhatsApp, SMS and email, all on by default. Switch off any you do not want to use. Each channel you turn on, sends messages independently. This ensures a customer with both an email address and a phone number hears from you on every channel you have enabled. If you would rather reach people once, turn the others off. ## The review form Hosted by Razorpay and built for mobile. One link per order, valid for 45 days, covering every item in that order. A star rating is required, review text is optional. Customers can add up to 1,000 characters in the review text and can attach up to five photos or videos. ## Requesting reviews for past orders During setup, you can request reviews for orders from the last 30, 60 or 90 days - the quickest way to build up reviews on a store that has been trading for a while. ## Displaying Reviews | Widget | Where it goes | What it shows | | - | - | - | | Review widget | Your product page | The full review list - rating summary and individual reviews, with photos. | | Rating badge | Next to your product title | Average star rating and review count, at a glance. | ### Adding them to your theme Go to **Reviews > Widgets** in your Razorpay Dashboard and follow the steps to add each widget to your Shopify theme. There is no code to write and no snippet to paste. You place them from the theme editor and they know which product they are rendering for. Most stores put the review widget directly below the product description and the rating badge just under the product title so shoppers see the score before they scroll. ### If nothing appears The widgets only show **published** reviews. A new store with no reviews yet, or one in manual mode with everything still awaiting approval, shows nothing at all. ## Migrating Your Reviews ### From Judge.me 1. Go to **Reviews > Import reviews**. 2. Enter your Judge.me private API token. 3. We check the connection straight away. If the token is wrong, you will know immediately rather than an hour later. 4. The import runs in the background. You can leave the page while it works. **What comes across:** star rating, title, review text, reviewer name, review date, photos and verified-buyer status where Judge.me recorded it. > [!NOTE] > > **Handy Tips** > > * **Your photos keep working.** Review images are copied to Razorpay's own storage, so they do not break when you disconnect Judge.me. > * **Re-running is safe.** Anything already imported is skipped, so you can run it again later to pick up newer reviews. > * **Reviewer email addresses are never stored.** They are converted to a one-way hash as they arrive, so we can recognise a returning reviewer without holding their address. ### Coming from another platform? Judge.me is the only direct migration today. If you are on Yotpo, Loox, Stamped, Ali Reviews or Shopify's own product reviews, email [reviews@razorpay.com](mailto:reviews@razorpay.com) and the team will work through it with you. ### Why we don't accept a CSV upload Razorpay Reviews is built so that every review can be traced back to a real order. That verification trail is what lets shoppers trust the ratings on your store and it is what separates these reviews from ones anyone could type into a spreadsheet. A CSV carries no evidence of where its rows came from, so accepting one would quietly weaken that guarantee for every other review on the page. Judge.me reviews arrive with their own provenance, which is why that route is supported. > [!WARNING] > > **Watch Out!** > Import before you disconnect Judge.me. Photo links in an export from a disconnected app often point at images that no longer load. ### Related Information * [Razorpay Reviews](/docs/payments/reviews) # Set up a Razorpay Account Source: https://razorpay.com/docs/payments/set-up Set up a Razorpay account, submit your KYC using CKYC/Video KYC and start using the various Razorpay Payments and Banking Plus products. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You must sign up for a Razorpay account to use the Razorpay Payments products, access the Dashboard and accept payments from customers. > [card] 1. Sign Up > > [Set up an account](/docs/payments/set-up#set-up-account) to use Razorpay products to accept customer payments. \ > You can also [set up multiple accounts](/docs/payments/set-up#set-up-multiple-accounts) with the same mobile number and email id. > [card] [2. Submit KYC](/docs/payments/set-up#kyc-details) > > Submit your KYC documents to get your account verified and get the payments settled in your account. Watch this video to create a new account on Razorpay and complete your KYC. [YouTube video player](https://www.youtube.com/embed/0PCo0bEK10Q?si=y5r6ALScK_o_rXnz) > [!NOTE] > > **Fast-Track Onboarding with Central KYC (CKYC) - Effective January 1, 2026** > > Streamline your onboarding with instant CKYC verification. > > Razorpay now offers immediate identity validation for businesses with existing Central KYC records. This enables full account activation in minutes by removing the necessity for Video KYC and manual document uploads. > > Know more about [CKYC and Traditional KYC](/docs/payments/set-up#ckyc-verification-vs-traditional-verification). > > **Key Benefits** > > * **Instant Verification**: If you have existing CKYC records (from bank, mutual fund, insurance), verification happens in seconds. > * **No Document Uploads**: Many required documents are auto-fetched from CKYC. > * **Skip Video KYC**: Businesses can bypass Video KYC completely. > * **Faster Activation**: Complete onboarding in minutes instead of days. > [!TIP] > > **Assisted Onboarding** > > Hire a dedicated onboarding manager for an additional fee to assist you through your onboarding journey. The onboarding manager will provide end-to-end assistance, from sign-up and KYC document submission to verification and account activation. Know more about [Assisted Onboarding](/docs/payments/set-up#assisted-onboarding). ## Set Up a Razorpay Account and Complete KYC To set up a Razorpay Account, go to the [Razorpay website](https://razorpay.com/) and click **Sign Up**. Follow these steps for a smooth sign up process: > [accordion] Set Up Account > > Provide your contact details to get started: > > 1. Enter an **email address or 10-digit phone number**. > > ![Enter phone number or email address](https://razorpay.com/docs/build/browser/assets/images/onboarding-sign-up-enter-email-phone.jpg) > 2. Create a **password**. Ensure that the criteria is fulfilled. > 3. **Enter the OTP** sent to your email address or phone number. Click **Verify**. > If you did not receive the OTP, click **Resend OTP**. > 4. Click **Submit OTP**. > > ![Submit OTP](https://razorpay.com/docs/build/browser/assets/images/onboarding-sign-up-enter-otp.jpg) > 5. Select **business type**. Click **Proceed**. > [accordion] Basic Details > > Provide your basic details to set up your account. > > 1. Enter your **Full name**. This name must be of the person who will be completing the onboarding. Click **Continue**. > > ![Enter name](https://razorpay.com/docs/build/browser/assets/images/onboarding-basic-details-enter-name.jpg) > 2. Enter your **Mobile number**. Click **Continue**. > > ![Enter phone number](https://razorpay.com/docs/build/browser/assets/images/onboarding-basic-details-enter-number.jpg) > 3. **Enter the OTP** sent to your mobile number. Click **Continue**. > > ![Enter otp](https://razorpay.com/docs/build/browser/assets/images/onboarding-basic-details-enter-otp.jpg) > 4. **Select the platforms** where you would like to accept payments. Click **Continue**. > > ![Select platforms](https://razorpay.com/docs/build/browser/assets/images/onboarding-basic-details-select-platforms.jpg) > 5. Add **website or application links**. Click **Continue**. If you wish to add these later, click **Add later**. > > ![Enter website or app links](https://razorpay.com/docs/build/browser/assets/images/onboarding-basic-details-add-web-app-links.jpg) > 6. Add the **Social media links** that are available. Click **Continue**. If you wish to add these later, click **Add later**. > > ![Enter social media links](https://razorpay.com/docs/build/browser/assets/images/onboarding-basic-details-add-social-links.jpg) > 7. **Review** the basic details you entered. Click **Continue** after verifying the information. > > ![Review basic details](https://razorpay.com/docs/build/browser/assets/images/onboarding-basic-details-review.jpg) > [accordion] Business Details > > Provide your business details. > > 1. Select your business type: **Registered or Unregistered**. Click **Continue**. > > ![Select business type](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-biz-type.jpg) > > 2. Select your **business sub-type** based on the available options. Click **Continue**. > > ![Select business subtype](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-biz-subtype.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > Additional PAN may be required based on your business type: > > > > * **Individuals:** Business Owner's PAN > > * **Registered Business:** Business PAN (Company PAN) and Authorised Signatory PAN (Director/Partner) > > * **Proprietorship:** Authorised Signatory/Proprietor's PAN > > > [accordion] If you are an unregistered Individual business: > > > > 1. Enter your **personal PAN number**. Click **Continue**. > > > > ![Enter personal PAN number](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-enter-pan.jpg) > > 2. Razorpay will automatically capture your details based on your PAN number. Review your PAN. > > > > If the details are correct, click **Yes, confirm**. Or, click **Edit PAN**. > > > > ![Review PAN](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-review-pan.jpg) > > 3. Select your **brand name**. If the available options do not match your brand name, click **Other** and enter your brand name. Click **Continue**. > > > > ![Review PAN](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-brand-name.jpg) > > 4. **Review** the business details you entered. Click **Continue** after verifying the information. > > > > ![Review business details - Unregistered](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-review-unregd.jpg) > > > [accordion] If you are a registered business: > > > > 1. Enter the **full name** of your business name. Ensure you do not use any special characters. Click **Continue**. > > > > ![Enter business full name](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-enter-business-name.jpg) > > > > 2. Enter your **Personal PAN number**. > > > > 3. Select the **Date of Incorporation**. > > > > ![Enter business full name](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-pan-doi.jpg) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Date of incorporation can be found on your business GST Document or UDYAM (MSME) certificate. > > > > 4. Razorpay will automatically capture your details based on your PAN number. Review your PAN. > > > > If the details are correct, click **Yes, confirm**. Or, click **Edit PAN**. > > > > ![Review PAN](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-review-pan.jpg) > > 5. Select your **brand name**. If the available options do not match your brand name, click **Other** and enter your brand name. Click **Continue**. > > > > ![Review PAN](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-brand-name.jpg) > > 6. **Review** the business details you entered. Click **Continue** after verifying the information. > > > > ![Review business details - Registered](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-details-review-regd.jpg) > [accordion] Business Documents (For Registered Businesses) > > Provide your business documents to help us verify your business identity. > > You must provide **at least 1 required document and 1 additional document**. Below is the list of accepted required and additional documents: > > **Required documents (Any 1)**: > > * GST certificate > * MSME (UDYAM) Certificate > > **Additional (Any 1)**: > > * Shop Establishment Certificate (SEC) > > * Import Export Certificate (IEC) > > * Mobile Postpaid Bill > > 1. Enter your **GSTIN number**. If you have a GSTIN, you must **upload your GST certificate**. If you do not, select the **I don't have a GSTIN** option. Click **Continue**. > > ![Enter GSTIN](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-documents-gstin.jpg) > 2. Enter your **UDYAM MSME number** and **upload the MSME certificate**. Click **Continue**. > > ![Enter UDYAM MSME details](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-documents-udyam-msme.jpg) > 3. Select an **Additional document** and upload it. Click **Continue**. > > ![Upload additional documents](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-documents-additional-docs.jpg) > 4. **Review** the business documents you provided. Click **Continue** after verifying the information. > > ![Review business documents](https://razorpay.com/docs/build/browser/assets/images/onboarding-business-documents-review.jpg) > [accordion] KYC Details > > Complete your KYC to start accepting payments using Razorpay. > > > [accordion] For unregistered Individual businesses: > > > > 1. Enter your **mobile number** linked to your CKYC to avoid performing a video KYC. Click **Generate OTP**. > > > > ![Review business details - Unregistered](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-ckyc-autofill.jpg) > > > > 2. Enter the OTP. Click **Verify OTP**. > > > > If your details are successfully fetched, the screen appears as shown: > > > > ![Fetched CKYC details](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-ckyc-details-fetched.jpg) > > > > If your CKYC verification fails, follow the below steps to share your Aadhar details using **Digilocker** or **upload manually**. > > > > ![Add identity proof](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-add-identity-proof.jpg) > > > > > [accordion] Submit id proof using Digilocker > > > > > > 1. Select **Share Aadhar details via Digilocker**. Ensure that your mobile number is linked with your Aadhar. Click **Continue**. > > > 2. To accept Digilocker's Aadhar terms and conditions, click **Continue to digilocker**. > > > > > > ![Add identity proof](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-digilocker-terms.jpg) > > > 3. Enter your **Aadhar number**. Click **Next**. > > > 4. Enter the captcha text. > > > > > > ![Add](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-digilocker-enter-aadhar.jpg) > > > 5. **Enter the OTP** sent to your linked mobile number. Click **Continue**. > > > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-digilocker-enter-otp.jpg) > > > 6. Enter your **6-digit Digilocker pin**. > > > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-digilocker-enter-pin.jpg) > > > 7. **Provide consent** to share any issued document for KYC purpose. Click **Allow**. > > > > > > You will now be redirected back to Razorpay's onboarding page. Once the verification is successful, you can continue with the remaining steps. > > > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-digilocker-select-doc.jpg) > > > > > [accordion] Upload id proof manually > > > > > > 1. Select **Upload Identity Proof Manually**. Click **Continue**. > > > 2. Select a **document to upload manually**. Click **Continue**: > > > * Aadhar Card > > > * Voter id > > > * Passport > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-manual-select-doc.jpg) > > > > 3. Select and confirm your **business category and sub-category**. Click **Continue**. > > > > ![Confirm business category](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-confirm-category.jpg) > > > > 4. Select your **Average delivery time after receiving an order**. You will be asked for this information only if your CKYC failed. > > > > ![Confirm business category](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-avg-del-time.jpg) > > > > 5. Add your **Bank details**. > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-bank-details.jpg) > > > > Razorpay will now deposit โ‚น1 to this account to verify. If the bank verification fails you must **upload a proof of the bank account**. Choose from the given options: > > > > * Video of cancelled cheque > > * Letter/email from Branch Manager confirming account > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-bank-details-proof.jpg) > > > > 6. You are now ready to submit your application. Click **Submit Application**. > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-submit-application.jpg) > > > > You can unlock international payments by clicking **Unlock International**. Know more about [International Payments](/docs/payments/international-payments). Or you can proceed to explore your dashboard by clicking **Explore Test Dashboard**. > > > > Once your details are verified by our team, **Live mode** will be enabled. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > During the review process, we may reach out to you for clarifications. You can address these queries on the Dashboard. > > > [accordion] For registered businesses: > > > > 1. Select how you want us to collect your KYC details. You can: > > > > * **Fetch details with PAN & OTP** > > * **Share Aadhaar details via Digilocker** > > * **Upload documents manually** > > > > If your details are successfully fetched, the screen appears as shown: > > > > ![Fetched CKYC details](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-ckyc-details-fetched.jpg) > > > > If your CKYC verification fails, follow the below steps to share your Aadhar details using **Digilocker** or **upload manually**. > > > > ![Add identity proof](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-add-identity-proof.jpg) > > > > > [accordion] Submit id proof using Digilocker > > > > > > 1. Select **Share Aadhar details via Digilocker**. Ensure that your mobile number is linked with your Aadhar. Click **Continue**. > > > 2. To accept Digilocker's Aadhar terms and conditions, click **Continue to digilocker**. > > > > > > ![Add identity proof](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-digilocker-terms.jpg) > > > 3. Enter your **Aadhar number**. Click **Next**. > > > 4. Enter the captcha text. > > > > > > ![Add](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-digilocker-enter-aadhar.jpg) > > > 5. **Enter the OTP** sent to your linked mobile number. Click **Continue**. > > > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-digilocker-enter-otp.jpg) > > > 6. Enter your **6-digit Digilocker pin**. > > > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-digilocker-enter-pin.jpg) > > > 7. **Provide consent** to share any issued document for KYC purpose. Click **Allow**. > > > > > > You will now be redirected back to Razorpay's onboarding page. Once the verification is successful, you can continue with the remaining steps. > > > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-digilocker-select-doc.jpg) > > > > > [accordion] Upload id proof manually > > > > > > 1. Select **Upload Identity Proof Manually**. Click **Continue**. > > > 2. Select a **document to upload manually**. Click **Continue**: > > > * Aadhar Card > > > * Voter id > > > * Passport > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-manual-select-doc.jpg) > > > > 2. Enter the **Authorised Signatory's name**. Click **Continue**. > > > > ![Enter authorised signatory name](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-enter-name.jpg) > > > > 3. Select and confirm your **business category and sub-category**. Click **Continue**. > > > > ![Confirm business category](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-confirm-category.jpg) > > > > 4. Add the **Registered Business Address**. You will be asked for this information only if your CKYC failed. > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-regd-business-address.jpg) > > > > 5. Add your **Bank details**. > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-bank-details.jpg) > > > > Razorpay will now deposit โ‚น1 to this account to verify. If the verification fails you must **upload a proof of the bank account**. Choose from the given options: > > > > * Video of cancelled cheque > > * Letter/email from Branch Manager confirming account > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-kyc-details-bank-details-proof.jpg) > > > > 6. You are now ready to submit your application. Click **Submit Application**. > > > > ![Add Aadhar](https://razorpay.com/docs/build/browser/assets/images/onboarding-submit-application.jpg) > > > > You can unlock international payments by clicking **Unlock International**. Know more about [International Payments](/docs/payments/international-payments). Or you can proceed to explore your dashboard by clicking **Explore Test Dashboard**. > > > > Once your details are verified by our team, **Live mode** will be enabled. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > During the review process, we may reach out to you for clarifications. You can address these queries on the Dashboard. > [accordion] Video KYC (For Individual Unregistered Businesses If CKYC Fails) > > 1. If your CKYC failed, you must proceed with the Video KYC process. Click **Start Video KYC**. > > ![Start Video KYC](https://razorpay.com/docs/build/browser/assets/images/onboarding-video-kyc-start.jpg) > > 2. Confirm if you are the authorised signatory proceeding with the video KYC process. Click **Continue**. > > ![Start Video KYC](https://razorpay.com/docs/build/browser/assets/images/onboarding-video-kyc-confirm-auth-sign.jpg) > > 3. If you are not the authorised signatory, you can share the VKYC shareable link with them. > > ![Start Video KYC](https://razorpay.com/docs/build/browser/assets/images/onboarding-video-kyc-share-link.jpg) > > 4. If you are the authorised signatory, review the instructions and click **Start**. > > > [!NOTE] > > > > **Handy Tips** > > > > Ensure you have physical copies of your PAN and Aadhaar card ready. > > 5. Click **Accept & Proceed** to accept the terms and conditions. > > ![Accept Video KYC Terms](https://razorpay.com/docs/build/browser/assets/images/onboarding-video-kyc-accept-proceed.jpg) > > 6. Click **Proceed** to start checking for camera, microphone and location. > > > [!NOTE] > > > > **Handy Tips** > > > > Ensure no Proxy/VPN/TOR is active on your device. > > 7. A Razorpay agent will join and verify your documents on video. > > You have successfully completed your onboarding process. > [accordion] After Your Account is Created > > * In some cases, additional details may be required once your account is created. > * You can accept payments and make payouts using a [range of products](/docs/payments). > * You can access the **Test** mode on the Dashboard to test and experience the products offered by Razorpay. Test mode does not involve actual money transactions. > * You have to generate separate API keys for Live and Test modes. Know more about [API Keys](/docs/api/authentication#generate-api-keys). > [accordion] Successful Activation > > Your **KYC Verification** is complete. You can:\\ > > * Accept payments without any amount limits. > * Razorpay will automatically settle payments in your bank account as per your [settlement cycle](/docs/payments/settlements#settlement-cycle). > * Request for [other payment methods](/docs/payments/payment-methods#view-payment-methods) and apply for [international payments](/docs/payments/international-payments/international-debit-credit-cards#enable-payments-from-international-debit-and-credit-cards). ## CKYC Verification vs. Traditional Verification Complete KYC to start accepting payments with Razorpay. The new Master KYC-compliant process offers two verification paths: > [accordion] CKYC Verification > > * Instant verification using existing CKYC records > > * No document uploads needed > > * No Video KYC required > > > [accordion] How CKYC Works > > > > 1. **Enter PAN Details** > > * **For registered businesses**: Business PAN and Date of Incorporation > > * **For individuals**: Personal PAN > > 2. **CKYC Record Check**: > > * Razorpay checks if CKYC record exists for your PAN. > > 3. **Consent via OTP**: > > * If CKYC record is found, you must enter the mobile number linked to the CKYC. > > * Enter the OTP sent by the CKYC system to provide consent. > > 4. **Instant Verification** > > * Documents auto-fetched from CKYC > > * Identity verified instantly > > * Proceed to additional requirements (if any) > > 5. **CKYC Consent Process** > > * **For Registered Businesses**: Your CKYC record is looked up using **Business PAN and Date of Incorporation**. > > * **Date of Incorporation Sources**: > > * Certificate of Incorporation > > * GST Certificate > > * Udyam Registration > > * Business PAN document > > * **For Individuals/Proprietorships**: Your CKYC record is looked up using **Personal PAN and Mobile OTP verification**. > [accordion] Traditional Verification + Video KYC > > * Required when CKYC data unavailable > * Upload required documents > * Complete Video KYC with Authorised Signatory > [!NOTE] > > **Handy Tips** > > You can provide information in any order you prefer during KYC. Review and modify details from account creation if needed. Check the [complete list of KYC documents](/docs/payments/business-types-kyc-documents) required for your business type. > [!NOTE] > > **Handy Tips** > > * During KYC verification process, you can provide the required information in any order you prefer. > * You should review the details submitted during account creation and make changes if required. ## Account States The status of your Dashboard account after signing up and submitting your KYC details might be in one of the following states: | Account Status | Description | | - | - | | `under_review` | When you have successfully submitted the KYC requirements and our team is reviewing the request. | | `needs_clarification` | When you are asked to provide clarifications related to the KYC details submitted. | | `activated` | When your KYC is approved and your account is ready to accept payments and settlements. | | `suspended` | When your account is disabled due to risk and compliance reasons. Contact our [support team](https://razorpay.com/support/#request) for a resolution. | | `rejected` | When the KYC details submitted by you are rejected. You can try creating a new account with correct KYC details. | ## Set Up Multiple Accounts As a business owner, you may need different accounts for different kinds of work. However, it is challenging to obtain a new mobile number each time you want to set up an account. With Multi-Account, you can set up different accounts using the same mobile number and email id as your existing account. #### Example Assume Gaurav is an Indian business owner who has an account with Razorpay using Mobile Number: `9000090000` and Email Id: `gaurav.kumar@example.com`. Gaurav uses **Multi-Account** feature to set up another account. Razorpay will use the same number and email id as shown above to set up the other account. This will work in a similar way in your respective country. > [accordion] Set up Another Account Using Website > > 1. Go to the [website](https://razorpay.com/) and click **Sign Up**. > 2. Enter your mobile number or email id and click **Continue**. > 3. Enter the OTP sent to your registered mobile number and click **Verify**. > 4. All the accounts linked to the entered number/email is are displayed. Click **Create a new account**. > > ![Create another account](https://razorpay.com/docs/build/browser/assets/images/create-multi-account.jpg) > 5. Select the country and click **Verify**. > 6. Your existing number and email id is already registered with the new account. Enter your name and continue with [Sign Up](/docs/payments/set-up#set-up-account) and [KYC](/docs/payments/set-up#kyc-details). > [accordion] Set Up Another Account Using Dashboard > > 1. Log in to the Dashboard. > 2. Click the profile icon โ†’ **Switch Merchant**. > 3. Click **Create A New Account**. > > ![Create multi account](https://razorpay.com/docs/build/browser/assets/images/create-new-account-switch-merchant.jpg) > 4. Select the country and click **Verify**. > 5. Your existing number and email id is already registered with the new account. Enter your name and continue with [Sign Up](/docs/payments/set-up#set-up-account) and [KYC](/docs/payments/set-up#kyc-details). > [!WARNING] > > **Watch Out!** > > If your mobile number is already linked to multiple user accounts with different email ids, you cannot use the **Multi-Account** feature to set up multiple accounts using that number. In this case, use another mobile number or sign up using your email id. > > Assume *Gaurav* has 2 accounts with Razorpay. > > Assume Saurav is an Indian business owner and has 2 accounts with Razorpay. > > * Account 1: Mobile Number: `9123456789` | Email Id: `saurav.kumar@example.com` > * Account 2: Mobile Number: `9123456789` | Email Id: `saurav.kumar+99@example.com` > > If Saurav tries to use the **Multi-Account** feature to make another account, Razorpay will block the creation of a new account. This will work similarly in your respective country. ## Assisted Onboarding > [accordion] Why Hire an Onboarding Manager > > * **Dedicated onboarding manager**: Receive personalised support with a dedicated onboarding manager assigned to you within **1 hour**. > * **Swift account activation**: Get your account activated within 8 business hours and start accepting payments via Razorpay. > * **End-to-end assistance**: Receive comprehensive support until you complete your first transaction, addressing any queries throughout the process. > [accordion] How to Hire an Onboarding Manager > > 1. On the [Razorpay sign-up page](https://easy.razorpay.com/), sign up using your mobile number. > 2. Click **Know more** under **Hire an onboarding manager for faster account set up!**. Complete the payment. > > ![Hire a Razorpay onboarding manager.](https://razorpay.com/docs/build/browser/assets/images/hire-onboarding-manager.jpg) > > An onboarding manager will be assigned to you within 1 hour to help you set up your account. ### Related Information * [KYC Documents](/docs/payments/business-types-kyc-documents) * [Frequently Asked Questions (FAQs)](/docs/payments/faqs) # Solutions by Industry Source: https://razorpay.com/docs/payments/solutions Recommended Razorpay Payments products for ecommerce, BFSI and travel businesses. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Every industry collects money differently. These guides pick out the Razorpay Payments products that fit each one, and explain how they work together. > [card] [Ecommerce](/docs/payments/solutions/ecommerce) > > Accept payments, issue refunds and reconcile transactions for an online store. > [card] [Banking, Financial Services & Insurance](/docs/payments/solutions/bfsi) > > Collect premiums and repayments with the security and real-time analytics BFSI requires. > [card] [Travel](/docs/payments/solutions/travel) > > Take bookings and handle cancellations for a travel business. # Banking, Financial Services & Insurance Source: https://razorpay.com/docs/payments/solutions/bfsi Explore Razorpay's BFSI solutions to streamline transactions and enhance security with seamless integration and real-time analytics for superior service and growth. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Razorpay provides comprehensive payment solutions that solve unique challenges across the lending, wealth management and insurance sectors. Following is the use case and recommended products. ## Manage Collections Payment failures in financial services can result in significant revenue loss, with over 50% of customers dropping off if payments fail on the first attempt. Our suite of intelligent features is built to address this and provide best-in-class success rates. Following are the recommended products: > [tab] Payment Gateway > > * Integrate with a wide coverage of SDKs and plugins for popular marketplaces like Shopify, WooCommerce, and more. > > * Access 100+ payment methods including UPI, Cards (debit and credit), EMI, Netbanking, International Payments, Wallet, Pay Later, and more. > > * Quickly recoup 15% of your failed payments on the first attempt with seamless and intuitive retry. > > Know more about [Payment Gateway](/docs/payments/payment-gateway). > [tab] Payment Links > > * Share Payment Links via email, SMS, or messenger and get paid immediately. > > * Use the Razorpay WhatsApp Bot to create and share Payment Links directly from WhatsApp. > > * Recover abandoned carts by sending customers a Payment Link, encouraging them to complete their purchase. > > Know more about [Payment Links](/docs/payments/payment-links). ## Third Party Validation Third-Party Validation (TPV) of bank accounts is a mandatory requirement for businesses in the BFSI sector dealing with securities, broking and mutual funds. Following are the recommended products: > [tab] Payment Gateway with TPV > > * One-Click Retry on Razorpay Checkout. > * Methods Available: UPI, Debit Card and Netbanking. > > Know more about [Payment Gateway with TPV](/docs/payments/third-party-validation). > [tab] Payment Links with TPV > > * Share Payment Links with customers calling the call center for investing. > * Remind customers to add funds to trading accounts and notify them of low balances. > * Prevent drop-offs by sending Payment Links to resolve demat account payment issues. > > Know more about [Payment Links with TPV](/docs/api/payments/payment-links/third-party-validation). > [tab] Smart Collect with TPV > > * Create Customer Identifiers to accept large payments from your customers. > * Supports NEFT/RTGS/IMPS transactions. > > Know more about [Smart Collect with TPV](/docs/payments/smart-collect/apis). > [tab] Turbo UPI TPV > > * Achieve higher success rates with a smoother payment experience. > * Complete in-app flow with no redirections for better control over the user journey. > * Significantly reduce timeout issues as customers never leave your app. > > Know more about [Turbo UPI with TPV](/docs/payments/payment-gateway/android-integration/standard/payment-methods/integration-tpv). ## Automate Recurring Revenues Recurring revenues are core to financial services, including insurance premiums, SIPs and loan repayments. With Razorpay, you can offer easy and tailor-made subscription plans to your customers through a platform built for automation. Following are the recommended products: > [tab] E-mandate > > * Register customers for SIP payments via E-mandate/Paper NACH. > * Set up mandates for lump sum payments with first-time registration. > * Facilitate mandate migration. > > Know more about [E-mandate](/docs/payments/recurring-payments). > [tab] UPI Autopay > > * Enable users to set up periodic premium payments through their UPI apps. > * Support daily, weekly, monthly, quarterly, or yearly plans to make products or services more affordable. > * Supported by major UPI apps like AmazonPay, BHIM, PayTM, PhonePe, Google Pay, and [various banks](/docs/payments/subscriptions/supported-banks-apps#upi-autopay). > > Know more about [UPI Autopay](/docs/payments/subscriptions/faqs#upi). > [tab] Subscriptions > > * Set up E-mandates, authorising the bank to deduct loan instalments automatically from their bank accounts at predefined intervals. > * Provide flexible repayment schedules based on customer preferences and loan terms. > * Automate the reconciliation of loan repayments, provide real-time visibility into payment statuses and reduce the chances of errors in financial reporting. > > Know more about [Subscriptions](/docs/payments/subscriptions). ## End-to-End Cash Flow Management Financial companies face complex cash flows where money is collected from multiple sources and routed to various accounts - customers, investors, vendors, and service providers. Following are the recommended products: > [tab] Route > > * Split payments as per the broking index (NSE, BSE, MCX, and more). > * Distribute payments according to MF scheme bank accounts. > > Know more about [Route](/docs/payments/route). > [tab] Optimizer > > * Improve payment routing to ensure transactions go through the best available acquirer or gateway, reducing failed transactions and increasing success rates. > * Automatically send transactions to the best-performing gateway without customer input. > * Smart Router routes payments to providers with a higher probability of success. > > Know more about [Optimizer](/docs/payments/optimizer). ## Explore RazorpayX for Advanced Business Banking You can explore the RazorpayX product suite for these use cases: * Managing multiple bank accounts via [RazorpayX Dashboard](/docs/x/dashboard). * [Automated payouts](/docs/x/payouts) to bank accounts, debit cards, credit cards or prepaid cards. * Streamlined salary disbursements through [RazorpayX Payroll](/docs/payroll). # Ecommerce Source: https://razorpay.com/docs/payments/solutions/ecommerce Explore Razorpay's recommended products for the ecommerce industry, enabling easy access and management of payments, refunds, transfers, subscriptions, and more. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Manage all your payments and financial operations from a consolidated Dashboard. Create an online store, track payments, and issue refunds within minutes. Make better business decisions with real-time reporting. Following are the use cases and recommended products. ## Handle End-to-End Payments Experience the future of payments with the easiest integration, online onboarding and feature-filled checkout. Avail of the lowest industry charges. Following are the recommended products: > [tab] Payment Gateway > > * One-Click Retry on Razorpay Checkout. > * Integrate with a wide coverage of SDKs and plugins for all popular marketplaces such as Shopify, WooCommerce, Magento and more. > * Enjoy high success rates on UPI and Card payments. > * 100+ Methods Available: UPI, Cards (debit and credit), EMI, Netbanking, International Payments, Wallet, Pay Later and more. > > Know more about [Payment Gateway](/docs/payments/payment-gateway). > [tab] Magic Checkout > > * Enables seamless prepaid and COD transactions on your platform. > * Integrate with plugins for popular marketplaces such as Shopify and WooCommerce. > > Know more about [Magic Checkout](/docs/payments/magic-checkout). > [tab] Payment Links > > * Share the Payment Link via an email, SMS or messenger and get paid immediately. > * Install the Razorpay WhatsApp Bot for Payment Links and accept payments from your customers by creating and sharing Payment Links to them directly from WhatsApp. > * Recover abandoned carts by sending customers a Payment Link, encouraging them to return and complete their purchase. > > Know more about [Payment Links](/docs/payments/payment-links). > [tab] Payment Button > > * Add a pay button to your website to accept one-time and subscription payments on your website in less than 5 minutes. > * Share automated payment receipts with your customers. > > Know more about [Payment Button](/docs/payments/payment-button). ## Improve Checkout Experience and Conversion Rates Despite high traffic, ecommerce businesses have to deal with high cart abandonment rates and lower payment conversions. Razorpay offers a combination of solutions to enhance the checkout experience and conversion rates. Following are the recommended products: > [tab] Magic Checkout > > * Improve order conversions by 40% by offering a 5X Faster checkout experience > * Reduce COD RTOs by 50% by dynamically blocking the COD payment method for high RTO-risk users based on Razorpayโ€™s proprietary AI/ML model. > * Securely store customer addresses and payment information during checkout. > * Personalised checkout and payment experience and no redirections. > > Know more about [Magic Checkout](/docs/payments/magic-checkout). > [tab] Razorpay Direct for Shopify > > * Integrate credit card payment with your Shopify store directly on the checkout page. > * Collect credit card payments on your Shopify websites without any redirections to a payment gateway page and boost conversions. > > Know more about [Razorpay Direct for Shopify](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card). > [tab] Affordability Widget > > * Highlight the best offers and eligible payment methods to consumers upfront and reduce drop-offs. > * Encourage more purchases with higher spending power. > * Boost average order values by enabling customers to unlock bigger discounts and calculate additional savings with the Discount Whisperer feature. > * Help customers check their eligibility and complete the purchase directly from the widget itself, eliminating friction. > * Available on Shopify, WooCommerce, Android app and custom-built websites. > > Know more about [Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget). > [tab] Razorpay Trusted Business > > * Showcase our Trusted Badge on checkout and embed the Razorpay Trusted Business Widget on your website to instil credibility amongst site visitors. > * Reduce the share of COD orders and increase the share of prepaid orders by being perceived as a trusted business. > * Boost customer confidence about your business's legitimacy and minimise drop-offs. > * Available on Shopify, WooCommerce and custom-built websites. > > Know more about [Razorpay Trusted Business](/docs/payments/widgets/trusted-business). > [tab] Offers > > * Create attractive payment offers on your website, increasing sales. > * Provide interest-free EMI options with No Cost EMI Offers. > * With the help of Low Cost EMI Offers, provide upfront discounts by splitting the interest cost with your customers. > * Incremental offers lead to higher average order value, thereby boosting sales. > > Know more about [Offers](/docs/payments/offers). ## Automate Recurring Revenues Recurring revenues are core to financial services, including insurance premiums, SIPs, and loan repayments. With Razorpay, you can offer easy and tailor-made subscription plans to your customers through a platform built for automation. We recommend: > [tab] Subscriptions > > * Offer customers various Subscription plans, such as monthly, quarterly, and yearly options. > * Securely store card information, eliminating the need for customers to enter card details every time they make a recurring payment. > * Automate the entire payment process, charging customers' cards at predefined intervals based on their chosen Subscription frequency. > * Provide discounts or cashback to increase average order value, thereby boosting sales. > > Know more about [Subscriptions](/docs/payments/subscriptions). ## Go Global Businesses tend to find accepting international payments quite cumbersome due to issues such as currency conversion, FIRS collection from banks and the constant threat of credit card fraud. Following are the recommended products: > [tab] Accept International Payments > > * Accept international payments in nearly 100 foreign currencies, with real-time, automatic currency conversion > * Supported payment methods: Cards, PayPal, Trustly, Poli, Sofort and Giropay. > > Know more about [International Payments](/docs/payments/international-payments). > [tab] Automated FIRS > > * Generate FIRS automatically from our Dashboard. > * Free of cost, generated with a single click. There is no need to visit the bank and pay the fee. > > Know more about [Automated FIRS](/docs/payments/international-payments/firs-automated-process). > [tab] Address Verification System > > * Confirm that the card user is the rightful owner. > * Verify the cardholderโ€™s billing address and card details. > > Know more about [Address Verification System](/docs/payments/international-payments/address-verification-system). ## Improve Customer Post-Purchase Experience Razorpay solves issues related to high RTO costs, COD transactions involving cash handling, high RTO risk, and so on. Additionally, it also helps build loyalty and retention with increasing competition. Given below are the recommended products: > [tab] Magic Checkout > > * Use our RTO Prediction capabilities to identify risk and dynamically disable the COD option, thereby reducing RTO. > * Convert COD orders to prepaid by offering incentives to customers via Whatsapp. > > Know more about [Magic Checkout](/docs/payments/magic-checkout). ## Explore RazorpayX for Advanced Business Banking * Make [instant Payouts](/docs/x/payouts) individually or in bulk via IMPS, NEFT, RTGS, UPI or Bank Transfer. * Share [Payout Links](/docs/x/payout-links) with customers and reduce wait time for payouts. * Automate vendor payouts with [RazorpayX Vendor Payments](/docs/x/vendor-payments). * Ensure tax compliance with [RazorpayX Tax Payments](/docs/x/tax-payments). # Travel Source: https://razorpay.com/docs/payments/solutions/travel Explore Razorpay's recommended products for the travel industry, ensuring secure and efficient transactions for seamless booking experiences. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Manage all your travel-related payments and financial operations from a consolidated Dashboard. Create an online booking platform, track payments, and issue refunds within minutes. Make better business decisions with real-time reporting. Following are the use cases and recommended products. ## Simplify Payment Processes Efficient payment processes are vital in travel. They ensure seamless transactions across platforms and methods, enhancing booking efficiency for travellers and operators alike. Following are the recommended products: > [tab] Payment Gateway > > * One Click Retry on Razorpay Checkout. > * Integrate with a wide coverage of SDKs and plugins for all popular marketplaces such as Shopify, Woocommerce, Magento and more. > * Enjoy high success rates on UPI and Card payments. > * 100+ Methods Available: UPI, Cards (debit and credit), EMI, Netbanking, International Payments, Wallet, Pay Later and more. > > Know more about [Payment Gateway](/docs/payments/payment-gateway). > [tab] Turbo UPI > > * Simplifies the booking process, minimising the effort required from customers. > * Ensures safe transactions, protecting user data and building trust. > * Easily integrates with existing travel booking systems, reducing implementation complexity. > > Know more about [Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi). ## Streamline Customer Payments Streamlined payment solutions optimise booking processes by offering convenient payment methods and quick transaction confirmations, improving overall customer satisfaction in the travel sector. Following are the recommended products: > [tab] Payment Links > > * Share Payment Links via email, SMS, or messenger and get paid immediately. > * Use the Razorpay WhatsApp Bot to create and share Payment Links directly from WhatsApp. > * Recover abandoned carts by sending customers a Payment Link, encouraging them to complete their purchase. > > Know more about [Payment Links](/docs/payments/payment-links). > [tab] Smart Collect > > * Generate Customer Identifiers in real time via the Dashboard and APIs. > * Enable customers to make payments via NEFT, RTGS and IMPS. > * Eliminate the difficulty of manual reconciliation and save time and cost. > > Know more about [Smart Collect](/docs/payments/smart-collect). ## Enhance Customer Experience Enhancing customer experience in travel involves providing flexible payment options and personalised services that cater to diverse traveller preferences, ultimately boosting satisfaction and loyalty. Following are the recommended products: > [tab] Affordability Widget > > * Offer a pre-eligibility check on emiยฒ instruments, allowing customers to verify their credit eligibility directly from the widget. > * Provide a variety of payment methods tailored to your customer's preferences, including EMIs and Pay Later options. > * Use the Affordability Widget to raise customers' awareness of emiยฒ-based payment options and offers on your website or app before they reach checkout. > > Know more about [Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget). > [tab] Offers > > * Create attractive payment offers on your website, increasing sales. > * Provide interest-free EMI options with No Cost EMI Offers. > * With the help of Low Cost EMI Offers, provide upfront discounts by splitting the interest cost with your customers. > * Incremental offers lead to higher average order value, thereby boosting sales. > > Know more about [Offers](/docs/payments/offers). > [tab] Razorpay Trusted Business > > * Showcase our Trusted Badge on checkout and embed the Razorpay Trusted Business Widget on your website to instil credibility amongst site visitors. > * Reduce the share of COD orders and increase the share of prepaid orders by being perceived as a trusted business. > * Boost customer confidence about your business's legitimacy and minimise drop-offs. > * Available on Shopify, WooCommerce and custom-built websites. > > Know more about [Razorpay Trusted Business](/docs/payments/widgets/trusted-business). > [tab] Turbo UPI > > * Simplifies the payment process, making it faster and more convenient for travellers. > * Ensures high security, building trust and confidence in the booking platform. > * Provides real-time payment confirmation, ensuring smooth travel planning. > > Know more about [Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi). ## Manage Transactions Efficiently Efficient transaction management, including quick refunds and automated billing, ensures smooth operations and builds trust among travellers by offering reliable service and support. Following are the recommended products: > [tab] Instant Refunds > > * Refund the amount to your customer almost instantly using Instant refunds. > * We support netbanking and UPI for Instant refunds. Refunds are sent back to the original payment method used in making the payment. > > Know more about [Instant Refunds](/docs/payments/refunds/instant). > [tab] Subscriptions > > * Offer customers various Subscription plans, such as monthly, quarterly, and yearly options. > * Securely store card information, eliminating the need for customers to enter card details every time they make a recurring payment. > * Automate the entire payment process, charging customers' cards at predefined intervals based on their chosen Subscription frequency. > * Provide discounts or cashback to increase average order value, thereby boosting sales. > > Know more about [Subscriptions](/docs/payments/subscriptions). ## Go Global Businesses tend to find accepting international payments quite cumbersome due to issues such as currency conversion, FIRS collection from banks and the constant threat of credit card fraud. Following are the recommended products: > [tab] Accept International Payments > > * Accept international payments in nearly 100 foreign currencies, with real-time, automatic currency conversion > * Supported payment methods: Cards, PayPal, Trustly, Poli, Sofort and Giropay. > > Know more about [International Payments](/docs/payments/international-payments). > [tab] Automated FIRS > > * Generate FIRS automatically from our Dashboard. > * Free of cost, generated with a single click. There is no need to visit the bank and pay the fee. > > Know more about [Automated FIRS](/docs/payments/international-payments/firs-automated-process). > [tab] Address Verification System > > * Confirm that the card user is the rightful owner. > * Verify the cardholderโ€™s billing address and card details. > > Know more about [Address Verification System](/docs/payments/international-payments/address-verification-system). ## Explore RazorpayX for Advanced Business Banking * Make [instant Payouts](/docs/x/payouts) individually or in bulk via IMPS, NEFT, RTGS, UPI or Bank Transfer. * Share [Payout Links](/docs/x/payout-links) with customers and reduce wait time for payouts. * Automate vendor payouts with [RazorpayX Vendor Payments](/docs/x/vendor-payments). * Ensure tax compliance with [RazorpayX Tax Payments](/docs/x/tax-payments). # About Disputes Source: https://razorpay.com/docs/payments/disputes Create Disputes and Chargebacks from the Razorpay Dashboard. Check the notifications and how disputes are handled for international payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India A dispute is a situation where a customer or the issuing bank questions the validity of payments. It may arise due to unauthorised charges, failure to deliver the promised merchandise or excessive charges levied by the business. ## Dispute Phases A dispute can be in any of the following phases: | Phase | Description | | - | - | | **Fraud** | A dispute is raised by the bank when it suspects a transaction to be fraudulent based on the risk analysis. | | **Retrieval** | A request is initiated by the customer with their issuer bank for additional information about a transaction. This is essentially a "soft" chargeback. | | **Chargeback** | A refund claim initiated by the customers with their issuer banks. In such cases, the bank starts an official inquiry. | | **Pre-Arbitration** | A chargeback that you have won and is again challenged by the customer for the second time. | | **Arbitration** | A chargeback that you have won and is rechallenged for the third time by the customer, and the card networks directly get involved. These disputes are usually costly. | > [!NOTE] > > **Handy Tips** > > The pre-arbitration and arbitration dispute phases are usually long-drawn, complicated, and challenging. It is advised to take remedial action during the retrievals and chargeback phases to avoid complications. ## Dispute States A dispute can have any of the following statuses (in the Razorpay system). ![Dispute States](https://razorpay.com/docs/build/browser/assets/images/dispute-status.jpg) | Status | Description | | - | - | | **Open** | Indicates that the dispute has been created. | | **Under Review** | Indicates that the issuing bank has reviewed the dispute. | | **Won** | Indicates that the bank has accepted the remedial documents, and you have won the chargeback. | | **Lost** | Indicates that the bank did not accept the remedial documents and you have lost the chargeback. | | **Closed** | Indicates the state when a fraudulent transaction is closed after you provide details of the transaction or make a refund to the customer. This is seen in fraudulent transactions only. | ## Disputes Process Flow Following is the process flow for disputes: 1. A dispute can be initiated in any of the following ways: 1. **Initiated by the issuing bank**: The issuing bank suspects a fraudulent transaction and asks for your justification. 2. **Initiated by the customer**: The customer claims that the transaction was unauthorised and raises it with the issuing bank. 2. You will be [notified about the dispute.](/docs/payments/disputes#notifications) * **Accept** the dispute. The customer is refunded. In the case of fraud, you must refund the amount. In other cases, Razorpay will auto-refund the amount. * [Contest the dispute by submitting evidence](/docs/payments/disputes/submit-evidence) to prove that the transaction was fair. * If you contest, the documents are sent to the customerโ€™s bank. The bank reviews the case and provides a verdict. * If you lose the dispute, the amount would be deducted from your account and is sent to the customer. ## Notifications Notifications are sent when disputes are created. These notifications are in the form of: * **Emails**\ You will receive an email notification when a dispute is created. The email contains details of the transaction, amount and cause of dispute. * **Webhooks**\ You can [subscribe to Webhook events](/docs/webhooks/disputes) to receive alerts whenever a dispute is created or there is a change in status. > [!NOTE] > > **Disputes in International Payments** > > For a dispute raised for international payment, the amount deducted from your account will be based on the day's currency conversion rate when the dispute was created. The currency conversion rate is dependent on the rate charged by processing banks. This conversion rate may vary from that on the day when the payment was created. ## Dashboard Actions You can perform the following actions using the Dashboard: * [View disputes](/docs/payments/disputes/dashboard#view-disputes) * [Accept disputes](/docs/payments/disputes/dashboard#accept-disputes) * [Contest disputes and submit evidence](/docs/payments/disputes/dashboard#contest-disputes) * [Subscribe to Webhook Events related to disputes](/docs/webhooks/disputes) ### Related Information * [Submit Evidence](/docs/payments/disputes/submit-evidence) * [View Disputes](/docs/payments/disputes/dashboard#view-disputes) * [Disputes - Dashboard Actions](/docs/payments/disputes/dashboard) * [Dispute FAQs](/docs/payments/disputes/faqs) * [Dispute APIs](/docs/payments/disputes/apis) * [Contact Support](https://razorpay.com/support/#request) for additional help with disputes. # Disputes APIs Source: https://razorpay.com/docs/payments/disputes/apis List of Dispute APIs to perform actions like viewing, accepting and contesting Disputes. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can use the Dispute APIs to view all disputes or view a dispute by its id. You can also perform these actions from the Dashboard. ## List of Disputes APIs The table below lists the various Disputes APIs and gives a brief description of each API: | API | Description | | - | - | | [View all disputes](/docs/api/disputes/fetch-all) | API to fetch all disputes. | | [View a dispute by dispute id](/docs/api/disputes/fetch) | API to view dispute details by providing the dispute id. | | [Accept a dispute](/docs/api/disputes/accept) | API to accept a dispute. | | [Contest a dispute](/docs/api/disputes/contest) | API to contest a dispute. | ### Related Information * [About Disputes](/docs/payments/disputes) * [Disputes - Dashboard Actions](/docs/payments/disputes/dashboard) # Chargeback Fees & Penalties Source: https://razorpay.com/docs/payments/disputes/chargeback-fees-and-penalties Understand the turnaround time for each chargeback phase, the fees and penalties charged by card networks, and how Deduct at Onset (DAO) works. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Understand the turnaround time for each chargeback phase, the fees and penalties levied by card networks at each stage, and how Razorpay handles the disputed amount while a case is being resolved. ## Chargeback Phases and Turnaround Time (TAT) Each chargeback phase has a fixed window within which you must respond with your evidence. Missing this window results in an automatic loss of the chargeback, regardless of the merits of your case. | Phase | Turnaround Time | | - | - | | **Chargeback** | T+3 business days | | **Pre-Arbitration** | T+2 business days | | **Arbitration** | T+1 business day | > [!NOTE] > > **Handy Tips** > > Pre-arbitration and arbitration are long-drawn, complex, and costly stages. Responding with complete evidence at the first chargeback stage is the most effective way to avoid escalation. ## Fees and Penalties by Network If a chargeback escalates beyond the first stage, the card network levies additional fees, which are passed on to you. These fees apply regardless of the final outcome of the case. | Dispute Stage | Mastercard | Visa | RuPay | UPI | | - | - | - | - | - | | **Chargeback** | Nil | Nil | Nil | Nil | | **Pre-Arbitration** | USD 15.00 | USD 0.75 | Nil | Nil | | **Arbitration** | USD 675.00 | USD 600.00 | INR 3,000.00 | Arbitration acceptance/NRP fee of INR 500 + GST, and PRD fee of INR 3,000 + GST per arbitration | **Note:** Visa's arbitration penalty fee was revised from USD 500 to USD 600, effective October 1, 2024. If the arbitration is ruled in the cardholder's favour, the arbitration fee โ€” in addition to the disputed transaction amount โ€” is borne by you. ## Deduct at Onset (DAO) When a dispute is raised, Razorpay deducts the disputed amount, along with any applicable fees, from your account balance at the outset โ€” before the case is resolved. This is standard practice across payment gateways and ensures sufficient funds are available to cover the liability if the dispute is decided against you, in line with network and regulatory requirements. If the dispute is resolved in your favour, the withheld amount is credited back to your account. ## What Happens After a Decision ### If you win the dispute Once you submit your evidence, Razorpay forwards it to the acquiring bank, which passes it on to the issuing bank and card network for review. If the case is decided in your favour, the amount debited earlier is credited back to your account. Since this involves multiple stakeholders, the reversal can take **up to 30 days** from the date your evidence was submitted. ### If you accept or lose the dispute If you accept a dispute โ€” or lose it after contesting โ€” Razorpay notifies the issuing bank of the outcome via the acquiring bank. The issuing bank and card network then determine the refund amount and timeline for the customer. Razorpay does not have visibility or control over the exact timing of the refund reaching the customer's payment instrument; customers should be directed to their bank for refund status. ### Related Information * [About Disputes](/docs/payments/disputes) * [Chargeback Types & Prevention](/docs/payments/disputes/chargeback-types-and-prevention) * [Submit Evidence](/docs/payments/disputes/submit-evidence) * [Disputes - Dashboard Actions](/docs/payments/disputes/dashboard) * [International Chargebacks](/docs/payments/disputes/international-chargebacks) * [Dispute FAQs](/docs/payments/disputes/faqs) * [Dispute APIs](/docs/payments/disputes/apis) # Chargeback Types & Prevention Source: https://razorpay.com/docs/payments/disputes/chargeback-types-and-prevention Understand the common types of chargebacks and practical steps you can take to prevent disputes and protect your revenue. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India A chargeback occurs when a cardholder disputes a transaction with their issuing bank, and the bank reverses the payment while the case is investigated. Understanding why chargebacks happen and how to prevent them can help you reduce disputes and protect your revenue. ## Types of Chargebacks Chargebacks are generally raised for one of the following reasons: * **Fraudulent chargebacks** Raised when a transaction was made without the cardholder's knowledge or consent โ€” for example, using stolen card details or a compromised identity. * **Non-receipt chargebacks** Raised when a customer claims they never received the goods or services they paid for. * **Quality-related chargebacks** Raised when a customer is dissatisfied with the product or service received โ€” for example, if it was defective, damaged, or significantly different from what was described. > [!NOTE] > > **Handy Tips** > > A customer has a window of up to 120 days from the transaction date to raise a chargeback. This means a sale can be reversed well after it was completed, so evidence (invoices, delivery proof, communication records) should be retained accordingly. ## Why Avoiding Chargebacks Matters Beyond the immediate loss of the disputed amount, a high volume of chargebacks can have broader consequences for your business: * Card networks and acquiring banks may flag your business as high-risk, which can affect your standing with payment partners. * Banks may start holding remittances if chargeback volumes stay elevated. * In severe cases, this can lead to a suspension of your online payment acceptance. ## How to Avoid Chargebacks Most chargebacks stem from a breakdown in communication or expectations between you and your customer, rather than intentional fraud. The following practices help reduce that risk: * **Keep your return and refund policy clear and visible.** Make sure it's easy to find on your website and understood before checkout. * **Communicate proactively with customers.** Keep them updated on order status, delays, and any changes, so they're less likely to dispute a charge out of uncertainty. * **Retain proof of delivery.** Keep tracking numbers, invoices, and delivery confirmations on hand โ€” these are the first evidence you'll need if a chargeback is raised. * **Respond to customer complaints promptly.** Resolving an issue directly with the customer is almost always faster and cheaper than fighting a chargeback later. * **Verify high-risk transactions where possible.** For example, using 3D Secure authentication on card-not-present transactions reduces your exposure to fraud-related chargebacks. See [International Chargebacks](/docs/payments/disputes/international-chargebacks) for more on 3DS and non-3DS risk. ### Related Information * [About Disputes](/docs/payments/disputes) * [Submit Evidence](/docs/payments/disputes/submit-evidence) * [Chargeback Fees & Penalties](/docs/payments/disputes/chargeback-fees-and-penalties) * [International Chargebacks](/docs/payments/disputes/international-chargebacks) * [Dispute FAQs](/docs/payments/disputes/faqs) # Disputes - Dashboard Actions Source: https://razorpay.com/docs/payments/disputes/dashboard View, accept, contest Disputes and download Disputes reports from the Razorpay Dashboard. Subscribe to webhook events for realtime updates on your disputes. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can use the Dashboard to perform the following actions: * [View Disputes](#view-disputes) * [Accept Disputes](#accept-disputes) * [Contest Disputes](#contest-disputes) * [Download Disputes Report](#download-disputes-report) * [Subscribe to Webhook Events](/docs/payments/disputes/subscribe-to-webhooks) ## View Disputes Follow the steps given below to view dispute details from the Dashboard. > [accordion] To view disputes: > > 1. Log in to the Dashboard. > 2. Select **Transactions** from the left menu and click **Disputes**. > > ![select disputes](https://razorpay.com/docs/build/browser/assets/images/select-disputes.jpg) > 3. A list of all the disputes is displayed. Click **Details** to view the details of the dispute. > > ![List of disputes under dispute tab](https://razorpay.com/docs/build/browser/assets/images/listed-disputes.jpg) > > ![dispute-description](https://razorpay.com/docs/build/browser/assets/images/dispute-description.jpg) ### View Disputes Using APIs * View all the disputes raised by your customer using [Fetch All Disputes API](/docs/api/disputes/fetch-all) * View the details of a dispute by providing the dispute id using [Fetch a Dispute API](/docs/api/disputes/fetch) ## Accept Disputes In case the customer's dispute is valid, you can accept the dispute. When you accept a dispute: 1. The corresponding amount will be deducted from your Razorpay account balance. 2. The dispute's status will be changed to **lost**. > [!NOTE] > > **Handy Tips** > > You can accept only those disputes that are in `open` state and fall within the respond by date. Follow the steps given below to accept disputes from the Dashboard. > [accordion] To accept disputes: > > 1. Log in to the Dashboard. > 2. Select **Transactions** from the left menu and click **Disputes**. > 3. A list of all the disputes is displayed. Click **Details** for the required Dispute id. > 4. Click **Accept Dispute** on the right pane. > > ![dispute-description](https://razorpay.com/docs/build/browser/assets/images/accept-dispute.jpg) > > 5. Click **Yes, Accept** to confirm. The amount will be deducted from your Razorpay account balance. ### Accept Disputes Using API Accept a dispute using the [Accept a Dispute API](/docs/api/disputes/accept). ## Contest Disputes In case the goods or services have been provided to the customer, you can contest the dispute and submit the proof of deliveries, invoices or any other authorised proof of product/service delivery as evidence. Follow the steps given below to contest disputes and submit evidence from the Dashboard. > [accordion] To contest disputes: > > 1. Log in to the Dashboard. > 2. Select **Transactions** from the left menu and click **Disputes**. > > ![select disputes](https://razorpay.com/docs/build/browser/assets/images/select-disputes.jpg) > 3. A list of all disputes is displayed. Click **Details** for any dispute ID to open the right-side pane. > > ![List of disputes under dispute tab](https://razorpay.com/docs/build/browser/assets/images/listed-disputes.jpg) > 4. Click **Contest & upload evidence**. > > ![contest and upload dispute](https://razorpay.com/docs/build/browser/assets/images/disputes_contest_upload.jpg) > 5. You can choose to contest the dispute for the full payment amount or a partial amount. To contest for partial amount, click **Edit** and enter the amount you want to contest. > > ![edit amount dispute](https://razorpay.com/docs/build/browser/assets/images/disputes_edit.jpg) > 6. In the **Explanation** field, provide the reason why the dispute is invalid. > > ![add explanation for amount change](https://razorpay.com/docs/build/browser/assets/images/disputes_edit_amount.jpg) > 7. In the **Supporting Evidence** section, select the evidence type in the **Add Document** field and upload the document. You can upload multiple documents to support your claim. The supported document types are, PDF, PNG and JPG. > > ![submit evidence](https://razorpay.com/docs/build/browser/assets/images/disputes_submit_evidence.jpg) > 8. Click **Submit Evidence**. > 9. Click **Yes Contest** to confirm. > > ![confirm contest evidence](https://razorpay.com/docs/build/browser/assets/images/disputes_confirm_contest.jpg) ### Contest Disputes Using API * Contest a dispute using [Contest a Dispute API](/docs/api/disputes/contest) * Upload supporting documents using [Documents API](/docs/api/documents) ## Download Disputes Report You can download disputes as a file from the Dashboard. To download disputes report: 1. Log in to the Dashboard. 2. Select **Transactions** from the left menu and click **Disputes**. 3. A list of all the disputes is displayed. Apply the required filters for disputes and click the download icon on the right. ![filter and download disputes](https://razorpay.com/docs/build/browser/assets/images/filter-download-disputes.jpg) ### Related Information * [About Disputes](/docs/payments/disputes) * [Submit Evidence](/docs/payments/disputes/submit-evidence) * [Dispute FAQs](/docs/payments/disputes/faqs) * [Contact Support](https://razorpay.com/support/#request) for additional help with disputes. # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/disputes/faqs Find answers to frequently asked questions about Razorpay Payment Disputes. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] How do I get informed if a customer has raised a dispute? > > You will receive an email notification when a dispute is created. Additionally, you can subscribe to Webhook Events. Know more about [notifications related to disputes](/docs/payments/disputes#notifications). > [accordion] How do I contest disputes? > > You can submit evidences to contest disputes. Know more about [submitting evidence to contest disputes.](/docs/payments/disputes/submit-evidence) > [accordion] How are disputes handled for international payments? > > For a dispute raised for international payment, the amount deducted from your account will be based on the currency conversion rate of the day when the dispute was created. The currency conversion rate is dependent on the rate charged by processing banks. This conversion rate may vary from the day the payment was created. Know more about [submitting evidence to contest disputes.](/docs/payments/disputes/submit-evidence) > [accordion] My card details are saved on Razorpay. How do I remove it? > > If you wish to remove your details, you can: > > * Click on the link `Manage your cards` link received in the email. > * Visit [Razorpay Saved Cards Portal](https://razorpay.com/flashcheckout/manage/) to update or delete your saved card details. > [accordion] How do I open a dispute with a seller when a purchase goes wrong? > > At Razorpay, we aim to deliver smooth and hassle-free transactions, but in rare cases, disputes may occur. As a payment solutions provider, we suggest that you (the buyer) contact the merchant (or seller) as early as possible to resolve any issues regarding your order. We have often found that prompt and clear communication is the key to a speedy resolution. Know more about [disputes](https://razorpay.com/dispute-guide/). > [accordion] Does Razorpay intervene to resolve a pending dispute between a buyer and a seller? > > As a first step, we strongly recommend that customers initiate direct communication with the seller to resolve issues about a specific order. If you do not get a satisfactory response or no response, you can then raise a chargeback with your bank as a second option. These chargebacks will be raised with Razorpay by your bank and we will assist in amicably resolving the issue. # International Chargebacks Source: https://razorpay.com/docs/payments/disputes/international-chargebacks Understand how cross-border chargebacks differ from domestic ones, the role of 3D Secure authentication, and how to prevent and respond to international disputes. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Accepting cross-border payments opens up new markets, but it also carries a higher risk of disputes and fraud-related chargebacks. This page explains what makes international chargebacks different from domestic ones, and how to reduce your exposure to them. ## What is an International Chargeback? An international (or cross-border) chargeback is a request โ€” raised by a cardholder or their issuing bank โ€” to reverse a transaction made using a card issued outside India. It's raised for the same broad reasons as a domestic chargeback: the cardholder didn't authorise the transaction, or is dissatisfied with the goods or services received. > [!NOTE] > > **Disputes in International Payments** > > For a dispute raised on an international payment, the amount deducted from your account is based on the currency conversion rate applicable on the day the dispute was created โ€” not the rate on the day the original payment was made. This rate depends on your processing bank and may differ from the original transaction's conversion rate. ## How It Differs from a Domestic Chargeback An international chargeback involves a transaction made in a different country from the one where the issuing bank operates. This adds complexity that domestic chargebacks don't have: * **Currency conversion** โ€” the disputed amount is calculated using the conversion rate at the time of the dispute, which can differ from the original transaction amount. * **Cross-border regulations** โ€” the case may be subject to different laws depending on the country of the merchant, the cardholder, or the delivery destination. ## 3D Secure (3DS) vs. Non-3DS Transactions [3D Secure (3DS)](https://razorpay.com/learn/what-is-3d-secure/) is an additional authentication step โ€” such as an OTP, PIN, or static password โ€” applied to card-not-present (CNP) transactions to verify the cardholder's identity. It's designed to reduce fraud risk for both you and your customer. **Non-3DS transactions**, where this additional authentication step isn't used, carry a higher risk of being reported as fraudulent or charged back. Since the cardholder isn't independently verified, you have very limited grounds to contest a chargeback on a non-3DS transaction that's flagged as fraud. Participation in 3DS programs is ultimately determined by the card network and the card-issuing institution, not by you. However, if you accept cross-border card payments โ€” particularly non-3DS ones โ€” you should weigh this risk carefully as part of your international payments strategy. ## Preventing International Chargebacks * Clearly communicate transaction terms, including price, taxes, and fees, along with your refund and return policy, before checkout. * Confirm that the cardholder authorised the transaction, especially for high-value cross-border orders. * Ensure the goods or services delivered match what was advertised. * Respond to customer queries or complaints promptly, before they escalate to a dispute. ## Responding to an International Chargeback If you receive an international chargeback, respond promptly with documentation that supports your case. Depending on the reason for the dispute, this may include: * Proof of cross-border delivery * Customs clearance copies * Proof that the cardholder authorised the transaction * A copy of the terms and conditions shared with the customer at the time of purchase See [Submit Evidence](/docs/payments/disputes/submit-evidence) for the full list of evidence documents accepted for each chargeback reason code. If you're unable to resolve the dispute through this process, you may need to seek independent legal advice. ### Related Information * [About Disputes](/docs/payments/disputes) * [Chargeback Types & Prevention](/docs/payments/disputes/chargeback-types-and-prevention) * [Submit Evidence](/docs/payments/disputes/submit-evidence) * [Chargeback Fees & Penalties](/docs/payments/disputes/chargeback-fees-and-penalties) * [Dispute FAQs](/docs/payments/disputes/faqs) # Submit Evidence Source: https://razorpay.com/docs/payments/disputes/submit-evidence Check the details required by the Issuing Bank for Dispute Representment. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The process of submitting various evidence documents to banks and gateways for contesting a payment dispute is known as **Dispute Representment**. If you want to successfully contest the chargeback and show the transaction was legitimate, you must submit supporting **chargeback evidence documents**. Know more about [dispute process flow.](/docs/payments/disputes#disputes-process-flow) ## Chargeback Reason Codes & Evidence Documents for Dispute Resolution Every major payment processing network uses multiple dispute reason codes (also called chargeback reason codes). These codes indicate why customers initiated payment disputes and are assigned by the issuing bank. The chargeback reason codes are segregated based on the network and are further categorised into common types: | Category | Description | | - | - | | **Customer Disputes** | Customer claims goods/services are not received, defective or the transaction was not recognised. | | **Fraud** | Customer claims an unauthorised transaction occurred or the card was used without their knowledge. | | **Authorisation Error** | Transaction processed without proper authorisation or with declined/expired approval. | | **Processing Error** | Technical mistakes, such as a wrong amount, duplicate charge or incorrect details. | Here is a list of the required evidence documents to submit against each specific chargeback reason code to help you win the dispute. ### UPI > [tab] Customer Dispute > > > [accordion] 1061 - Credit Not Processed > > > > * **Reason Description**: The business failed to process the credit after the customer cancelled or returned the goods or services. > > * **Suggested Documents**: > > * Proof of refund generation > > * Bank statement showing refund amount which should match the payment amount > > * Customer communication showing refund confirmation > > * Refund policies > > > [accordion] 1062 - Goods/Services Not As Described > > > > * **Reason Description**: The business delivered a product or service that significantly differed from what they advertised or described. > > * **Suggested Documents**: > > * Product description/image screenshots > > * Proof of product/service delivery > > * Customer communication showcasing dissatisfaction > > * Return policies > > > [accordion] 1064 - Goods/Services Not Received > > > > * **Reason Description**: The business failed to deliver the product or service to the customer despite receiving payment for the purchase. > > * **Suggested Documents**: > > * Proof of service/product delivery > > * Customer interaction showcasing product/service related enquiries > > * Terms & Conditions showcasing refund & fulfillment policies > [tab] Fraud > > > [accordion] 128 - Fraudulent Transaction > > > > * **Reason Description**: The business debited the customer's account fraudulently. > > * **Suggested Documents**: > > * Internal logs to show authorisation was obtained > > * Invoicing details along with detailed price breakdown for the debited amount > > * Proof of service/goods delivery clearly mentioning customer name and address details > [tab] Authorisation Error > > > [accordion] 108 - Remiter Debited but Beneficiary Not Credited > > > > * **Reason Description**: The customer's account was debited the authorised amount, but the beneficiary did not receive the credit. > > * **Suggested Documents**: > > * Proof of service/product delivery > > * Customer interaction showcasing product/service related enquiries > > * Customer Withdrawn letter > > * Terms & Conditions showcasing refund & fulfillment policies > > > [accordion] 1065 - Debit on Failed Transaction > > > > * **Reason Description**: The system debited the account, yet the business did not receive confirmation of the payment. > > * **Suggested Documents**: > > * Proof of service/product delivery > > * Customer interaction showcasing product/service related enquiries > > * Customer Withdrawn letter > > * Terms & Conditions showcasing refund & fulfillment policies > > > [accordion] 121 - TCC Raised but Beneficiary is Not Credited > > > > * **Reason Description**: The customer raised a dispute because the TCC was issued, but the beneficiary's account has not been credited. > > * **Suggested Documents**: > > * Proof of service/product delivery > > * Customer interaction showcasing product/service related enquiries > > * Customer Withdrawn letter > > * Terms & Conditions showcasing refund & fulfillment policies > [tab] Processing Error > > > [accordion] 1063 - Paid by Other Means > > > > * **Reason Description**: The customer paid via cash or another method, yet the business still charged this card in error. > > * **Suggested Documents**: > > * Proof showing payment was not received using any other method > > * Refund proof if amount was refunded for duplicate charge > > * Proof to show the claimed transaction was for a different product/service > > > [accordion] 1084 - Duplicate Processing > > > > * **Reason Description**: The business processed the same transaction multiple times, incorrectly charging the customer twice or more for a single purchase. > > * **Suggested Documents**: > > * System logs to prove only one transaction was processed for single authorisation > > * Invoicing to prove each transaction was for separate service/product > > > [accordion] 1085 - Charge Amount Exceeds Authorisation Amount > > > > * **Reason Description**: The business processed a charge that exceeded the amount the customer authorised. > > * **Suggested Documents**: > > * Invoice with detailed price breakdown (price, taxes, fee, discount and so on) prove amount charged was correct > > * Screenshot of product/service along with the price details > > * Authorisation proof showing final amount was authorised by cardholder > > * System logs to show correct amount was charged > > > [accordion] 1081 - Not Settled Within Timeline > > > > * **Reason Description**: The payment failed because the business did not process the transaction within the stipulated time limit. > > * **Suggested Documents**: > > * Internal logs to prove that charge was submitted within allowed time frame > > * Time stamp of transaction and processing of the payment showing debit amount > > * In case of re-auth, please provide proof of same > > * Customer authorisation proof > > * Masked card details and invoice of the transaction ### Visa > [tab] Customer Dispute > > > [accordion] 1 - Merchandise/Services Not Received > > > > * **Reason Description**: The customer paid for the order but did not receive the product/service because the business failed to deliver the goods/service. > > * **Suggested Documents**: > > * Delivery confirmation with signature > > * Tracking information > > * Service completion records > > * Digital delivery logs > > * Customer acknowledgement > > > [accordion] 2 - Cancelled Recurring Transaction > > > > * **Reason Description**: The business charged the customer for the subscription in a subsequent billing cycle, despite the customer having already cancelled the recurring billing. > > * **Suggested Documents**: > > * Cancellation policy > > * No cancellation request received > > * Continued usage logs > > * Terms of service > > * Cancellation window proof > > > [accordion] 3 - Not as Described or Defective > > > > * **Reason Description**: The customer received a damaged or defective item (or a service of poor quality), as the product significantly differed from the description. > > * **Suggested Documents**: > > * Product description/images > > * Quality control records > > * No return received > > * Customer did not contact for resolution > > * Terms and conditions > > > [accordion] 4 - Counterfeit Merchandise > > > > * **Reason Description**: The business delivered fake or counterfeit goods to the customer; the product was an imitation or unauthorised reproduction of a branded item. > > * **Suggested Documents**: > > * Authenticity certificates > > * Supplier verification > > * Brand authorisation > > * Product source documentation > > * Quality guarantees > > > [accordion] 5 - Misrepresentation > > > > * **Reason Description**: The business misrepresented the terms of the sale by making false claims about the product's features or the sales conditions. > > * **Suggested Documents**: > > * Accurate marketing materials > > * Clear terms display > > * Customer acknowledgement > > * No misleading claims proof > > * Contract terms > > > [accordion] 6 - Credit Not Processed > > > > * **Reason Description**: The business failed to process the promised refund or credit to the customer's account. > > * **Suggested Documents**: > > * Refund processing proof > > * Credit timestamp > > * Return not received > > * Refund policy compliance > > * Transaction reversal records > > > [accordion] 7 - Cancelled Merchandise/Services > > > > * **Reason Description**: The business charged the customer for the order even though the customer had cancelled it before shipment or service delivery. > > * **Suggested Documents**: > > * No cancellation received > > * Cancellation policy terms > > * Order already processed/shipped > > * Cancellation window missed > > * Terms agreement > > > [accordion] 8 - Original Credit Transaction Not Accepted > > > > * **Reason Description**: The card network rejected the Original Credit Transaction (OCT) that the business submitted for the refund or payout. > > * **Suggested Documents**: > > * Valid account verification > > * Compliance with OCT rules > > * Alternative refund method > > * Transaction approval records > [tab] Fraud > > > [accordion] 1 - EMV Liability Shift โ€“ Counterfeit Fraud > > > > * **Reason Description**: A counterfeit card was used at a terminal that did not support chip technology, so the business takes the liability. > > * **Suggested Documents**: > > * EMV compliance certificate > > * Terminal capability proof > > * Transaction receipt showing chip read > > * Authorisation approval > > * Card-present evidence > > > [accordion] 2 - EMV Liability Shift โ€“ Non-Counterfeit Fraud > > > > * **Reason Description**: A legitimate card was used fraudulently at a terminal that did not support chip technology, meaning the business takes the liability. > > * **Suggested Documents**: > > * EMV compliance documentation > > * Terminal logs > > * Chip transaction data > > * Authorisation records > > * PIN verification (if applicable) > > > [accordion] 3 - Other Fraud โ€“ Card-Present Environment > > > > * **Reason Description**: The cardholder denies authorising this in-person transaction; these claims usually involve stolen or cloned cards used at a physical shop or business. > > * **Suggested Documents**: > > * Signed receipt > > * EMV/chip data > > * Security footage timestamp > > * PIN verification > > * Authorisation approval > > * Card imprint (if manual) > > > [accordion] 4 - Other Fraud โ€“ Card-Absent Environment > > > > * **Reason Description**: An unauthorised online, phone or mail transaction has occurred, which the cardholder denies authorising. This frequently causes e-commerce chargebacks. > > * **Suggested Documents**: > > * AVS match results > > * CVV2/CVC2 verification > > * IP address & device fingerprint > > * Order history > > * Shipping proof to billing address > > * 3D Secure authentication > > > [accordion] 5 - Visa Fraud Monitoring Program > > > > * **Reason Description**: Visa's fraud detection system flagged the transaction. Visa issues this when the business exceeds the fraud thresholds set in their monitoring program. > > * **Suggested Documents**: > > * Fraud prevention measures documentation > > * Transaction authentication records > > * Compliance improvements > > * Risk assessment protocols > [tab] Authorisation Error > > > [accordion] 1 - Card Recovery Bulletin > > > > * **Reason Description**: The business failed to decline or retain the card, allowing the transaction to proceed despite the card appearing on Visa's restricted card bulletin. > > * **Suggested Documents**: > > * Confirmation that the authorisation was not flagged on a bulletin/warning list > > * Proof card was valid at transaction time > > * Terminal records > > * CRB check documentation > > > [accordion] 2 - Declined Authorisation > > > > * **Reason Description**: The business violated authorisation rules by overriding the decline response and forcing the transaction through. > > * **Suggested Documents**: > > * Valid authorisation approval code > > * Proof of subsequent approval > > * Terminal logs showing approved status > > * Authorisation reversal records > [tab] Processing Error > > > [accordion] 2 - Incorrect Transaction Code > > > > * **Reason Description**: The business used the wrong code, processing the transaction type differently than intended (for example, a refund captured/processed wrongly as a sale). > > * **Suggested Documents**: > > * Correct transaction records > > * Processing logs > > * Customer agreement for transaction type > > * System configuration proof > > > [accordion] 3 - Incorrect Currency Code > > > > * **Reason Description**: The customer was charged in an incorrect currency because the business processed the transaction using the wrong one. > > * **Suggested Documents**: > > * Original currency agreement > > * Display screenshots > > * Exchange rate disclosure > > * Customer consent for currency > > > [accordion] 4 - Incorrect Account Number > > > > * **Reason Description**: A data entry error caused the business to post the transaction to the incorrect cardholder account. > > * **Suggested Documents**: > > * Correct account verification > > * Customer confirmation > > * Order records matching account > > * Payment method selection proof > > > [accordion] 5 - Incorrect Amount > > > > * **Reason Description**: The business charged the customer an amount that differed from the original purchase price they had authorised. > > * **Suggested Documents**: > > * Original receipt/invoice > > * Authorisation for exact amount > > * Price agreement documentation > > * Shopping cart screenshot > > > [accordion] 6.1 - Duplicate Processing โ€“ Single Authorisation > > > > * **Reason Description**: The business incorrectly processed multiple transactions by using the same authorisation code from a single original authorisation. > > * **Suggested Documents**: > > * Authorisation logs > > * Processing records > > * Transaction IDs > > * Batch reports showing unique transactions. > > > [accordion] 6.2 - Paid by Other Means > > > > * **Reason Description**: The business incorrectly charged this card after the customer had already paid using a different method, such as cash, cheque or another card. > > * **Suggested Documents**: > > * Proof of single payment method > > * No alternative payment records > > * Customer communication > > * Payment reconciliation > > > [accordion] 7 - Invalid Data > > > > * **Reason Description**: The system failed to capture valid transaction data, rendering critical information unreadable or missing. > > * **Suggested Documents**: > > * Corrected transaction data > > * Valid processing records > > * Resubmission documentation > > * Data integrity proof ### Mastercard > [tab] Customer Dispute > > > [accordion] 4841 - Cancelled Recurring or Digital Goods Transaction > > > > * **Reason Description**: The business charged the customer for the subscription or digital goods despite the customer having already cancelled the recurring billing or service. > > * **Suggested Documents**: > > * Cancellation policy > > * No cancellation received > > * Service usage after date > > * Terms of service > > * Digital access logs > > > [accordion] 4850 - Installment Billing Dispute > > > > * **Reason Description**: The business violated the agreed terms or payment schedule of the instalment plan. > > * **Suggested Documents**: > > * Installment agreement > > * Payment schedule > > * Terms compliance > > * Customer consent > > * Billing records > > > [accordion] 4853 - Cardholder Dispute > > > > * **Reason Description**: This general dispute covers quality issues where the customer did not receive the goods or service, or the product was defective or misrepresented. > > * **Suggested Documents**: > > * Depends on specific dispute - delivery proof, quality records, product description, return policy, customer communication > > > [accordion] 4854 - Cardholder Dispute - Not Elsewhere Classified (NEC) > > > > * **Reason Description**: The dispute is valid, but the details do not fit any of the specific reason code categories. > > * **Suggested Documents**: > > * Varies by dispute type - general proof of valid transaction/delivery/service/authorisation/customer agreement > [tab] Fraud > > > [accordion] 4837 - No Cardholder Authorisation > > > > * **Reason Description**: The cardholder claims they did not authorise or participate in the transaction. > > * **Suggested Documents**: > > * Cardholder verification > > * AVS/CVV match > > * 3D Secure > > * Delivery proof > > * IP geolocation > > * Purchase history > > > [accordion] 4840 - Fraudulent Processing of Transactions > > > > * **Reason Description**: The business knowingly processed a fraudulent transaction despite the presence of clear fraud indicators. > > * **Suggested Documents**: > > * Fraud screening results > > * Legitimate transaction proof > > * Authentication records > > * Risk assessment > > * Customer verification > > > [accordion] 4849 - Questionable Business Activity > > > > * **Reason Description**: The transaction appears fraudulent, indicating that the business is engaged in suspicious or deceptive practices. > > * **Suggested Documents**: > > * Business legitimacy proof > > * Clear terms > > * Customer agreement > > * Delivery confirmation > > * Service completion > > > [accordion] 4870 - Chip Liability Shift > > > > * **Reason Description**: The business failed to use EMV chip technology, making it liable for the fraud when the chip card was processed on a magnetic stripe terminal. > > * **Suggested Documents**: > > * EMV terminal capability > > * Chip transaction data > > * Fallback reason > > * Terminal certification > > * Authorisation records > > > [accordion] 4871 - Chip/PIN Liability Shift > > > > * **Reason Description**: A Chip and PIN card was processed without proper verification, thus shifting the fraud liability to the business. > > * **Suggested Documents**: > > * PIN verification records > > * Chip + PIN terminal proof > > * Transaction authentication > > * Terminal compliance > > * Fallback documentation > [tab] Authorisation Error > > > [accordion] 4808 - Authorisation-Related Chargeback > > > > * **Reason Description**: The business encountered multiple authorisation issues, which includes both failing to secure necessary approval and exceeding the authorised transaction amount. > > * **Suggested Documents**: > > * Valid authorisation code > > * Correct amount authorisation > > * Multiple auth prevention > > * Terminal records > > * Approval documentation > [tab] Processing Error > > > [accordion] 4834 - Duplicate Processing > > > > * **Reason Description**: The business processed the transaction repeatedly, which resulted in the customer being charged multiple times for the same purchase or service. > > * **Suggested Documents**: > > * Single transaction proof > > * Void/refund for duplicates > > * Transaction logs > > * Unique reference numbers > > * System timestamps ### Rupay > [tab] Customer Dispute > > > [accordion] 1061 - Credit Not Processed > > > > * **Reason Description**: The business failed to process the credit after the customer cancelled or returned the goods and services. > > * **Suggested Documents**: > > * Proof of refund generation > > * Bank statement showing refund amount which should match the payment amount > > * Customer communication showing refund confirmation > > * Refund policies > > > [accordion] 1062 - Goods/Services Not As Described > > > > * **Reason Description**: The business delivered goods or services that significantly differed from the description or were defective. > > * **Suggested Documents**: > > * Product description/image screenshots > > * Proof of product delivery > > * Customer communication showcasing dissatisfaction > > * Return policies > > > [accordion] 1064 - Goods/Services Not Received > > > > * **Reason Description**: The business failed to provide or deliver the goods or services that the customer purchased. > > * **Suggested Documents**: > > * Proof of service/product delivery > > * Customer interaction showcasing product/service related enquiries > > * Terms & Conditions showcasing refund & fulfillment policies > > > [accordion] 1101 - Illegible Fulfilment > > > > * **Reason Description**: The business submitted illegible documents in response to the retrieval request. > > * **Suggested Documents**: > > * Proof of service/product delivery > > * Customer interaction showcasing product/service related enquiries > > * Terms & Conditions showcasing refund & fulfillment policies > > > [accordion] 1102 - Retrieval Request Not Fulfilled > > > > * **Reason Description**: The acquiring partner failed to fulfil the retrieval request within the timeframe or responded with a non-fulfillment message. > > * **Suggested Documents**: > > * Proof of service/product delivery > > * Customer interaction showcasing product/service related enquiries > > * Terms & Conditions showcasing refund & fulfillment policies > > > [accordion] 1103 - Invalid Fulfilment > > > > * **Reason Description**: The business submitted invalid documents in response to the retrieval request. > > * **Suggested Documents**: > > * Proof of service/product delivery > > * Customer interaction showcasing product/service related enquiries > > * Terms & Conditions showcasing refund & fulfillment policies > [tab] Fraud > > > [accordion] 1104 - Cardholder Does Not Recognise the Transaction > > > > * **Reason Description**: The cardholder does not recognise the transaction appearing on their statement. > > * **Suggested Documents**: > > * Invoice with masked card details to prove correct account was charged > > * Authorisation logs to support the above > > * Invoice with detailed price breakdown (price, taxes, fee, discount and so on) prove amount charged was correct > > * Screenshot of product/service along with the price details > > * System logs to show correct amount was charged > > > [accordion] 1141 - Fraudulent Card-Present Transaction > > > > * **Reason Description**: The cardholder asserts they did not make the in-person payment at the business's premises. > > * **Suggested Documents**: > > * Transaction details of at least 2 payments by the same customer which were not reported for fraud (if available) > > * Invoices confirming customer details such as name, phone number, address and so on > > * Delivery proof showing product/service was delivered as per T\&C > > > [accordion] 1142 - Fraudulent Card-Not-Present Transaction > > > > * **Reason Description**: The cardholder denies authorising the remote transaction, asserting they did not make the purchase without the card present (a Card-Not-Present or CNP transaction). > > * **Suggested Documents**: > > * Transaction details of at least 2 payments by the same customer which were not reported for fraud > > * At least 2 parameters (device ID, fingerprint, IP address) of above payments should match for the disputed payment > > * Invoices confirming customer details such as name, phone number, address and so on > > * Delivery proof showing product was delivered as per T\&C > > > [accordion] 1143 - Fraudulent Multiple Transactions > > > > * **Reason Description**: The same card was subjected to multiple fraudulent transactions. > > * **Suggested Documents**: > > * Transaction details of at least 2 payments by the same customer which were not reported for fraud > > * At least 2 parameters (device ID, fingerprint, IP address) of above payments should match for the disputed payment > > * Invoices confirming customer details such as name, phone number, address and so on > > * Delivery proof showing product was delivered as per T\&C > [tab] Authorisation Error > > > [accordion] 1065 - Debit on Failed Transaction > > > > * **Reason Description**: The system debited the account, but the transaction failed to confirm at the business's premises. > > * **Suggested Documents**: > > * Proof of service/product delivery > > * Customer interaction showcasing product/service related enquiries > > * Customer Withdrawn letter > > * Terms & Conditions showcasing refund & fulfillment policies > > > [accordion] 1121 - Transaction Received Declined Authorisation Response > > > > * **Reason Description**: The business violated authorisation rules by overriding the decline response and forcing the transaction through. > > * **Suggested Documents**: > > * Documents to show cardholder authorised the transaction > > * Internal logs to show the correct amount was debited along with invoices > > * Timestamp of auth creation and approval from customer > > * Proof of delivery for goods/services > > > [accordion] 1122 - Transaction Not Authorised > > > > * **Reason Description**: The customer claims the transaction was unauthorised, as it occurred when they were not present. > > * **Suggested Documents**: > > * Internal logs to prove cardholder authorisation of the transaction along with the final debit amount > > * Invoicing with price breakdown and customer details > > * Masked card information > > > [accordion] 1123 - Invalid Card Number > > > > * **Reason Description**: The business processed the transaction using an invalid card number and either failed to obtain authorisation or processed the credit using the incorrect number. > > * **Suggested Documents**: > > * Invoice with masked card details, customer name and contact details > > * Authorisation logs to support the above > [tab] Processing Error > > > [accordion] 1063 - Paid by Other Means > > > > * **Reason Description**: The business incorrectly charged this card despite the customer having already settled the transaction using a different method, such as cash, cheque or another card. > > * **Suggested Documents**: > > * Proof showing payment was not received using any other method > > * Refund proof if amount was refunded for duplicate charge > > * Proof to show the claimed transaction was for a different product/service > > > [accordion] 1081 - Not Settled Within Timeline > > > > * **Reason Description**: The business failed to settle the transaction within the specified timeframes. > > * **Suggested Documents**: > > * Internal logs to prove that charge was submitted within allowed time frame > > * Time stamp of transaction and processing of the payment showing debit amount > > * In case of re-auth, please provide proof of same > > * Customer authorisation proof > > * Masked card details and invoice of the transaction > > > [accordion] 1082 - Credit Posted as Debit > > > > * **Reason Description**: The business incorrectly processed the credit as a debit on the customer's account. > > * **Suggested Documents**: > > * Internal transaction logs proving correct debit was done > > * Refund/Invoice details in case there was attempt to correct the wrong debit > > * Invoice for the debit that was done on the cardholder > > > [accordion] 1083 - Incorrect Transaction Details > > > > * **Reason Description**: The business incorrectly entered either the account number or the transaction amount used in the payment. > > * **Suggested Documents**: > > * Invoice with masked card details to prove correct account was charged > > * Authorisation logs to support the above > > * Invoice with detailed price breakdown (price, taxes, fee, discount and so on) prove amount charged was correct > > * Screenshot of product/service along with the price details > > * System logs to show correct amount was charged > > > [accordion] 1084 - Duplicate Processing > > > > * **Reason Description**: The business processed the same transaction multiple times, incorrectly charging the customer twice or more for a single purchase. > > * **Suggested Documents**: > > * System logs to prove only one transaction was processed for single auth > > * Invoicing to prove each transaction was for separate service/product ### American Express > [tab] Customer Dispute > > > [accordion] C02 - Credit Not Processed > > > > * **Reason Description**: The business failed to process the promised credit or refund to the customer's account. > > * **Suggested Documents**: > > * Credit issuance proof > > * Refund date/amount > > * Return not received > > * Policy compliance > > * Processing confirmation > > > [accordion] C04 - Goods/Services Returned or Refused > > > > * **Reason Description**: Customer returned product or refused service. Goods were sent back or service was rejected but no refund issued. > > * **Suggested Documents**: > > * Return not received > > * Refusal not documented > > * Restocking completed > > * Return policy terms > > * Delivery confirmation > > > [accordion] C05 - Goods/Services Cancelled > > > > * **Reason Description**: The customer returned the product or refused the service, but the business failed to issue the corresponding refund. > > * **Suggested Documents**: > > * No cancellation received > > * Cancellation policy > > * Already shipped/provided > > * Cancellation deadline passed > > * Terms proof > > > [accordion] C08 - Goods/Services Not Received > > > > * **Reason Description**: The business failed to deliver the product or service to the customer, despite having already received payment for the purchase. > > * **Suggested Documents**: > > * Delivery confirmation > > * Tracking proof > > * Service completion > > * Digital delivery logs > > * Customer signature > > > [accordion] C14 - Paid by Other Means > > > > * **Reason Description**: The business charged the American Express card despite the customer having already settled the transaction using a different payment method. > > * **Suggested Documents**: > > * Single payment proof > > * No alternative payment > > * Payment reconciliation > > * Customer communication > > * Order records > > > [accordion] C18 - No Show > > > > * **Reason Description**: The business charged the customer a no-show fee after the customer failed to appear for the hotel or rental car reservation. > > * **Suggested Documents**: > > * No-show policy disclosure > > * Cancellation window > > * Policy agreement > > * Reservation confirmation > > * Terms acceptance > > > [accordion] C28 - Cancellation of Recurring Goods/Services > > > > * **Reason Description**: The business continued the recurring billing and charged the customer for the subscription, despite the customer having cancelled the service. > > * **Suggested Documents**: > > * No cancellation received > > * Cancellation policy > > * Continued usage > > * Service access logs > > * Terms of service > > > [accordion] C31 - Goods/Services Not As Described > > > > * **Reason Description**: Quality/description issues. Product or service significantly different from what was advertised or described. > > * **Suggested Documents**: > > * Accurate description > > * Photos/specifications > > * Quality standards met > > * No complaint received > > * Terms compliance > > > [accordion] C32 - Goods/Services Damaged or Defective > > > > * **Reason Description**: The business delivered a product or service that significantly differed from what they advertised or described. > > * **Suggested Documents**: > > * Quality control records > > * No damage claim > > * Shipping insurance > > * Packaging adequacy > > * No return received > > > [accordion] M01 - Chargeback Authorisation > > > > * **Reason Description**: The business previously agreed to the chargeback and authorised the reversal of this transaction. > > * **Suggested Documents**: > > * No prior agreement > > * Chargeback authorisation invalid > > * Documentation of dispute > > * No consent given > > > [accordion] M10 - Vehicle Rental โ€“ Capital Damages > > > > * **Reason Description**: The customer is disputing the damage charges that the rental company applied to the vehicle. > > * **Suggested Documents**: > > * Damage documentation > > * Pre-rental inspection > > * Photos with timestamp > > * Rental agreement > > * Insurance coverage > > > [accordion] M49 - Vehicle Rental โ€“ Theft or Loss of Use > > > > * **Reason Description**: The rental company charged the customer for the theft or loss of use of the hired vehicle. > > * **Suggested Documents**: > > * Police report > > * Theft documentation > > * Contract terms > > * Insurance claims > > * Loss mitigation efforts > [tab] Fraud > > > [accordion] F10 - Missing Imprint > > > > * **Reason Description**: The business failed to provide the required manual imprint for the key-entered transaction. > > * **Suggested Documents**: > > * Card imprint > > * Electronic authorisation > > * Card-present proof > > * Terminal records > > * Manual processing logs > > > [accordion] F14 - Missing Signature > > > > * **Reason Description**: The business failed to obtain the required signature on the transaction receipt for this card-present sale. > > * **Suggested Documents**: > > * Signed receipt > > * Signature on file > > * PIN verification > > * Contactless approval > > * Customer verification > > > [accordion] F24 - No Card Member Authorisation > > > > * **Reason Description**: The cardholder denies authorising or participating in this transaction. > > * **Suggested Documents**: > > * Authorisation proof > > * Cardholder verification > > * AVS/CVV match > > * 3D Secure > > * Purchase history > > > [accordion] F29 - Card Not Present > > > > * **Reason Description**: The cardholder disputes the card-not-present (CNP) transaction, claiming they did not authorise it. > > * **Suggested Documents**: > > * AVS/CVV verification > > * IP address > > * Device fingerprint > > * Shipping to billing address > > * Purchase patterns > > > [accordion] F30 - EMV Counterfeit > > > > * **Reason Description**: A counterfeit chip card was used to complete a fraudulent transaction at a terminal that did not support EMV technology. > > * **Suggested Documents**: > > * EMV terminal proof > > * Chip data > > * Authentication records > > * Terminal capability > > * Fallback documentation > > > [accordion] F31 - EMV Lost/Stolen/Never Received > > > > * **Reason Description**: The business accepted a transaction from an EMV card reported as lost or stolen because they used a non-chip terminal. > > * **Suggested Documents**: > > * EMV compliance > > * Terminal capability > > * Chip transaction attempt > > * Authorisation records > > * PIN verification > [tab] Authorisation Error > > > [accordion] A01 - Charge Amount Exceeds Authorisation Amount > > > > * **Reason Description**: The business processed the transaction for an amount that exceeded the approved authorisation. > > * **Suggested Documents**: > > * Authorisation for full amount > > * Incremental auth records > > * Customer agreement for additional charges > > * Receipt showing total > > > [accordion] A02 - No Valid Authorisation > > > > * **Reason Description**: The business processed the transaction without obtaining the required authorisation from American Express. > > * **Suggested Documents**: > > * Valid authorisation code > > * Approval records > > * Emergency authorisation > > * Manual approval documentation > > > [accordion] A03 - Authorisation Approval Expired > > > > * **Reason Description**: The business used an expired authorisation when they submitted the transaction for settlement. > > * **Suggested Documents**: > > * Current authorisation > > * Reauthorisation records > > * Timeline documentation > > * Settlement timing proof > [tab] Processing Error > > > [accordion] P01 - Unassigned Card Number > > > > * **Reason Description**: The transaction failed because the business used a card number that American Express does not recognise. > > * **Suggested Documents**: > > * Valid card verification > > * Account confirmation > > * Authorisation approval > > * Card authenticity > > * Number validation > > > [accordion] P03 - Credit Processed as Charge > > > > * **Reason Description**: The business incorrectly processed the refund transaction as a new charge on the customer's statement. > > * **Suggested Documents**: > > * Transaction type proof > > * System records > > * Processing logs > > * Refund intention > > * Correction documentation > > > [accordion] P04 - Charge Processed as Credit > > > > * **Reason Description**: The business incorrectly processed the sale transaction as a refund, causing the charge to appear as a credit on the customer's statement. > > * **Suggested Documents**: > > * Correct transaction type > > * Processing records > > * Sale documentation > > * System logs > > * Authorisation type > > > [accordion] P05 - Incorrect Charge Amount > > > > * **Reason Description**: The business processed the transaction for an amount that differed from what the customer agreed to pay. > > * **Suggested Documents**: > > * Correct amount proof > > * Receipt/invoice > > * Customer agreement > > * Authorisation for amount > > * Pricing documentation > > > [accordion] P07 - Late Submission > > > > * **Reason Description**: The business submitted the transaction late, having exceeded the time limit for processing. > > * **Suggested Documents**: > > * Timely submission proof > > * System delays > > * Original date documentation > > * Processing timeline > > * Batch records > > > [accordion] P08 - Duplicate Charge > > > > * **Reason Description**: The business processed the same transaction multiple times, incorrectly charging the customer's account repeatedly. > > * **Suggested Documents**: > > * Single charge proof > > * Transaction logs > > * Void/refund records > > * Unique identifiers > > * System timestamps > > > [accordion] P22 - Non-Matching Card Number > > > > * **Reason Description**: The business processed the transaction using a card number that does not match the cardholder's account on file. > > * **Suggested Documents**: > > * Card number verification > > * Account match proof > > * Customer confirmation > > * Order records > > * Authorisation match > > > [accordion] P23 - Currency Discrepancy > > > > * **Reason Description**: The business processed the transaction using an incorrect currency, which was different from the currency the customer agreed to. > > * **Suggested Documents**: > > * Currency agreement > > * Exchange rate disclosure > > * Original pricing > > * Customer consent > > * Display proof ### Razorpay > [tab] Customer Dispute > > > [accordion] RZP06 - Business Not Responding > > > > * **Reason Description**: The business has failed to respond to the customer's queries following the transaction. > > * **Suggested Documents**: > > * Proof of service/goods delivery to the customer's address in committed timeline > > * Invoicing details showing transaction amount and date-time > > * Customer communications over email (not WhatsApp) > > > [accordion] RZP05 - Account Debited but No Confirmation > > > > * **Reason Description**: The customer's account was debited, but the system failed to send confirmation of the transaction. > > * **Suggested Documents**: > > * Service/Product invoice in case payment was captured successfully > > * Internal logs to prove the payment failed and no money was credited hence no service/goods were provided > > * Customer interaction showcasing product/service related enquiries > > * Terms & Conditions showcasing refund & fulfillment policies > > > [accordion] RZP01 - Goods/Services not Provided > > > > * **Reason Description**: The customer paid for the order, but the business never provided the goods or services. > > * **Suggested Documents**: > > * Proof of service/product delivery > > * Customer interaction showcasing product/service related enquiries > > * Terms & Conditions showcasing refund & fulfillment policies > > > [accordion] RZP04 - Refund not Processed > > > > * **Reason Description**: The business promised a refund but did not process the credit to the customer's account. > > * **Suggested Documents**: > > * Proof of refund generation > > * Bank statement showing refund amount which should match the payment amount > > * Customer communication showing refund confirmation > > * Refund policies > > > [accordion] RZP00 - Not Available > > > > * **Reason Description**: This dispute does not fit into any of the existing, specific categories. > > * **Suggested Documents**: > > * Proof of service/goods delivery to the customer's address in committed timeline > > * Invoicing details showing transaction amount and date-time > > * Customer communications over email (not WhatsApp) > > * Refund details in case you have already generated a successful refund to the customer > [tab] Fraud > > > [accordion] RZP03 - Potential Fraud > > > > * **Reason Description**: The business has potentially committed fraud. > > * **Suggested Documents**: > > * System logs to prove the payment was authorised > > * Invoicing details of the product/services > > * Additionally in case of card not present scenario, you will have to submit compelling evidence; details of at least 2 prior transactions done by the same customer (with at least 2 parameters matching out of IP/device fingerprint/device ID) which are not reported as fraud > > * Additionally in case of card present scenario, present EMV transaction data proving customer participation > [tab] Authorisation Error > > > [accordion] RZP02 - Unauthorised Transaction > > > > * **Reason Description**: The cardholder denies authorising the transaction, claiming it occurred in their absence. > > * **Suggested Documents**: > > * System logs to prove the payment was authorised > > * Invoicing details of the product/services along with delivery proof > > * Additionally in case of card not present scenario, you will have to submit compelling evidence; details of at least 2 prior transactions done by the same customer (with at least 2 parameters matching out of IP/device fingerprint/device ID) which are not reported as fraud > > * Additionally in case of card present scenario, submit EMV transaction data proving customer participation > [tab] Processing Error > > > [accordion] RZP07 - Invalid Data > > > > * **Reason Description**: The system failed to process the transaction because the business's data was invalid. > > * **Suggested Documents**: > > * Data showing the transaction was authorised by processor using valid data > > * Valid data includes masked card details, 2FA details for domestic transactions, customer name and date-time ## Next Steps in Dispute Representment If you contest the chargeback using the required evidence documents, those documents are sent to the issuing bank for review. The issuing bank reviews the dispute representment case and provides a verdict within **15 to 30 days**. If you lose the payment dispute, the amount of the chargeback is deducted from your account and is credited back to the customer's account. If you win the dispute, no amount will be deducted from your balance, successfully resolving the chargeback. ### Related Information * [About Disputes](/docs/payments/disputes) * [Disputes - Dashboard Actions](/docs/payments/disputes/dashboard) * [Dispute FAQs](/docs/payments/disputes/faqs) * [Contact Support](https://razorpay.com/support/#request) for additional help with disputes. # Subscribe to Webhooks Source: https://razorpay.com/docs/payments/disputes/subscribe-to-webhooks Subscribe to various webhook events related to disputes to receive instant notifications. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Subscribe to webhook events available for disputes to get notifications. To subscribe to webhook events: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **Webhooks** to subscribe to any of the events listed below. ## List of Webhook Events The table below lists the webhook events available for disputes. | Webhook Event | Description | | - | - | | `payment.dispute.created` | Triggered when a dispute is raised by the customer's issuing bank against a payment. | | `payment.dispute.won` | Triggered when you win a dispute against a payment. | | `payment.dispute.lost` | Triggered when you lose a dispute against a payment. | | `payment.dispute.closed` | Triggered when a dispute is closed. | | `payment.dispute.under_review` | Triggered when you contest a dispute and submit the evidence for review. | | `payment.dispute.action_required` | Triggered when the evidence submitted is insufficient, unreadable or does not correspond to the contested amount. Please update/add evidences before contesting the dispute again. | Know more about [Webhooks](/docs/webhooks) and check the [sample payloads.](/docs/webhooks/disputes) ### Related Information * [About Disputes](/docs/payments/disputes) * [Disputes APIs](/docs/payments/disputes/apis) # About Payment Gateway Source: https://razorpay.com/docs/payments/payment-gateway Accept payments using Razorpay Payment Gateway. Discover its advantages, when to use it and the various integration types. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States A Payment Gateway creates a secure pathway between a customer and the business to facilitate payments securely. It involves the authentication of both parties from the banks involved. You can accept payments from customers on your website and mobile apps using the Razorpay Payment Gateway as a business owner. > [accordion] Advantages > > * **Onboarding**: Integrate Razorpay Payment Gateway on your native-built website using Standard Checkout. Explore Razorpay plugins for various platforms such as **WooCommerce**, **WordPress**, **Magento**, **Shopify** and more. > > * **Success Rate**: Achieve a higher success rate by using **multiple connections** to route a transaction and **direct netbanking pipes**. Razorpay provides **downtime updates**, suggests the **next best payment option** at the point of payment failure on checkout and more. > > * **Refunds**: Razorpay retries failed API refunds smartly based on the **error code** received from the bank. > > * **Scalability and Availability**: Razorpay systems handle a load of **800 transaction requests per second** without deterioration. They provide downtime updates via email, status page and Dashboard. > > * **Settlements Reconciliation**: Use settlement reconciliation to keep **track** of all the transactions such as payments, refunds, transfers, and adjustments settled to you for a particular day or month. > > * **Coverage**: Razorpay supports a wide range of **domestic and international cards**, various **netbanking** options, **UPI**, **Cash on Delivery**, **EMI**, **Cardless EMI**, and **wallets** including Paytm and PhonePe. ## When to Use a Payment Gateway You should consider integrating with a payment gateway if you have a **website** or a **mobile app**. > [card] Do Not Have a Website or Mobile App? > > You can still accept payments by using other Razorpay products such as [Payment Links](/docs/payments/payment-links) and [Payment Pages](/docs/payments/payment-pages). Check the list of [no-code apps](/docs/payments#accept-payments) and find the product that best suits your business needs. > [card] Not Ready to Integrate Yet? > > If you are unsure about integrating with Razorpay Gateway, you can use [Razorpay Payment Button](/docs/payments/payment-button). Embed a Payment Button on your website by just adding a couple of lines of code. ## Types of Checkout Use this flow to decide whether to use Standard or Custom Checkout. You can also explore other available checkout options. ![Decide which payment gateway or products to use based on the requirements](https://razorpay.com/docs/build/browser/assets/images/pg-to-use.jpg) > [tab] Standard > > * Customise the **Pay** button to fit your business needs using JavaScript-based method. > * Offers additional functions to automatically open and close the Checkout. > > Know more about [Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > [tab] Custom > > * Ideal if you want to fully customise your checkout UI. > * Design the entire payment flow the way you want. > > Know more about [Custom Checkout](/docs/payments/payment-gateway/web-integration/custom). > [tab] Quick > > * Quickly integrate Razorpay Payment Gateway using automatic checkout method (Quick Integration). > * **Pay** button is auto-generated and cannot be customised. > An HTML-based form with no support for JavaScript customisations. > * For more control on your integration, use [Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > > Know more about [Quick Integration](/docs/payments/payment-gateway/quick-integration). > [tab] S2S > > * Use Server-to-Server (S2S) integration to communicate directly with the Razorpay servers and seamlessly integrate the service in your web application. > * Capture payment details and process them on your server. > * Complete control over the checkout design and payment experience. > * For S2S integration, contact the [Support team](https://razorpay.com/support/). If you prefer not to use a Payment Gateway, explore other [Razorpay Products](/docs/payments#accept-payments) that align with your business needs. ## Integrate Payment Gateway - Web, Mobile, Ecommerce Plugins Razorpay offers a wide range of integrations as given below: > [tab] Web > > > [card] Checkout Integrations > > > > * [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard) > > * [Razorpay Custom Checkout](/docs/payments/payment-gateway/web-integration/custom) > > > [card] Server Integrations > > > > * [PHP](/docs/payments/server-integration/php) > > * [Ruby](/docs/payments/server-integration/ruby) > > * [Python](/docs/payments/server-integration/python) > > * [NodeJS](/docs/payments/server-integration/nodejs) > > * [.NET](/docs/payments/server-integration/dot-net) > > * [Java](/docs/payments/server-integration/java) > > * [Go](/docs/payments/server-integration/go) > [tab] Ecommerce Plugins > > > [card] Payment Gateway Ecommerce Plugins > > > > * [Arastta](/docs/payments/payment-gateway/ecommerce-plugins/arastta) > > * [BigCommerce](/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce) > > * [Drupal](/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce) > > * [CS-Cart](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart) > > * [Gravity Forms](/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms) > > * [Easy Digital Download](/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads) > > * [Magento](/docs/payments/payment-gateway/ecommerce-plugins/magento) > > * [OpenCart](/docs/payments/payment-gateway/ecommerce-plugins/open-cart) > > * [PrestaShop](/docs/payments/payment-gateway/ecommerce-plugins/prestashop) > > * [Shopify](/docs/payments/payment-gateway/ecommerce-plugins/shopify) > > * [WHMCS](/docs/payments/payment-gateway/ecommerce-plugins/whmcs) > > * [Wix](/docs/payments/payment-gateway/ecommerce-plugins/prestashop) > > * [WooCommerce](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce) > > * [WordPress](/docs/payments/payment-gateway/ecommerce-plugins/wordpress) > > > [card] Other Ecommerce Plugins > > > > * [Razorpay Direct - Credit Card](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card) > [tab] Mobile > > > [card] Mobile Integrations > > > > * [Android SDK](/docs/payments/payment-gateway/android-integration/standard) > > * [iOS SDK](/docs/payments/payment-gateway/ios-integration/standard) > > * [Cordova SDK](/docs/payments/payment-gateway/cordova-integration) > > * [React Native SDK](/docs/payments/payment-gateway/react-native-integration/standard) > > * [Flutter SDK](/docs/payments/payment-gateway/flutter-integration/standard) > > * [Capacitor SDK](/docs/payments/payment-gateway/capacitor-integration) Watch all the Integration videos. [Watch Videos](https://www.youtube.com/playlist?list=PLQWuy5G1gIOoSr5Lo1Y12dXB8JbPOvfVR) ## Supported Platforms Razorpay Payment Gateway is supported on the following platforms: > [tab] Standard Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | > [tab] Custom Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | > [!WARNING] > > **Watch Out!** > > Razorpay Checkout is not supported on Internet Explorer or in Internet Explorer mode in Edge. You can also view the **supported platforms** for the [other Razorpay products](/docs/payments). ### Related Information * [How Payment Gateway works](/docs/payments/payment-gateway/how-it-works) * [Features](/docs/payments/payment-gateway/features) * [Set up your Razorpay account](/docs/payments/set-up#set-up-account) * [List of required KYC documents](/docs/payments/business-types-kyc-documents) # Callback URL Source: https://razorpay.com/docs/payments/payment-gateway/callback-url Reuse the web integration to process the payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore If you reuse your web integration of Razorpay Checkout inside a web view on Android or iOS, the checkout form may not open. Issues like this are handled in our [Android SDK](/docs/payments/payment-gateway/android-integration/standard) and [iOS SDK](/docs/payments/payment-gateway/ios-integration/standard), with the SDKs being the preferred method of integration. > [!WARNING] > > **Callback URL is not the same as a Webhook URL** > > The callback URL is a Checkout option for WebView and redirect flows. It receives the payment result synchronously after the customer pays. > > A webhook URL is a server endpoint you configure on the Razorpay Dashboard to receive asynchronous event notifications (like `order.paid` or `payment.failed`). If you are looking to track payment status on your server after the customer pays, use webhooks โ€” not `callback_url`. If you want to reuse the web integration for any reason, you can pass the following `callback_url` along with other [checkout options](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-3-checkout-options) to process the desired payment: ```javascript JavaScript theme={null} var options = { ... // existing options callback_url: 'https://your-server/callback_url', redirect: true } ``` `callback_url` needs to accept incoming `POST` requests. For a successful payment, the callback URL will have `razorpay_payment_id`, `razorpay_order_id` and `razorpay_signature` as the request parameters. For failed payments, the request parameter are explained in the table below: `error` : `object` The error object. `code` : `string` Type of the error. `description` : `string` Descriptive text about the error. `field` : `string` Name of the parameter in the API request that caused the error. > [!NOTE] > > **Handy Tips** > > You can set query parameters with `callback_url`, to map it with entities at your side. For example, following is a valid callback URL: [https://your-site.com/callback?cart\_id=12345](https://your-site.com/callback?cart_id=12345) ## FAQs > [accordion] Is the handler function not supported in WebView? > > The handler function is not supported in WebView environments due to the inherent limitations of WebView in executing certain JavaScript functions. > [accordion] What are all the field names posted to the callback page, and can I add custom fields? > > Razorpay posts only three fields to the callback page: `razorpay_payment_id`, `razorpay_order_id`, and `razorpay_signature`. Custom fields cannot be added to the callback response. # Features Source: https://razorpay.com/docs/payments/payment-gateway/features List of features that will help you build a first-class payments experience with Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Razorpay payment gateway comes with a range of features that helps you build a first-class payments experience. * **Cash on Delivery** \ You can now offer Cash on Delivery (COD) as a payment method on the Razorpay Checkout interface. Customers can choose COD directly on the Checkout page, alongside UPI, cards, netbanking and more. This flow increases accessibility and builds trust among first-time buyers and high-value orders. Know more about how to enable [Cash on Delivery](/docs/payments/payment-methods/cod) on your checkout page. * **Sign in with Truecaller** \ Truecaller-based authentication allows your customers to verify themselves at the checkout without entering an OTP. Customers who have the Truecaller app installed on their devices will receive a pop-up for authentication using Truecaller. This feature is enabled by default and only applies to the Android SDK and Android Mobile Web browsers (Chrome and Samsung). To disable Truecaller-based authentication, please raise a request with our [Support team](https://razorpay.com/support/). * **Order Milestone Badge on Checkout** \ Boost trust and credibility by displaying order milestone badges at checkout. These badges highlight real order volumes, reassuring customers of your reliability and encouraging them to complete their purchase. Know more about [Order Milestone Badge](/docs/payments/dashboard/account-settings/checkout-features#order-banner).\ For example, if your store has processed 10,000+ successful orders, the badge showcases this achievement, reinforcing trust. > [!WARNING] > > **Watch Out!** > > * This feature is automatically enabled and currently available only for businesses with [RTB](/docs/payments/widgets/trusted-business) enabled. > * If a [message banner](/docs/payments/dashboard/account-settings/checkout-features#message-banner) exists on the checkout page, the badge information seamlessly integrates within the same section using vertical scrolling. > [accordion] Customer Experience > > ![View Order milestones on checkout](https://razorpay.com/docs/build/browser/assets/images/order-milestones.jpg) * **QuickBuy: Revolutionise Your Checkout Process** \ QuickBuy is a game-changing 1-click payment experience designed to simplify your checkout. Its intuitive half-page interface minimises steps, allowing customers to complete payments faster. \ Leveraging advanced personalisation algorithms, QuickBuy streamlines the checkout experience by minimising steps and simplifying decisions leading to quicker checkouts and higher conversion rates. This boosts customer satisfaction and drives business growth, making every transaction seamless. Know more about [QuickBuy](/docs/payments/payment-gateway/features/quickbuy). * **Saved Cards**\ You can save customer card details in the form of tokens with Razorpay. On a repeat visit, the customers will be able to pay directly just by entering the CVV of the card. Know more about [saved cards](/docs/payments/payment-methods/cards/features/saved-cards). > [!WARNING] > > **Watch Out!** > > * CVV is not required by default for tokenised cards across all networks. > * CVV is optional for tokenised card payments. Do not pass dummy CVV values. > * To implement this change, skip passing the `cvv` parameter entirely, or pass a `null` or empty value in the CVV field. > * We recommend removing the CVV field from your checkout UI/UX for tokenised cards. > * If CVV is still collected for tokenised cards and the customer enters a CVV, pass the entered CVV value to Razorpay. * **Biometric Authentication**\ Razorpay's biometric authentication ensures security and convenience by eliminating OTP verification. It uses device capabilities to verify users, enabling faster access to saved cards during checkout. Once set up, users can access their saved cards with just their fingerprint. > [accordion] Customer Experience > > ![Biometric Authentication on Checkout](https://razorpay.com/docs/build/browser/assets/images/pg-biometric.jpg) > [!WARNING] > > **Watch Out!** > > * This feature is enabled by default. To disable it, raise a request with our [Support Team](https://razorpay.com/support). > * It is only available for businesses using Standard Checkout on Android devices that support biometrics. > * It is not supported on webviews redirected from apps like Instagram or Facebook. > * We are rolling it out in phases and will soon be available for your users at checkout. * **OTP Auto-Read and Submit**\ Your customers gain a faster and enhanced checkout experience with Razorpay OTP auto-submit. The system automatically reads the OTP received, with your customerโ€™s consent, and submits it. It prevents errors and the users do not need to navigate or interact with additional elements to complete verification, making the process seamless. This is available by default on Android SDK and not available on iOS SDK. * **UPI Payments using Mobile Number**\ Your customers can enter their mobile number linked to their UPI on checkout, open the respective UPI app and complete the payment after entering the UPI PIN on their mobile devices. Customers are redirected to your website or app after successful payment. Know more about [UPI](/docs/payments/payment-methods/upi). * **Offers**\ Attract your customers and improve sales by providing discounts or cashback on your website or apps. Using Razorpay Offers, you can have complete control of the discounts offered to your customers and restrict the payment methods on which the offers are applied. Know more about [offers](/docs/payments/offers). * **Checkout in Local Languages**\ Allow customers to change the display language of checkout fields to enhance accessibility. By default, checkout fields are shown in English, but customers can switch to Hindi, Marathi, Gujarati, Telugu, Tamil, and more. To change the language: * On mobile: Click the **Account & Terms** icon in the top-right corner, then select **Language**. * On desktop: Click the more icon in the top-right corner, then select **Language**. Once selected, the checkout fields update to the preferred language. Know more about how to [change the default language](/docs/payments/dashboard/account-settings/checkout-features#default-language). > [accordion] Customer Experience > > ![View Checkout in local languages](https://razorpay.com/docs/build/browser/assets/images/local-language-checkout.jpg) * **Eligibility Check**\ Razorpay offers a pre-eligibility check on Debit Card EMI, Cardless EMI and Pay Later instruments at checkout. By assessing eligibility upfront, your customers can choose the most relevant affordability option and complete the purchase quicker. Know more about [eligibility check](/docs/payments/payment-gateway/emiยฒ/eligibility-check/standard). * **Making Email Read-only**\ You can set the email field as read-only to ensure your customers can only view the email but can not edit it. You can allow your customers to edit this field based on your preferences. Know more about [making email read-only](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-3-checkout-options). * **Configuring Payment Methods**\ Razorpay Standard Checkout hosts a variety of payment methods for customers to make payments. You can rearrange the order of these payment methods and display them at the Checkout to provide a highly personalised experience for your customers. Know more about [configuring payment methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). * **Autofill for Faster Checkout**\ Razorpay Checkout autofills details like addresses, contact information and saved card data by default across various platforms, including Instagram, Facebook and iOS browsers. This reduces customers time and effort to complete transactions, boosting your conversion rates. * **Prefill Customer Contact Details**\ To improve conversion rates and reduce form-fill friction, use the prefill parameter to automatically fill in customer contact information, especially their phone number. The expected format while prefilling the phone number in the [Checkout code](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-2-code-to-add-pay-button) is `+ (country code)(phone number)`(Example: "contact": "+919000090000"). > [!WARNING] > > **Watch Out!** > > This feature is not applicable if you: > > * Do no collect customer contact details on your website before checkout. > * Have Shopify stores. > * Use any of theย no-code apps. * **Making Phone Number Field Optional**\ You can hide the phone number field from the checkout page based on your preferences. You can also enable customers to proceed with the payment without providing a phone number. Refer to the [Checkout Options](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-3-checkout-options) table to know more about making the phone number field optional. > [!WARNING] > > **Watch Out!** > > * To enable this feature, contact our [Support Team](https://razorpay.com/support). > * If you enable customers to proceed with the payment without providing their phone number, then the field will not appear against the payment on the Dashboard and the reports. * **Configure Email Address Field**\ The email address field is hidden by default on checkout if it is not pre-filled. Since email is not mandatory, this will reduce drop-offs and improve conversion rates. You can choose to hide the field, make it optional or mandatory based on your business requirement. Know how to [configure the email address field](/docs/payments/dashboard/account-settings/checkout-features#collect-email-address-from-customers). * **Partial Payment Capability**\ You can allow your customer to make partial payments at the Checkout. Know more about [partial payments](/docs/payments/payment-gateway/web-integration/standard/integration-steps#request-parameters). * **International Payments**\ You can accept payments from your customers in more than 100 foreign currencies using our Payment Gateway and other products such as Payment Pages, Payment Button, Payment Links, and Invoices. Know more about [international payments](/docs/payments/international-payments). * **Trusted Business**\ Showcase our Trusted Badge on checkout and embed the Razorpay Trusted Business Widget on your website to instil credibility amongst site visitors. It reassures your customers that they can safely transact with your brand without any worries. Know more about [trusted badge](/docs/payments/payment-gateway/features/trusted-business) and [trusted widget](/docs/payments/widgets/trusted-business). * **Customer Fee-bearer**\ You can choose to charge a convenience fee to your customers for the use of technology infrastructure. Convenience Fees are seamlessly added at Razorpay Checkout without disrupting the checkout experience for your customers. Know more about [convenience fees](/docs/payments/dashboard/account-settings/configuration/convenience-fees). * **Third-party Validation**\ As per the SEBI guidelines, the customers must make transactions only from those bank accounts provided when they register with your business.\ You can comply with the SEBI guidelines for online payment collections by offering TPV integrations with major banks at the Checkout. Customers can make payments using netbanking or UPI. UPI supports both collect and intent flows. Know more about [third-party validation](/docs/payments/third-party-validation). * **Checkout Timeout**\ You set a timeout on Checkout. After the specified time limit, the customer will not be able to use Checkout and hence the payment will terminate after the set time. Know more about [checkout timeout](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-3-checkout-options). * **Downtime Communication on Checkout**\ Downtimes updates provide an overview of various downtimes grouped across different payment methods on your [Dashboard](/docs/payments/payments/downtime-updates). You can view the latest status of downtimes for netbanking, cards, and UPI at any point in time. You can also view instrument details for downtimes such as Cards Network, Issuers, Banks, and UPI handles. Know more about the [Payments Downtime API](/docs/api/payments/downtime). > [!WARNING] > > **Watch Out!** > > We temporarily prevent customers from accessing payment instruments, which are bound to fail on checkout. For example, if all payments made via Netbanking are bound to fail, we show the option in a disabled state on checkout until it recovers. However, they can select an alternative instrument that is more likely to work to complete the payment successfully. > > > [accordion] Customer Experience > > > > ![payment instrument in a disabled state](https://razorpay.com/docs/build/browser/assets/images/payments-downtime-disabled-state.jpg) * **Checkout Retry Flow**\ By default, Razorpay provides transparent, contextual, and actionable suggestions to customers at the point of payment failure on checkout. For example, if a customer's payment via Card fails on Razorpay checkout, the system intelligently suggests the next best payment option based on the reason for the failure and the customer's past transaction history. This reduces customer drop-offs and improves the overall payment experience. > [accordion] Customer Experience > > ![checkout retry flow](https://razorpay.com/docs/build/browser/assets/images/checkout-retry.jpg) ### Related Information * [Payment Gateway](/docs/payments/payment-gateway) * [How Payment Gateway Works](/docs/payments/payment-gateway/how-it-works) * [Payment Methods](/docs/payments/payment-methods) # QuickBuy Source: https://razorpay.com/docs/payments/payment-gateway/features/quickbuy Streamline checkout with QuickBuyโ€™s 1-click payment. Minimise steps and speed up transactions for a fast, seamless customer experience. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India QuickBuy is a one-click payment solution that streamlines checkout for returning customers. With a compact half-page interface, it intelligently displays preferred payment methods based on past transactions and automatically applies the best available offers, reducing friction and decision-making. This results in a faster, more efficient checkout experience that boosts conversion rates and enhances satisfaction for both customers and businesses. ![QuickBuy on Standard Checkout](https://razorpay.com/docs/build/browser/assets/images/quickbuy-std.jpg) > [!NOTE] > > **Handy Tips** > > This feature is available on mobile devices only: > > | Platform | Native SDK | Mobile Web | > | - | - | - | > | Android | v1.6.41+ | โœ“ | > | iOS | v1.5.1+ | โœ“ | ## Features * **Quick Transactions**: 1-click payment process for returning users with minimal steps for faster checkouts, enhanced by a half-page overlay that provides a streamlined experience. * **Clear Payment Details**: Transparent display of payment information, including savings and discounts. * **Automatic Offer Application**: Automatic application of offers with visible savings to enhance customer satisfaction. > [!NOTE] > > **Handy Tips** > > * Customers can use UPI intent, UPI Saved VPAs and Saved Cards through QuickBuy. > * QuickBuy displays recommended payment methods based on past transactions for a faster checkout. If no recommendations exist, the full checkout flow is shown. ## Advantages > [tab] Businesses > > * **Improved Conversion Rates**: Reduces drop-offs with minimal steps and pre-selected payment methods. > * **Enhanced User Experience**: Provides a faster, simpler payment process that encourages repeat transactions. > * **Efficient Checkout Process**: Offers advanced features like 1-click purchases, improving overall efficiency. > [tab] Customers > > * **Simplified Payments**: Pre-selection of preferred payment methods for quicker transactions. > * **Automatic Offer Application:** Automatically applies the best available offers for cost savings. ## How it Works QuickBuy is ideal for returning users who are logged into Razorpay Checkout and making repeat purchases. The workflow includes: 1. **Preferred payment method**: The most frequently used payment method is pre-selected. If the user changes their payment method, the system recalculates and applies the best available offer to the new method, notifying them of the updated total. 2. **Automatic offer application**: The best available offer is applied to the total. If they change the offer, the system recalculates and updates the total amount. 3. **Single-click purchase**: Customers complete their purchases in a single click. ## Embedded Quick Buy Want to show the recommended instrument on your own page instead of a generic **Pay Now** button? With [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded), you show the customer's preferred saved card or UPI app directly on your cart or product page, and the customer pays in one tap. It is available on mobile web, Android, iOS, React Native and Flutter. > [!NOTE] > > **Disable QuickBuy** > > To disable QuickBuy on checkout, contact our [Support team](https://razorpay.com/support/#request). # Embedded Quick Buy Source: https://razorpay.com/docs/payments/payment-gateway/features/quickbuy/embedded Show a customer's recommended payment instrument directly on your cart or product page and let them pay in one tap with Embedded Quick Buy. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Embedded Quick Buy is an extension of [QuickBuy](/docs/payments/payment-gateway/features/quickbuy) that brings a customer's recommended payment instrument onto your own pages. Instead of a generic **Pay Now** button that opens Razorpay Checkout, you show the instrument the customer is most likely to pay with, such as a saved card or a UPI app, on your cart, product or order summary page. The customer taps it and pays. Razorpay's payment instrument ranking model picks the instrument. You design and place the button. ## How It Differs From QuickBuy on Standard Checkout | | QuickBuy on Standard Checkout | Embedded Quick Buy | | - | - | - | | Where it appears | Inside the Razorpay Checkout modal. | Directly on your page, such as the cart, product page or order summary. | | What the customer sees first | A generic **Pay Now** button on your page. | The recommended instrument, for example **HDFC Debit โ€ขโ€ขโ€ขโ€ข4242** or **Google Pay**. | | Integration effort | None. It is enabled by default for eligible customers. | Integrate the lightweight Razorpay Custom SDK and build the button UI. | | Control over UI | Razorpay Checkout styling. | Full control over the button's design and placement. | ### See the Difference **QuickBuy on Standard Checkout**\ The customer taps a generic **Pay** button. Razorpay Checkout opens with the recommended instrument pre-selected. **Embedded Quick Buy**\ The recommended instrument, here PhonePe, appears on the merchant's own cart page. The customer taps **Place Order** to pay. ## Advantages > [tab] Businesses > > * **Higher conversion**: Customers see their preferred instrument upfront and pay in fewer steps. > * **Recommendations for new customers**: Razorpay recognises customers from across its network, so you get a recommendation even for a customer who has never paid on your site or app. > * **No PCI-DSS overhead**: Saved cards reach you as Razorpay tokens. You never store card data. > * **Ready-made assets**: The response includes CDN-hosted logos for UPI apps, card networks and issuing banks. > * **No changes to your existing checkout**: Your current checkout stays as the fallback. Orders, signature verification, webhooks and settlements work as they do today. > [tab] Customers > > * **One-tap payment**: Pay with the preferred instrument without opening the full checkout. > * **Clear details**: See the card's last four digits, network and issuer, or the UPI app, before paying. > * **Freedom to switch**: Choose **Change payment method** to open the full checkout at any time. ## How It Works 1. **Create a customer**: Create a customer with the [Customers API](/docs/api/customers/create) when you capture their details, for example at sign-up. 2. **Fetch recommended instruments**: Call `getRecommendedInstruments()` from the Razorpay Custom SDK with the `customer_id` or the customer's contact number. Razorpay returns up to 3 instruments ranked by how likely the customer is to complete the payment, along with logos to display. 3. **Render your button**: Show the top instrument (`items[0]`) as a Quick Buy button on your page. Add a **Change payment method** option beside it. 4. **Create an order and pay**: When the customer taps the button, create an order on your server and submit the payment with the recommended instrument. 5. **Verify the payment**: Verify the payment signature on your server and confirm the payment status, as in any Razorpay integration. If the customer taps **Change payment method**, or no instrument is returned, open your existing Razorpay Checkout. > [!NOTE] > > **Handy Tips** > > * Recommended instruments can be saved cards or UPI apps. > * On native SDKs, Razorpay checks which UPI apps are installed on the device and returns only those. On mobile web, the browser cannot check this, so all returned UPI apps are shown. > * If you do not pass an `order_id`, the response is limited to UPI intent apps. ## Who Can Integrate Businesses on Razorpay Standard Checkout, Custom Checkout and S2S integrations can use Embedded Quick Buy. In each case, you add the Razorpay Custom SDK to power the Quick Buy button. If you already use Custom Checkout, the only new step is fetching recommended instruments. ## Integration Guides Choose your platform: > [card] [Mobile Web](/docs/payments/payment-gateway/features/quickbuy/embedded/mobile-web) > > Integrate with `razorpay.js` on your mobile website. > [card] [Android](/docs/payments/payment-gateway/features/quickbuy/embedded/android) > > Integrate with the Android Custom UI SDK. > [card] [iOS](/docs/payments/payment-gateway/features/quickbuy/embedded/ios) > > Integrate with the iOS Custom UI SDK. > [card] [React Native](/docs/payments/payment-gateway/features/quickbuy/embedded/react-native) > > Integrate with the React Native Custom UI SDK. > [card] [Flutter](/docs/payments/payment-gateway/features/quickbuy/embedded/flutter) > > Integrate with the Flutter Custom UI SDK. > [card] [FAQs](/docs/payments/payment-gateway/features/quickbuy/embedded/faqs) > > Common questions about Embedded Quick Buy. # Embedded Quick Buy: Android Integration Source: https://razorpay.com/docs/payments/payment-gateway/features/quickbuy/embedded/android Integrate Embedded Quick Buy in your Android app with the Razorpay Custom UI SDK and show customers their recommended payment instrument. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to add [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) to your Android app. The integration builds on the [Android Custom UI SDK](/docs/payments/payment-gateway/android-integration/custom/build-integration). You render your own payment screen, and Razorpay processes the payment. > [!NOTE] > > **Already on the Android Custom UI SDK?** > > The steps specific to Quick Buy are [1.3 Create a Customer](#1-3-create-a-customer) and [1.4 Fetch Recommended Instruments](#1-4-fetch-recommended-instruments). All other steps follow the standard Custom UI SDK integration. **1.1** [Add the SDK Dependency](#1-1-add-the-sdk-dependency). **1.2** [Configure the SDK](#1-2-configure-the-sdk). **1.3** [Create a Customer](#1-3-create-a-customer). New for Quick Buy. **1.4** [Fetch Recommended Instruments](#1-4-fetch-recommended-instruments). New for Quick Buy. **1.5** [Create an Order in Server](#1-5-create-an-order-in-server). **1.6** [Initialise Razorpay in Your Activity](#1-6-initialise-razorpay-in-your-activity). **1.7** [Submit Payment](#1-7-submit-payment). **1.8** [Store Fields in Your Server](#1-8-store-fields-in-your-server). **1.9** [Verify Payment Signature](#1-9-verify-payment-signature). **1.10** [Verify Payment Status](#1-10-verify-payment-status). ## 1.1 Add the SDK Dependency Add the Custom UI SDK to your app-level `build.gradle` file: ```groovy build.gradle theme={null} dependencies { implementation 'com.razorpay:customui:3.9.22' } ``` Make sure your project can resolve dependencies from Maven Central. The SDK supports `minSdkVersion` 19 and above. ## 1.2 Configure the SDK ### Add Your API Key and Permissions Add your API Key ID and the internet permission to `AndroidManifest.xml`. The `` block lets the SDK detect installed UPI apps on Android 11 (API level 30) and above. ```xml AndroidManifest.xml theme={null} ``` ### Add ProGuard Rules ```text proguard-rules.pro theme={null} -keepclassmembers class * { @android.webkit.JavascriptInterface ; } -keepattributes JavascriptInterface -keepattributes *Annotation* -dontwarn com.razorpay.** -keep class com.razorpay.** {*;} -optimizations !method/inlining/* -keepclasseswithmembers class * { public void onPayment*(...); } ``` ### Add a WebView The SDK uses a WebView to complete flows such as card 3DS and bank OTP pages. Add a hidden WebView to your payment Activity's layout and register it with the SDK. Make it visible only while the payment is being submitted. ```java Java theme={null} WebView webview = findViewById(R.id.payment_webview); webview.setVisibility(View.GONE); // set to VISIBLE only during submit() razorpay.setWebView(webview); ``` > [!NOTE] > > **Handy Tips** > > Make sure the device supports TLS v1.1 or v1.2 for PCI compliance. Never log or store card details on the device. ## 1.3 Create a Customer Create a customer on your server with the [Customers API](/docs/api/customers/create). You can do this asynchronously, for example when you collect the customer's details. Use the `customer_id` returned in the response to fetch recommended instruments in [step 1.4](#1-4-fetch-recommended-instruments). ```bash Request theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ "name": "Gaurav Kumar", "contact": "9123456780", "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." } }' ``` ```json Response theme={null} { "id": "cust_1Aa00000000004", "entity": "customer", "name": "Gaurav Kumar", "email": "gaurav.kumar@example.com", "contact": "9123456780", "gstin": null, "notes": { "notes_key_1": "Tea, Earl Grey, Hot", "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." }, "created_at": 1234567890 } ``` ## 1.4 Fetch Recommended Instruments Call `getRecommendedInstruments()` to get the customer's recommended payment instruments. * The response contains up to 3 instruments, ranked by how likely the customer is to complete the payment. `items[0]` is the strongest recommendation. * The SDK checks which UPI apps are installed on the device and returns only those. * The response includes the logos you need to render the Quick Buy button: `app_logo`, `network_logo_url` and `issuer_logo_url`. * Create an order first and pass its `order_id`, so that all instrument types are eligible. Without an `order_id`, the response is limited to UPI intent apps and `amount` and `currency` become mandatory. ```java Java theme={null} JSONObject options = new JSONObject(); options.put("order_id", "order_xxxxxx"); // recommended options.put("customer_id", "cust_xxxxxx"); // from step 1.3 options.put("amount", 100); // mandatory if no order_id options.put("currency", "INR"); // mandatory if no order_id options.put("contact", "8050981760"); // pass if no customer_id razorpay.getRecommendedInstruments(options, new RecommendedInstrumentsCallback() { @Override public void onInstrumentsReceived(JSONObject response) { JSONArray items = response .getJSONObject("get_recommended_instruments") .getJSONArray("items"); for (int i = 0; i < items.length(); i++) { JSONObject item = items.getJSONObject(i); String method = item.getString("method"); if ("card".equals(method)) { JSONObject card = item.getJSONObject("card"); Log.d(TAG, card.getString("last4")); // display only } if ("upi".equals(method)) { JSONObject upi = item.getJSONObject("upi"); Log.d(TAG, upi.getString("app")); // for example, gpay Log.d(TAG, upi.getString("upi_app_package_name")); // Android package name Log.d(TAG, upi.getString("app_logo")); // CDN logo URL } } } @Override public void onError(String error) { // Fall back to Standard Checkout } }); ``` > [!WARNING] > > **Watch Out!** > > * Always show a **Change payment method** option next to the Quick Buy button. It should open the full Razorpay Checkout, as per the [Android Standard Checkout integration](/docs/payments/payment-gateway/android-integration/standard/integration-steps). > * If the response has no instruments, or the call fails, show your regular checkout instead of the Quick Buy button. #### Sample Response ```json Response theme={null} { "actions": ["get_recommended_instruments"], "get_recommended_instruments": { "entity": "collection", "count": 3, "items": [ { "method": "card", "token": "token_Hf7vKlM2NpQrSt", "card": { "last4": "4242", "network": "Visa", "issuer": "HDFC", "type": "debit", "sub_type": "consumer", "international": false, "network_logo_url": "https://cdn.razorpay.com/app/visa.svg", "issuer_logo_url": "https://cdn.razorpay.com/app/hdfc.svg" } }, { "method": "upi", "upi": { "flow": "intent", "app": "gpay", "upi_app_package_name": "com.google.android.apps.nbu.paisa.user", "app_logo": "https://cdn.razorpay.com/app/gpay.svg" } }, { "method": "upi", "upi": { "flow": "intent", "app": "phonepe", "upi_app_package_name": "com.phonepe.app", "app_logo": "https://cdn.razorpay.com/app/phonepe.svg" } } ] } } ``` #### Response Parameters | Parameter | Type | Description | How to use it | | - | - | - | - | | `actions` | array | Always `get_recommended_instruments`. | Check that the response matches the action you called. | | `get_recommended_instruments.entity` | string | Always `collection`. | Standard Razorpay collection identifier. | | `get_recommended_instruments.count` | integer | Number of instruments in `items`. Maximum 3. | Check before you render the button. | | `get_recommended_instruments.items` | array | Recommended instruments in order. Index 0 is the strongest recommendation. | Render the Quick Buy button from `items[0]`. | | `items.method` | string | `card` or `upi`. | Decides which UI to render and which payment fields to send. | | `token` | string | Razorpay token ID of the saved card. | Pass as `token` when you submit the payment. | | `card.last4` | string | Last 4 digits of the card. For display only. | Render a masked label, such as **HDFC Debit โ€ขโ€ขโ€ขโ€ข4242**. Never pass it to payment APIs. | | `card.network` | string | `Visa`, `MasterCard`, `RuPay`, `Amex` or `Diners`. | Show the network name. | | `card.issuer` | string | 4-character issuer code. For example, `HDFC`, `ICIC` or `SBIN`. | Show the issuer name. | | `card.type` | string | `credit`, `debit` or `prepaid`. | Show the card type on the button. | | `card.sub_type` | string | `consumer`, `business` or `unknown`. | Optional. Use it if business cards need a different treatment. | | `card.international` | boolean | `true` if the card is international. | Flag international cards if needed. | | `card.network_logo_url` | string | CDN-hosted card network logo. | Load directly into an `ImageView`. | | `card.issuer_logo_url` | string | CDN-hosted issuing bank logo. | Load directly into an `ImageView`. | | `upi.flow` | string | Always `intent`. | Confirms the UPI flow. | | `upi.app` | string | Short name of the UPI app. For example, `gpay`, `phonepe`, `paytm` or `bhim`. | Show on the button. | | `upi.upi_app_package_name` | string | Android package name of the UPI app. For example, `com.google.android.apps.nbu.paisa.user`. | Pass as `upi_app_package_name` when you submit the payment. | | `upi.app_logo` | string | CDN-hosted UPI app logo. | Show on the button. | ## 1.5 Create an Order in Server Create an order on your server using the [Orders API](/docs/api/orders/create) when the customer taps the Quick Buy button, or earlier if you pass the `order_id` in [step 1.4](#1-4-fetch-recommended-instruments). > [!WARNING] > > **Watch Out!** > > Create an order for every payment, server-side, using your API Key ID and secret. Payments made without an `order_id` cannot be captured and are automatically refunded. ```bash Request theme={null} curl -X POST https://api.razorpay.com/v1/orders \ -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -H 'content-type:application/json' \ -d '{ "amount": 50000, "currency": "INR", "customer_id": "cust_1Aa00000000004", "receipt": "rcptid_11", "notes": { "key1": "value3", "key2": "value2" } }' ``` ```json Response theme={null} { "id": "order_IluGWxBm9U8zJ8", "entity": "order", "amount": 50000, "amount_paid": 0, "amount_due": 50000, "currency": "INR", "receipt": "rcptid_11", "status": "created", "attempts": 0, "notes": [], "created_at": 1642662092 } ``` #### Request Parameters `amount` *mandatory* : `integer` Payment amount in the smallest currency sub-unit. For example, pass `50000` for โ‚น500. `currency` *mandatory* : `string` The 3-letter ISO currency code. For example, `INR`. `customer_id` *mandatory* : `string` The customer ID returned in [step 1.3](#1-3-create-a-customer). `receipt` *optional* : `string` Your receipt number for the order. Maximum 40 characters. `notes` *optional* : `object` Key-value pairs for additional information. Maximum 15 pairs of 256 characters each. `partial_payment` *optional* : `boolean` Set to `true` to accept partial payments. Defaults to `false`. `first_payment_min_amount` *optional* : `integer` Minimum amount for the first partial payment. Use only when `partial_payment` is `true`. ## 1.6 Initialise Razorpay in Your Activity Create the SDK instance in your payment Activity. The SDK reads the key from the manifest ([step 1.2](#1-2-configure-the-sdk)), or you can pass it in code. ```java Java theme={null} import com.razorpay.Razorpay; Razorpay razorpay = new Razorpay(this); // uses com.razorpay.ApiKey from the manifest // OR Razorpay razorpay = new Razorpay(this, "YOUR_KEY_ID"); // sets the key in code // Register the hidden WebView from step 1.2 razorpay.setWebView(findViewById(R.id.payment_webview)); ``` ## 1.7 Submit Payment When the customer taps the Quick Buy button, build the payment data as a `JSONObject` and pass it to `razorpay.submit()`. The result is returned to `PaymentResultWithDataListener`: * `onPaymentSuccess` for a successful payment. * `onPaymentError` for a failed payment. #### Common Parameters `order_id` *mandatory* : `string` The order ID created in [step 1.5](#1-5-create-an-order-in-server). `amount` *mandatory* : `integer` Payment amount in the smallest currency sub-unit. `currency` *mandatory* : `string` The 3-letter ISO currency code. For example, `INR`. `email` *mandatory* : `string` Customer's email address. `contact` *mandatory* : `string` Customer's phone number. `method` *mandatory* : `string` Payment method. Possible values: `upi`, `card`, `netbanking`, `wallet` or `emi`. `notes` *optional* : `object` Key-value pairs for additional information. Maximum 15 pairs of 256 characters each. > [tab] UPI Intent > > Pass the `upi_app_package_name` returned by `getRecommendedInstruments()` in [step 1.4](#1-4-fetch-recommended-instruments). > > ```java Java theme={null} > JSONObject data = new JSONObject(); > data.put("amount", 29935); > data.put("currency", "INR"); > data.put("order_id", "order_DgZ26rHjbzLLY2"); > data.put("email", "gaurav.kumar@example.com"); > data.put("contact", "+919876543210"); > data.put("method", "upi"); > data.put("_[flow]", "intent"); > data.put("upi_app_package_name", "com.google.android.apps.nbu.paisa.user"); > > findViewById(R.id.payment_webview).setVisibility(View.VISIBLE); > razorpay.submit(data, resultListener); > ``` > [tab] Saved Card > > Pass the `token` returned by `getRecommendedInstruments()` in [step 1.4](#1-4-fetch-recommended-instruments) and collect only the CVV from the customer. > > ```java Java theme={null} > JSONObject data = new JSONObject(); > data.put("amount", 29935); > data.put("currency", "INR"); > data.put("order_id", "order_DgZ26rHjbzLLY2"); > data.put("email", "gaurav.kumar@example.com"); > data.put("contact", "+919876543210"); > data.put("method", "card"); > data.put("token", "token_Hf7vKlM2NpQrSt"); > data.put("card[cvv]", "100"); > razorpay.submit(data, resultListener); > ``` > [tab] Netbanking > > ```java Java theme={null} > JSONObject data = new JSONObject(); > data.put("amount", 29935); > data.put("currency", "INR"); > data.put("order_id", "order_DgZ26rHjbzLLY2"); > data.put("email", "gaurav.kumar@example.com"); > data.put("contact", "+919876543210"); > data.put("method", "netbanking"); > data.put("bank", "SBIN"); > razorpay.submit(data, resultListener); > ``` > [tab] Wallet > > ```java Java theme={null} > JSONObject data = new JSONObject(); > data.put("amount", 29935); > data.put("currency", "INR"); > data.put("order_id", "order_DgZ26rHjbzLLY2"); > data.put("email", "gaurav.kumar@example.com"); > data.put("contact", "+919876543210"); > data.put("method", "wallet"); > data.put("wallet", "mobikwik"); > razorpay.submit(data, resultListener); > ``` #### Handle the Result ```java Java theme={null} PaymentResultWithDataListener resultListener = new PaymentResultWithDataListener() { @Override public void onPaymentSuccess(String razorpayPaymentId, PaymentData paymentData) { // Send paymentData.getPaymentId(), paymentData.getOrderId() and // paymentData.getSignature() to your server for verification (step 1.9) } @Override public void onPaymentError(int code, String description) { // For example, Checkout.NETWORK_ERROR or Checkout.PAYMENT_CANCELED } }; ``` ## 1.8 Store Fields in Your Server A successful payment returns these fields through `PaymentData`. Store them on your server and verify the signature in the next step. ```json Success Response theme={null} { "razorpay_payment_id": "pay_29QQoUBi66xm2f", "razorpay_order_id": "order_9A33XWu170gUtm", "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" } ``` `razorpay_payment_id` : `string` Unique identifier of the payment. Returned only for successful payments. `razorpay_order_id` : `string` Unique identifier of the order. `razorpay_signature` : `string` Signature used to verify that the payment is authentic. ## 1.9 Verify Payment Signature Verify the signature on your server to confirm the payment is authentic. This step is mandatory. Never verify the signature in the app. 1. Use the `order_id` stored on your server. Do not use the `razorpay_order_id` returned to the app. 2. Create an HMAC-SHA256 hex digest of `order_id + "|" + razorpay_payment_id` using your API key secret. 3. If the digest matches `razorpay_signature`, the payment is authentic. ```text Pseudocode theme={null} generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); if (generated_signature == razorpay_signature) { // payment is authentic } ``` ```java Java (server-side) theme={null} RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); String secret = "[YOUR_KEY_SECRET]"; JSONObject options = new JSONObject(); options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); boolean status = Utils.verifyPaymentSignature(options, secret); ``` ## 1.10 Verify Payment Status Confirm that the payment status is `captured`. You can track it in 3 ways: * **Dashboard**: Log in to the Dashboard and go to **Transactions** โ†’ **Payments**. A successful payment has a payment ID and the status **Captured**. * **Webhooks**: Subscribe to [payment webhook events](/docs/webhooks/payments) for real-time updates. * **API**: Poll the [Fetch a Payment API](/docs/api/payments/fetch-with-id) with the `razorpay_payment_id`. > [!NOTE] > > **Handy Tips** > > Use [Payment Capture Settings](/docs/payments/payments/capture-settings) to capture payments automatically. ## Next Steps * [Test your integration](/docs/payments/payment-gateway/android-integration/custom/test-integration) in Test Mode. * Complete the [go-live checklist](/docs/payments/payment-gateway/android-integration/custom/go-live-checklist). * Replace your test API keys with live keys when you are ready to go live. ## Related Information * [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) * [Embedded Quick Buy FAQs](/docs/payments/payment-gateway/features/quickbuy/embedded/faqs) * [Android Custom UI SDK Integration](/docs/payments/payment-gateway/android-integration/custom/build-integration) # Embedded Quick Buy FAQs Source: https://razorpay.com/docs/payments/payment-gateway/features/quickbuy/embedded/faqs Answers to common questions about Embedded Quick Buy: eligibility, PCI-DSS, supported platforms, recommended instruments, testing and SDK troubleshooting. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ## General > [accordion] 1. How is Embedded Quick Buy different from QuickBuy on Standard Checkout? > > QuickBuy on Standard Checkout shows a generic **Pay Now** button on your page. When the customer taps it, the recommended instrument opens in the Razorpay Checkout modal. > > Embedded Quick Buy shows the recommended instrument directly on your page, wherever you choose to place it. > [accordion] 2. Can I integrate Embedded Quick Buy if I use Standard Checkout, Custom Checkout or an S2S integration? > > Yes. Businesses on all three integrations can use Embedded Quick Buy. You need to add the lightweight Razorpay Custom SDK, which powers the Quick Buy button. > [accordion] 3. Do I need to be PCI-DSS compliant to show card details? > > No. You do not store any card data. You fetch the recommended instrument from Razorpay, and saved cards reach you as Razorpay tokens. So there is no PCI-DSS requirement. > [accordion] 4. Which platforms support Embedded Quick Buy? > > Embedded Quick Buy is available on: > > * [Mobile web](/docs/payments/payment-gateway/features/quickbuy/embedded/mobile-web) > * [Android](/docs/payments/payment-gateway/features/quickbuy/embedded/android) > * [iOS](/docs/payments/payment-gateway/features/quickbuy/embedded/ios) > * [React Native](/docs/payments/payment-gateway/features/quickbuy/embedded/react-native) > * [Flutter](/docs/payments/payment-gateway/features/quickbuy/embedded/flutter) > [accordion] 5. Does Embedded Quick Buy affect my existing checkout integration? > > No. Embedded Quick Buy is an addition to your current checkout. It appears before checkout and hands over to your existing Razorpay Checkout when the customer taps **Change payment method** or has no recommended instrument. Your current checkout flow is unaffected until you deploy the Quick Buy button. You do not need to change your Orders API integration. > [accordion] 6. How many instruments are returned, and can I choose which ones? > > Razorpay returns up to 3 instruments, ranked by how likely the customer is to complete the payment. Razorpay decides the count and the instruments. You cannot configure them. > > To offer more options than the top recommendation, send the customer to the full checkout through **Change payment method** rather than showing all 3 as separate buttons. > [accordion] 7. What happens if I do not pass an order\_id or a customer\_id? > > * Without an `order_id`, the response is limited to UPI intent apps. Saved cards are not returned. > * Without a `customer_id`, pass the customer's contact number. If neither is available, or the customer has no recommended instruments, the response returns an empty `items` array. Treat this as a normal response, not an error, and show your regular checkout button. > [accordion] 8. Should I show an intermediate screen when the customer changes the payment method? > > No. Take the customer straight to the full Razorpay Checkout. An extra screen adds a step and can cause drop-offs. Razorpay Checkout already shows recommended instruments at the top, along with all other payment methods. > [accordion] 9. Is Cash on Delivery (COD) part of Quick Buy? > > No. COD is not part of the Quick Buy flow, and you handle COD separately by default. If you want to offer COD on Razorpay Checkout, you can enable it separately. > [accordion] 10. Can I test Embedded Quick Buy before going live? > > Yes. You can test the full flow, including fetching recommended instruments, creating orders and submitting payments, in Test Mode with your test API keys. Going live with Quick Buy does not affect your existing checkout. It takes effect only when you deploy the Quick Buy button to production. ## Mobile Web > [accordion] 1. I use Standard Checkout (checkout.js). What else do I need for Quick Buy on mobile web? > > Quick Buy on mobile web is built on Custom Checkout (`razorpay.js`). Include `razorpay.js`, create customers and fetch recommended instruments to power the Quick Buy button. Your Standard Checkout remains the fallback when the customer taps **Change payment method**. Know more about the [mobile web integration](/docs/payments/payment-gateway/features/quickbuy/embedded/mobile-web). > [accordion] 2. How do I handle a UPI app that is not installed on the customer's device? > > On mobile web, the browser cannot check which apps are installed. Native SDKs can, and they drop apps that are not installed. On mobile web, show every UPI app returned. If the app is not installed, the device handles the failed deep link. You do not need to handle this case. ## React Native SDK > [accordion] 1. I use react-native-razorpay. Do I also need react-native-customui? > > Yes. Quick Buy is powered by the Custom UI SDK. Use `react-native-customui` to fetch recommended instruments and power the Quick Buy button. Continue to use `react-native-razorpay` to open the full Standard Checkout when the customer taps **Change payment method**. > [accordion] 2. Which SDK version do I need? > > Use [react-native-customui](https://www.npmjs.com/package/react-native-customui) version 2.2.9 or later. It includes `getRecommendedInstruments()`, the fix for the iOS `pod install` framework conflict and consistent UPI app detection on Android. > [accordion] 3. Do I need to link react-native-customui manually on Android? > > No. React Native autolinking handles the Android module. Linking it manually in `settings.gradle`, `app/build.gradle` or `MainApplication` conflicts with autolinking and fails the Gradle build. > > The `com.razorpay.rn.RazorpayPackage` import belongs to `react-native-razorpay`, not `react-native-customui`. > [accordion] 4. The Android Gradle build fails with an implicit dependency error. How do I fix it? > > You may see this error: > > ```text Error theme={null} > Task ':react-native-razorpay:packageDebugResources' uses this output of > task ':react-native-customui:generateDebugResValues' without declaring an > explicit or implicit dependency. > ``` > > It occurs when `react-native-customui` is linked manually while autolinking also picks it up. To fix it, remove the manual linking. > > 1. From `android/settings.gradle`, remove: > ```groovy settings.gradle theme={null} > include ':react-native-customui' > project(':react-native-customui').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-customui/android') > ``` > 2. From `android/app/build.gradle`, remove: > ```groovy build.gradle theme={null} > implementation project(':react-native-customui') > ``` > 3. From `MainApplication.kt`, remove the package if you added it only for the Custom UI SDK: > ```kotlin MainApplication.kt theme={null} > add(RazorpayPackage()) // remove if added only for customui > ``` > 4. Clean and rebuild: > ```bash Terminal theme={null} > rm -rf android/.gradle android/build android/app/build > rm -rf node_modules/react-native-customui/android/build > rm -rf node_modules/react-native-razorpay/android/build > cd android && ./gradlew clean > ``` > [accordion] 5. pod install fails with conflicting frameworks razorpay.xcframework and razorpaycore.xcframework. Why? > > This can happen when both `react-native-razorpay` and `react-native-customui` are installed. Update the pods by running `pod install` again to pull the latest SDK version, which resolves the conflict. No other change is needed. > [accordion] 6. getRecommendedInstruments() crashes because the SDK instance is null. Why? > > On Android, `initRazorpay()` initialises the SDK on the UI thread and does not return a promise. If you call `getRecommendedInstruments()` immediately after it, initialisation may not be complete. > > Call `initRazorpay()` earlier in the flow, for example when the checkout screen loads or when you first fetch your API key. Call `getRecommendedInstruments()` after a short delay or in a later interaction. > [accordion] 7. getRecommendedInstruments() fails even though the SDK is initialised. Why? > > Check that the options include a `customer` object with a `contact` field. It is mandatory by default, although this depends on your account configuration. If it is required and missing, the call fails. > > ```javascript JavaScript theme={null} > Razorpay.getRecommendedInstruments({ > amount: 100, > currency: 'INR', > customer: { > contact: '+919123456780' > } > }); > ``` > [accordion] 8. When the customer taps a recommended UPI app, a different app opens. Why? > > There are two possible causes: > > * **Inconsistent app detection on the device**: Some UPI apps respond inconsistently when the device checks whether they are ready. Upgrade to `react-native-customui` 2.2.9 or later, which keeps UPI app detection consistent on Android. > * **Incomplete payment payload**: Make sure the payment request includes the selected app's package name in `upi_app_package_name`. ## Related Information * [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) * [QuickBuy](/docs/payments/payment-gateway/features/quickbuy) # Embedded Quick Buy: Flutter Integration Source: https://razorpay.com/docs/payments/payment-gateway/features/quickbuy/embedded/flutter Integrate Embedded Quick Buy in your Flutter app with the Razorpay Flutter Custom UI SDK and show customers their recommended payment instrument. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to add [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) to your Flutter app. The integration builds on the [Flutter Custom UI SDK](/docs/payments/payment-gateway/flutter-integration/custom/build-integration). You render your own payment UI, and Razorpay processes the payment. > [!NOTE] > > **Already on the Flutter Custom UI SDK?** > > The steps specific to Quick Buy are [1.3 Create a Customer](#1-3-create-a-customer) and [1.4 Fetch Recommended Instruments](#1-4-fetch-recommended-instruments). All other steps follow the standard Flutter integration. **1.1** [Install the SDK](#1-1-install-the-sdk). **1.2** [Add ProGuard Rules](#1-2-add-proguard-rules). **1.3** [Create a Customer](#1-3-create-a-customer). New for Quick Buy. **1.4** [Fetch Recommended Instruments](#1-4-fetch-recommended-instruments). New for Quick Buy. **1.5** [Create an Order in Server](#1-5-create-an-order-in-server). **1.6** [Import the Razorpay Module](#1-6-import-the-razorpay-module). **1.7** [Submit Payment](#1-7-submit-payment). **1.8** [Store Fields in Your Server](#1-8-store-fields-in-your-server). **1.9** [Verify Payment Signature](#1-9-verify-payment-signature). **1.10** [Verify Payment Status](#1-10-verify-payment-status). ## 1.1 Install the SDK Add the Razorpay Flutter Custom UI SDK to the dependencies in your app's `pubspec.yaml` file: ```yaml pubspec.yaml theme={null} dependencies: razorpay_flutter_customui: ^1.4.2 ``` Run this command in your app's root directory to install the package: ```bash Terminal theme={null} flutter packages get ``` #### Minimum Requirements | Platform | Requirement | | - | - | | Android | API level 19 or higher. Set `minSdkVersion 19` in `android/app/build.gradle`. | | iOS | Deployment target iOS 10.0 or higher, with bitcode enabled. | ## 1.2 Add ProGuard Rules If you use ProGuard on Android, add these rules so that the SDK classes are not obfuscated: ```text proguard-rules.pro theme={null} -keepattributes *Annotation* -dontwarn com.razorpay.** -keep class com.razorpay.** {*;} -optimizations !method/inlining/ -keepclasseswithmembers class * { public void onPayment*(...); } ``` ## 1.3 Create a Customer Create a customer on your server with the [Customers API](/docs/api/customers/create). You can do this asynchronously, for example when you collect the customer's details. Use the `customer_id` returned in the response to fetch recommended instruments in [step 1.4](#1-4-fetch-recommended-instruments). ```bash Request theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ "name": "Gaurav Kumar", "contact": "9123456780", "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." } }' ``` ```json Response theme={null} { "id": "cust_1Aa00000000004", "entity": "customer", "name": "Gaurav Kumar", "email": "gaurav.kumar@example.com", "contact": "9123456780", "gstin": null, "notes": { "notes_key_1": "Tea, Earl Grey, Hot", "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." }, "created_at": 1234567890 } ``` ## 1.4 Fetch Recommended Instruments Call `getRecommendedInstruments()` to get the customer's recommended payment instruments. * The response contains up to 3 instruments, ranked by how likely the customer is to complete the payment. `items[0]` is the strongest recommendation. * The SDK checks which UPI apps are installed on the device and returns only those. If no UPI app is installed and there is no other recommendation, `items` is empty. Open your regular checkout in that case. * The response includes the logos you need to render the Quick Buy button. * Pass the `order_id` so that all instrument types are eligible. Without an `order_id`, the response is limited to UPI intent apps. * Pass the customer's contact number in `customer.contact`. It is mandatory by default, although this depends on your account configuration. ```dart Dart theme={null} import 'package:razorpay_flutter_customui/razorpay_flutter_customui.dart' as customui; customui.Razorpay _customUiRazorpay = customui.Razorpay(); _customUiRazorpay.on( customui.Razorpay.EVENT_PAYMENT_SUCCESS, _onPaymentSuccess, unwrapData: true); _customUiRazorpay.on( customui.Razorpay.EVENT_PAYMENT_ERROR, _onPaymentError, unwrapData: true); _customUiRazorpay.initilizeSDK('rzp_test_xxxxxxxxxx'); try { final options = { 'key': '', 'order_id': 'order_xxxxxx', 'amount': 100, 'currency': 'INR', 'customer': { 'contact': '+919876543210', }, }; final result = await _customUiRazorpay.getRecommendedInstruments(options); final items = result['items'] as List? ?? []; debugPrint('Recommended instruments: ${items.length}'); } catch (e) { // Fall back to your regular checkout debugPrint('getRecommendedInstruments failed: $e'); } ``` > [!WARNING] > > **Watch Out!** > > * Always show a **Change payment method** option next to the Quick Buy button. It should open the full Razorpay Checkout of your existing integration, Custom or Standard. Know more about the [Flutter Standard integration](/docs/payments/payment-gateway/flutter-integration/standard/integration-steps). > * If `items` is empty, or the call fails, show your regular checkout instead of the Quick Buy button. #### Sample Response ```json Response theme={null} { "entity": "collection", "count": 3, "items": [ { "method": "card", "token": "token_Hf7vKlM2NpQrSt", "card": { "last4": "4242", "network": "Visa", "issuer": "HDFC", "type": "debit", "sub_type": "consumer", "international": false, "network_logo_url": "https://cdn.razorpay.com/app/visa.svg", "issuer_logo_url": "https://cdn.razorpay.com/app/hdfc.svg" } }, { "method": "upi", "upi": { "flow": "intent", "app": "gpay", "app_package": "com.google.android.apps.nbu.paisa.user", "app_logo": "https://cdn.razorpay.com/app/gpay.svg" } }, { "method": "upi", "upi": { "flow": "intent", "app": "phonepe", "app_package": "com.phonepe.app", "app_logo": "https://cdn.razorpay.com/app/phonepe.svg" } } ] } ``` #### Response Parameters | Parameter | Type | Description | How to use it | | - | - | - | - | | `entity` | string | Always `collection`. | Standard Razorpay collection identifier. | | `count` | integer | Number of instruments in `items`. Maximum 3. | Check before you render the button. | | `items` | array | Recommended instruments in order. Index 0 is the strongest recommendation. | Render the Quick Buy button from `items[0]`. | | `items.method` | string | `card` or `upi`. | Decides which UI to render and which payment fields to send. | | `token` | string | Razorpay token ID of the saved card. | Pass as `token` when you submit the payment. | | `card.last4` | string | Last 4 digits of the card. For display only. | Render a masked label, such as **HDFC Debit โ€ขโ€ขโ€ขโ€ข4242**. Never pass it to payment APIs. | | `card.network` | string | `Visa`, `MasterCard`, `RuPay`, `Amex` or `Diners`. | Show the network name. | | `card.issuer` | string | 4-character issuer code. For example, `HDFC`, `ICIC` or `SBIN`. | Show the issuer name. | | `card.type` | string | `credit`, `debit` or `prepaid`. | Show the card type on the button. | | `card.sub_type` | string | `consumer`, `business` or `unknown`. | Optional. Use it if business cards need a different treatment. | | `card.international` | boolean | `true` if the card is international. | Flag international cards if needed. | | `card.network_logo_url` | string | CDN-hosted card network logo. | Use directly in an `Image.network` widget. | | `card.issuer_logo_url` | string | CDN-hosted issuing bank logo. | Use directly in an `Image.network` widget. | | `upi.flow` | string | Always `intent`. | Confirms the UPI flow. | | `upi.app` | string | Short name of the UPI app. For example, `gpay`, `phonepe`, `paytm` or `bhim`. | Show on the button. | | `upi.app_package` | string | Package name of the UPI app. For example, `com.google.android.apps.nbu.paisa.user`. | Pass as `upi_app_package_name` when you submit the payment. | | `upi.app_logo` | string | CDN-hosted UPI app logo. | Show on the button. | ## 1.5 Create an Order in Server Create an order on your server using the [Orders API](/docs/api/orders/create) when the customer taps the Quick Buy button, or earlier if you pass the `order_id` in [step 1.4](#1-4-fetch-recommended-instruments). > [!WARNING] > > **Watch Out!** > > Create an order for every payment, server-side, using your API Key ID and secret. Payments made without an `order_id` cannot be captured and are automatically refunded. ```bash Request theme={null} curl -X POST https://api.razorpay.com/v1/orders \ -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -H 'content-type:application/json' \ -d '{ "amount": 50000, "currency": "INR", "customer_id": "cust_1Aa00000000004", "receipt": "rcptid_11" }' ``` ## 1.6 Import the Razorpay Module Import the Razorpay Custom UI module into your widget, create an instance and register the payment event listeners: ```dart Dart theme={null} import 'package:razorpay_flutter_customui/razorpay_flutter_customui.dart' as customui; late customui.Razorpay _customUiRazorpay; @override void initState() { super.initState(); _customUiRazorpay = customui.Razorpay(); _customUiRazorpay.on(customui.Razorpay.EVENT_PAYMENT_SUCCESS, _onPaymentSuccess, unwrapData: true); _customUiRazorpay.on(customui.Razorpay.EVENT_PAYMENT_ERROR, _onPaymentError, unwrapData: true); _customUiRazorpay.initilizeSDK('rzp_test_xxxxxxxxxx'); } void _onPaymentSuccess(dynamic response) { // Payment successful. Send the response to your server for verification. } void _onPaymentError(dynamic response) { // Payment failed } @override void dispose() { super.dispose(); _customUiRazorpay.clear(); // Removes all listeners } ``` ## 1.7 Submit Payment When the customer taps the Quick Buy button, call `submit()` with the payment options for the recommended instrument. For a recommended UPI app, pass `method: 'upi'`, `_[flow]: 'intent'` and the app's package name in `upi_app_package_name`: ```dart Dart theme={null} void submitCheckout() { var options = { 'key': '', 'amount': 50000, 'currency': 'INR', 'name': 'Acme Corp.', 'order_id': 'order_EMBFqjDHEEn80l', 'method': 'upi', '_[flow]': 'intent', 'upi_app_package_name': 'com.phonepe.app' }; try { _customUiRazorpay.submit(options); } catch (e) { debugPrint(e.toString()); } } ``` For other payment methods, see the [Flutter Custom UI payment methods](/docs/payments/payment-gateway/flutter-integration/custom/payment-methods). ## 1.8 Store Fields in Your Server A successful payment returns these fields to your `_onPaymentSuccess` handler. Store them on your server and verify the signature in the next step. ```json Success Response theme={null} { "razorpay_payment_id": "pay_29QQoUBi66xm2f", "razorpay_order_id": "order_9A33XWu170gUtm", "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" } ``` `razorpay_payment_id` : `string` Unique identifier of the payment. Returned only for successful payments. `razorpay_order_id` : `string` Unique identifier of the order. `razorpay_signature` : `string` Signature used to verify that the payment is authentic. ## 1.9 Verify Payment Signature Verify the signature on your server to confirm the payment is authentic. This step is mandatory. 1. Use the `order_id` stored on your server. Do not use the `razorpay_order_id` returned to the app. 2. Create an HMAC-SHA256 hex digest of `order_id + "|" + razorpay_payment_id` using your API key secret. 3. If the digest matches `razorpay_signature`, the payment is authentic. ```text Pseudocode theme={null} generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); if (generated_signature == razorpay_signature) { // payment is authentic } ``` > [!WARNING] > > **Watch Out!** > > Always verify the signature on your server, never in the Flutter app. Never ship your API key secret in the app bundle. ```java Java (server-side) theme={null} RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); String secret = "[YOUR_KEY_SECRET]"; JSONObject options = new JSONObject(); options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); boolean status = Utils.verifyPaymentSignature(options, secret); ``` ## 1.10 Verify Payment Status Confirm that the payment status is `captured`. You can track it in 3 ways: * **Dashboard**: Log in to the Dashboard and go to **Transactions** โ†’ **Payments**. A successful payment has a payment ID and the status **Captured**. * **Webhooks**: Subscribe to [payment webhook events](/docs/webhooks/payments) for real-time updates. * **API**: Poll the [Fetch a Payment API](/docs/api/payments/fetch-with-id) with the `razorpay_payment_id`. > [!NOTE] > > **Handy Tips** > > Use [Payment Capture Settings](/docs/payments/payments/capture-settings) to capture payments automatically. ## Next Steps * [Test your integration](/docs/payments/payment-gateway/flutter-integration/custom/test-integration) in Test Mode. * Set up webhooks for real-time payment events. * Replace your test API keys with live keys when you are ready to go live. ## Related Information * [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) * [Embedded Quick Buy FAQs](/docs/payments/payment-gateway/features/quickbuy/embedded/faqs) * [Flutter Custom UI SDK Integration](/docs/payments/payment-gateway/flutter-integration/custom/build-integration) # Embedded Quick Buy: iOS Integration Source: https://razorpay.com/docs/payments/payment-gateway/features/quickbuy/embedded/ios Integrate Embedded Quick Buy in your iOS app with the Razorpay Custom UI SDK and show customers their recommended payment instrument. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to add [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) to your iOS app. The integration builds on the [iOS Custom UI SDK](/docs/payments/payment-gateway/ios-integration/custom/build-integration). You render your own payment screen in your `UIViewController` or SwiftUI view, and Razorpay processes the payment. > [!NOTE] > > **Already on the iOS Custom UI SDK?** > > The steps specific to Quick Buy are [1.3 Create a Customer](#1-3-create-a-customer) and [1.4 Fetch Recommended Instruments](#1-4-fetch-recommended-instruments). All other steps follow the standard Custom UI SDK integration. **1.1** [Add the SDK Dependency](#1-1-add-the-sdk-dependency). **1.2** [Configure the SDK](#1-2-configure-the-sdk). **1.3** [Create a Customer](#1-3-create-a-customer). New for Quick Buy. **1.4** [Fetch Recommended Instruments](#1-4-fetch-recommended-instruments). New for Quick Buy. **1.5** [Create an Order in Server](#1-5-create-an-order-in-server). **1.6** [Initialise RazorpayCheckout in Your ViewController](#1-6-initialise-razorpaycheckout-in-your-viewcontroller). **1.7** [Submit Payment](#1-7-submit-payment). **1.8** [Store Fields in Your Server](#1-8-store-fields-in-your-server). **1.9** [Verify Payment Signature](#1-9-verify-payment-signature). **1.10** [Verify Payment Status](#1-10-verify-payment-status). ## 1.1 Add the SDK Dependency > [tab] CocoaPods > > Add the Custom UI SDK to your `Podfile` and run `pod install`: > > ```ruby Podfile theme={null} > pod 'razorpay-customui-pod' > ``` > [tab] Manual (XCFramework) > > Download `Razorpay.xcframework` and add it in Xcode under **Target settings** โ†’ **General** โ†’ **Frameworks, Libraries, and Embedded Content**. Set the embed status to **Embed & Sign**. > [!NOTE] > > **Handy Tips** > > Set **Always Embed Swift Standard Libraries** to **Yes** in **Build Settings**. Make sure the device supports TLS v1.1 or v1.2 for PCI compliance. ## 1.2 Configure the SDK Update `Info.plist` to allow the SDK's WebView traffic and declare the URL schemes of the UPI apps the SDK should detect: ```xml Info.plist theme={null} NSAppTransportSecurity NSAllowsArbitraryLoads LSApplicationQueriesSchemes tez phonepe paytmmp credpay upi ``` The SDK uses a `WKWebView` to complete flows such as card 3DS and bank OTP pages. You create the `WKWebView`, pass it to the SDK and forward its navigation callbacks in [step 1.6](#1-6-initialise-razorpaycheckout-in-your-viewcontroller). ## 1.3 Create a Customer Create a customer on your server with the [Customers API](/docs/api/customers/create). You can do this asynchronously, for example when you collect the customer's details. Use the `customer_id` returned in the response to fetch recommended instruments in [step 1.4](#1-4-fetch-recommended-instruments). ```bash Request theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ "name": "Gaurav Kumar", "contact": "9123456780", "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." } }' ``` ```json Response theme={null} { "id": "cust_1Aa00000000004", "entity": "customer", "name": "Gaurav Kumar", "email": "gaurav.kumar@example.com", "contact": "9123456780", "gstin": null, "notes": { "notes_key_1": "Tea, Earl Grey, Hot", "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." }, "created_at": 1234567890 } ``` ## 1.4 Fetch Recommended Instruments Call `getRecommendedInstruments()` to get the customer's recommended payment instruments. * The response contains up to 3 instruments, ranked by how likely the customer is to complete the payment. `items[0]` is the strongest recommendation. * The SDK checks which UPI apps are installed on the device and returns only those. * The response includes the logos you need to render the Quick Buy button: `app_logo`, `network_logo_url` and `issuer_logo_url`. * Create an order first and pass its `order_id`, so that all instrument types are eligible. Without an `order_id`, the response is limited to UPI intent apps and `amount` and `currency` become mandatory. ```swift Swift theme={null} let options: [String: Any] = [ "order_id": "order_xxxxxx", // recommended "customer_id": "cust_xxxxxx", // from step 1.3 "amount": 100, // mandatory if no order_id "currency": "INR", // mandatory if no order_id "contact": "8050981760" // pass if no customer_id ] razorpay.getRecommendedInstruments(withOptions: options, withSuccessCallback: { response in guard let collection = response["get_recommended_instruments"] as? [String: Any], let items = collection["items"] as? [[String: Any]] else { return } for item in items { let method = item["method"] as? String if method == "card", let card = item["card"] as? [String: Any] { print(card["last4"] as? String ?? "") // display only } if method == "upi", let upi = item["upi"] as? [String: Any] { print(upi["app"] as? String ?? "") // for example, gpay print(upi["upi_app_package_name"] as? String ?? "") // pass to authorize() print(upi["app_logo"] as? String ?? "") // CDN logo URL } } }, withFailure: { error in // Fall back to Standard Checkout } ) ``` > [!WARNING] > > **Watch Out!** > > * Always show a **Change payment method** option next to the Quick Buy button. It should open the full Razorpay Checkout, as per the [iOS Standard Checkout integration](/docs/payments/payment-gateway/ios-integration/standard/integration-steps). > * If the response has no instruments, or the call fails, show your regular checkout instead of the Quick Buy button. #### Sample Response ```json Response theme={null} { "actions": ["get_recommended_instruments"], "get_recommended_instruments": { "entity": "collection", "count": 3, "items": [ { "method": "card", "token": "token_Hf7vKlM2NpQrSt", "card": { "last4": "4242", "network": "Visa", "issuer": "HDFC", "type": "debit", "sub_type": "consumer", "international": false, "network_logo_url": "https://cdn.razorpay.com/app/visa.svg", "issuer_logo_url": "https://cdn.razorpay.com/app/hdfc.svg" } }, { "method": "upi", "upi": { "flow": "intent", "app": "gpay", "upi_app_package_name": "google_pay", "app_logo": "https://cdn.razorpay.com/app/gpay.svg" } }, { "method": "upi", "upi": { "flow": "intent", "app": "phonepe", "upi_app_package_name": "phonepe", "app_logo": "https://cdn.razorpay.com/app/phonepe.svg" } } ] } } ``` #### Response Parameters | Parameter | Type | Description | How to use it | | - | - | - | - | | `actions` | array | Always `get_recommended_instruments`. | Check that the response matches the action you called. | | `get_recommended_instruments.entity` | string | Always `collection`. | Standard Razorpay collection identifier. | | `get_recommended_instruments.count` | integer | Number of instruments in `items`. Maximum 3. | Check before you render the button. | | `get_recommended_instruments.items` | array | Recommended instruments in order. Index 0 is the strongest recommendation. | Render the Quick Buy button from `items[0]`. | | `items.method` | string | `card` or `upi`. | Decides which UI to render and which payment fields to send. | | `token` | string | Razorpay token ID of the saved card. | Pass as `token` when you submit the payment. | | `card.last4` | string | Last 4 digits of the card. For display only. | Render a masked label, such as **HDFC Debit โ€ขโ€ขโ€ขโ€ข4242**. Never pass it to payment APIs. | | `card.network` | string | `Visa`, `MasterCard`, `RuPay`, `Amex` or `Diners`. | Show the network name. | | `card.issuer` | string | 4-character issuer code. For example, `HDFC`, `ICIC` or `SBIN`. | Show the issuer name. | | `card.type` | string | `credit`, `debit` or `prepaid`. | Show the card type on the button. | | `card.sub_type` | string | `consumer`, `business` or `unknown`. | Optional. Use it if business cards need a different treatment. | | `card.international` | boolean | `true` if the card is international. | Flag international cards if needed. | | `card.network_logo_url` | string | CDN-hosted card network logo. | Load directly into a `UIImageView`. | | `card.issuer_logo_url` | string | CDN-hosted issuing bank logo. | Load directly into a `UIImageView`. | | `upi.flow` | string | Always `intent`. | Confirms the UPI flow. | | `upi.app` | string | Short name of the UPI app. For example, `gpay`, `phonepe`, `paytm` or `bhim`. | Show on the button. | | `upi.upi_app_package_name` | string | iOS SDK identifier of the UPI app. For example, `google_pay` or `phonepe`. | Pass as `upi_app_package_name` when you submit the payment. | | `upi.app_logo` | string | CDN-hosted UPI app logo. | Show on the button. | ## 1.5 Create an Order in Server Create an order on your server using the [Orders API](/docs/api/orders/create) when the customer taps the Quick Buy button, or earlier if you pass the `order_id` in [step 1.4](#1-4-fetch-recommended-instruments). > [!WARNING] > > **Watch Out!** > > Create an order for every payment, server-side, using your API Key ID and secret. Payments made without an `order_id` cannot be captured and are automatically refunded. ```bash Request theme={null} curl -X POST https://api.razorpay.com/v1/orders \ -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -H 'content-type:application/json' \ -d '{ "amount": 50000, "currency": "INR", "customer_id": "cust_1Aa00000000004", "receipt": "rcptid_11", "notes": { "key1": "value3", "key2": "value2" } }' ``` ```json Response theme={null} { "id": "order_IluGWxBm9U8zJ8", "entity": "order", "amount": 50000, "amount_paid": 0, "amount_due": 50000, "currency": "INR", "receipt": "rcptid_11", "status": "created", "attempts": 0, "notes": [], "created_at": 1642662092 } ``` #### Request Parameters `amount` *mandatory* : `integer` Payment amount in the smallest currency sub-unit. For example, pass `50000` for โ‚น500. `currency` *mandatory* : `string` The 3-letter ISO currency code. For example, `INR`. `customer_id` *mandatory* : `string` The customer ID returned in [step 1.3](#1-3-create-a-customer). `receipt` *optional* : `string` Your receipt number for the order. Maximum 40 characters. `notes` *optional* : `object` Key-value pairs for additional information. Maximum 15 pairs of 256 characters each. `partial_payment` *optional* : `boolean` Set to `true` to accept partial payments. Defaults to `false`. `first_payment_min_amount` *optional* : `integer` Minimum amount for the first partial payment. Use only when `partial_payment` is `true`. ## 1.6 Initialise RazorpayCheckout in Your ViewController Conform to `RazorpayPaymentCompletionProtocolWithData` and `WKNavigationDelegate`, create a `WKWebView` and initialise the SDK with your API Key ID. ```swift Swift theme={null} import Razorpay class ViewController: UIViewController, RazorpayPaymentCompletionProtocolWithData, WKNavigationDelegate { var webView: WKWebView! var razorpay: RazorpayCheckout! override func viewDidLoad() { super.viewDidLoad() self.webView = WKWebView(frame: self.view.frame) self.razorpay = RazorpayCheckout.initWithKey( "YOUR_KEY_ID", andDelegate: self, withPaymentWebView: self.webView ) self.view.addSubview(self.webView) self.webView.navigationDelegate = self } } ``` Forward the `WKNavigationDelegate` callbacks to the SDK: ```swift Swift theme={null} func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) { self.razorpay.webView(webView, didCommit: navigation) } func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError er: Error) { self.razorpay.webView(webView, didFail: navigation, withError: er) } func webView(_ webView: WKWebView, didFailProvisionalNavigation navigation: WKNavigation!, withError er: Error) { self.razorpay.webView(webView, didFailProvisionalNavigation: navigation, withError: er) } func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { self.razorpay.webView(webView, didFinish: navigation) } ``` ## 1.7 Submit Payment When the customer taps the Quick Buy button, build the payment options as a dictionary and pass them to `razorpay.authorize()`. The result is returned to your delegate: * `onPaymentSuccess` for a successful payment. * `onPaymentError` for a failed payment. #### Common Parameters `order_id` *mandatory* : `string` The order ID created in [step 1.5](#1-5-create-an-order-in-server). `amount` *mandatory* : `integer` Payment amount in the smallest currency sub-unit. `currency` *mandatory* : `string` The 3-letter ISO currency code. For example, `INR`. `email` *mandatory* : `string` Customer's email address. `contact` *mandatory* : `string` Customer's phone number. `method` *mandatory* : `string` Payment method. Possible values: `upi`, `card`, `netbanking`, `wallet` or `emi`. `notes` *optional* : `object` Key-value pairs for additional information. Maximum 15 pairs of 256 characters each. > [tab] UPI Intent > > Pass the `upi_app_package_name` returned by `getRecommendedInstruments()` in [step 1.4](#1-4-fetch-recommended-instruments). > > ```swift Swift theme={null} > let options: [String: Any] = [ > "amount": 29935, > "currency": "INR", > "order_id": "order_DBJOWzybf0sJbb", > "email": "gaurav.kumar@example.com", > "contact": "9000090000", > "method": "upi", > "_[flow]": "intent", > "upi_app_package_name": "google_pay" > ] > razorpay.authorize(options) > ``` > [tab] Saved Card > > Pass the `token` returned by `getRecommendedInstruments()` in [step 1.4](#1-4-fetch-recommended-instruments) and collect only the CVV from the customer. > > ```swift Swift theme={null} > let options: [String: Any] = [ > "amount": 29935, > "currency": "INR", > "order_id": "order_DBJOWzybf0sJbb", > "email": "gaurav.kumar@example.com", > "contact": "9000090000", > "method": "card", > "token": "token_Hf7vKlM2NpQrSt", > "card[cvv]": "123" > ] > razorpay.authorize(options) > ``` > [tab] Netbanking > > ```swift Swift theme={null} > let options: [String: Any] = [ > "amount": 29935, > "currency": "INR", > "order_id": "order_DBJOWzybf0sJbb", > "email": "gaurav.kumar@example.com", > "contact": "9000090000", > "method": "netbanking", > "bank": "HDFC" > ] > razorpay.authorize(options) > ``` > [tab] Wallet > > ```swift Swift theme={null} > let options: [String: Any] = [ > "amount": 29935, > "currency": "INR", > "order_id": "order_DBJOWzybf0sJbb", > "email": "gaurav.kumar@example.com", > "contact": "9000090000", > "method": "wallet", > "wallet": "mobikwik" > ] > razorpay.authorize(options) > ``` #### Handle the Result ```swift Swift theme={null} func onPaymentSuccess(_ payment_id: String, andData response: [AnyHashable: Any]) { // response contains razorpay_payment_id, razorpay_order_id and razorpay_signature. // Send these to your server for verification (step 1.9). } func onPaymentError(_ code: Int32, description str: String, andData response: [AnyHashable: Any]) { // Handle the failure. code maps to the SDK error enum. } // Call when the customer dismisses your payment screen @IBAction func cancel(_ sender: Any) { self.razorpay.userCancelledPayment() } ``` ## 1.8 Store Fields in Your Server A successful payment returns these fields in the delegate's `response`. Store them on your server and verify the signature in the next step. ```json Success Response theme={null} { "razorpay_payment_id": "pay_29QQoUBi66xm2f", "razorpay_order_id": "order_9A33XWu170gUtm", "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" } ``` `razorpay_payment_id` : `string` Unique identifier of the payment. Returned only for successful payments. `razorpay_order_id` : `string` Unique identifier of the order. `razorpay_signature` : `string` Signature used to verify that the payment is authentic. ## 1.9 Verify Payment Signature Verify the signature on your server to confirm the payment is authentic. This step is mandatory. Never verify the signature in the app. 1. Use the `order_id` stored on your server. Do not use the `razorpay_order_id` returned to the app. 2. Create an HMAC-SHA256 hex digest of `order_id + "|" + razorpay_payment_id` using your API key secret. 3. If the digest matches `razorpay_signature`, the payment is authentic. ```text Pseudocode theme={null} generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); if (generated_signature == razorpay_signature) { // payment is authentic } ``` ```java Java (server-side) theme={null} RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); String secret = "[YOUR_KEY_SECRET]"; JSONObject options = new JSONObject(); options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); boolean status = Utils.verifyPaymentSignature(options, secret); ``` ## 1.10 Verify Payment Status Confirm that the payment status is `captured`. You can track it in 3 ways: * **Dashboard**: Log in to the Dashboard and go to **Transactions** โ†’ **Payments**. A successful payment has a payment ID and the status **Captured**. * **Webhooks**: Subscribe to [payment webhook events](/docs/webhooks/payments) for real-time updates. * **API**: Poll the [Fetch a Payment API](/docs/api/payments/fetch-with-id) with the `razorpay_payment_id`. > [!NOTE] > > **Handy Tips** > > Use [Payment Capture Settings](/docs/payments/payments/capture-settings) to capture payments automatically. ## Next Steps * [Test your integration](/docs/payments/payment-gateway/ios-integration/custom/test-integration) in Test Mode. * Complete the [go-live checklist](/docs/payments/payment-gateway/ios-integration/custom/go-live-checklist). * Replace your test API keys with live keys when you are ready to go live. ## Related Information * [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) * [Embedded Quick Buy FAQs](/docs/payments/payment-gateway/features/quickbuy/embedded/faqs) * [iOS Custom UI SDK Integration](/docs/payments/payment-gateway/ios-integration/custom/build-integration) # Embedded Quick Buy: Mobile Web Integration Source: https://razorpay.com/docs/payments/payment-gateway/features/quickbuy/embedded/mobile-web Integrate Embedded Quick Buy on your mobile website with Razorpay Custom Checkout and show customers their recommended payment instrument. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to add [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) to your mobile website. The integration builds on [Razorpay Custom Checkout](/docs/payments/payment-gateway/web-integration/custom/build-integration) and shows a customer's recommended saved card or UPI app on your product or cart page, before the full checkout opens. > [!NOTE] > > **Already on Custom Checkout?** > > If you have already integrated Razorpay Custom Checkout on your mobile website, the only new step is [1.5 Fetch Recommended Instruments](#1-5-fetch-recommended-instruments). Make sure you also create customers ([step 1.2](#1-2-create-a-customer)), as Quick Buy needs them. All other steps stay the same. **1.1** [Include razorpay.js in Your Webpage](#1-1-include-razorpay-js-in-your-webpage). **1.2** [Create a Customer](#1-2-create-a-customer). Required for Quick Buy. **1.3** [Create an Order in Server](#1-3-create-an-order-in-server). **1.4** [Instantiate Custom Checkout](#1-4-instantiate-custom-checkout). **1.5** [Fetch Recommended Instruments](#1-5-fetch-recommended-instruments). New for Quick Buy. **1.6** [Submit Payment](#1-6-submit-payment). **1.7** [Store Fields in Your Server](#1-7-store-fields-in-your-server). **1.8** [Verify Payment Signature](#1-8-verify-payment-signature). **1.9** [Verify Payment Status](#1-9-verify-payment-status). ## 1.1 Include razorpay.js in Your Webpage Add the `razorpay.js` script to the `` section of every page where the Quick Buy button appears: ```html HTML theme={null} ``` > [!NOTE] > > **Handy Tips** > > Always load the script directly from `https://checkout.razorpay.com/v1/razorpay.js`. Do not host it yourself. This way your integration automatically receives the latest updates and bug fixes. ## 1.2 Create a Customer Create a customer on your server with the [Customers API](/docs/api/customers/create). You can do this asynchronously, for example when the customer registers or starts checkout. Use the `customer_id` returned in the response to fetch recommended instruments in [step 1.5](#1-5-fetch-recommended-instruments). ```bash Request theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ "name": "Gaurav Kumar", "contact": "9123456780", "email": "gaurav.kumar@example.com", "fail_existing": "0" }' ``` ```json Response theme={null} { "id": "cust_1Aa00000000004", "entity": "customer", "name": "Gaurav Kumar", "email": "gaurav.kumar@example.com", "contact": "9123456780", "created_at": 1234567890 } ``` ## 1.3 Create an Order in Server Create an order on your server using the [Orders API](/docs/api/orders/create). Create the order before you fetch recommended instruments, so that all instrument types are eligible. > [!WARNING] > > **Watch Out!** > > Create an order for every payment, server-side, using your API Key ID and secret. Payments made without an `order_id` cannot be captured and are automatically refunded. ```bash Request theme={null} curl -X POST https://api.razorpay.com/v1/orders \ -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -H 'content-type:application/json' \ -d '{ "amount": 50000, "currency": "INR", "customer_id": "cust_1Aa00000000004", "receipt": "rcptid_11" }' ``` ```json Response theme={null} { "id": "order_IluGWxBm9U8zJ8", "entity": "order", "amount": 50000, "amount_paid": 0, "amount_due": 50000, "currency": "INR", "receipt": "rcptid_11", "status": "created", "created_at": 1642662092 } ``` #### Request Parameters `amount` *mandatory* : `integer` Payment amount in the smallest currency sub-unit. For example, pass `50000` for โ‚น500. `currency` *mandatory* : `string` The 3-letter ISO currency code. For example, `INR`. `customer_id` *mandatory* : `string` The customer ID returned in [step 1.2](#1-2-create-a-customer). `receipt` *optional* : `string` Your receipt number for the order. Maximum 40 characters. `notes` *optional* : `object` Key-value pairs for additional information. Maximum 15 pairs of 256 characters each. ## 1.4 Instantiate Custom Checkout Create a Razorpay instance with your API Key ID. Know more about [instantiating Custom Checkout](/docs/payments/payment-gateway/web-integration/custom/build-integration#1-3-2-instantiate-custom-checkout). ```javascript JavaScript theme={null} var razorpay = new Razorpay({ key: '', image: 'https://your-domain.com/logo.png' // optional }); ``` ## 1.5 Fetch Recommended Instruments Call `Razorpay.getRecommendedInstruments()` to get the customer's recommended payment instruments. On mobile web, this is a JavaScript function in `razorpay.js`. * The response contains up to 3 instruments, ranked by how likely the customer is to complete the payment. `items[0]` is the strongest recommendation. * The response includes the logos you need to render the Quick Buy button. * Pass the `order_id` from [step 1.3](#1-3-create-an-order-in-server). If you do not, the response is limited to UPI intent apps and `amount` and `currency` become mandatory. * Pass the `customer_id`. If you do not have one, pass the customer's contact number in `customer.contact`. ```javascript JavaScript theme={null} const options = { order_id: 'order_IluGWxBm9U8zJ8', // recommended customer_id: 'cust_1Aa00000000004', // from step 1.2 amount: 50000, // mandatory if no order_id currency: 'INR', // mandatory if no order_id customer: { contact: '9123456780' // pass if no customer_id } }; Razorpay.getRecommendedInstruments(options).then(response => { const items = response.get_recommended_instruments.items; items.forEach(item => { if (item.method === 'card') { console.log(item.card.last4); } if (item.method === 'upi') { console.log(item.upi.app); console.log(item.upi.app_logo); } }); }); ``` > [!WARNING] > > **Watch Out!** > > * Always show a **Change payment method** option next to the Quick Buy button. It should open the full Razorpay Checkout, as in your current integration. > * If the response has no instruments, or the call fails, show your regular checkout button instead of the Quick Buy button. > * The browser cannot check whether a UPI app is installed. Show every UPI app returned. If an app is not installed, the device handles the failed deep link. #### Sample Response ```json Response theme={null} { "actions": ["get_recommended_instruments"], "get_recommended_instruments": { "entity": "collection", "count": 3, "items": [ { "method": "card", "token": "token_Hf7vKlM2NpQrSt", "card": { "last4": "4242", "network": "Visa", "issuer": "HDFC", "type": "debit", "sub_type": "consumer", "international": false, "network_logo_url": "https://cdn.razorpay.com/app/visa.svg", "issuer_logo_url": "https://cdn.razorpay.com/app/hdfc.svg" } }, { "method": "upi", "upi": { "flow": "intent", "app": "gpay", "app_logo": "https://cdn.razorpay.com/app/gpay.svg" } }, { "method": "upi", "upi": { "flow": "intent", "app": "phonepe", "app_logo": "https://cdn.razorpay.com/app/phonepe.svg" } } ] } } ``` #### Response Parameters | Parameter | Type | Description | How to use it | | - | - | - | - | | `actions` | array | Always `get_recommended_instruments`. | Check that the response matches the action you called. | | `count` | integer | Number of instruments in `items`. Maximum 3. | If `0`, skip Quick Buy and show your regular checkout. | | `items` | array | Recommended instruments in order. Index 0 is the strongest recommendation. | Render the Quick Buy button from `items[0]`. | | `items.method` | string | `card` or `upi`. | Decides which UI to render and which payment fields to send. | | `token` | string | Razorpay token ID of the saved card. | Pass as `token` when you submit the payment. | | `card.last4` | string | Last 4 digits of the card. For display only. | Render a masked label, such as **HDFC Debit โ€ขโ€ขโ€ขโ€ข4242**. Never pass it to payment APIs. | | `card.network` | string | Card network. For example, `Visa`, `MasterCard`, `RuPay` or `Amex`. | Show the network name on the button. | | `card.issuer` | string | 4-character issuer code. For example, `HDFC`, `ICIC` or `SBIN`. | Show the issuer name on the button. | | `card.type` | string | `credit`, `debit` or `prepaid`. | Show the card type on the button. | | `card.network_logo_url` | string | CDN-hosted card network logo. | Use directly in an `` tag. | | `card.issuer_logo_url` | string | CDN-hosted issuing bank logo. | Use directly in an `` tag. | | `upi.flow` | string | Always `intent`. | Confirms the UPI flow. | | `upi.app` | string | Short name of the UPI app. For example, `gpay`, `phonepe` or `paytm`. Returned on mobile web. | Pass as `upi_app` when you submit the payment. | | `upi.app_logo` | string | CDN-hosted UPI app logo. | Use directly in an `` tag on the button. | ## 1.6 Submit Payment When the customer taps the Quick Buy button, call `razorpay.createPayment()` inside the click event listener. Pass the fields for the recommended instrument's method, for example the saved card `token` or the UPI app. Use the same `createPayment()` payloads as your existing Custom Checkout integration. Know more about [submitting payment details](/docs/payments/payment-gateway/web-integration/custom/build-integration#1-3-3-submit-payment-details). ## 1.7 Store Fields in Your Server A successful payment returns `razorpay_payment_id`, `razorpay_order_id` and `razorpay_signature`. Store these on your server. Know more about [storing fields in your server](/docs/payments/payment-gateway/web-integration/custom/build-integration#1-4-store-fields-in-your-server). ## 1.8 Verify Payment Signature Verify the signature on your server to confirm the payment is authentic. This step is mandatory. Know more about [verifying the payment signature](/docs/payments/payment-gateway/web-integration/custom/build-integration#1-5-verify-payment-signature). ## 1.9 Verify Payment Status Confirm that the payment status is `captured`. You can track it in 3 ways: * **Dashboard**: Log in to the Dashboard and go to **Transactions** โ†’ **Payments**. A successful payment has a payment ID and the status **Captured**. * **Webhooks**: Subscribe to [payment webhook events](/docs/webhooks/payments) for real-time updates. * **API**: Poll the [Fetch a Payment API](/docs/api/payments/fetch-with-id) with the `razorpay_payment_id`. Know more about [verifying the payment status](/docs/payments/payment-gateway/web-integration/custom/build-integration#1-6-verify-payment-status). > [!NOTE] > > **Handy Tips** > > Use [Payment Capture Settings](/docs/payments/payments/capture-settings) to capture payments automatically. ## Next Steps * [Test your integration](/docs/payments/payment-gateway/web-integration/custom/test-integration) in Test Mode. * Set up the full checkout as the fallback for customers who tap **Change payment method**. * Replace your test API keys with live keys when you are ready to go live. ## Related Information * [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) * [Embedded Quick Buy FAQs](/docs/payments/payment-gateway/features/quickbuy/embedded/faqs) * [Custom Checkout Integration](/docs/payments/payment-gateway/web-integration/custom/build-integration) # Embedded Quick Buy: React Native Integration Source: https://razorpay.com/docs/payments/payment-gateway/features/quickbuy/embedded/react-native Integrate Embedded Quick Buy in your React Native app with the Razorpay Custom UI SDK and show customers their recommended payment instrument. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to add [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) to your React Native app. The integration builds on the [React Native Custom UI SDK](/docs/payments/payment-gateway/react-native-integration/custom/build-integration). You render your own payment UI, and Razorpay processes the payment. > [!NOTE] > > **Already on the React Native Custom UI SDK?** > > The steps specific to Quick Buy are [1.3 Create a Customer](#1-3-create-a-customer) and [1.4 Fetch Recommended Instruments](#1-4-fetch-recommended-instruments). All other steps follow the standard Custom UI SDK integration. > > If you use the React Native Standard SDK (`react-native-razorpay`), add `react-native-customui` alongside it. The Custom UI SDK powers the Quick Buy button. Your Standard Checkout continues to open when the customer taps **Change payment method**. **1.1** [Install the SDK](#1-1-install-the-sdk). **1.2** [Link the SDK](#1-2-link-the-sdk). **1.3** [Create a Customer](#1-3-create-a-customer). New for Quick Buy. **1.4** [Fetch Recommended Instruments](#1-4-fetch-recommended-instruments). New for Quick Buy. **1.5** [Create an Order in Server](#1-5-create-an-order-in-server). **1.6** [Import the Razorpay Module](#1-6-import-the-razorpay-module). **1.7** [Submit Payment](#1-7-submit-payment). **1.8** [Store Fields in Your Server](#1-8-store-fields-in-your-server). **1.9** [Verify Payment Signature](#1-9-verify-payment-signature). **1.10** [Verify Payment Status](#1-10-verify-payment-status). ## 1.1 Install the SDK Install `react-native-customui` version 2.2.9 or later. Earlier versions do not support `getRecommendedInstruments()`. ```bash npm theme={null} npm install --save react-native-customui ``` ```bash yarn theme={null} yarn add react-native-customui ``` ```bash Expo theme={null} npx expo install react-native-customui ``` ## 1.2 Link the SDK > [tab] iOS > > **Automatic linking** > > 1. Install the SDK: > ```bash Terminal theme={null} > npm install react-native-customui --save > ``` > > 2. Go to the `ios` folder and run `pod install`. > > > [!NOTE] > > > > **Handy Tips** > > > > Make sure `Razorpay.framework` is added in the **Embedded Binaries** section and that **Always Embed Swift Standard Libraries** is set to **Yes** in **Build Settings**. > > **Manual linking with CocoaPods** > > 1. Add this line to your build targets in your `Podfile`: > ```ruby Podfile theme={null} > pod 'react-native-customui', :path => '../node_modules/react-native-customui' > ``` > 2. Run `pod install`. > > **Manual linking without CocoaPods** > > 1. In Xcode, right-click **Libraries** โ†’ **Add Files to \[your project's name]**. Go to `node_modules/react-native-customui` and add the `.xcodeproj` file. > 2. Select your project in the navigator. Add `libRNDeviceInfo.a` from the `deviceinfo` project to **Build Phases** โ†’ **Link Binary With Libraries**. > 3. In **Build Settings**, select **All**. Under **Header Search Paths**, check that `$(SRCROOT)/../react-native/React` and `$(SRCROOT)/../../React` are present and set to `recursive`. > 4. Run the project with **Cmd + R**. > > **Expo** > > After adding the package, prebuild the app to generate the native iOS folders: > > ```bash Terminal theme={null} > npx expo prebuild > npx expo run:ios --device > ``` > > **M1 Mac** > > If you build on an Apple Silicon (M1) Mac, add this inside `post_install do |installer|` in your `Podfile`: > > ```ruby Podfile theme={null} > installer.pods_project.build_configurations.each do |config| > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > end > ``` > [tab] Android > > React Native autolinking links the Android module for `react-native-customui`. No manual steps are needed. > > > [!WARNING] > > > > **Watch Out!** > > > > Do not link `react-native-customui` manually in `android/settings.gradle`, `android/app/build.gradle` or `MainApplication`. Manual linking conflicts with autolinking and fails the Gradle build. Know how to [fix this error](/docs/payments/payment-gateway/features/quickbuy/embedded/faqs#react-native-sdk) if you see it. > > **Expo** > > ```bash Terminal theme={null} > npx expo prebuild > npx expo run:android --device > ``` ## 1.3 Create a Customer Create a customer on your server with the [Customers API](/docs/api/customers/create). You can do this asynchronously, for example when you collect the customer's details. Use the `customer_id` returned in the response to fetch recommended instruments in [step 1.4](#1-4-fetch-recommended-instruments). ```bash Request theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ "name": "Gaurav Kumar", "contact": "9123456780", "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." } }' ``` ```json Response theme={null} { "id": "cust_1Aa00000000004", "entity": "customer", "name": "Gaurav Kumar", "email": "gaurav.kumar@example.com", "contact": "9123456780", "gstin": null, "notes": { "notes_key_1": "Tea, Earl Grey, Hot", "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." }, "created_at": 1234567890 } ``` ## 1.4 Fetch Recommended Instruments Initialise the SDK with `Razorpay.initRazorpay()`, then call `Razorpay.getRecommendedInstruments()` to get the customer's recommended payment instruments. * The response contains up to 3 instruments, ranked by how likely the customer is to complete the payment. `items[0]` is the strongest recommendation. * The SDK checks which UPI apps are installed on the device and returns only those. * The response includes the logos you need to render the Quick Buy button. * Pass the `order_id` so that all instrument types are eligible. Without an `order_id`, the response is limited to UPI intent apps and `amount` and `currency` become mandatory. * Pass the customer's contact number in `customer.contact`. It is mandatory by default, although this depends on your account configuration. If it is required and missing, the call fails. ```javascript JavaScript theme={null} import Razorpay from 'react-native-customui'; // Call early, for example when the checkout screen loads Razorpay.initRazorpay(''); const options = { order_id: 'order_xxxxxx', // recommended customer_id: 'cust_xxxxxx', // from step 1.3 amount: 100, // mandatory if no order_id currency: 'INR', // mandatory if no order_id customer: { contact: '+919123456780' // mandatory by default } }; Razorpay.getRecommendedInstruments(options).then(response => { const items = response.get_recommended_instruments.items; items.forEach(item => { if (item.method === 'card') { console.log(item.card.last4); } if (item.method === 'upi') { console.log(item.upi.app); console.log(item.upi.app_package); console.log(item.upi.app_logo); } }); }).catch(error => { // Fall back to Standard Checkout }); ``` > [!WARNING] > > **Watch Out!** > > * `initRazorpay()` does not return a promise. On Android, the SDK initialises on the UI thread, so calling `getRecommendedInstruments()` immediately after it can fail. Call `initRazorpay()` earlier in the flow, for example when the checkout screen loads, and fetch recommendations after it. > * Always show a **Change payment method** option next to the Quick Buy button. It should open the full Razorpay Checkout, as per the [React Native Standard Checkout integration](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-android). Take the customer straight to the full checkout rather than to an intermediate screen. > * If the response has no instruments, or the call fails, show your regular checkout instead of the Quick Buy button. #### Sample Response ```json Response theme={null} { "actions": ["get_recommended_instruments"], "get_recommended_instruments": { "entity": "collection", "count": 3, "items": [ { "method": "card", "token": "token_Hf7vKlM2NpQrSt", "card": { "last4": "4242", "network": "Visa", "issuer": "HDFC", "type": "debit", "sub_type": "consumer", "international": false, "network_logo_url": "https://cdn.razorpay.com/app/visa.svg", "issuer_logo_url": "https://cdn.razorpay.com/app/hdfc.svg" } }, { "method": "upi", "upi": { "flow": "intent", "app": "gpay", "app_package": "com.google.android.apps.nbu.paisa.user", "app_logo": "https://cdn.razorpay.com/app/gpay.svg" } }, { "method": "upi", "upi": { "flow": "intent", "app": "phonepe", "app_package": "com.phonepe.app", "app_logo": "https://cdn.razorpay.com/app/phonepe.svg" } } ] } } ``` #### Response Parameters | Parameter | Type | Description | How to use it | | - | - | - | - | | `actions` | array | Always `get_recommended_instruments`. | Check that the response matches the action you called. | | `get_recommended_instruments.entity` | string | Always `collection`. | Standard Razorpay collection identifier. | | `get_recommended_instruments.count` | integer | Number of instruments in `items`. Maximum 3. | Check before you render the button. | | `get_recommended_instruments.items` | array | Recommended instruments in order. Index 0 is the strongest recommendation. | Render the Quick Buy button from `items[0]`. | | `items.method` | string | `card` or `upi`. | Decides which UI to render and which payment fields to send. | | `token` | string | Razorpay token ID of the saved card. | Pass as `token` when you submit the payment. | | `card.last4` | string | Last 4 digits of the card. For display only. | Render a masked label, such as **HDFC Debit โ€ขโ€ขโ€ขโ€ข4242**. Never pass it to payment APIs. | | `card.network` | string | `Visa`, `MasterCard`, `RuPay`, `Amex` or `Diners`. | Show the network name. | | `card.issuer` | string | 4-character issuer code. For example, `HDFC`, `ICIC` or `SBIN`. | Show the issuer name. | | `card.type` | string | `credit`, `debit` or `prepaid`. | Show the card type on the button. | | `card.sub_type` | string | `consumer`, `business` or `unknown`. | Optional. Use it if business cards need a different treatment. | | `card.international` | boolean | `true` if the card is international. | Flag international cards if needed. | | `card.network_logo_url` | string | CDN-hosted card network logo. | Use directly in an `Image` component. | | `card.issuer_logo_url` | string | CDN-hosted issuing bank logo. | Use directly in an `Image` component. | | `upi.flow` | string | Always `intent`. | Confirms the UPI flow. | | `upi.app` | string | Short name of the UPI app. For example, `gpay`, `phonepe`, `paytm` or `bhim`. | Show on the button. | | `upi.app_package` | string | Package name of the UPI app. For example, `com.google.android.apps.nbu.paisa.user`. | Pass as `upi_app_package_name` when you submit the payment. | | `upi.app_logo` | string | CDN-hosted UPI app logo. | Show on the button. | ## 1.5 Create an Order in Server Create an order on your server using the [Orders API](/docs/api/orders/create) when the customer taps the Quick Buy button, or earlier if you pass the `order_id` in [step 1.4](#1-4-fetch-recommended-instruments). > [!WARNING] > > **Watch Out!** > > Create an order for every payment, server-side, using your API Key ID and secret. Payments made without an `order_id` cannot be captured and are automatically refunded. ```bash Request theme={null} curl -X POST https://api.razorpay.com/v1/orders \ -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -H 'content-type:application/json' \ -d '{ "amount": 50000, "currency": "INR", "customer_id": "cust_1Aa00000000004", "receipt": "rcptid_11", "notes": { "key1": "value3", "key2": "value2" } }' ``` ```json Response theme={null} { "id": "order_IluGWxBm9U8zJ8", "entity": "order", "amount": 50000, "amount_paid": 0, "amount_due": 50000, "currency": "INR", "receipt": "rcptid_11", "status": "created", "attempts": 0, "notes": [], "created_at": 1642662092 } ``` #### Request Parameters `amount` *mandatory* : `integer` Payment amount in the smallest currency sub-unit. For example, pass `50000` for โ‚น500. `currency` *mandatory* : `string` The 3-letter ISO currency code. For example, `INR`. `customer_id` *mandatory* : `string` The customer ID returned in [step 1.3](#1-3-create-a-customer). `receipt` *optional* : `string` Your receipt number for the order. Maximum 40 characters. `notes` *optional* : `object` Key-value pairs for additional information. Maximum 15 pairs of 256 characters each. `partial_payment` *optional* : `boolean` Set to `true` to accept partial payments. Defaults to `false`. `first_payment_min_amount` *optional* : `integer` Minimum amount for the first partial payment. Use only when `partial_payment` is `true`. ## 1.6 Import the Razorpay Module Import the Razorpay module into your React Native component: ```javascript JavaScript theme={null} import Razorpay from 'react-native-customui'; ``` ## 1.7 Submit Payment When the customer taps the Quick Buy button, call `Razorpay.open()` with the payment options for the recommended instrument. The method returns a promise: * `then` handles a successful payment. * `catch` handles a failed payment. For a recommended UPI app, pass `method: 'upi'`, `_[flow]: 'intent'` and the app's package name in `upi_app_package_name`: ```javascript JavaScript theme={null} Razorpay.open({ key_id: '', amount: '50000', currency: 'INR', order_id: 'order_IluGWxBm9U8zJ8', email: 'gaurav.kumar@example.com', contact: '9123456780', method: 'upi', '_[flow]': 'intent', upi_app_package_name: 'com.google.android.apps.nbu.paisa.user' }).then((data) => { // Send data.razorpay_payment_id, data.razorpay_order_id and // data.razorpay_signature to your server for verification (step 1.9) }).catch((error) => { // Handle the failure: error.code, error.description }); ``` For other payment methods, use the same payloads as your existing [React Native Custom UI integration](/docs/payments/payment-gateway/react-native-integration/custom/build-integration). #### Checkout Parameters `order_id` *mandatory* : `string` The order ID created in [step 1.5](#1-5-create-an-order-in-server). `description` *optional* : `string` Description of the purchase. Must start with an alphanumeric character. `image` *optional* : `string` URL or base64 string of your business logo. `notes` *optional* : `object` Key-value pairs for additional information. Maximum 15 pairs of 256 characters each. `callback_url` *optional* : `string` URL to redirect the customer to after payment. It must accept POST requests. On success, it receives `razorpay_payment_id`, `razorpay_order_id` and `razorpay_signature`. `redirect` *conditional* : `boolean` Mandatory if you pass `callback_url`. Set to `true` to redirect the customer to `callback_url` or `false` to keep them in the app. ## 1.8 Store Fields in Your Server A successful payment returns these fields. Store them on your server and verify the signature in the next step. ```json Success Response theme={null} { "razorpay_payment_id": "pay_29QQoUBi66xm2f", "razorpay_order_id": "order_9A33XWu170gUtm", "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" } ``` `razorpay_payment_id` : `string` Unique identifier of the payment. Returned only for successful payments. `razorpay_order_id` : `string` Unique identifier of the order. `razorpay_signature` : `string` Signature used to verify that the payment is authentic. ## 1.9 Verify Payment Signature Verify the signature on your server to confirm the payment is authentic. This step is mandatory. Never verify the signature in the app. 1. Use the `order_id` stored on your server. Do not use the `razorpay_order_id` returned to the app. 2. Create an HMAC-SHA256 hex digest of `order_id + "|" + razorpay_payment_id` using your API key secret. 3. If the digest matches `razorpay_signature`, the payment is authentic. ```text Pseudocode theme={null} generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); if (generated_signature == razorpay_signature) { // payment is authentic } ``` ```java Java (server-side) theme={null} RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); String secret = "[YOUR_KEY_SECRET]"; JSONObject options = new JSONObject(); options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); boolean status = Utils.verifyPaymentSignature(options, secret); ``` ## 1.10 Verify Payment Status Confirm that the payment status is `captured`. You can track it in 3 ways: * **Dashboard**: Log in to the Dashboard and go to **Transactions** โ†’ **Payments**. A successful payment has a payment ID and the status **Captured**. * **Webhooks**: Subscribe to [payment webhook events](/docs/webhooks/payments) for real-time updates. * **API**: Poll the [Fetch a Payment API](/docs/api/payments/fetch-with-id) with the `razorpay_payment_id`. > [!NOTE] > > **Handy Tips** > > Use [Payment Capture Settings](/docs/payments/payments/capture-settings) to capture payments automatically. ## Next Steps * [Test your integration](/docs/payments/payment-gateway/react-native-integration/custom/test-integration) in Test Mode. * Set up webhooks for real-time payment events. * Replace your test API keys with live keys when you are ready to go live. ## Related Information * [Embedded Quick Buy](/docs/payments/payment-gateway/features/quickbuy/embedded) * [Embedded Quick Buy FAQs](/docs/payments/payment-gateway/features/quickbuy/embedded/faqs) * [React Native Custom UI SDK Integration](/docs/payments/payment-gateway/react-native-integration/custom/build-integration) # Razorpay Trusted Business Badge Source: https://razorpay.com/docs/payments/payment-gateway/features/trusted-business Check the eligibility for the Razorpay Trusted Business badge and how to add it to your Checkout and website. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Customers prefer to purchase from websites that are trustworthy and credible. For most startups and new online businesses, the credibility factor poses a challenge and often hinders business growth. To help you overcome this issue, Razorpay offers the Trusted Business badge program. The Razorpay Trusted Business badge program enables you to build credibility as a trusted merchant. By becoming a Razorpay Trusted Business, you can display the Trusted Badge on your Razorpay Checkout page. This reassures your customers (who otherwise might have dropped off due to lack of trust) that they can safely transact with your brand without any worries. ### Advantages * **Automatic Activation**: You do not need to apply for the program explicitly. Once you qualify for the program, the badge will automatically start appearing on your Razorpay Checkout page. * **Reduce Customer drop-offs**: Businesses see up to a 5% increase in conversion and retention. * **Reduce dependency on COD**: Get more customers to pay online as they trust your business is genuine. * **Stand out from the rest**: Differentiate yourself from the competition. ## Eligibility Requirements for Razorpay Trusted Business Badge Razorpay's proprietary algorithm considers several factors to determine which businesses are eligible for the Trusted Business badge program. Below are some of the key requirements: * You should have completed your KYC verification. * You should have a very low number of disputes. Know more about [disputes](/docs/payments/disputes). * You should have spent a reasonable amount of time accepting payments via Razorpay. * You must clear all Razorpay risk checks and other proprietary checks. > [!WARNING] > > **Watch Out!** > > This feature is available for Standard Checkout integrations only. ## How to Earn Razorpay Trusted Business Badge You do not need to apply for the badge. The badge will automatically be made Live on your Razorpay Checkout page if you are eligible. Please note that we are rolling out the program gradually. If waitlisted for the program, please wait for a few weeks. ## How Razorpay Trusted Business Badge Works Given below is the workflow: 1. If you are eligible for the program, your Razorpay checkout page will automatically display the Razorpay Trusted Business badge, making you a Razorpay Trusted Business. 2. When customers arrive on your checkout page and see the Razorpay Trusted Business badge, they are reassured that they can safely transact from your brand. This boosts conversions. 3. The customer completes the payment as usual. ## Opt-out of Razorpay Trusted Business Badge Program Follow these steps to opt-out of the Razorpay Trusted Business badge program: 1. Log in to the Dashboard. 2. Navigate to **Accounts & Settings** โ†’ **Checkout Styling** under **Checkout settings**. 3. Turn off **Razorpay trusted badge**. 4. Click **Save all changes**. ## Frequently Asked Questions (FAQs) > [accordion] How do I qualify for the Razorpay Trusted Business badge? > > To qualify for the Razorpay Trusted Business badge, you will have to maintain an excellent record of solving customer escalations proactively, timely address any disputes for your customers whenever possible, and consistently accept payments via Razorpay. > [accordion] What are the benefits of the Razorpay Trusted Business badge? > > Your customers will see the badge on your payment page and be assured that they may safely transact with your brand without any worries. This will help improve conversion, reduce the volume of COD orders and boost online payments. > [accordion] Do I need to pay for the badge? > > Displaying the badge on your Razorpay payment checkout page is completely free of cost. > [accordion] How do I get the Razorpay Trusted Business badge enabled for my account? > > Razorpay Trusted Business badge will be enabled by default and start appearing automatically for all eligible merchants. No manual effort or integration is required. Know more about the [eligibility requirements for Razorpay Trusted Business badge](/docs/payments/payment-gateway/features/trusted-business#eligibility-requirements-for-razorpay-trusted-business-badge). > [accordion] Where will the Razorpay Trusted Business badge be displayed? > > The badge will be displayed on your Razorpay Checkout page. The badge will soon be available as a widget to add to your website/app. > [accordion] Where can I find the Razorpay Trusted Business badge on the Dashboard? > > To find the Trusted Badge, navigate to **Accounts & Settings** โ†’ **Checkout Styling** under **Checkout settings**. You can find the **Razorpay trusted badge** toggle. > [accordion] How can I disable the badge? > > You can opt-out from the Dashboard by navigating to **Accounts & Settings** โ†’ **Checkout Styling** under **Checkout settings**. Turn off **Razorpay trusted badge**. # How Payment Gateway Works Source: https://razorpay.com/docs/payments/payment-gateway/how-it-works Understand the Razorpay Payment Gateway flow and how it works. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States A Payment Gateway focuses on securing the sensitive information given by the user throughout the process. It ensures security by encrypting data like card and bank details provided by the user. ## Payment Gateway Workflow Given below is a complete end-to-end flow about how you can use Razorpay Payment Gateway. ![Payment Gateway Flow](https://razorpay.com/docs/build/browser/assets/images/payment-flow-pg.jpg) > [accordion] Customer Places an Order > > A customer visits your website or app, selects items they want to purchase and clicks the pay button to place an order. For each order placed by your customer, you create a `transaction_id` or `checkout_id` on your server for your reference. For example, `#trn-345`. > [accordion] Create Order from Server > > For each order placed by your customer, use the [Razorpay Orders API](/docs/api/orders) to create an order from your server. > [accordion] Order ID Returned > > Razorpay processes the details sent and returns an `order_id` to you, for example, `order_EKwxwAgItmmXdp`. Map this `order_id` to the transaction\_id `#trn-345` you created in the first step. Know more about [order states](/docs/payments/orders#order-states). > [accordion] Pass Order ID to Checkout > > Pass the `order_id` returned by Razorpay to your integration. This invokes the Razorpay Checkout, the client-side UI, which displays various payment methods. > [accordion] Collect Payment Details > > The customer selects a payment option to complete the payment. The payment details entered by the customer are secured and stored by Razorpay as tokens. The generated tokens are exchanged with your servers for further use. > [accordion] Bank Authenticates the Payment > > Razorpay sends an authentication request to the customer's bank internally. After authentication, Razorpay is authorised to deduct the amount from the customer's bank account. > > For successful payments, the Checkout returns the `razorpay_order_id`, `razorpay_payment_id` and `razorpay_signature`. > > Know more about [payment states](/docs/payments/payments#payment-life-cycle). ### Payment Capture and Settlement Once your customer completes the payment and Razorpay authenticates it, you must capture it automatically or manually. You can also verify the payment signature to ensure that the payment is received from an authentic source. Know more about [payment capture settings](/docs/payments/payments/capture-settings). After the payment is successfully captured, the amount is settled in your account according to your settlement cycle. Know more about [settlements](/docs/payments/settlements). ### Refunds Customers may claim [refunds](/docs/payments/refunds) after the transaction. In such cases, you can initiate a refund, post which the funds are sent back to the customer's account. ## Test Cards Use the [test cards](/docs/payments/payments/test-card-details) to test domestic payments, international payments and subscriptions. ### Test Razorpay Checkout Test the Checkout by clicking the **PAY WITH RAZORPAY** button. * This initiates a โ‚น1 payment. * Provide your phone number, email address, select your preferred payment method and complete the payment. > [!NOTE] > > An interactive demo is available on the [Razorpay website](https://razorpay.com/). > [!WARNING] > > **Live Transaction with Auto Refund** > > This is a real transaction and money will be deducted from your account. However, the amount debited will be auto-refunded to your account in 5-7 working days. ## Next Step [Get started with Razorpay Payment Gateway integration.](/docs/payments/payment-gateway) ### Related Information * [Payment Gateway](/docs/payments/payment-gateway) * [Payment Methods](/docs/payments/payment-methods) * [Features](/docs/payments/payment-gateway/features) * [Set up your Razorpay account](/docs/payments/set-up#set-up-account) * [List of required KYC documents](/docs/payments/business-types-kyc-documents) # Web Standard Checkout Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/web-integration/standard Check the prerequisites before you integrate with Razorpay Web Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/web-integration/standard/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about Web Standard Checkout Integration. You can start accepting payments from customers on your website using the Razorpay Web Standard Checkout. Razorpay has developed the Standard Checkout method and manages it. You can configure payment methods, orders, company logo and also select custom colour based on your convenience. ![Razorpay Payment Gateway Demo](https://razorpay.com/docs/build/browser/assets/images/demo.gif) > [!WARNING] > > **Watch Out!** > > Razorpay Checkout is not supported on the Internet Explorer browser. > [card] [Razorpay Payment Gateway Features](/docs/payments/payment-gateway/features) > > Check the list of features Razorpay offers to help you build a world-class payment experience. [Video Tutorial](https://www.youtube.com/embed/SFHbcs-lSio?si=qrZq55QDP1N7nj8t) Video Tutorial Watch this video to know how to integrate Razorpay Web Standard Checkout on your HTML and JS-based website. ## Client Libraries The client SDK libraries are available on GitHub. You can use the API keys generated above to try out the API sample codes: > [card] .Net > > * [Integrate](/docs/payments/server-integration/dot-net) > * [GitHub Repo](https://github.com/razorpay/razorpay-dot-net) > [card] Java > > * [Integrate](/docs/payments/server-integration/java) > * [GitHub Repo](https://github.com/razorpay/razorpay-java) > [card] Node.JS > > * [Integrate](/docs/payments/server-integration/nodejs) > * [GitHub Repo](https://github.com/razorpay/razorpay-node) > [card] PHP > > * [Integrate](/docs/payments/server-integration/php) > * [GitHub Repo](https://github.com/razorpay/razorpay-php) > [card] Python > > * [Integrate](/docs/payments/server-integration/python) > * [GitHub Repo](https://github.com/razorpay/razorpay-python) > [card] Ruby > > * [Integrate](/docs/payments/server-integration/ruby) > * [GitHub Repo](https://github.com/razorpay/razorpay-ruby) > [card] Go > > * [Integrate](/docs/payments/server-integration/go) > * [GitHub Repo](https://github.com/razorpay/razorpay-go) ## Integration Steps **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works).
Follow these integration steps: > [card] [1. Build Integration](/docs/payments/payment-gateway/web-integration/standard/integration-steps#1-build-integration) > > Integrate Web Standard Checkout. > [card] [2. Test Integration](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/web-integration/standard/integration-steps#3-go-live-checklist) > > Check the go-live checklist. > [!NOTE] > > **Other Solutions** > > * If you use WordPress, Magento, WooCommerce, Shopify and other **ecommerce platforms** for your platform, use our [ecommerce plugins](/docs/payments/payment-gateway/ecommerce-plugins). > > * You can use [Razorpay Custom Checkout](/docs/payments/payment-gateway/web-integration/custom) to gain control over the checkout experience. Custom Checkout integration is more complex than Standard Checkout integration and you will require a development team on your end to complete the integration. > > * Need a **Pay** button without doing any integration? Use [Razorpay Payment Button](/docs/payments/payment-button). ### Related Information * [Troubleshooting and FAQs](/docs/payments/payment-gateway/web-integration/standard/troubleshooting-faqs) * [Bank Downtime](/docs/payments/payments/downtime-updates) # About Payment Methods Configuration Source: https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods Configure the payment methods of your choice at Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore You can configure the payment methods of your choice on the Razorpay Checkout to provide a highly personalised experience for your customers. This provides a simple and accessible experience to your customers increasing your sales and your success rates. > [card] Original Checkout > [card] Customised Checkout ## Use Cases Depending on the use cases that you might have, Razorpay allows you to create any configuration of the payment methods, of your choice: * **Highlighting certain payment instruments on the Checkout.** For example, **Google Pay** could be displayed outside the UPI block as a separate payment method. **HDFC Netbanking** could come out of the Netbanking container as a different payment method. * **Restricting the kind of network, issuer, BIN and card type, different card properties, to accept payments.** For example, you can choose to accept payments only from **HDFC Visa Debit cards** on the Checkout. * **Removing a certain payment method or instrument.** For example, any wallet can be removed as a payment instrument from wallets. The entire **Netbanking** block or a certain bank in Netbanking can be removed from the Checkout. * **Reordering of payment methods on the Checkout.** You can choose to arrange **UPI** as the first section instead of **Cards** on the Checkout. You can again order the PSPs within the UPI block according to your need. * **Grouping of payment instruments.** For example, you can choose to group **Netbanking** and **UPI** payment methods of a bank as a block that will be labelled as **Pay via Bank** on the Checkout. ## Configuring Payment Methods To control payment methods on the Checkout, there are different ways to pass the configuration to the Checkout: * **Configure via Dashboard**: Choose the payment methods and instruments you want to display at checkout, arrange them in your preferred order, and tailor the checkout experience to match your business needs. Create custom payment blocks for specific customer segments on the Razorpay Dashboard. Know more about [Payment Configuration](/docs/payments/dashboard/account-settings/payment-configuration). * **Pass Configuration at Runtime**: Pass the configuration to the `options` parameter of the Checkout code at the run time. This is useful when you want to modify the order of the payment methods for a particular set of payments while rendering the Checkout. See the [Sample Code](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/sample-code) for details. * **Use a Configuration ID**: Create a global setting of the payments as a **Configuration ID** and pass these values while creating the Order. This is useful when you want control the checkout configurations dynamically using different **Configuration IDs**. You can create a **Configuration ID** through the [Dashboard](/docs/payments/dashboard/account-settings/payment-configuration). There are two ways to pass the Configuration ID: * While creating the order: Add the `checkout_config_id` field in the order creation request. * While opening the checkout: Include the `checkout_config_id` in the checkout options. ```json Pass config id theme={null} "checkout_config_id": "YourConfigIDHere" ``` ## Next Steps [Understand the Configuration](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/understand-configuration) ### Related Information * [Customise Checkout Appearance](/docs/payments/dashboard/account-settings/checkout-styling) * [Customise Checkout Experience](/docs/payments/dashboard/account-settings/checkout-features) * [Customise Payment Methods on Checkout](/docs/payments/dashboard/account-settings/payment-configuration) * [Supported Methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods) * [Sample Codes](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/sample-code) # Display the Configuration Source: https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/display-configuration Display the configured payment methods on Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore The `display` configuration can be passed in the Checkout options. You can use the `display` configuration to put together all the modules, that is, `blocks`, `sequence`, `preferences`, and `hide` instruments as shown below: ```javascript display configuration theme={null} let config = { display: { blocks: { code: { name: "The name of the block", // The title of the block instruments: [instrument, instrument] // The list of instruments }, anotherCode: { name: "Another block", instruments: [instrument] } }, hide: [ { method: "method" } ], sequence: ["block.code"], // The sequence in which blocks and methods should be shown preferences: { show_default_blocks: true // Should Checkout show its default blocks? } } }; ``` ```javascript JavaScript Checkout options theme={null} // beginning of the Checkout code ..... let options = { key: "[YOUR_KEY_ID]", amount: 60000, currency: "INR", config: { display: { // The display config } } }; let razorpay = new Razorpay(options); razorpay.open(); .... //rest of the Checkout code ``` ## Checkout options Descriptions for the checkout options parameters are present in the [Checkout Options](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-3-checkout-options) table. ## Orders API Sample Code Given below is the sample code: ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] -X POST https://api.razorpay.com/v1/orders -H "content-type: application/json" -d '{ "amount": 50000, "currency": "INR", "receipt": "receipt#1", "checkout_config_id": "config_Ep0eOCwdSfgkco" }' ``` ```python Python theme={null} import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.order.create({ "amount": 50000, "currency": "INR", "receipt": "receipt#1", "checkout_config_id": "config_Ep0eOCwdSfgkco" }) ``` ```php PHP theme={null} $api = new Api($key_id, $secret); $api->order->create(array('receipt' => 'receipt#1', 'amount' => 50000, 'currency' => 'INR', 'checkout_config_id' => 'config_Ep0eOCwdSfgkco')); ``` ```csharp .NET theme={null} RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary options = new Dictionary(); options.Add("amount", 50000); // amount in the smallest currency unit options.Add("receipt", "receipt#1"); options.Add("currency", "INR"); options.Add("checkout_config_id", "config_Ep0eOCwdSfgkco"); Order order = client.Order.Create(options); ``` ```javascript Node.js theme={null} var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.orders.create({ amount: 50000, currency: "INR", receipt: "receipt#1", checkout_config_id: "config_Ep0eOCwdSfgkco" }) ``` ```go Go theme={null} import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ "amount": 50000, "currency": "INR", "receipt": "receipt#1", "checkout_config_id": "config_Ep0eOCwdSfgkco" } body, err := client.Order.Create(data, nil) ``` ```ruby Ruby theme={null} require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') order = Razorpay::Order.create amount: 50000, currency: 'INR', receipt: 'receipt#1', checkout_config_id: 'config_Ep0eOCwdSfgkco' ``` ```java Java theme={null} RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject orderRequest = new JSONObject(); orderRequest.put("amount", 50000); // amount in the smallest currency unit orderRequest.put("currency", "INR"); orderRequest.put("receipt", "receipt#1"); orderRequest.put("checkout_config_id", "config_Ep0eOCwdSfgkco"); Order order = razorpay.orders.create(orderRequest); ``` ```json Response theme={null} { "id": "order_EKwxwAgItmmXdp", "entity": "order", "amount": 50000, "amount_paid": 0, "amount_due": 50000, "currency": "INR", "receipt": "receipt#1", "offer_id": null, "status": "created", "attempts": 0, "notes": [], "created_at": 1582628071 } ``` Know more about [Orders API](/docs/api/orders). #### Request Parameters Descriptions for the request parameters are present in the [Create an Order Request Parameters](/docs/api/orders/create) table. #### Response Parameters Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. ### Related Information * [Supported Methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods) * [Sample Codes](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/sample-code) # Sample Codes Source: https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/sample-code Sample codes to help you integrate the payment methods of your choice on Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore If you want to list all the payment methods offered by `Axis` bank, allow card payments for `ICICI` bank only and hide `upi` payment method from the Checkout, you can do so as follows: > [tab] Mobile > > ![payment gateway customised checkout on mobile](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-checkout-mweb.jpg) > [tab] Desktop > > ![payment gateway customised checkout on desktop](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customised-checkout.gif) ```html Checkout Code theme={null} ``` > [!WARNING] > > **Watch Out!** > > You can use the payment methods enabled for your account on the Dashboard. Also, you can raise a request with our [Support Team](https://razorpay.com/support/) for additional payment methods or providers. > [!WARNING] > > **UPI Collect Flow Deprecated** > > According to NPCI guidelines, the UPI Collect flow is being deprecated effective 28 February 2026. Customers can no longer make payments or register UPI mandates by manually entering VPA/UPI id/mobile numbers. > > **Exemptions:** UPI Collect will continue to be supported for: > > * MCC 6012 & 6211 (IPO and secondary market transactions). > * iOS mobile app and mobile web transactions. > * UPI Mandates (execute/modify/revoke operations only) > * eRupi vouchers. > * PACB businesses (cross-border/international payments). > > **Action Required:** > > * If you are a new Razorpay user, use [UPI Intent](/docs/payments/payment-methods/upi/upi-intent). > * If you are an existing Razorpay user not covered by exemptions, you must migrate to UPI Intent or UPI QR code to continue accepting UPI payments. For detailed migration steps, refer to the [migration documentation](/docs/announcements/upi-collect-migration/standard-integration). ## Show OlaMoney Use the code given below to show OlaMoney on Checkout: ```javascript Ola Money theme={null} config: { display: { blocks: { banks: { name: 'Methods With Offers', instruments: [ { method: 'wallet', wallets: ['olamoney'] }] }, }, sequence: ['block.banks'], preferences: { show_default_blocks: true, }, }, }, }; ``` > [tab] Mobile > > ![show ola money on checkout on mobile](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-olamoney-mweb.jpg) > [tab] Desktop > > ![show ola money on checkout on desktop](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-olamoney-dweb.jpg) ## Show Most Used Methods Use the code given below to show the most used methods: ```javascript Most Used Methods theme={null} config: { display: { blocks: { banks: { name: 'Most Used Methods', instruments: [ { method: 'wallet', wallets: ['payzapp'] }, { method: 'upi' }, ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: true, }, }, }, }; ``` > [tab] Mobile > > ![show most used methods on mobile](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-sample-code-show-most-used.jpg) > [tab] Desktop > > ![show most used methods on desktop](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customize-sample-code-show-most-used-dweb.jpg) ## Show Instruments of a Certain Bank Only Use the code given below to show the instruments of a certain bank only on Checkout: ```javascript Instruments of Axis Bank Only theme={null} config: { display: { blocks: { banks: { name: 'Pay Using Axis Bank', instruments: [ { method: 'netbanking', banks: ['UTIB'], }, { method: 'card', issuers: ['UTIB'], } ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: false, }, }, }, }; ``` > [!WARNING] > > **Watch Out!** > > This configuration is not applicable for [Recurring Payments](/docs/payments/recurring-payments). > [tab] Mobile > > ![show instruments of a certain bank only on mobile](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-instruments-certain-bank.jpg) > [tab] Desktop > > ![show instruments of a certain bank only on desktop](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customize-instruments-certain-bank-dweb.jpg) ## Highlight Instruments of a Certain Bank Use the code given below to highlight the instruments of a certain bank only on Checkout: ```javascript Highlight Instruments of Axis Bank theme={null} config: { display: { blocks: { banks: { name: 'Pay Using Axis Bank', instruments: [ { method: 'netbanking', banks: ['UTIB'], }, { method: 'card', issuers: ['UTIB'], } ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: true, }, }, }, }; ``` > [tab] Mobile > > ![highlight instruments of a certain bank on mobile](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-certain-bank.jpg) > [tab] Desktop > > ![highlight instruments of a certain bank on desktop](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customize-certain-bank-dweb.jpg) ## Reorder Payment Methods Use the code given below to reorder payment methods on Checkout: ```javascript Reorder Payment Methods theme={null} config: { display: { blocks: { banks: { name: 'All Payment Options', instruments: [ { method: 'upi' }, { method: 'card' }, { method: 'wallet' }, { method: 'netbanking' } ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: false, }, }, }, }; ``` ![reorder payment methods](https://razorpay.com/docs/build/browser/assets/images/payment-methods-reorder-customise.jpg) ## Remove a Method from Checkout Use the code given below to remove a method from Checkout: ```javascript EMI Removed from Checkout theme={null} config: { display: { hide: [ { method: 'emi' } ], preferences: { show_default_blocks: true, }, }, }, }; ``` > [tab] Mobile > > ![remove a method from checkout on mobile](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-hide-payment-method.jpg) > [tab] Desktop > > ![remove a method from checkout on desktop](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customize-hide-payment-method-dweb.jpg) ## Show Only a Certain Payment Method on Checkout Use the code given below to show only a certain payment method on Checkout: ### Card ```javascript Land on Card theme={null} config: { display: { blocks: { cards_only: { name: "Pay via Card", instruments: [ { method: "card", }, ], }, }, sequence: ["block.cards_only"], preferences: { show_default_blocks: false, }, }, }, }; ``` ![show only UPI on checkout](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-sample-code-land-on-card.jpg) ### UPI ```javascript Land on UPI theme={null} config: { display: { blocks: { banks: { name: 'Pay via UPI', instruments: [ { method: 'upi' } ], }, }, sequence: ['block.banks'], preferences: { show_default_blocks: false, }, }, }, }; ``` ![show only UPI on checkout](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-sample-code-land-on-upi.jpg) ### EMI ```javascript Land on EMI theme={null} config: { display: { blocks: { banks: { name: "Pay Using HDFC Bank", instruments: [ { method: "emi", issuers: ["HDFC"], types: ["debit"], iins: [438628] }, ] }, }, sequence: ["block.banks"], preferences: { show_default_blocks: false } } } ``` ![show only UPI on checkout](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-sample-code-land-on-emi.jpg) ### Related Information * [Supported Methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods) * [Configurability of Payment Methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods) # Supported Methods Source: https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods List of supported payment methods and instruments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore All the supported payment methods and instruments are listed below: ## Supported Banks | **Bank Name** | **Code** | | - | - | | AU Small Finance Bank | `AUBL` | | Aditya Birla Idea Payments Bank | `ABPB` | | Airtel Payments Bank | `AIRP` | | Allahabad Bank | `ALLA` | | Andhra Bank | `ANDB` | | Andhra Bank Corporate Banking | `ANDB_C` | | Axis Bank | `UTIB` | | Bandhan Bank | `BDBL` | | Bank of Bahrain and Kuwait | `BBKM` | | Bank of Baroda Retail Banking | `BARB_R` | | Bank of India | `BKID` | | Bank of Maharashtra | `MAHB` | | Bassein Catholic Co-operative Bank | `BACB` | | Canara Bank | `CNRB` | | Catholic Syrian Bank | `CSBK` | | Central Bank of India | `CBIN` | | City Union Bank | `CIUB` | | Corporation Bank | `CORP` | | Cosmos Co-operative Bank | `COSB` | | DCB Bank | `DCBL` | | Dena Bank | `BKDN` | | Deutsche Bank | `DEUT` | | Development Bank of Singapore | `DBSS` | | Dhanlaxmi Bank | `DLXB` | | Dhanlaxmi Bank Corporate Banking | `DLXB_C` | | ESAF Small Finance Bank | `ESAF` | | Equitas Small Finance Bank | `ESFB` | | Federal Bank | `FDRL` | | HDFC Bank | `HDFC` | | ICICI Bank | `ICIC` | | IDBI | `IBKL` | | IDBI Corporate Banking | `IBKL_C` | | IDFC FIRST Bank | `IDFB` | | Indian Bank | `IDIB` | | Indian Overseas Bank | `IOBA` | | Indusind Bank | `INDB` | | Jammu and Kashmir Bank | `JAKA` | | Janata Sahakari Bank (Pune) | `JSBP` | | Kalupur Commercial Co-operative Bank | `KCCB` | | Kalyan Janata Sahakari Bank | `KJSB` | | Karnataka Bank | `KARB` | | Karur Vysya Bank | `KVBL` | | Kotak Mahindra Bank | `KKBK` | | Lakshmi Vilas Bank Corporate Banking | `LAVB_C` | | Lakshmi Vilas Bank Retail Banking | `LAVB_R` | | Mehsana Urban Co-operative Bank | `MSNU` | | NKGSB Co-operative Bank | `NKGS` | | North East Small Finance Bank | `NESF` | | PNB (Erstwhile-Oriental Bank of Commerce) | `ORBC` | | PNB (Erstwhile-United Bank of India) | `UTBI` | | Punjab & Sind Bank | `PSIB` | | Punjab National Bank Retail Banking | `PUNB_R` | | RBL Bank | `RATN` | | RBL Bank Corporate Banking | `RATN_C` | | Saraswat Co-operative Bank | `SRCB` | | Shamrao Vithal Bank Corporate Banking | `SVCB_C` | | Shamrao Vithal Co-operative Bank | `SVCB` | | South Indian Bank | `SIBL` | | Standard Chartered Bank | `SCBL` | | State Bank of Bikaner and Jaipur | `SBBJ` | | State Bank of Hyderabad | `SBHY` | | State Bank of India | `SBIN` | | State Bank of Mysore | `SBMY` | | State Bank of Patiala | `STBP` | | State Bank of Travancore | `SBTR` | | Suryoday Small Finance Bank | `SURY` | | Syndicate Bank | `SYNB` | | Tamilnadu Mercantile Bank | `TMBL` | | Tamilnadu State Apex Co-operative Bank | `TNSC` | | Thane Bharat Sahakari Bank | `TBSB` | | Thane Janata Sahakari Bank | `TJSB` | | UCO Bank | `UCBA` | | Union Bank of India | `UBIN` | | Varachha Co-operative Bank | `VARA` | | Vijaya Bank | `VIJB` | | Yes Bank | `YESB` | | Yes Bank Corporate Banking | `YESB_C` | | Zoroastrian Co-operative Bank | `ZCBL` | ## Supported Cards Any card issued by the following banks: | **Bank Name** | **Code** | | - | - | | AU Small Finance Bank | `AUBL` | | Aditya Birla Idea Payments Bank | `ABPB` | | Airtel Payments Bank | `AIRP` | | Allahabad Bank | `ALLA` | | Andhra Bank | `ANDB` | | Andhra Bank Corporate Banking | `ANDB_C` | | Axis Bank | `UTIB` | | Bandhan Bank | `BDBL` | | Bank of Bahrein and Kuwait | `BBKM` | | Bank of Baroda Retail Banking | `BARB_R` | | Bank of India | `BKID` | | Bank of Maharashtra | `MAHB` | | Bassein Catholic Co-operative Bank | `BACB` | | Canara Bank | `CNRB` | | Catholic Syrian Bank | `CSBK` | | Central Bank of India | `CBIN` | | City Union Bank | `CIUB` | | Corporation Bank | `CORP` | | Cosmos Co-operative Bank | `COSB` | | DCB Bank | `DCBL` | | Dena Bank | `BKDN` | | Deutsche Bank | `DEUT` | | Development Bank of Singapore | `DBSS` | | Dhanlaxmi Bank | `DLXB` | | Dhanlaxmi Bank Corporate Banking | `DLXB_C` | | ESAF Small Finance Bank | `ESAF` | | Equitas Small Finance Bank | `ESFB` | | Federal Bank | `FDRL` | | HDFC Bank | `HDFC` | | ICICI Bank | `ICIC` | | IDBI | `IBKL` | | IDBI Corporate Banking | `IBKL_C` | | IDFC FIRST Bank | `IDFB` | | Indian Bank | `IDIB` | | Indian Overseas Bank | `IOBA` | | Indusind Bank | `INDB` | | Jammu and Kashmir Bank | `JAKA` | | Janata Sahakari Bank (Pune) | `JSBP` | | Kalupur Commercial Co-operative Bank | `KCCB` | | Kalyan Janata Sahakari Bank | `KJSB` | | Karnataka Bank | `KARB` | | Karur Vysya Bank | `KVBL` | | Kotak Mahindra Bank | `KKBK` | | Lakshmi Vilas Bank Corporate Banking | `LAVB_C` | | Lakshmi Vilas Bank Retail Banking | `LAVB_R` | | Mehsana Urban Co-operative Bank | `MSNU` | | NKGSB Co-operative Bank | `NKGS` | | North East Small Finance Bank | `NESF` | | PNB (Erstwhile-Oriental Bank of Commerce) | `ORBC` | | PNB (Erstwhile-United Bank of India) | `UTBI` | | Punjab & Sind Bank | `PSIB` | | Punjab National Bank Retail Banking | `PUNB_R` | | RBL Bank | `RATN` | | RBL Bank Corporate Banking | `RATN_C` | | Saraswat Co-operative Bank | `SRCB` | | Shamrao Vithal Bank Corporate Banking | `SVCB_C` | | Shamrao Vithal Co-operative Bank | `SVCB` | | South Indian Bank | `SIBL` | | Standard Chartered Bank | `SCBL` | | State Bank of Bikaner and Jaipur | `SBBJ` | | State Bank of Hyderabad | `SBHY` | | State Bank of India | `SBIN` | | State Bank of Mysore | `SBMY` | | State Bank of Patiala | `STBP` | | State Bank of Travancore | `SBTR` | | Suryoday Small Finance Bank | `SURY` | | Syndicate Bank | `SYNB` | | Tamilnadu Mercantile Bank | `TMBL` | | Tamilnadu State Apex Co-operative Bank | `TNSC` | | Thane Bharat Sahakari Bank | `TBSB` | | Thane Janata Sahakari Bank | `TJSB` | | UCO Bank | `UCBA` | | Union Bank of India | `UBIN` | | Varachha Co-operative Bank | `VARA` | | Vijaya Bank | `VIJB` | | Yes Bank | `YESB` | | Yes Bank Corporate Banking | `YESB_C` | | Zoroastrian Co-operative Bank | `ZCBL` | ### Supported Card Types * `credit` for credit cards * `debit` for debit cards ### Supported Card Networks | **Card Network Name** | **Code** | | - | - | | American Express | `American Express` | | Diners Club (Only available for private limited and registered businesses) | `Diners Club` | | Maestro | `Maestro` | | MasterCard | `MasterCard` | | RuPay | `RuPay` | | Visa | `Visa` | | Bajaj Finserv | `Bajaj Finserv` | ## Supported Debit Card EMI Providers | Bank Code | Issuer Bank | | - | - | | HDFC | HDFC Bank | > [!NOTE] > > **Handy Tips** > > Know the standard debit card interest rates charged by the [banks](/docs/payments/payment-gateway/emiยฒ/faqs#5-can-you-provide-a-list-of-the). ## Supported Credit Card EMI Providers | Bank Code | Issuer Bank | | - | - | | AMEX | American Express | | BARB | Bank of Baroda | | CITI | Citibank | | FDRL | Federal Bank | | HDFC | HDFC Bank | | HSBC | HSBC Bank | | ICIC | ICICI Bank | | INDB | IndusInd Bank | | KKBK | Kotak Mahindra Bank | | RATN | RBL Bank | | SBIN | State Bank of India | | SCBL | Standard Chartered | | UTIB | Axis Bank | | YESB | Yes Bank | ### Other Cards | Code | Card Network Name | | - | - | | Onecard | Onecard | > [!NOTE] > > **Handy Tips** > > Know the standard credit card interest rates charged by the [banks](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-credit-card-interest). ## Supported Cardless EMI Providers | Banks | Provider Code | | - | - | | ICICI Bank | `icic` | | IDFC Bank | `idfb` | | HDFC Bank | `hdfc` | | Kotak Bank | `kkbk` | | axio | `walnut369` | | Fibe | `earlysalary` | | ZestMoney | `zestmoney` | > [!NOTE] > > **Handy Tips** > > Know the standard interest rates charged by: > > * [Banks/Partners](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-interest-rates-charged) > * [Pay Later Providers](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged) ## Supported Wallets | **Wallet provider** | **Wallet Code** | | - | - | | PhonePe | `phonepe` | | Mobikwik | `mobikwik` | | PayZapp | `payzapp` | | Ola Money | `olamoney` | | Airtel Money | `airtelmoney` | | Amazon Pay | `amazonpay` | | JioMoney | `jiomoney` | | PayPal | `paypal` | ## Supported UPI Apps | App Name | Package Name | | - | - | | Google Pay | `com.google.android.apps.nbu.paisa.user` | | BHIM | `in.org.npci.upiapp` | | BHIM UCO | `com.lcode.ucoupi` | | BHIM IOB | `com.euronet.iobupi` | | BHIM CSB | `com.lcode.csbupi` | | PhonePe | `com.phonepe.app` | | Paytm | `net.one97.paytm` | | ICICI iMobile | `com.csam.icici.bank.imobile` | | ICICI Pocket | `com.icicibank.pockets` | | SBI | `com.sbi.upi` | | Axis Pay | `com.upi.axispay` | | Axis | `com.axis.mobile` | | Samsung Pay | `com.samsung.android.spay` | | HDFC Bank | `com.snapwork.hdfc` | | PayZapp | `com.hdfcbank.payzapp` | | Bank of Baroda | `com.bankofbaroda.upi` | | Freecharge | `com.freecharge.android` | | KVB | `com.mycompany.kvb` | | JK UPI | `com.fss.jnkpsp` | | IDFC | `com.fss.idfcpsp` | | IDFC First | `com.idfcfirstbank.optimus` | | Yes Bank | `com.YesBank` | | YesBank Iris | `in.irisbyyes.app` | | Microsoft Kaizala | `com.microsoft.mobile.polymer` | | Lotza | `com.upi.federalbank.org.lotza` | | Fed Mobile | `com.fedmobile` | | IndusInd Pay | `com.mgs.induspsp` | | IndusInd Mobile | `com.fss.indus` | | Indus Indie | `com.indusind.indie` | | Wizely | `ai.wizely.android` | | Amazon | `in.amazon.mShop.android.shopping` | | RBL MoBank | `com.rblbank.mobank` | | CRED | `com.dreamplug.androidapp` | | Finserve | `in.bajajfinservmarkets.app` | | Fampay | `com.fampay.in` | | Mobikwik | `com.mobikwik_new` | | PNB Bank | `com.mgs.pnbupi` or `com.fss.pnbpsp` | | PNB One | `com.Version1` | | Digibank | `com.dbs.in.digitalbank` | | Jupiter | `money.jupiter` | | Navi | `com.naviapp` | | Slice | `indwin.c3.shareapp` | | Tata Neu | `com.tatadigital.tcp` | | Groww | `com.nextbillion.groww` | | Shriram One | `com.shriram.one` | | Fave | `com.pinelabs.fave` | | Ultracash | `com.ultracash.payment.customer` | | Timepay | `com.npst.timepay.society` | | Goibibo | `com.goibibo` | | Kotak | `com.msf.kbank.mobile` | | Kotak811 | `com.kotak811mobilebankingapp.instantsavingsupiscanandpayrecharge` | | DakPay | `com.fss.ippbpsp` | | India Post | `com.iexceed.appzillon.ippbMB` | | Canara | `com.canarabank.mobility` | | MyJio | `com.jio.myjio` | | IndOASIS | `com.IndianBank.IndOASIS` | | Tvam | `com.atyati.tvamapp` | | PopClub | `com.popclub.android` | | Vyom | `com.infrasoft.uboi` | | Super Money | `money.super.payments` | | Omnicard | `com.eroute.omnicard` | | AU0101 | `com.ausmallfinancebank.amb` | | Cent Mobile | `com.infrasofttech.CentralBank` | | Kiwi | `in.gokiwi.kiwitpap` | | Digi Khata | `com.paypointz.wallet` | | Moneyview | `com.whizdm.moneyview.loans` | | Scapia | `cards.scapia.android` | | Scapia iOS | `cards.scapia.ios` | ### Supported UPI flows Given below are the supported UPI flows: * `collect` for flow via VPA * `intent` for flow via UPI apps > [!NOTE] > > **Handy Tips** > > The supported UPI apps for intent on android mobile web are **Google Pay** and **PhonePe**. * `qr` for flow via UPI QR ## Supported Pay Later Providers | **Provider name** | **Provider Code** | | - | - | | LazyPay | `lazypay` | | PayPal | `paypal` | > [!NOTE] > > **Handy Tips** > > * PayPal now supports the Pay Later feature. You should enable both [PayPal](/docs/payments/payment-methods/wallets/paypal#to-enable-paypal) and the Pay Later options under Account & Settings โ†’ Pay Later (under Payment methods) on the Dashboard to enable the Pay Later feature. ## Supported Apps | **App** | **Code** | | - | - | | CRED Pay | `cred` | ### Related Information * [Understand the Configuration](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/understand-configuration) * [Sample Codes](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/sample-code) # Understand the Configuration Source: https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/understand-configuration Understand the building blocks that are required to build a configuration of your choice. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Let us understand the building blocks that are required to build a configuration of your choice: 1. [Payment Methods](#payment-methods) 2. [Payment Instruments](#payment-instruments) 3. [Blocks](#blocks) 4. [Sequence](#sequence) 5. [Preferences](#preferences) ## Payment Methods Before deciding the payment methods or payment instruments that you want to configure on the Checkout, refer to the [payment methods](/docs/payments/payment-methods) supported by Razorpay. ## Payment Instruments A payment instrument is a combination of the payment method and its associated properties. For example, a payment instrument can be an **AXIS Debit card**, where **card** is the payment method and the issuer (AXIS bank) is the associated **instrument**. An instrument is a JSON object with a key named `method`. Each method and its associated properties are described in the sections below: ### Card Payment instruments for the `method: card` are listed below: | Name | Type | Description | Values | Examples | | - | - | - | - | - | | issuers | array | List of issuers that are allowed | [Any bank code](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-banks) | `issuers: ["HDFC", "ICIC"]` | | networks | array | List networks that are allowed | [Any card network](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-card-networks) | `networks: ["Visa", "MasterCard"]` | | types | array | List of card types that are allowed | [Any card type](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-cards) | `types: ["credit", "debit"]` | ```javascript JavaScript theme={null} // beginning of the code .... card: { \\name for cards name: "Pay Via Cards" instruments: [ { method: "card", issuers: ["HDFC"], networks: ["Visa"], types: ["debit","credit"] } ] }, ... //rest of the code ``` ### Netbanking Payment instruments for the `method: netbanking` are listed below: | Name | Type | Description | Values | Examples | | - | - | - | - | - | | banks | array`` | List of all banks that are allowed | [Any bank code](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-banks) | `banks: ["HDFC", "ICIC"]` | ### Wallet Payment instruments for the `method: wallet` are listed below: | Name | Type | Description | Values | Examples | | - | - | - | - | - | | wallets | string | Wallets to be allowed | [Any wallet code](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-wallets) | `wallets: ["payzapp"]` | ### UPI Payment instruments for the `method: upi` are listed below: | Name | Type | Description | Values | Examples | | - | - | - | - | - | | flows | string | Flows to show | [Any supported UPI flow](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-upi-flows) | `flows: [ "qr"]` | | apps | string | Apps to show, for intent | [Any supported UPI apps](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-upi-apps) | `apps: ["google_pay", "phonepe"]` | ### EMI Payment instruments for the `method: emi` are listed below: | Name | Type | Description | Values | Examples | | - | - | - | - | - | | issuers | array`` | Providers to be allowed | [Any EMI issuers](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-cardless-emi-providers) | `issuers: ["HDFC, ICIC"]` | | types | array`` | Providers to be allowed | Any [credit](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-credit-card-emi-providers) and [debit](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-debit-card-emi-providers) card EMI type | `types: ["debit, credit"]` | | iins | array`` | Providers to be allowed | [Any EMI IIN](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-cardless-emi-providers) | `iins: ["438600"]` | ### Cardless EMI Payment instruments for the `method: cardless_emi` are listed below: | Name | Type | Description | Values | Examples | | - | - | - | - | - | | providers | string | Providers to be allowed | [Any Cardless EMI provider](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-cardless-emi-providers) | `providers: ["zestmoney"]` | ### Pay Later For the method: `paylater`, the payment instruments are listed below: | Name | Type | Description | Values | Examples | | - | - | - | - | - | | providers | string | Providers to be allowed | [Any paylater provider](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-pay-later-providers) | `providers: ["hdfc"]` | ### Apps For the method `app`, the payment instrument is listed below: | Name | Type | Description | Values | Examples | | - | - | - | - | - | | providers | string | Providers to be allowed | [Any app provider](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods#supported-apps) | `providers: ["cred"]` | ```javascript JavaScript theme={null} // beginning of the code .... { "custom": { "name": "Pay with Apps", "instruments": [ { "method": "app", "providers": [ "cred" ] } ] } } ... //rest of the code ``` ## Blocks A block is a collection of one or more payment instruments. Each block has a `name` and `code` associated as shown below: ```javascript JavaScript theme={null} // Block creation let myPayments = { name: "My Custom Block", instruments: ["gpay"] }; // Usage in config let config = { display: { blocks: { highlighted: myPayments } } }; ``` Here, `highlighted` is the code associated with `myPayments`. Multiple blocks can be added to the config at the same time. ## Sequence You can specify the `sequence`, that is the order, in which the payment methods should be displayed on the Checkout. A sequence is an `array` of strings, where each string is the name of the payment method or a `block`. In a sequence, you can include any block using the `block.${code}` format. The block with code **highlighted** should be represented as `block.highlighted` as shown below: ```javascript JavaScript theme={null} let sequence = ["block.highlighted", "upi", "netbanking"]; ``` The above sequence will place the code `highlighted` first followed by the payment methods `upi` and `netbanking` in that particular order. > [!NOTE] > > **Handy Tips** > > Every block defined has to be present in the sequence. If you do not wish to reorder the methods and want to place your block, the sequence should contain `block.highlighted` with just one item in it. ## Preferences Using the `preferences` object, you can enhance the configuration of the Checkout. By setting this value, you can decide whether the default list of payment methods should be displayed or not. Possible values are: `true` : Checkout will display the sequence of the payment methods configured by you alongside with the default order of payment methods available in the Checkout. `false` : Checkout will only show the sequence of the payment methods configured by you. ## Hide Payment Instruments You can also hide or remove certain instruments from the Checkout. This is an `array` containing the `method` key used to hide either the payment method and/or the payment instrument associated with that payment method. For example, you can hide the methods, `card` and `HDFC netbanking` on the Checkout. ```javascript JavaScript theme={null} let cardInstrument = { method: "card" }; let instrumentOfSomeBank = { method: "netbanking", banks: ["HDFC"] }; let hiddenInstruments = [cardInstrument, instrumentOfSomeBank]; ``` This is an `array` containing the `method` key used to hide either the payment method and/or the payment instrument associated with that payment method. For example, you can hide the methods, `card` and `Axis netbanking` on the Checkout. ```javascript JavaScript theme={null} let cardInstrument = { method: "card" }; let instrumentOfSomeBank = { method: "netbanking", banks: ["UTIB"] }; let hiddenInstruments = [cardInstrument, instrumentOfSomeBank]; ``` > [!NOTE] > > **Handy Tips** > > Hiding any instrument using `hide` does not affect the similar instrument defined in `blocks`. So, if you want to hide `UTIB` bank from `netbanking` and have defined the same instrument in one of your blocks, Axis bank will still be displayed in that block. If [Cash on Delivery (COD)](/docs/payments/payment-gateway/web-integration/standard/cod) is activated on your account, it is shown on every Checkout session by default. Use `method: "cod"` in the `hide` array to suppress COD for orders that are not COD-eligible under your own rules. ```javascript JavaScript theme={null} let codInstrument = { method: "cod" }; let hiddenInstruments = [codInstrument]; ``` ![ceratin bank](https://razorpay.com/docs/build/browser/assets/images/payment-methods-customise-certain-bank.jpg) ## Next Steps [Display the Configuration](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/display-configuration) ### Related Information * [Supported Methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods) * [Sample Codes](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/sample-code) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/integration-steps Steps to integrate the Standard Checkout form on your website. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Follow these steps to integrate the Standard Checkout form on your website: > [card] [1. Build Integration](/docs/payments/payment-gateway/web-integration/standard/integration-steps#1-build-integration) > > Integrate Web Standard Checkout. > [card] [2. Test Integration](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/web-integration/standard/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [Razorpay Web Std Integration](https://www.youtube.com/embed/SFHbcs-lSio) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Create an Order in Server > > Given below are the order states and the corresponding payment states: > > | Payment Stages | Order State | Payment State | Description | > | - | - | - | - | > | Stage I | created | created | The customer submits the payment information, which is sent to Razorpay. The payment is **not processed** at this stage. | > | Stage II | attempted | authorized/failed | An order moves from **created** to **attempted** state when payment is first attempted. It remains in this state until a payment associated with the order is captured. | > | Stage III | paid | captured | After the payment moves to the **captured** state, the order moves to the **paid** state.
  • No more payment requests are allowed after an order moves to the **paid** state.
  • The order continues to be in this state even if the payment for this order is **refunded**.
| > > > [!NOTE] > > > > **Capture Payments Automatically** > > > > You can capture payments automatically with the one-time [Payment Capture setting configuration](/docs/payments/payments/capture-settings) on the Dashboard. > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order using: > > > [tab] API Sample Code > > > > Use this endpoint to create an order using the Orders API. > > > > `POST /orders` > > > > ```bash Curl theme={null} > > curl -X POST https://api.razorpay.com/v1/orders > > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -H 'content-type:application/json' > > -d '{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "qwsaq1", > > "partial_payment": true, > > "first_payment_min_amount": 230 > > }' > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > JSONObject orderRequest = new JSONObject(); > > orderRequest.put("amount", 50000); // amount in the smallest currency unit > > orderRequest.put("currency", "INR"); > > orderRequest.put("receipt", "order_rcptid_11"); > > > > Order order = razorpay.Orders.create(orderRequest); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > DATA = { > > "amount": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "key1": "value3", > > "key2": "value2" > > } > > } > > client.order.create(data=DATA) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->create(array('receipt' => '123', 'amount' => 50000, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient(your_key_id, your_secret); > > > > Dictionary options = new Dictionary(); > > options.Add("amount", 50000); // amount in the smallest currency unit > > options.add("receipt", "order_rcptid_11"); > > options.add("currency", "INR"); > > Order order = client.Order.Create(options); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > options = amount: 50000, currency: 'INR', receipt: '' > > order = Razorpay::Order.create > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.create({ > > amount: 50000, > > currency: "INR", > > receipt: "receipt#1", > > notes: { > > key1: "value3", > > key2: "value2" > > } > > }) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > data := map[string]interface{}{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "some_receipt_id" > > } > > body, err := client.Order.Create(data) > > ``` > > > > ```json Success Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "rcptid_11", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1642662092 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Order amount less than minimum amount allowed", > > "source": "business", > > "step": "payment_initiation", > > "reason": "input_validation_failed", > > "metadata": {}, > > "field": "amount" > > } > > } > > ``` > > > [tab] Razorpay Postman Public Workspace > > > > You can use the Postman workspace below to create an order: > > > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > > > You can create an order manually by integrating the API sample codes on your server. > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit. For example, for an actual amount of , the value of this field should be `22225`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be of 3 characters. > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7,000 is to be received from the customer in two installments of #1 - โ‚น5,000, #2 - โ‚น2,000, then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > [accordion] 2 Integrate with Checkout on Client-Side > > Add the Pay button on your web page using the checkout code. You can use the handler function or callback URL. > > > [accordion] 2.1 Handler Function or Callback URL > > > > | **Handler Function** | **Callback URL** | > > | - | - | > > | When you use this:
  • On successful payment, the customer is shown your web page.
  • On failure, the customer is notified of the failure and asked to retry the payment.
| When you use this:
  • On successful payment, the customer is redirected to the specified URL, for example, a payment success page.
  • On failure, the customer is asked to retry the payment.
| > > > [!NOTE] > > > > **Heads up: callback\_url and your webhook URL are different** > > > > The callback\_url Checkout option is only for WebView and redirect flows. For standard web integrations, use the handler function to handle payment completion on the client side, and webhooks for server-side confirmation. See [Webhooks](/docs/webhooks) for details. > > > > If you use callback\_url in a standard web integration, it bypasses the handler function and the payment status will not be confirmed on the client side immediately after payment. > > > [accordion] 2.2 Code to Add Pay Button > > > > Copy-paste the parameters as `options` in your code: > > > > ```html Callback URL (JS) Checkout Code theme={null} > > > > > > > > ``` > > > > ```html Handler Functions (JS) Checkout Code theme={null} > > > > > > > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Test your integration using these [test cards](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-test-integration). > > > [accordion] 2.3 Checkout Options > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > The open method of Razorpay object (`rzp1.open()`) must be invoked by your site's JavaScript, which may or may not be a user-driven action such as a click. > > > [accordion] 2.4 Errors > > > > Given below is a list of errors you may face while integrating with checkout on the client-side. > > > > | Error | Cause | Solution | > > | - | - | - | > > | The id provided does not exist. | Occurs when there is a mismatch between the API keys used while creating the `order_id`/`customer_id` and the API key passed in the checkout. | Make sure that the API keys passed in the checkout are the same as the API keys used while creating the `order_id`/`customer_id`. | > > | Blocked by CORS policy. | Occurs when the server-to-server request is hit from the front end instead. | Make sure that the API calls are made from the server side and not the client side. | > > > [accordion] 2.5 Configure Payment Methods *(Optional)* > > > > Multiple payment methods are available on the Razorpay Web Standard Checkout. > > > > * The payment methods are **fixed** and cannot be changed. > > * You can configure the order or make certain payment methods prominent. Know more about [configuring payment methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > [accordion] 3 Handle Payment Success and Failure > > The way the Payment Success and Failure scenarios are handled depends on the [Checkout Sample Code](#2-2-code-to-add-pay-button) you used in the last step. > > ### Checkout with Handler Function > > If you used the sample code with the handler function: > > > [tab] Payment Success > > > > #### On Payment Success > > > > The customer sees your website page. The checkout returns the response object of the successful payment (**razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature**). Collect these and send them to your server. > > > [tab] Payment Failure > > > > #### On Payment Failure > > > > The customer is notified about payment failure and asked to retry the payment. Know about the [error parameters.](/docs/errors#response-parameters) > > > > ```javascript Failure Handling Code theme={null} > > rzp1.on('payment.failed', function (response){ > > alert(response.error.code); > > alert(response.error.description); > > alert(response.error.source); > > alert(response.error.step); > > alert(response.error.reason); > > alert(response.error.metadata.order_id); > > alert(response.error.metadata.payment_id); > > } > > ``` > > ### Checkout with Callback URL > > If you used the sample code with the callback URL: > > > [tab] Payment Success > > > > #### On Payment Success > > > > Razorpay makes a POST call to the callback URL with the **razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature** in the response object of the successful payment. Only successful authorisations are auto-submitted. > > > [tab] Payment Failure > > > > #### On Payment Failure > > > > In case of failed payments, the checkout is displayed again to facilitate payment retry. > [accordion] 4 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 5 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > > > [!WARNING] > > > > **Watch Out: Always verify the payment signature server-side** > > > > After a payment completes, Razorpay sends `razorpay_payment_id`, `razorpay_order_id` and `razorpay_signature` to your handler. You must verify the signature on your server before fulfilling the order. > > > > A failed signature check indicates a potentially fraudulent or tampered payment. Reject the order entirely โ€” do not fulfil it, do not retry and do not treat it as a genuine payment. Skipping this step is the most common cause of fraudulent orders and payment disputes. > > Here are the links to our [SDKs](/docs/payments/payment-gateway/web-integration/standard#client-libraries) for the supported platforms. > [accordion] 6 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Web Standard Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > > 3. Download the keys and save them securely. > > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > > > [!WARNING] > > > > **Watch Out: Swap your API keys before going live** > > > > Your Test Mode API keys only process simulated transactions โ€” no real money moves. If you go live without replacing them with Live Mode keys, customers will see a payment success screen but no payment will be captured or settled. > > > > Generate your Live Mode keys from Dashboard โ†’ **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** (switch to Live Mode first). > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > [!WARNING] > > > > **Watch Out: Authorised payments must be captured to settle** > > > > A payment in `authorized` state has been approved by the bank but not yet settled to your account. You must capture it โ€” either manually from the Dashboard or automatically via capture settings. > > > > Uncaptured payments are auto-refunded after a fixed period. If customers are paying but you are not seeing settlements, check your capture settings in Dashboard โ†’ **Account & Settings** โ†’ **Payment Capture**. > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # About Card Payments Source: https://razorpay.com/docs/payments/payment-methods/cards Accept payments from your customers using cards. Check the Payment Flow and supported card network. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can accept payments from your customers using debit or credit cards from all international providers. Check the various capabilities we offer with Cards: * [3D Secure 2.0 Authentication Protocol (3DS2)](/docs/payments/payment-methods/cards/features/3ds2.0) * [Saved Cards](/docs/payments/payment-methods/cards/features/saved-cards) * [CVV-less Flow](/docs/payments/payment-methods/cards/features/cvv-less-flow) * [Card Tap & Read](/docs/payments/payment-methods/cards/features/card-tap-and-read) ## Payment Flow for Cards The diagram given below represents the payment flow for cards: ![Payment Methods Cards Flow](https://razorpay.com/docs/build/browser/assets/images/payment-flow-card.jpg) ## Supported Card Networks Razorpay supports the following card networks: * Visa * Mastercard * American Express * BAJAJ * Maestro * Rupay * Diners (Only available for private limited and registered businesses) ## Test Cards Use test cards to test your payment integration before going live. The test cards simulate different payment scenarios and error conditions for all supported card networks. Know more about [Test Cards](/docs/payments/payments/test-card-details). ### Related Information [Cards Error Codes](/docs/errors/payments/cards) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/payment-methods/cards/faqs Find answers to frequently asked questions about card as a payment method at Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [accordion] What types of cards are supported by Razorpay for payments? > > Razorpay supports payments through multiple types of cards including credit, debit, and prepaid cards. It accepts both domestic and international card transactions. > [accordion] What card networks are supported by Razorpay? > > Razorpay supports major card networks such as Visa, Mastercard, American Express (AMEX), BAJAJ, Maestro, Rupay, and Diners. > [accordion] How secure is it to process card payments through Razorpay? > > 3D Secure and OTP-based authentication for card payments, ensuring safe transactions for businesses and customers. > [accordion] What is Tokenisation? > > Tokenisation is the process by which the original card number / Primary Account Number (PAN) is replaced with a surrogate value called a **token**. Razorpayโ€™s RBI-compliant TokenHQ solution allows cardholders to tokenise their cards and securely process transactions through the tokenised cards. > [accordion] What is the saved card functionality in Razorpay? > > Razorpay allows customers to securely save their card details for faster future transactions. Saved card details are tokenised to ensure safety and can be used across various transactions without re-entering card information. > [accordion] How does Razorpay handle recurring payments via cards? > > Razorpay offers subscription or recurring payments through cards, enabling businesses to automate regular transactions. This is particularly useful for businesses offering subscription-based services. > [accordion] Does Razorpay support partial refunds for card transactions? > > Yes, Razorpay allows businesses to issue full and partial refunds for card transactions. > [accordion] Are there any limits on the transaction amount for card payments through Razorpay? > > The transaction limits for card payments depend on the customer's card issuer and the business' agreement with Razorpay. > [accordion] Does Razorpay offer integration for card payments with websites and mobile apps? > > Yes, Razorpay provides APIs and SDKs to integrate card payment options seamlessly into websites, mobile apps, and checkout pages. > [accordion] Can Razorpay handle declined card transactions? > > Yes, Razorpay provides detailed responses and logs for declined transactions, helping businesses understand the reasons and take corrective action. > [accordion] How can a business enable card payments on Razorpay? > > Businesses can enable card payments by signing up with Razorpay, completing the KYC process, and configuring the card payment option in the [dashboard](/docs/payments/dashboard/account-settings/payment-methods#request-payment-methods). > [accordion] Is there support for EMI payments through cards on Razorpay? > > Yes, Razorpay offers the ability to accept EMI payments through credit cards, allowing customers to split high-value transactions into installments. # 3D Secure 2.0 Authentication Protocol (3DS2) Source: https://razorpay.com/docs/payments/payment-methods/cards/features/3ds2.0 Understand 3DS2, the payment flow and the supported authentication channels. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore 3DS2 is an authentication protocol, the successor of 3DS1, that enables businesses and payment providers to send additional information (such as customer device or browser data) to verify the transaction's authenticity. This helps the customer's bank to evaluate the transaction for risk and decide on the payment flow. > [!NOTE] > > **Handy Tips** > > * Razorpay offers 3DS2 support for international card payments only. > > * Razorpay supports [3DS2 transactions on S2S](/docs/payments/payment-gateway/s2s-integration/payment-methods/cards/3ds2.0). ## Supported Authentication Channels Razorpay supports the 3DS2 protocol on two authentication channels: browser and app/SDK. * **Browser**: All transactions, even those made from the native app are routed through the browser. This flow is available by default for all Standard and Custom Checkout users. No additional integration is needed. * **App/SDK**: Integrating with SDK increases the chances of higher success rates. It also offers a better user experience compared to the browser. Please contact [Razorpay support](https://razorpay.com/support/) to know more. ## 3DS2 Payment Flow Given below is a diagram that explains the 3DS2 flow: ![Cards 3DS2 Protocol](https://razorpay.com/docs/build/browser/assets/images/cards-3ds-flowchart.jpg) > [accordion] Advantages > > * 3DS2 provides an extra layer of security in card-not-present online transactions. > * It provides a better customer experience by improving customer reliability and trust. > * Businesses can choose to process all payments as browser payments even if they are initiated from your native app. Integrating the SDK and routing them as app-based payments provides a better customer experience and higher success rates for international payments. > * The 3DS2 protocol allows businesses to pass additional customer and device data to issuing banks to reduce payment authentication failures. > * As compared to 3D Secure 1, 3D Secure 2 introduces Frictionless authentication and Challenge authentication flow. > * With Frictionless authentication flow, the transaction is authenticated without any additional input from the customer. > * 3DS2 enhances internal risk procedures to assess and score each transaction in real time. # CardSync by Razorpay Source: https://razorpay.com/docs/payments/payment-methods/cards/features/card-sync Power cards saved on third-party apps like CRED on your Razorpay Checkout using secure device tokenisation. Boost conversions with seamless payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India CardSync is an industry-first payment solution that eliminates checkout friction. CardSync allows customers to use cards they have saved on popular apps like CRED directly on the Razorpay Checkout, with just one tap. Customers can complete payments instantly using their pre-saved card credentials instead of manually entering their 16-digit card number, CVV and expiry date every time. This streamlined experience is built on VISA's secure device tokenisation framework and fully complies with RBI guidelines for device tokenisation, ensuring both convenience and security. ## Advantages Here are some advantages of CardSync: > [tab] For Your Business > > * **Reduced cart abandonment**: Eliminate payment friction that drives customers away. > * **Zero setup cost**: Included at no additional charge with your Razorpay account. > * **Instant implementation**: Automatically enabled for all Standard Checkout integrations. > * **Enhanced customer experience**: Build loyalty through effortless repeat transactions. > * **Link once, pay anywhere**: Link your card once on any Razorpay business and use it seamlessly across all instances of Razorpay Standard Checkout. > [tab] For Your Customers > > * **One-tap payments**: Skip entering 16-digit card numbers, CVV and expiry details every time. > * **Universal compatibility**: Saved cards work seamlessly across the entire Razorpay ecosystem. > * **Bank-grade security**: Secured by Visa's advanced tokenisation technology. > * **Zero friction setup**: Leverages cards already stored in trusted platforms like CRED. > * **Always synchronised**: Card updates in CRED automatically reflect across all businesses. ## Prerequisites Your customers can use CardSync if they: 1. Have an Android device with a Chromium browser for mobile web (iOS support coming soon). 2. Have the CRED app installed. 3. Have at least one VISA card saved in CRED (Mastercard support coming soon). 4. Have given permission in CRED to share information with partners. ## Getting Started **Who Can Use CardSync**: All Razorpay businesses are eligible to use CardSync. The feature is currently enabled for Standard Checkout, with SDK and server-to-server support coming soon. ## How CardSync Works Here is how CardSync works and what your customers experience: > [accordion] Setting Up (One Time Only) > > 1. Customer saves their card in CRED and provides consent to share information with Razorpay partners. > > ![CardSync First Time User Flow](https://razorpay.com/docs/build/browser/assets/images/cardsync-ftu.gif) > 2. The card is safely stored on their Android device following banking rules. > 3. They are ready to shop anywhere that uses Razorpay. > [accordion] Easy Shopping > > 1. At checkout, their saved CRED cards are shown (with their permission). > > ![Select Your Saved Card](https://razorpay.com/docs/build/browser/assets/images/cardsync-checkout-cardviacred.jpg) > 2. Card details are automatically displayed, so no typing is required. > 3. Customers tap to select their card and complete payment instantly. Given below is a complete end-to-end flow about how customers can use CardSync: ![CardSync Flow](https://razorpay.com/docs/build/browser/assets/images/cardsync-video-pm.gif) ### Setup Process **For Standard Checkout Businesses**: CardSync is enabled automatically, so no changes are needed on your end. If it is not enabled for your account, contact your Account Manager for assistance. **SDK and Server-to-Server Businesses**: Support for SDK and S2S will be available soon. Minor code changes will be required for integration. The [Razorpay Support team](https://razorpay.com/support/) is available to help with implementation. **Cost**: CardSync is completely free for all Razorpay businesses. There are no additional costs for businesses who already accept card payments. ## FAQs (Frequently Asked Questions) Here are some faqs regarding the CardSync Feature: > [accordion] Which businesses are eligible for CardSync? > > All Razorpay businesses are eligible for this feature. As of now, it is enabled for Standard Checkout, with support for SDK and S2S following soon. > [accordion] How can businesses enable device tokenisation for their customers? > > Standard Checkout businesses have this feature enabled automatically. If it is not enabled, contact your Account Manager. > [accordion] What are the customer requirements for CardSync? > > Customers need an Android device with the CRED app installed, at least one saved card on CRED, must be logged into CRED using the same phone number as checkout, and must have given consent on the CRED app to share their information with partners. > [accordion] What types of payments does CardSync support? > > CardSync currently supports one-time payments only. > [accordion] What is the cost of CardSync for businesses? > > It is completely free. There is no additional cost for Razorpay businesses with the card payment method enabled. ### Related Information [Introducing CardSync: Razorpayโ€™s Ecosystem-wide Saved Card Solution](https://razorpay.com/blog/introducing-razorpays-ecosystem-wide-tokenization-with-cardsync/) # Card Tap & Read at Standard Checkout Source: https://razorpay.com/docs/payments/payment-methods/cards/features/card-tap-and-read Let customers add a card by tapping it on their NFC-enabled Android phone at Razorpay Checkout. Card number and expiry auto-fill instantly. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Card Tap & Read lets your customers add a new card by tapping their physical card on the back of their NFC-enabled Android phone at [Standard Checkout](/docs/payments/payment-gateway/android-integration/standard). The card number and expiry auto-fill instantly, removing the need to type a 16-digit number. Built on NFC (Near Field Communication) and fully PCI-DSS compliant, it reduces manual entry errors and helps improve card payment success rates. > [!NOTE] > > **Handy Tips** > > Tapping a card only reads the card number and expiry. It does not trigger a payment. Customers still enter the CVV and complete OTP authentication. ## Advantages > [tab] For Your Business > > * **Higher success rates**: Fewer failures from incorrect card numbers and expiry details. > * **Zero setup cost**: Included at no additional charge. > * **No code changes**: Available out of the box on the latest Android [Standard Checkout](/docs/payments/payment-gateway/android-integration/standard) SDK. > [tab] For Your Customers > > * **1-tap card entry**: Auto-fill card number and expiry, no typing required. > * **Fewer errors**: Skip manual entry of long card numbers. > * **Always optional**: Switch to manual entry anytime. > * **Secure and compliant**: Tapping only reads the card number and expiry, never the CVV, and the feature is fully PCI-DSS compliant. ## Prerequisites Your customers can use Card Tap & Read if they have: * An Android device with NFC support. * A physical card that supports contactless reading. * Your app on the latest [Android Standard Checkout SDK](/docs/payments/payment-gateway/android-integration/standard). > [!NOTE] > > **Handy Tips** > > The feature is available out of the box for all merchants on the latest [Android Standard Checkout SDK](/docs/payments/payment-gateway/android-integration/standard), with no integration changes required. To opt out, contact our [Support team](https://razorpay.com/support/#request). ## How Card Tap & Read Works To pay using Card Tap & Read at [Standard Checkout](/docs/payments/payment-gateway/android-integration/standard): 1. Select **Card**, then choose **Add New Card**. 2. Tap the card on the back of the phone. The card number and expiry auto-fill within about a second. 3. Enter the CVV and cardholder name. 4. Choose whether to save the card. 5. Complete the payment through the standard authentication and authorisation flow. > [!NOTE] > > **Handy Tips** > > Select **Enter card details manually** at any time. From the manual screen, choose **Enter card details via NFC** to return to the tap flow. ### Fields Captured | Detail | How it is captured | | - | - | | Card number | Auto-filled via NFC tap | | Expiry | Auto-filled via NFC tap | | CVV | Entered manually | | Cardholder name | Entered manually | ## How Different Scenarios Are Handled The [Checkout](/docs/payments/payment-gateway/android-integration/standard) handles device and card scenarios gracefully, so customers can always complete a payment: | Scenario | What happens | Solution | | - | - | - | | Device does not support NFC | Card Tap & Read is not shown. | The customer enters card details manually. | | NFC is turned off | The customer is prompted to turn on NFC, with a shortcut to settings. | The customer turns on NFC and returns to Checkout. | | Card is not contactless | The card cannot be read on tap. | The customer can retry up to 3 times, after which the manual entry screen opens automatically. | | Card is read partially | Only some card details are captured. | The customer completes the remaining fields manually. | | Tap is not detected | A retry option with guidance appears. | After 3 failed attempts, the flow falls back to manual entry. | | Browser (mobile web) checkout | Card Tap & Read is not shown, as NFC is not supported in mobile browsers. | The customer enters card details manually. | ## Frequently Asked Questions (FAQs) > [accordion] Does tapping the card start a payment? > > No. Tapping only reads the card number and expiry. The customer must enter the CVV and complete OTP authentication to pay. > [accordion] Which details are auto-filled when the card is tapped? > > Only the card number and expiry. The CVV and cardholder name are entered manually, as these are not shared over NFC. > [accordion] Is Card Tap & Read available on iOS and mobile web? > > No. It is supported only in the in-app Android [Standard Checkout](/docs/payments/payment-gateway/android-integration/standard) SDK flow, as NFC is not supported on iOS or mobile web in India yet. > [accordion] Do I need to make any code changes to enable this feature? > > No. It is available automatically on the latest Android Standard Checkout SDK. To opt out, contact our [Support team](https://razorpay.com/support/#request). # CVV-less Flow for Card Payments Source: https://razorpay.com/docs/payments/payment-methods/cards/features/cvv-less-flow Save customer card details as tokens and enable CVV-less payment flows for customers via Razorpay. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can offer CVV-less payments for saved cards and let your customers complete a payment without the card CVV. CVV-less card payments are simple, fast and secure, and do not require the customers to remember the CVV. *Offering CVV-less saved card flows to your customers can increase the conversion rate by 4%.* We encourage the businesses to remove the CVV box on the checkout page. If you are live on Razorpay Standard Checkout, the UI changes reflect automatically. The customer can choose their saved cards as their preferred payment option and experience a faster transaction.\ ![CVV Less Card Payment Flow GIF](https://razorpay.com/docs/build/browser/assets/images/pm-cvv-otp-less.gif) > [!NOTE] > > **Handy Tips** > > CVV-less payments on RuPay is an on-demand feature. Reach out to our [support team](https://razorpay.com/support/#request) for more information. ## Frequently Asked Questions (FAQs) > [accordion] How can I handle the CVV field for Razorpay payments with saved cards? > > The CVV field is optional by default for saved card payments on all networks. To implement this change, you can skip passing the CVV field in the payment request to this field to Razorpay. > [accordion] Does this mean I no longer need to accept CVV from customers? > > Yes. You need to make the necessary UI changes to stop accepting CVV from your customers on saved card payments only. > [accordion] Do all networks support CVV-less flow? > > CVV-less flow is supported for tokenised payments on all networks: Visa, Mastercard, RuPay, Amex and Diners. > [accordion] Which card issuers support CVV-less payments? > > Besides Rupay cards, all issuers support CVV-less payments on other networks. For Rupay, given below is the list of supported issuers: > > | S No. | Issuing Bank Name | > | - | - | > | 1 | AXIS BANK | > | 2 | ICICI BANK | > | 3 | KOTAK MAHINDRA BANK | > | 4 | STATE BANK OF INDIA | > | 5 | UNION BANK OF INDIA | > | 6 | BANK OF BARODA | > | 7 | HDFC BANK | > | 8 | CANARA BANK | > | 9 | IDBI BANK | > | 10 | THE FEDERAL BANK | > | 11 | UCO BANK | > | 12 | CENTRAL BANK OF INDIA | > | 13 | IDFC Bank | > | 14 | BANDHAN BANK | > | 15 | KARNATAKA BANK | > | 16 | YES BANK LIMITED | > | 17 | THE BHARAT COOP BANK | > | 18 | INDIA POST PAYMENTS BANK | > | 19 | UTKARSH SMALL FINANCE BANK | > | 20 | CITIZEN CREDIT COOPERATIVE BANK | > | 21 | SARASWAT COOPERATIVE BANK | > | 22 | BARODA UP BANK | > | 23 | TAMILNAD MERCANTILE BANK | > | 24 | THE TAMILNADU STATE APEX COOP BANK | > | 25 | THE KALUPUR COMMERCIAL CO OP BANK | > | 26 | THE JAMMU AND KASHMIR BANK | > | 27 | J AND K GRAMEEN BANK | > | 28 | THE MUNICIPAL CO OP BANK | > | 29 | PAYTM PAYMENTS BANK | > | 30 | KERALA GRAMIN BANK | > | 31 | MAHARASHTRA GRAMIN BANK | > | 32 | MIZORAM RURAL BANK | > | 33 | CHHATTISGARH RAJYA GRAMIN BANK | > | 34 | THE CITIZENS URBAN CO OP BANK LTD JALANDHAR | > | 35 | RAJASTHAN MARUDHARA GRAMIN BANK | > | 36 | SARVA HARYANA GRAMIN BANK | > | 37 | ELLAQUAI DEHATI BANK | > | 38 | MADHYANCHAL GRAMIN BANK | > | 39 | ANDHRA PRAGATHI GRAMEENA BANK | > | 40 | ASSAM GRAMIN VIKAS BANK | > | 41 | ODISHA GRAMYA BANK | > | 42 | BARODA GUJARAT GRAMIN BANK | > | 43 | BARODA RAJASTHAN KSHETRIYA GRAMIN BANK | > | 44 | KARNATAKA GRAMIN BANK | > | 45 | JHARKHAND RAJYA GRAMIN BANK | > | 46 | SAURASHTRA GRAMIN BANK | > | 47 | THE KARNATAKA STATE COOPERATIVE APEX BANK | > | 48 | THE DISTRICT CO OP BANK LTD DEHRADUN | > | 49 | KOOKMIN BANK | > | 50 | AMBARNATH JAIHIND COOP BANK | > | 51 | KARNATAKA VIKAS GRAMEENA BANK | > | 52 | RAIGANJ CENTRAL COOP BANK | > | 53 | SANGLI URBAN COOP BANK | > | 54 | THE KURMANCHAL NAGAR SAHAKARI BANK | > | 55 | UTKAL GRAMEEN BANK | > | 56 | CHAITANYA GODAVARI GRAMEENA BANK | > | 57 | FINCARE SMALL FINANCE BANK | > | 58 | JANA SMALL FINANCE BANK LTD | > | 59 | THE MEGHALAYA COOPERATIVE APEX BANK | > | 60 | ARUNACHAL PRADESH RURAL BANK | > | 61 | INDUSIND BANK | > | 62 | MEGHALAYA RURAL BANK | > | 63 | TELENGANA GRAMEENA BANK | > | 64 | ANDHRA PRADESH GRAMEENA VIKAS BANK | > | 65 | BHOPAL COOPERATIVE CENTRAL BANK | > | 66 | FINGROWTH COOP BANK | > | 67 | IRINJALAKUDA TOWN CO OPERATIVE BANK | > | 68 | JILA SAHAKARI KENDRIYA BANK MARYADIT DURG | > | 69 | KOLAR AND CHIKBALLAPURA DISTRICT CENTRAL COOPERATI | > | 70 | KRISHNA BHIMA SAMRUDDHI AREA BANK | > | 71 | UTTARAKHAND GRAMIN BANK | > | 72 | CHIKMAGALUR PATTANA SAHAKARA BANK NIYAMITHA | > | 73 | COASTAL LOCAL AREA BANK | > | 74 | COL RD NIKAM SAINIK SAHAKARI BANK | > | 75 | JILA SAHAKARI KENDRIYA BANK MARYADIT DHAR | > | 76 | JILA SAHAKARI KENDRIYA BANK MYDT AMBIKAPUR AS ISSU | > | 77 | MALDA DISTRICT CENTRAL COOP BANK | > | 78 | MUGBERIA CENTRAL COOP BANK | > | 79 | THE BELLARY DISTRICT COOP CENTRAL BANK | > | 80 | THE DAKSHIN DINAJPUR DISTRICT CENTRAL COOP BANK | > | 81 | THE HASSAN DISTRICT COOP CENTRAL BANK | > | 82 | THE JAIPUR CENTRAL COOP BANK | > | 83 | THE JUNAGADH JILLA SAHAKARI BANK | > | 84 | THE SABARKANTHA DIST CENTRAL COOP BANK | > | 85 | THE WEST BENGAL STATE COOP BANK | > | 86 | UTTARAKHAND STATE COOP BANK | > [accordion] I have integrated with Standard Checkout on Razorpay. How does this feature impact me? > > CVV-less flow will be automatically enabled for Visa, Mastercard and American Express cards on Razorpay Standard Checkout. > [accordion] I have integrated with Custom Checkout/S2S on Razorpay. How does this feature impact me? > > If you are integrated with Razorpayโ€™s Custom Checkout/S2S APIs, you need not pass CVV to Razorpay for tokenised payments mandatorily. Update your integration as follows: > > * Modify the UI to stop collecting CVV from customers. > * For tokenised payments, the CVV field in the cards object can either be: > * null > > * empty > > * removed entirely. > > > [!WARNING] > > > > **Watch Out!** > > > > Do not pass dummy CVV values. > [accordion] I use Juspay to route card payments to Razorpay. Can I stop sending the CVV to Juspay? > > In this case, Juspay must send CVV-less card payments via Razorpay. We recommend you reach out to your Juspay POC. > [accordion] CVV validation was a mandatory step until now. Does this feature compromise my customerโ€™s security? > > The new RBI guidelines for the **Card on File Tokenization (CoFT)** process ensure enhanced card security. Your customerโ€™s card details are securely encrypted and stored, with access to only card networks and issuing banks. Considering this, Visa and Amex have made CVV validation optional for tokenised cards. This change is 100% compliant with all RBI regulations about card security. > [accordion] What is Tokenisation? > > Tokenisation is the process by which the original card number / Primary Account Number (PAN) is replaced with a surrogate value called a **token**. Razorpayโ€™s RBI-compliant TokenHQ solution allows cardholders to tokenise their cards and securely process transactions through the tokenised cards. To know more about TokenHQ, reach out to our [support team](https://razorpay.com/support/#request). > [accordion] Is this change applicable only to specific transactions, for example, less than INR 2000? > > CVV-less flows are applicable to all tokenised transactions for all networks, irrespective of the payment amount. > [accordion] Why is this introduced only on saved cards? Why not all cards? > > One of the ways cardholder authenticity and security are maintained for CVV-less transactions is via their consent and authorisation at the time of saving their card. Plain card payments still need to maintain cardholder security by mandating the CVV. # Integrate Saved Cards at Standard Checkout Source: https://razorpay.com/docs/payments/payment-methods/cards/features/integrate-saved-cards Know how to integrate saved cards at Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Check the prerequisites and the integration steps for [Saved Cards](/docs/payments/payment-methods/cards/features/saved-cards) on your standard checkout page. Know [how to integrate Saved Cards on Custom Checkout](/docs/payments/payment-gateway/web-integration/custom/features/saved-cards). ## Prerequisites * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * [Generate API Keys on Dashboard.](/docs/api/authentication#generate-api-keys) > [tab] Test Mode API Keys > > Watch this video to know how to generate Test Mode API keys. > > [Generate Test Mode API keys.](https://www.youtube.com/embed/6mJnOWZDhDo) * [Integrate with our Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). ## Step 1: Enable Flash Checkout on Dashboard Flash Checkout, enabled by default on your Standard Checkout, lets your customers save their card details for future purchases. Customers can choose whether to save their card information during the payment process. All card details are stored securely using PCI-DSS-compliant technology. Know more about [Flash Checkout](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). ## Step 2: Create a Customer Create a customer whose card details should be saved from the Dashboard or using the Customers API. You can create customers with basic details such as `email` and `contact` using the following endpoint: > [accordion] API Sample Code > > The following endpoint creates or add a customer with basic details such as name and contact details. You can use this API for various Razorpay Solution offerings. > > `POST /customers` > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/customers \ > -H "Content-Type: application/json" \ > -d '{ > "name": "", > "contact": "", > "email": "", > "fail_existing": "0", > "notes": { > "notes_key_1": "Tea, Earl Grey, Hot", > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." > } > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject customerRequest = new JSONObject(); > customerRequest.put("name",""); > customerRequest.put("contact",""); > customerRequest.put("email",""); > customerRequest.put("fail_existing", "0"); > JSONObject notes = new JSONObject(); > notes.put("notes_key_1","Tea, Earl Grey, Hot"); > notes.put("notes_key_2","Tea, Earl Greyโ€ฆ decaf."); > customerRequest.put("notes",notes); > > Customer customer = razorpay.customers.create(customerRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > client.customer.create({ > "name": "", > "contact": "", > "email": "", > "fail_existing": "0", > "notes": { > "notes_key_1": "Tea, Earl Grey, Hot", > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." > } > }) > ``` > > ```go Go theme={null} > import ( razorpay "github.com/razorpay/razorpay-go" ) > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > data := map[string]interface{}{ > "name": "", > "contact": "", > "email": "", > "fail_existing": "0", > "notes": map[string]interface{}{ > "notes_key_1": "Tea, Earl Grey, Hot", > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf.", > }, > } > > body, err := client.Customer.Create(data, nil) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->customer->create(array('name' => '', 'email' => '','contact'=>'','notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Greyโ€ฆ decaf')); > ``` > > ```csharp .NET theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary options = new Dictionary(); > > options.Add("name", ""); > options.Add("contact", ""); > options.Add("email", ""); > options.Add("fail_existing", "0"); > > Customer customer = Customer.Create(options); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > Razorpay::Customer.create({ > "name": "", > "contact": "", > "email": "", > "fail_existing": "0", > "notes": { > "notes_key_1": "Tea, Earl Grey, Hot", > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." > } > }) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > instance.customers.create({ > name: "", > contact: "", > email: "", > fail_existing: "0", > notes: { > notes_key_1: "Tea, Earl Grey, Hot", > notes_key_2: "Tea, Earl Greyโ€ฆ decaf." > } > }) > ``` > > ```json Success Response theme={null} > { > "id" : "cust_1Aa00000000004", > "entity": "customer", > "name" : "", > "email" : "", > "contact" : "", > "gstin": null, > "notes": { > "notes_key_1":"Tea, Earl Grey, Hot", > "notes_key_2":"Tea, Earl Greyโ€ฆ decaf." > }, > "created_at ": 1234567890 > } > ``` > > ```json Failure Response theme={null} > { > "error": { > "code": "BAD_REQUEST_ERROR", > "description": "Contact number should be at least 8 digits, including country code", > "source": "business", > "step": "NA", > "reason": "invalid_contact_number", > "metadata": {}, > "field": "contact" > } > } > ``` > > Know more about [Customers API](/docs/api/customers). > > #### Request Parameters > > `name` *optional* > : `string` Customer's name. Alphanumeric value with period (.), apostrophe ('), forward slash (/), at (@) and parentheses are allowed. The name must be between 3-50 characters in length. For example, `Gaurav Kumar`. > > `contact ` *optional* > : `string` The customer's phone number. A maximum length of 15 characters including country code. For example, `+919876543210`. > > `email ` *optional* > : `string` The customer's email address. A maximum length of 64 characters. For example, `gaurav.kumar@example.com`. > > `fail_existing` *optional* > : `string` Possible values: > > * `1` (default): If a customer with the same details already exists, throws an error. > * `0`: If a customer with the same details already exists, fetches details of the existing customer. > > `gstin` *optional* > : `string` Customer's GST number, if available. For example, `29XAbbA4369J1PA`. > > `notes` *optional* > : `object` This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. ## Step 3: Create an Order Order is an important step in the payment process. * An order should be created for every payment. * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/api/authentication#generate-api-keys) Orders API. * The order\_id received in the response should be passed to the checkout. This ties the Order with the payment and secures the request from being tampered. > [!WARNING] > > **Watch Out!** > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. #### API Sample Code The following is a sample API request and response for creating an order: ```bash Curl theme={null} curl -X POST https://api.razorpay.com/v1/orders -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] -H 'content-type:application/json' -d '{ "amount": 50000, "currency": "INR", "receipt": "rcptid_11", "partial_payment": true, "first_payment_min_amount": 23000 }' ``` ```java Java theme={null} try { JSONObject orderRequest = new JSONObject(); orderRequest.put("amount", 50000); // amount in the smallest currency unit orderRequest.put("currency", "INR"); orderRequest.put("receipt", "order_rcptid_11"); Order order = razorpay.Orders.create(orderRequest); } catch (RazorpayException e) { // Handle Exception System.out.println(e.getMessage()); } ``` ```python Python theme={null} import razorpay client = razorpay.Client(auth=("api_key", "api_secret")) DATA = { "amount": 50000, "currency": "INR", "receipt": "receipt#1", "notes": { "key1": "value3", "key2": "value2" } } client.order.create(data=DATA) ``` ```php PHP theme={null} $order = $client->order->create([ 'receipt' => 'order_rcptid_11', 'amount' => 50000, // amount in the smallest currency unit 'currency' => 'INR'// See the list of supported currencies.) ]); ``` ```csharp .NET theme={null} Dictionary options = new Dictionary(); options.Add("amount", 50000); // amount in the smallest currency unit options.add("receipt", "order_rcptid_11"); options.add("currency", "INR"); Order order = client.Order.Create(options); ``` ```ruby Ruby theme={null} options = amount: 50000, currency: 'INR', receipt: '' order = Razorpay::Order.create ``` ```javascript Node.js theme={null} var options = { amount: 50000, // amount in the smallest currency unit currency: "INR", receipt: "order_rcptid_11" }; instance.orders.create(options, function(err, order) { console.log(order); }); ``` ```json Response theme={null} { "id": "order_DBJOWzybf0sJbb", "entity": "order", "amount": 50000, "amount_paid": 0, "amount_due": 50000, "currency": "INR", "receipt": "rcptid_11", "status": "created", "attempts": 0, "notes": [], "created_at": 1566986570 } ``` #### Request Parameters Here is the list of parameters and their description for creating an order: `amount` *mandatory* : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > [!WARNING] > > **Watch Out!** > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. `currency` *mandatory* : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be 3 characters. > [!NOTE] > > **Handy Tips** > > Razorpay has added support for zero decimal currencies, such as JPY and three decimal currencies, such as KWD, BHD and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). `receipt` *optional* : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. `notes` *optional* : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. `partial_payment` *optional* : `boolean` Indicates whether the customer can make a partial payment. Possible values: * `true`: The customer can make partial payments. * `false` (default): The customer cannot make partial payments. `id` *mandatory* : `string` Unique identifier of the customer. For example, `cust_1Aa00000000004`. Know more about [Orders API](/docs/api/orders). #### Response Parameters Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) table. #### Error Response Parameters The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). ## Step 4: Enable Customer Card Saving on Checkout While making the payment, the customer enters card details and can choose to save them for future use. Pass `customer_id` along with the other parameters into the Checkout form. > [tab] Web > > ```html Web Standard Checkout theme={null} > > > > ``` > > #### Request Parameter > > `customer_id` *mandatory* > : `string` Unique identifier of the customer. This can be obtained from the response of the previous step. > > Know more about [Checkout parameters](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-3-checkout-options) for web integration. > [tab] Android > > To enable customers to save their cards, pass `customer_id` along with other parameters: > > ```java Save Card theme={null} > JSONObject payload = new JSONObject(); > payload.put("currency", "INR"); > payload.put("customer_id", "cust_4lsdkfldlteskf"); > payload.put("order_id", "order_DBJOWzybf0sJbb"); > // And the remaining fields > ``` > > #### Request Parameter > > `customer_id` *mandatory* > : `string` Unique identifier of the customer. This can be obtained from the response of the previous step. > > Know more about [Checkout parameters](/docs/payments/payment-gateway/android-integration/standard/integration-steps#checkout-options) for Android integration. > [tab] iOS > > To enable customers to save their cards, pass `customer_id` along with other parameters. The `options` dictionary in Swift and Objective C are shown below: > > ```swift Swift theme={null} > internal func showPaymentForm(){ > let options: [String:Any] = [ > "customer_id":"cust_4lsdkfldlteskf", > "order_id":"order_DBJOWzybf0sJbb" > // And the remaining fields > ] > razorpay.open(options) > } > ``` > > ```objectivec Objective C theme={null} > @"customer_id" : @"cust_4lsdkfldlteskf", > @"order_id": "order_DBJOWzybf0sJbb" > // And the remaining fields > ``` > > #### Request Parameter > > `customer_id` *mandatory* > : `string` Unique identifier of the customer. This can be obtained from the response of the previous step. > > Know more about [other Checkout parameters for iOS integration](/docs/payments/payment-gateway/ios-integration/standard/integration-steps). ## Step 5: Create Payments Using Saved Card Once the card is saved, customers can complete payments on repeat purchases by only entering the CVV. To fetch saved cards, pass the `customer_id` to the Checkout form. > [tab] Web > > Initiate payment by passing `customer_id` to Checkout along with the other options. > > ```html Standard Checkout theme={null} > > > > ``` > > #### Request Parameter > > `customer_id` *mandatory* > : `string` Unique identifier of the customer. [Created in Step 2](#step-2-create-a-customer). > [tab] Android > > Initiate payment by passing `customer_id` to Checkout along with the other options. > > ```java Initiate Payment theme={null} > JSONObject payload = new JSONObject(); > payload.put("customer_id", "cust_4lsdkfldlteskf"); > // And the remaining fields > ``` > > #### Request Parameter > > `customer_id` *mandatory* > : `string` Unique identifier of the customer. [Created in Step 2](#step-2-create-a-customer). > [tab] iOS > > Initiate payment by passing `customer_id` to Checkout along with the other options. > > ```swift Swift theme={null} > internal func showPaymentForm(){ > let options: [String:Any] = [ > "amount": "100", > "currency": "INR",//Amount is in currency subunits. > "description": "purchase description", > "order_id": "order_4xbQrmEoA5WJ0G", > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > "name": "business or product name", > "customer_id":"cust_4lsdkfldlteskf", > "prefill": [ > "contact": "", > "email": "" > ], > "theme": [ > "color": "#F37254" > ] > // And the remaining fields > ] > razorpay.open(options) > } > ``` > > ```objectivec Objective C theme={null} > @"amount" : @(2000), > @"email" : @"", > @"contact" : @"", > @"customer_id" : @"cust_4lsdkfldlteskf" > // And the remaining fields > ``` > > #### Request Parameter > > `customer_id` *mandatory* > : `string` Unique identifier of the customer. [Created in Step 2](#step-2-create-a-customer). ## Test Integration Use test cards to test your payment integration before going live. The test cards simulate different payment scenarios and error conditions for all supported card networks. Know more about [Test Cards](/docs/payments/payments/test-card-details). # Save Customer Card Details at Standard Checkout Source: https://razorpay.com/docs/payments/payment-methods/cards/features/saved-cards Store customer's card details securely as tokens to repeat transactions made by the customer. Manage saved cards. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Save your customers' card details with Razorpay using tokens. The next time the customer makes any transaction, they only need to enter the CVV of the previously saved card. This saves the customer the hassle of entering the card details multiple times for each transaction. Know [how to integrate saved cards at Standard Checkout.](/docs/payments/payment-methods/cards/features/integrate-saved-cards) As per the RBI guidelines, we save the cards in a tokenised form. Razorpay does not save sensitive card details and only saves the tokens. > [accordion] On Demand Feature - Raise a Request > > > [!NOTE] > > > > * This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. > > * It takes approximately 5-7 working days to enable tokenisation for Visa, MasterCard and other networks. > > * Watch this video to know how to raise a feature enablement request on the Dashboard. > > > > ![Feature Request GIF](https://razorpay.com/docs/build/browser/assets/images/feature-request.gif) > [!WARNING] > > **Watch Out!** > > For a safer and secure payment experience, please advise your customers to log out of the Saved Cards feature after completing the payment. Doing so avoids any misuse of the card information. ## Save Card Details To save card details, the customer: 1. Opens Razorpay Checkout and selects **Card** as the payment method. 2. Provides the card details. 3. While making a card payment, the customer can choose to: * Save their card details. * Not save their card details. ![Saved cards checkout flow](https://razorpay.com/docs/build/browser/assets/images/pm-saved-cards.gif) ## Make Payments Using Saved Cards To make payment using saved cards: 1. The customers log in to the Razorpay Checkout. 2. They select **Card** as the payment method. 3. They enter the OTP sent to their phone or use their fingerprint if [Biometric Authentication](/docs/payments/payment-gateway/features) biometric authentication is set up, then click **Verify**. 4. They select the saved card, enter the CVV and click **Pay**. 5. We recommend that customers log out of Checkout after they complete the transaction. To do this, they must: 1. Open Razorpay Checkout. 2. Select **Card** as the payment method. 3. Click the drop-down list and select **Log out from all devices**. Your customers gain a faster and enhanced checkout experience with Razorpay OTP auto-submit. The system automatically reads the OTP received, with your customerโ€™s consent, and submits it. It prevents errors and the users do not need to navigate or interact with additional elements to complete verification, making the process seamless. This is available by default on Android SDK and not available on iOS SDK. ## Manage Saved Cards According to RBI Guidelines, all customers should have a way to delete their card details stored as tokens. Customers can manage saved tokens using our portal. Customers can manage their saved card details stored as tokens using our portal. To manage saved cards: 1. Log in to the [Portal](https://razorpay.com/flashcheckout/manage/) using their **Mobile Number** and enter your **Email**. Click **Send OTP**. 2. Enter the **OTP** sent to their mobile number for verification and click **Verify**. 3. They can choose to select a card and delete the website/app on that particular card, or they can also select a website/app and delete the card on that particular website/app.\ ![Delete/Edit a card on a particular website/app.](https://razorpay.com/docs/build/browser/assets/images/delete-saved-card-choose.jpg) > [accordion] To delete website/app on a particular card: > > 1. Select **Cards**. View a list of saved cards. > > ![View list of Saved cards](https://razorpay.com/docs/build/browser/assets/images/delete-saved-card-choose-card.jpg) > > 2. Select a card. For example, a customer selects a card from Paytm Payments Bank. They can now view a list of websites/apps they saved the card on earlier. > > 3. Either click **Select All** or select the relevant **check box** against each website/app. > > > [!NOTE] > > > > **Handy Tips** > > > > If they cannot find a website/app, their card might be saved directly on Razorpay. They can select the **check box** to delete all the cards saved on Razorpay. > > 4. Click **Delete**. A pop-up appears to confirm the action, click **Yes, Delete**. > [accordion] To delete card on a particular Website/App: > > 1. Select **Websites/Apps**. They view a list of websites/apps they have saved their cards on earlier. > > ![View list of saved Websites/Apps](https://razorpay.com/docs/build/browser/assets/images/delete-saved-card-website.jpg) > 2. Select a website/app. For example, a customer selects Zomato. They can now view the cards saved on Zomato. > 3. Either click **Select All** or select the relevant **check box** against each card. > 4. Click **Delete**. A pop-up appears to confirm the action, click **Yes, Delete**. > > ![Delete confirmation.](https://razorpay.com/docs/build/browser/assets/images/delete-saved-card-confirm.jpg) > [!WARNING] > > **Watch Out!** > > For a safer experience, please advise your customers to log out of the **Manage saved cards portal** after deleting their cards. To logout, click **Logout** on the right below Contact Us. ## Frequently Asked Questions (FAQs) > [accordion] Why are my customers unable to access the saved cards? > > If your customers are using Google Chrome and not able to access saved cards, it may be due to their browser configurations. Go to Chrome **Settings**, select **Privacy and security** โ†’ **Cookies and other site data** โ†’ **Allow all cookies** and restart the browser. If they still cannot access them, contact our [Support team](https://razorpay.com/support/). > > ![Allow Cookies](https://razorpay.com/docs/build/browser/assets/images/saved-cards-chrome-settings-3.jpg) > [accordion] My customers have accessed their saved cards on the Checkout by providing OTP. How do they now log out? > > For a safer and secured payment experience, your customer must log out from the Razorpay Checkout by following these steps:\\ > > 1. Open Razorpay Checkout. > 2. Select **Card** as the payment method. > 3. Click the drop-down and select **Log out from all devices**. > > This logs the customers out from the saved card feature on Checkout. # Push Tokenisation Source: https://razorpay.com/docs/payments/payment-methods/cards/token-hq/push-tokenisation Enable your customers to save their cards directly through their bank's secure portal and enjoy seamless checkout experiences across multiple merchants. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Push Tokenisation revolutionises how customers save their payment methods. Instead of entering card details at every business checkout, customers can now tokenise their cards once through their trusted bank portal and grant permissions to multiple businesses simultaneously. This innovation delivers a checkout experience similar to returning customers, without the friction of traditional card-saving methods. Customers complete the tokenisation during their card activation process at the bank, making transactions seamless from day one. ## Advantages With Push Tokenisation, customers can experience: * **Enhanced Security**: Card tokenisation happens through secure bank portals. * **Increased Token Adoption**: Direct enablement during card activation ensures higher participation. * **Partner Merchant Discovery**: Banks showcase partner merchants, helping businesses reach new customers. * **Faster Checkout**: Customers skip entering card details, which saves time and helps improve conversion rates. ## How it works Push Tokenisation creates a seamless connection between banks, businesses, and customers. 1. Customer activates their card on the bank's portal. 2. Banks present a list of businesses during activation. 3. Customers select businesses to save their tokenised card with. 4. Businesses receive permission to use the tokenised card for future transations. 5. Customer enjoys saved card experience on Checkout. *Bank portal is powered by Razorpay for Razorpay exclusive banks.* ## Related Information * [Integration Steps](/docs/payments/payment-methods/cards/token-hq/push-tokenisation/integration) * [FAQs](/docs/payments/payment-methods/cards/token-hq/push-tokenisation/faqs) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/payment-methods/cards/token-hq/push-tokenisation/faqs Find answers to frequently asked questions about the Push Tokenisation. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] What is Push Tokenisation? > > With Push Tokenisation, you can enable your customers to save their cards directly through their bank's secure portal and enjoy hasslefree checkout experience across multiple merchants. > [accordion] Can I use email instead of phone number? > > No, Push Tokenisation exclusively uses phone numbers as identifiers. This is a requirement from our banking partners to ensure consistent customer identification across systems. Make sure your checkout flow captures customer phone numbers. > [accordion] What if my integration only uses customer IDs? > > You will need to update your integration to collect phone numbers. We recommend: > > * Adding phone number as a required field in your checkout. > * Updating existing customer records to include phone numbers. > * Using phone number as the primary identifier for token operations. > [accordion] How do I handle customers with multiple phone numbers? > > Tokens are linked to the specific phone number used during bank portal registration. Ensure customers use their registered phone number during checkout for successful token retrieval. > [accordion] Do all my customers automatically get Push Tokenisation? > > No, Push Tokenisation can be enabled only for customers who: > > * Have cards from participating banks. > * Have opted for tokenisation through their bank portal. > * Have selected your business during the setup process. > [accordion] Which banks support Push Tokenisation? > > Push Tokenisation is supported by the following banks: Axis Bank, HDFC Bank, SBI Bank, RBL Bank, Yes Bank, Federal Bank, and Canara Bank. > [accordion] Is user consent required for token creation? > > Yes, user consent is required for saving a card/creating a token. This is done during push tokenisation on the bank's portal. > [accordion] Are the Saved Card feature and Tokenisation feature the same? > > Yes. As per the RBI guidelines, saved cards will be tokenised with networks and issuers to ensure compliance. # Integrate Push Tokenisation Source: https://razorpay.com/docs/payments/payment-methods/cards/token-hq/push-tokenisation/integration Steps to integrate Push Tokenisation with Standard Checkout, Custom Checkout and S2S. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Integrating Push Tokenisation allows you to securely handle card details by converting them into tokens. Given below are the steps to integrate Push Tokenisation with Standard Checkout, Custom Checkout and S2S. ## Prerequisites To integrate Push Tokenisation, you must: * Have an active Razorpay Account * Have a live payment integration such as Standard or Custom or S2S. Businesses must be onboarded with Razorpay to appear on bank portals for customer selection. The integration requirements vary by your current Razorpay implementation. ## Standard Checkout **Integration Effort** - None. Razorpay provides a fully managed checkout experience with end-to-end control. To enable this feature for Standard Checkout, contact [Razorpay Support](https://razorpay.com/support/#request) for assistance. For more information, refer [Standard Checkout](/docs/payments/payment-gateway/web-integration/standard) ## Custom Checkout Existing Custom Checkout users are automatically eligible for Push Tokenisation. If your business has already integrated with Custom Checkout, you can retrieve all tokens associated with a cardholder by using the Fetch Token API. ### Retrieve Token Via Fetch Token API You should continue using the same API. However, ensure that the user's phone number is provided in the same format as specified in the payload. You should pass this token to checkout to show customers the saved card details and help them complete the payment. Refer to the [Fetch Token API](/docs/payments/payment-methods/cards/token-private) document for more information. > [!WARNING] > > **Watch Out!** > > While creating a customer, ensure that the phone number includes the country code and follows the specified format in the payload (for example, +919900990099) for accurate data mapping. ## S2S (Server-to-Server) Integration **Integration Effort** - None. Current S2S Integration Users can use Push Tokenisation without modifications. Integrate with Razorpayโ€™s webhook to receive and process push tokens. Enable relevant events to efficiently consume and manage these tokens. For more information, refer to the [S2S Integration - Tokenisation APIs](/docs/payments/payment-methods/cards/token-hq/merchant-requestor/apis) documentation. ## Third Party Solutions **Integration Effort** - Customised. Customised solutions are available based on specific requirements. Contact your Account Manager or raise a support request via [Razorpay Support](https://razorpay.com/support/#request) for assistance. ## Implementation Requirements Push Tokenisation uses phone numbers as the unique customer identifier for fetch token operations, enabling seamless token sharing between banks and businesses. Email-only identification is not fully supported. > [accordion] Step 1 - Fetching Customer Tokens > > To be able to create tokens using Push Tokenisation, you must create a customer using phone number as the primary identifier. For more details, refer [Create a Customer API](/docs/api/customers/create). > The response will include all tokens the customer has authorised for your business account through their bank portal. > [accordion] Step 2 - Webhook Enablement > > * **Event Configuration**: Confirm that the `token.service_provider.activated` event is enabled in your webhook configuration. This event captures successfully tokenised details, including push tokens. > * **Payload Mapping**: The event payload includes unique customer details. Ensure that you map these details with the unique customer identifier (in this case, phone number) when processing the data. ### Setting Up Webhooks for the First Time If you need to set up a webhook for the first time, follow these steps: 1. Enable the following features: * Ensure your Razorpay terminal is activated. * Ensure tokenisation is activated for the relevant card networks. 2. Webhook Setup: * Watch this [tutorial video](/docs/webhooks/setup-edit-payments) for detailed steps on setting up the webhook. * Set Up Endpoint: Provide the URL of the endpoint where you want to receive webhook payloads. This should be the same endpoint used for storing token details during checkout. * Whitelist Razorpay: Ensure your endpoint is configured to accept requests from Razorpay. 3. The sample modified payload for push tokenisation with customer details ## token.service\_provider.activated ```json payload theme={null} { "entity": "event", "account_id": "acc_EDUGNVWZIB7Ewb", "event": "token.service_provider.activated", "contains": [ "token", "service_provider_token" "customer" ], "payload": { "token": { "entity": { "id": "token_OGgK06YEVLnTc0", "entity": "token", "method": "card", "card": { "last4": "5003", "network": "Visa", "type": "credit", "issuer": "ICICI", "international": false, "emi": true, "sub_type": "consumer", "token_iin": "48202---", "cobranding_partner": null }, "created_at": 1717066962, "customer": { "id": "cust_NgH3a3tGNtvCkA", "entity": "customer", "name": "Gaurav", "email": "gaurav.kumar@example.com", "contact": "+919900990099", "gstin": null, "notes": { "notes_key_1": "Tea, Earl Grey", "notes_key_2": "Tea, Earl" }, "created_at": 1709117745 }, "expired_at": 1853951399, "status": "active", "notes": [], "source": "issuer", "customer_id": "cust_NgH3a3--tvCkA", "compliant_with_tokenisation_guidelines": true, "service_provider_tokens": [ { "id": "spt_OGgK1--ST1rE9", "entity": "service_provider_token", "provider_type": "network", "provider_name": "visa", "interoperable": true, "provider_data": { "token_reference_number": "676dd1c68e5e24a48f1518ccee092a0b", "payment_account_reference": "V0010015821281661606691594406", "token_expiry_month": 9, "token_expiry_year": 2028 }, "status": "active" } ] } }, "service_provider_token": { "entity": [ { "id": "spt_OGgK1aR3ST1rE9", "entity": "service_provider_token", "provider_type": "network", "provider_name": "visa", "interoperable": true, "provider_data": { "token_reference_number": "676dd1c68e5e24a48f1518ccee092a0b", "payment_account_reference": "V0010015821281661606691594406", "token_expiry_month": 9, "token_expiry_year": 2028, "card": [] }, "status": "active", "tokenised_terminal_id": "IPjK2jYGlbH3jq" } ] }, "customer": { "entity": { "id": "NgH3a3tGNtvCkA", "email": "example@gmail.com", "contact": "9--------0" } } }, "created_at": 1717066964, } ``` # Cash on Delivery Source: https://razorpay.com/docs/payments/payment-methods/cod Offer Cash on Delivery (COD) as a payment method on the Razorpay Checkout page. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can now offer Cash on Delivery (COD) as a payment method on the Razorpay Checkout page. Customers can choose COD directly on the Checkout page, alongside UPI, cards, netbanking and more. This flow increases accessibility and builds trust among first-time buyers and high-value orders. ## Ways to Offer COD | **Checkout product** | **How COD works** | **Guide** | | - | - | - | | **Standard Checkout** | COD appears as a payment method in Standard Checkout. You set the convenience fee per order using `cod_fee`, control where COD appears, and receive a `payment.pending` webhook when an order is placed. COD must be activated on your account. | [COD on Standard Checkout](/docs/payments/payment-gateway/web-integration/standard/cod) | | **Magic Checkout** | COD is supported by default. The checkout flow includes an address section, which you can hide using `show_address`. | This page | > [!NOTE] > > **Handy Tips** > > [Razorpay Magic Checkout](/docs/payments/magic-checkout) supports Cash on Delivery (COD) by default. For a simplified experience without the address section, use the flow described below that directly opens the payment page. Both flows support COD as a payment method. ## COD on Magic Checkout The rest of this page describes COD on Magic Checkout. If you use Standard Checkout, see [COD on Standard Checkout](/docs/payments/payment-gateway/web-integration/standard/cod) instead. ## Prerequisites * [Create a Razorpay account](https://dashboard.razorpay.com/). * Generate [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. * Integrate with Razorpay Magic Checkout: * [Native (Web)](/docs/payments/magic-checkout/web) * [Android](/docs/payments/magic-checkout/android-integration) * [iOS](/docs/payments/magic-checkout/ios-integration) * [React Native: Android](/docs/payments/magic-checkout/react-native-android-integration) * [React Native: iOS](/docs/payments/magic-checkout/react-native-ios-integration) * [Flutter](/docs/payments/magic-checkout/flutter-integration) * [Capacitor](/docs/payments/magic-checkout/capacitor-integration) > [!WARNING] > > **Watch Out!** > > This feature is currently supported only for native Razorpay integrations. It is not available on third-party platforms such as Shopify, WooCommerce and so on. ## Integration Steps Follow the integration steps given below: 1. Use your existing Magic Checkout integration. While configuring the checkout options, pass the `show_address` parameter as shown below to control the visibility of the address section: ```javascript json theme={null} "options": { "show_address": false } ``` `show_address` : `boolean` Determines whether the shipping address section appears on the Checkout page. Possible values * `true` (default): Show the address form. * `false`: Hide the address form. > [!NOTE] > > **Handy Tips** > > Magic Checkout supports **Cash on Delivery (COD)** by default and the checkout flow includes an address section. Use the `show_address` parameter to remove this step and maintain a simplified checkout experience. 2. **Cash on Delivery** appears as one of the available payment methods on the Checkout interface. Customers can select COD and confirm the order. ## Customer Experience The flow below displays how customers can view and select **Cash on Delivery** during Checkout: ![COD on checkout - customer experience](https://razorpay.com/docs/build/browser/assets/images/payment-methods-cod.gif) ### Related Information * [COD on Standard Checkout](/docs/payments/payment-gateway/web-integration/standard/cod) * [Payment Configuration](/docs/payments/dashboard/account-settings/payment-configuration#configure-payment-options) # About EMI Source: https://razorpay.com/docs/payments/payment-methods/emi Let your customers avail various EMI plans at Razorpay Standard Checkout. Debit Cards, Credit Cards, No Cost EMI, Low Cost EMI and Cardless EMI. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India EMI provides an option to your customers for making total payment in easy equal monthly installments at the applicable interest rates from the list of banks and partners. This payment option encourages your customer to make big value purchases without worrying about paying the full amount upfront. Customers pay principal amount and interest in monthly equal installments. With Razorpay, you can offer your customers EMI as a payment method to buy various products on EMI using Debit Cards, Credit Cards, No Cost EMI, Low Cost EMI and Cardless EMI. > [!WARNING] > > **Watch Out!** > > Instant Refunds are not supported on EMI, Cardless EMI and Pay Later. ## EMI Types | EMI Types | Availability | | - | - | | [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi) | โœ“ (SBI Credit Card requires [Approval](https://razorpay.com/support)) | | [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) | โœ“ | | [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | โœ“ (Debit and Credit card EMIs) | | [Low Cost EMI](/docs/payments/payment-methods/emi/low-cost-emi) | โœ“ (Debit and Credit card EMIs) | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | Requires [Approval](https://razorpay.com/support) | You can view the EMIs enabled for your Razorpay account from the **Account & Settings โ†’ Payment Methods** tab. ![Dashboard - Payment Methods Enable EMI.](https://razorpay.com/docs/build/browser/assets/images/payment-methods-emi.jpg) > [!NOTE] > > **Additional Payment Methods** > > You can raise requests for [additional payment methods](/docs/payments/dashboard/account-settings/payment-methods#request-payment-methods). Know more about [Payment Methods](/docs/payments/dashboard/account-settings/payment-methods#request-payment-methods). ## Payment Flow on Standard Checkout On your website or app, customers select the products and proceed to Checkout. > [accordion] On the Checkout page, the customers: > > 1. Enter the **Phone Number** and click **Continue** > 2. Select **EMI**, **No Cost EMI** or **Low Cost EMI** as the payment method as highlighted below. > > ![Select EMI or No Cost EMI option.](https://razorpay.com/docs/build/browser/assets/images/emi-no-low-cost-emi.jpg) > 3. Select a preferred EMI type, [Credit](/docs/payments/payment-methods/emi/credit-card-emi), [Debit](/docs/payments/payment-methods/emi/debit-card-emi) or [Cardless](/docs/payments/payment-methods/emi/cardless-emi). > 4. Choose a bank from the list and select the EMI tenure. This flow is for Credit Card EMI. Click **Continue**. > > ![EMI tenure and click Select Plan](https://razorpay.com/docs/build/browser/assets/images/emi-tenure-new.jpg) > 5. Enter the required details and choose if they want to **Save this card as per RBI guidelines** or pay without saving the card. > 6. Click **Continue**. > > After the successful payment, Razorpay redirects customers to your application or website. Customers' monthly statements will reflect the EMI amount with interest charged by the bank. You receive the full amount in your bank account as per your [settlement cycle](/docs/payments/settlements#settlement-cycle). ## Try EMI Flow on Checkout You can try the EMI flow by clicking the **Pay with Razorpay** button. This initiates a โ‚น5,500 payment. Provide the relevant details and complete the payment. > [!WARNING] > > **Live Transaction with Auto Refund** > > This is a real transaction and money will be deducted from your account. However, the amount debited will be auto-refunded to your account in 5-7 working days. [Pay with Razorpay](https://razorpay.com/emidemo/) ## Test Card You can use the test cards to test domestic payments, international payments and subscriptions. Know more about [Test Card details](/docs/payments/payments/test-card-details#test-card-for-emi-payments). # About Cardless EMI Source: https://razorpay.com/docs/payments/payment-methods/emi/cardless-emi Offer automatic EMI payments without using credit or debit cards to your customers. Check the payment flow and supported Cardless EMI providers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Cardless EMI Changelog](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to Cardless EMI (since Jan 2024). Offer Cardless EMI as a payment method to convert their payment amount to EMIs without a debit or credit card. Customers enjoy the benefits of the EMI as the payments are made using credits approved by the supported Cardless EMI Payment Partners. > [!WARNING] > > **Watch Out!** > > Instant Refunds are not supported on EMI, Cardless EMI and Pay Later. > [!NOTE] > > **Feature Enablement** > > Cardless EMI as a payment method is not enabled by default. Raise a request with our [Support Team](https://razorpay.com/support/#request) to enable this feature. ## Supported Payment Partners Following is the list of supported Payment Partners for Cardless EMI and the minimum order amount stipulated by them: > [tab] Banks > > | Banks | Provider Code | Minimum Order Amount | > | - | - | - | > | ICICI Bank | `icic` | โ‚น7000 | > | IDFC Bank | `idfb` | โ‚น5000 | > | HDFC Bank | `hdfc` | โ‚น5000 | > | Kotak Bank | `kkbk` | โ‚น3000 | > | [axio](/docs/payments/payment-methods/emi/cardless-emi/axio) | `walnut369` | โ‚น900 | > | Fibe | `earlysalary` | โ‚น3000 | > | ZestMoney | `zestmoney` | โ‚น3000 | > > > [!NOTE] > > > > **Handy Tips** > > > > Check the standard [interest rates charged by Banks/Partners](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-interest-rates-charged). > [tab] Non-Banking Payment Partners > > | Payment Partners | Provider Code | Minimum Order Amount | > | - | - | - | > | axio | `walnut369` | โ‚น900 | > | Fibe | `earlysalary` | โ‚น3000 | > | ZestMoney | `zestmoney` | โ‚น3000 | > > > [!NOTE] > > > > **Handy Tips** > > > > Check the standard [interest rates charged by Pay Later Providers](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged). > [tab] Optimizer Providers > > | Payment Partners | Provider Code | Minimum Order Amount | > | - | - | - | > | [ShopSe](/docs/payments/payment-methods/emi/cardless-emi/shopse) | `shopse` | โ‚น3000 | > | [Snapmint](/docs/payments/payment-methods/emi/cardless-emi/snapmint) | `snapmint` | None | > > > [!NOTE] > > > > **Handy Tips** > > > > Check the standard [interest rates charged by Pay Later Providers](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged). ## Payment Flow Given below is a diagram that explains the payment flow for Cardless EMI: ![payment flow for Cardless EMI](https://razorpay.com/docs/build/browser/assets/images/payment-flow-cardless_emi.jpg) ## Payment Flow on Standard Checkout Customers select the products on your website or app and proceed to Checkout. On the Checkout page, the customers: 1. Enter their **Phone Number** and click **Continue**. 2. Select **EMI** as the payment method. ![Select emi payment option on checkout](https://razorpay.com/docs/build/browser/assets/images/emi-options-card.jpg) 3. Select **Cardless and Others**. ![Select Cardless and Others](https://razorpay.com/docs/build/browser/assets/images/emi-select-cardless.jpg) 4. Choose a payment instrument from the list and select the EMI tenure. Click **Continue**. ![EMI tenure and click Select Plan](https://razorpay.com/docs/build/browser/assets/images/emi-cardless-tenure.jpg) After the successful payment, Razorpay redirects customers to your application or website. Customers' monthly statements will reflect the EMI amount with interest charged by the bank. You will receive the entire payment amount from the Cardless EMI service provider. Based on the terms and conditions, the customer pays the total payment amount with additional interest (if any) as EMIs to the provider. ## Standard Checkout Integration No additional integration is required to show Cardless EMI on your Standard Checkout page. ## FAQs See: [Cardless EMI FAQs](/docs/payments/payment-methods/emi/faqs#cardless-emi). # About axio Cardless EMI Source: https://razorpay.com/docs/payments/payment-methods/emi/cardless-emi/axio Offer axio Cardless EMI payment option to your customers on checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India axio, formerly Capital Float, is India's leading digital consumer finance company offering pay later and credit management under one seamless brand experience. Offer axio as a payment option where the customers can convert their payment amount to EMIs without a debit or credit card. > [!NOTE] > > **Minimum Order Amount** > > Your customers should place an order of at least โ‚น900 to use axio as the Cardless EMI payment provider. #### Advantages * **On-the-fly registration**: The customers can sign up right from Razorpay Checkout by providing their PAN, date of birth, and Aadhaar number for KYC verification. * **High approval rate**: More than 40% of the customers who sign up for axio would be eligible for credit. * **Zero integration efforts** \ If you use Standard Checkout, axio will be available once our team enables the feature. You do not need to make any changes to your integration. ## Payment Flow for Standard Checkout Customers select the products on your website or app and proceed to Checkout. On the Checkout page, the customers: 1. Enter their **Phone Number** and click **Continue**. 2. Select **EMI** as the payment method. ![Select emi payment option on checkout](https://razorpay.com/docs/build/browser/assets/images/emi-options-card.jpg) 3. Select **Cardless and Others**. ![Select Cardless and Others](https://razorpay.com/docs/build/browser/assets/images/emi-select-cardless.jpg) 4. Select **axio** as the Cardless EMI service provider. ![Select axio payment instrument](https://razorpay.com/docs/build/browser/assets/images/select-axio-cardless.jpg) 5. An OTP is sent on their registered mobile numbers to authenticate the customer account. They enter the OTP and click **Verify**. 6. To complete the KYC verification, they enter their PAN and date of birth and click **Continue**. 7. They enter their Aadhaar card number and click **GET OTP**. An OTP is sent to the mobile number and email address registered with their Aadhaar. 8. They enter the OTP and click **VERIFY**. > [!NOTE] > > **Handy Tips** > > Steps 7, 8 and 9 apply only to customers using axio for the first time. 1. The EMI options are displayed to the customers. They can select the tenure and click **Select Plan**. ![EMI options select Plan](https://razorpay.com/docs/build/browser/assets/images/axio-select-plan.jpg) 2. Customers make a down payment using the UPI payment method. A UPI collect request is sent to the customer. They can use their UPI PSP app to complete the payment. You will receive the entire transaction amount from axio. Depending on the terms and conditions, the customer pays the total order amount with additional interest (if any) as EMIs to axio. ## Standard Checkout Integration No additional integration is required to show axio as a Cardless EMI service provider on your Standard Checkout integration. Know [how to integrate axio as a payment method on custom checkout.](/docs/payments/payment-methods/emi/cardless-emi/axio/custom-integration) ## Grievance Redressal Officer (GRO) Details The GRO details are given below: * **Name:** B S Yasaswi * **Designation:** Grievance Redressal Officer * **Address:** New No. 3 (Old No. 211), Gokaldas Platinum, Upper Palace Orchards, Bellary Road, Sadashiva Nagar, Bengaluru, Karnataka 560080 * **Telephone/Mobile:** 080 6807 5001 * **Email ID:** [customersuccess@axio.co.in](mailto:customersuccess@axio.co.in) To access the Sachet portal, visit the [Sachet Portal - RBI](https://sachet.rbi.org.in/). ## FAQs See: [axio FAQs](https://axio.co.in/faq/). # Highlight axio on Checkout Source: https://razorpay.com/docs/payments/payment-methods/emi/cardless-emi/axio/checkout-configuration Configure and highlight axio as a payment method on Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India After [axio payment method is enabled](/docs/payments/payment-methods/emi/cardless-emi), it appears as a Cardless EMI provider under EMI on Razorpay Standard Checkout. You can highlight **axio** on the Razorpay Checkout using a configuration and make it more prominent. ![Highlighted Axio on Checkout](https://razorpay.com/docs/build/browser/assets/images/cardless-emi-axio-axio-checkout.jpg) Follow these steps to highlight axio on Razorpay Checkout: 1. [Configure payment methods](#1-configure-payment-methods). 2. [Build configuration](#2-build-configuration). ## 1. Configure Payment Methods Based on how you want to control the payment methods at the Checkout, there are two different ways to pass the configuration to Checkout: **Options Parameter** and **Global Settings**. > [tab] Method 1: Options Parameter > > Pass the configuration to the `options` parameter of the Checkout code at run time. *Use it when you want to modify the order of the payment methods for a particular set of payments while rendering the Checkout.* > [tab] Method 2: Global Settings > > Create a global setting of the payments as a **Configuration ID**. *Use it when you want to fix the order of the payment methods on all the instances of Checkout.* Check the [Sample Code](#sample-code). > > > [!NOTE] > > > > **Attention Plugin Users** \\ > > > > If you are using one of our [plugins](/docs/payments/payment-gateway/ecommerce-plugins) to accept payments, you can highlight axio on Checkout only by creating a global setting of the payments as a **Configuration ID**. Contact our [Support Team](https://razorpay.com/support/#raise-a-request) for more details about Configuration ID. ## 2. Build Configuration Using the `display` config, you can put together all the modules, that is, `blocks`, `sequence`, `preferences`, `hide` instruments as shown below: You can pass the `display` config in the Checkout options or the Orders API request using the `checkout_config_id` parameter. ```javascript display config theme={null} let config = { display: { blocks: { walnutBlock: { name: "Pay With Axio", // The title of the block instruments: [{ "method": "cardless_emi", "providers": ["walnut369"] }] // The list of instruments }, }, sequence: ["block.walnutBlock"], // The sequence in which blocks and methods should be shown preferences: { show_default_blocks: true // Should Checkout show its default blocks? } } }; ``` ```javascript JavaScript Checkout options theme={null} // beginning of the Checkout code ..... let options = { key: "[YOUR_KEY_ID]", amount: 60000, currency: "INR", config: { display: { blocks: { walnutBlock: { name: "Pay With axio", // The title of the block instruments: [{ "method": "cardless_emi", "providers": ["walnut369"] }] // The list of instruments }, }, sequence: ["block.walnutBlock"], // The sequence in which blocks and methods should be shown preferences: { show_default_blocks: true // Should Checkout show its default blocks? } } } }; let razorpay = new Razorpay(options); razorpay.open(); .... //rest of the Checkout code ``` ```bash Orders Sample Request theme={null} //Contact our Support Team to get your `checkout_config_id` parameter. curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/orders \ -H "content-type: application/json" \ -d '{ "amount": 50000, "currency": "INR", "receipt": "receipt#1", "checkout_config_id": "config_Ep0eOCwdSfgkco", "notes": { "reference_no": "IBFA10106201500002" } }' ``` ```java Java theme={null} RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject orderRequest = new JSONObject(); orderRequest.put("amount", 1000); // amount in the smallest currency unit orderRequest.put("currency", "INR"); orderRequest.put("checkout_config_id", "config_Ep0eOCwdSfgkco"); Order order = razorpayclient.orders.create(orderRequest); System.out.print(order); ``` ```python Python theme={null} import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.order.create({ "amount": 50000, "currency": "INR", "receipt": "receipt#1", "checkout_config_id": "config_Ep0eOCwdSfgkco" }) ``` ```php PHP theme={null} $api = new Api($key_id, $secret); $api->order->create(array('amount' => 100, 'currency' => 'INR', checkout_config_id=> 'config_Ep0eOCwdSfgkco')); ``` ```csharp .NET theme={null} RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary options = new Dictionary(); options.Add("amount", 50000); // amount in the smallest currency unit options.Add("receipt", "receipt#1"); options.Add("currency", "INR"); options.Add("checkout_config_id", "config_Ep0eOCwdSfgkco"); Order order = client.Order.Create(options); ``` ```ruby Ruby theme={null} require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') order = Razorpay::Order.create amount: 50000, currency: 'INR', receipt: 'receipt#1', checkout_config_id: 'config_Ep0eOCwdSfgkco' ``` ```javascript Node.js theme={null} var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.orders.create({ amount: 50000, currency: "INR", receipt: "receipt#1", checkout_config_id: "config_Ep0eOCwdSfgkco" }) ``` ```go Go theme={null} import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ "amount": 50000, "currency": "INR", "receipt": "receipt#1", "checkout_config_id": "config_Ep0eOCwdSfgkco" } body, err := client.Order.Create(data, nil) ``` Know more about [Orders API](/docs/api/orders). ## Sample Code > [accordion] Given below is the sample code to highlight axio on Standard Checkout: > > ```html Highlight axio on Standard Checkout theme={null} > > > > > > ``` ### Related Information [Configure Payment Methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods) on Razorpay Checkout # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/payment-methods/emi/cardless-emi/axio/faqs Find answers to frequently asked questions about axio. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] What is cardless EMI? > > Cardless EMI allows your customers to convert their payment amount to EMIs without a debit or credit card. > [accordion] What is axio? > > axio is a cardless EMI payment partner. Customers can register with axio during the payment flow on the Razorpay Checkout. > [accordion] How is axio different from other cardless EMI providers? > > The ease of customer sign-up differentiates axio from others. New axio customers can register directly on the Razorpay Checkout and complete the payment. > [accordion] What details do my customers need to provide to register with axio? > > Mobile number, PAN number, DOB and Aadhar number are required for registration. The mobile number and Aadhaar number are verified via OTP at registration. > [accordion] What is the platform fee applicable for axio? > > We charge 3% as the platform fee for cardless EMI transactions by default. The same applies to axio. > [accordion] What are the minimum and maximum transaction amounts customers can pay with axio? > > The maximum transaction amount is โ‚น40,000. The minimum transaction amount is โ‚น900. > [accordion] What is the minimum and maximum transaction limit for the customer? > > axio decides dynamically after evaluating the customer's profile. > [accordion] Does the customer need to make any downpayment when paying with axio? > > Yes, the customer must pay the first month's installment as advance EMI. > [accordion] What is the rate of interest? > > The rate of interest is 24% p.a. for all EMI tenures. > [accordion] How does the repayment work for axio? > > axio will remind the customer every month before the repayment due date by auto-raising a request on the UPI app, with the UPI ID used to make the advance EMI payment. > [accordion] What would be the flow of partial or full refunds? > > The standard process of claiming [refund and partial refunds](/docs/payments/refunds) at Razorpay is followed. > [accordion] Where can I find more information about axio's lenders and product offerings? > > For more detailed information on axio's lenders and product offerings, refer to [axio's FAQs](https://axio.co.in/faq/) section. # About ShopSe Cardless EMI Source: https://razorpay.com/docs/payments/payment-methods/emi/cardless-emi/shopse Offer ShopSe Cardless EMI payment option to your customers on chekcout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ShopSe Cardless EMI is a popular **Buy Now Pay Later (BNPL)** option that lets customers convert purchases into monthly instalments without requiring a credit card, and in some cases, not even a debit card. This digital finance solution helps make high-value purchases more affordable and accessible. > [!NOTE] > > **Handy Tips** > > This payment provider is available only with Optimizer. #### Advantages * **Streamlined digital process**: Quick, paperless approvals at checkout reduce friction and help lower cart abandonment rates. * **No credit card required**: A flexible financing option for customers without a credit card or those who prefer not to use one. ## ShopSe Payment Flow for Standard Checkout Customers select the products on your website or app and proceed to Checkout. On the Checkout page, the customers: 1. Enter their **Phone Number** and click **Continue**. 2. Select **EMI** as the payment method. ![Select emi payment option on checkout](https://razorpay.com/docs/build/browser/assets/images/standard-checkout-emi-option.jpg) 3. Select **Cardless and Others**. ![Select Cardless and Others](https://razorpay.com/docs/build/browser/assets/images/standard-checkout-cardless-emi-option.jpg) 4. An OTP is sent to their registered mobile number to check their eligibility. They enter the OTP and click **Continue**. ![Enter Eligibility OTP](https://razorpay.com/docs/build/browser/assets/images/eligibility-otp.jpg) 5. Select **ShopSe Digital Finance** as the Cardless EMI service provider. ![Select shopse payment instrument](https://razorpay.com/docs/build/browser/assets/images/select-shopse-cardless.jpg) 6. Select the EMI tenure and complete the payment. ![EMI options select Plan](https://razorpay.com/docs/build/browser/assets/images/shopse-payment-options.jpg) You receive the full transaction amount from ShopSe. Customers then pay ShopSe the total order amount in EMIs, along with any applicable interest, as per their terms and conditions. ## Standard Checkout Integration No additional integration is required to show ShopSe as a Cardless EMI service provider on your Standard Checkout integration. Know [how to integrate ShopSe as a payment method on custom checkout.](/docs/payments/payment-gateway/web-integration/custom/payment-methods#cardless-emi) ## Related Information [ShopSe FAQs](https://www.getshopse.com/customer-faq). # About Snapmint Cardless EMI Source: https://razorpay.com/docs/payments/payment-methods/emi/cardless-emi/snapmint Offer Snapmint Cardless EMI payment option to your customers on chekcout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Snapmint's Cardless EMI is a **buy now pay later (BNPL)** service that lets customers buy products on easy monthly instalments without a credit card. It offers a credit line, often linked to your customers' debit card or UPI, making purchases more accessible. > [!NOTE] > > **Handy Tips** > > This payment provider is available only with Optimizer. #### Advantages * **Quick and Seamless Integration**: Enjoy a straightforward integration and smooth digital checkout, reducing friction and boosting conversions. * **Fast & Easy Approval**: Customers benefit from instant, digital approvals with minimal paperwork, avoiding long waits. * **Higher Average Order Value (AOV)**: Instalment options encourage customers to buy more expensive items or add more to their cart, significantly increasing your average order value. ## Snapmint Payment Flow for Standard Checkout Customers select the products on your website or app and proceed to Checkout. On the Checkout page, the customers: 1. Enter their **Phone Number** and click **Continue**. 2. Select **EMI** as the payment method. ![Select emi payment option on checkout](https://razorpay.com/docs/build/browser/assets/images/standard-checkout-emi-option.jpg) 3. Select **Cardless and Others**. ![Select Cardless and Others](https://razorpay.com/docs/build/browser/assets/images/standard-checkout-cardless-emi-option.jpg) 4. An OTP is sent to their registered mobile number to check their eligibility. They enter the OTP and click **Continue**. ![Enter Eligibility OTP](https://razorpay.com/docs/build/browser/assets/images/eligibility-otp.jpg) 5. Select **Snapmint** as the Cardless EMI service provider. ![Select snapmint payment instrument](https://razorpay.com/docs/build/browser/assets/images/select-snapmint-cardless.jpg) 6. Select the EMI tenure and complete the payment. You receive the full transaction amount from Snapmint. Customers then pay Snapmint the total order amount in EMIs, along with any applicable interest, as per their terms and conditions. ## Standard Checkout Integration No additional integration is required to show Snapmint as a Cardless EMI service provider on your Standard Checkout integration. Know [how to integrate Snapmint as a payment method on custom checkout.](/docs/payments/payment-gateway/web-integration/custom/payment-methods#cardless-emi) ## Related Information [Snapmint FAQs](https://snapmint.com/faq). # About Credit Card EMI Source: https://razorpay.com/docs/payments/payment-methods/emi/credit-card-emi Let your customers avail Credit Card EMIs at Razorpay Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay Checkout supports EMIs on credit cards issued by major banks. EMI is available by default on Razorpay Standard Checkout. No additional integration is needed. > [!WARNING] > > **Watch Out!** > > Instant Refunds are not supported on EMI, Cardless EMI and Pay Later. ## Supported Payment Partners Following is the list of supported Payment Partners for Credit Card EMI and the minimum order amount stipulated by them: > [tab] Banks > > | Bank Code | Issuer Bank | Availability | Minimum Amount (in INR) | > | - | - | - | - | > | AMEX | American Express | [Request Activation](https://dashboard.razorpay.com/app/payment-methods/emi) | 5000 | > | BARB | Bank of Baroda | Enabled on first card transaction | 2500 | > | CITI | Citibank | Enabled on first card transaction | 2500 | > | FDRL | Federal Bank | Enabled on first card transaction | 2500 | > | HDFC | HDFC Bank | [Request Activation](https://dashboard.razorpay.com/app/payment-methods/emi) | 1000 | > | HSBC | HSBC Bank | Enabled on first card transaction | 2000 | > | ICIC | ICICI Bank | Enabled on first card transaction | 1500 | > | IDFB | IDFC Bank | Enabled on first card transaction | 2500 | > | INDB | IndusInd Bank | Enabled on first card transaction | 2000 | > | KKBK | Kotak Mahindra Bank | Enabled on first card transaction | 2500 | > | RATN | RBL Bank | Enabled on first card transaction | 1500 | > | SBIN | State Bank of India | [Request Activation](https://dashboard.razorpay.com/app/payment-methods/emi) | 2500 | > | SCBL | Standard Chartered | Enabled on first card transaction | 2500 | > | UTIB | Axis Bank | Enabled on first card transaction | 3000 | > | YESB | Yes Bank | Enabled on first card transaction | 1500 | > [tab] Other Cards > > | Code | Card Network Name | Availability | Minimum Amount (in INR) | > | - | - | - | - | > | Onecard | OneCard | Enabled on first card transaction | 2500 | > [card] Quick Notes > > For HDFC Bank and State Bank of India (SBI), please raise a request [here](https://dashboard.razorpay.com/app/payment-methods/emi) to enable them (not enabled by default). > [card] Interest Rates > > Check the standard [credit card interest rates charged by major banks](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-credit-card-interest). ### Fetch EMI Plans Use the below endpoint to fetch a list of EMI plans offered by banks: `GET /methods` > [!NOTE] > > **\[YOUR\_KEY\_ID] Required** > > To fire this API, you must provide your \[KEY\_ID] for authorization. Your \[KEY\_SECRET] is not required and should not be passed. Know how to generate the [API Keys](/docs/api/authentication#generate-api-keys). ```bash Request theme={null} curl -u [YOUR_KEY_ID] \ -X GET https://api.razorpay.com/v1/methods ``` ```json Response theme={null} { "entity": "methods", ... ... "emi_plans": { "SCBL": { "min_amount": 250000, "plans": { "6": 13, "9": 14, "12": 14, "3": 11.880000000000001 } }, "BARB": { "min_amount": 250000, "plans": { "3": 13, "18": 15, "6": 14, "9": 14, "12": 15, "24": 16 } }, "AMEX": { "min_amount": 500000, "plans": { "3": 14, "6": 14, "9": 14, "12": 14, "18": 15, "24": 15 } }, "onecard": { "min_amount": 250000, "plans": { "3": 16, "6": 16, "9": 16, "12": 16, "18": 16, "24": 16 } }, "INDB": { "min_amount": 200000, "plans": { "18": 15, "24": 15, "3": 14, "6": 14, "9": 15, "12": 15 } }, "HDFC": { "min_amount": 100000, "plans": { "3": 16, "18": 16, "24": 16, "6": 16, "9": 16, "12": 16 } }, "KKBK": { "min_amount": 250000, "plans": { "18": 16, "24": 16, "3": 16, "6": 16, "9": 16, "12": 16 } }, "RATN": { "min_amount": 150000, "plans": { "3": 13, "6": 14, "9": 15, "12": 15, "18": 15, "24": 15 } }, "ICIC": { "min_amount": 150000, "plans": { "3": 15.99, "6": 15.99, "9": 15.99, "12": 15.99, "18": 15.99, "24": 15.99 } }, "YESB": { "min_amount": 150000, "plans": { "3": 16, "6": 16, "9": 16, "12": 16, "18": 16, "24": 16 } }, "CITI": { "min_amount": 250000, "plans": { "3": 14, "6": 14, "9": 16, "18": 16, "24": 16, "12": 16 } }, "UTIB": { "min_amount": 300000, "plans": { "18": 16, "24": 16, "3": 16, "6": 16, "9": 16, "12": 16 } }, "IDFB": { "min_amount": 2500, "plans": { "3": 14, "6": 15, "9": 15, "12": 15, "18": 15, "24": 15 } }, "FDRL": { "min_amount": 250000, "plans": { "3": 15.99, "6": 15.99, "9": 15.99, "12": 15.99, "18": 15.99, "24": 15.99 } }, "HSBC": { "min_amount": 200000, "plans": { "3": 15, "6": 15, "9": 15, "12": 15, "18": 15, "24": 15 } }, "HDFC_DC": { "min_amount": 300000, "plans": { "6": 16, "9": 16, "12": 16, "18": 16, "3": 16 } }, "INDB_DC": { "min_amount": 500000, "plans": { "3": 17, "6": 17, "9": 17, "12": 17, "18": 17, "24": 17 } } }, "emi_options": { "SCBL": [ { "duration": 6, "interest": 13, "subvention": "customer", "min_amount": 250000, "merchant_payback": "3.68" }, { "duration": 9, "interest": 14, "subvention": "customer", "min_amount": 250000, "merchant_payback": "5.59" }, { "duration": 12, "interest": 14, "subvention": "customer", "min_amount": 250000, "merchant_payback": "7.19" }, { "duration": 3, "interest": 11.880000000000001, "subvention": "customer", "min_amount": 250000, "merchant_payback": "1.95" } ], "BARB": [ { "duration": 3, "interest": 13, "subvention": "customer", "min_amount": 250000, "merchant_payback": "2.13" }, { "duration": 18, "interest": 15, "subvention": "customer", "min_amount": 250000, "merchant_payback": "10.95" }, { "duration": 6, "interest": 14, "subvention": "customer", "min_amount": 250000, "merchant_payback": "3.96" }, { "duration": 9, "interest": 14, "subvention": "customer", "min_amount": 250000, "merchant_payback": "5.59" }, { "duration": 12, "interest": 15, "subvention": "customer", "min_amount": 250000, "merchant_payback": "7.67" }, { "duration": 24, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "14.90" } ], "AMEX": [ { "duration": 3, "interest": 14, "subvention": "customer", "min_amount": 500000, "merchant_payback": "2.29", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 6, "interest": 14, "subvention": "customer", "min_amount": 500000, "merchant_payback": "3.96", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 9, "interest": 14, "subvention": "customer", "min_amount": 500000, "merchant_payback": "5.59", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 12, "interest": 14, "subvention": "customer", "min_amount": 500000, "merchant_payback": "7.19", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 18, "interest": 15, "subvention": "customer", "min_amount": 500000, "merchant_payback": "10.95", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 24, "interest": 15, "subvention": "customer", "min_amount": 500000, "merchant_payback": "14.07", "processing_fee_plan": { "type": "fixed", "amount": 19900 } } ], "onecard": [ { "duration": 3, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "2.61" }, { "duration": 6, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "4.51" }, { "duration": 9, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "6.35" }, { "duration": 12, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "8.15" }, { "duration": 18, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "11.62" }, { "duration": 24, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "14.90" } ], "INDB": [ { "duration": 18, "interest": 15, "subvention": "customer", "min_amount": 200000, "merchant_payback": "10.95", "processing_fee_plan": { "type": "fixed", "amount": 24900 } }, { "duration": 24, "interest": 15, "subvention": "customer", "min_amount": 200000, "merchant_payback": "14.07", "processing_fee_plan": { "type": "fixed", "amount": 24900 } }, { "duration": 3, "interest": 14, "subvention": "customer", "min_amount": 200000, "merchant_payback": "2.29", "processing_fee_plan": { "type": "fixed", "amount": 24900 } }, { "duration": 6, "interest": 14, "subvention": "customer", "min_amount": 200000, "merchant_payback": "3.96", "processing_fee_plan": { "type": "fixed", "amount": 24900 } }, { "duration": 9, "interest": 15, "subvention": "customer", "min_amount": 200000, "merchant_payback": "5.97", "processing_fee_plan": { "type": "fixed", "amount": 24900 } }, { "duration": 12, "interest": 15, "subvention": "customer", "min_amount": 200000, "merchant_payback": "7.67", "processing_fee_plan": { "type": "fixed", "amount": 24900 } } ], "HDFC": [ { "duration": 3, "interest": 16, "subvention": "customer", "min_amount": 100000, "merchant_payback": "2.61", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 18, "interest": 16, "subvention": "customer", "min_amount": 300000, "merchant_payback": "11.62", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 24, "interest": 16, "subvention": "customer", "min_amount": 300000, "merchant_payback": "14.90", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 6, "interest": 16, "subvention": "customer", "min_amount": 100000, "merchant_payback": "4.51", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 9, "interest": 16, "subvention": "customer", "min_amount": 100000, "merchant_payback": "6.35", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 12, "interest": 16, "subvention": "customer", "min_amount": 100000, "merchant_payback": "8.15", "processing_fee_plan": { "type": "fixed", "amount": 19900 } } ], "KKBK": [ { "duration": 18, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "11.62", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 24, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "14.90", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 3, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "2.61", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 6, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "4.51", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 9, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "6.35", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 12, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "8.15", "processing_fee_plan": { "type": "fixed", "amount": 19900 } } ], "RATN": [ { "duration": 3, "interest": 13, "subvention": "customer", "min_amount": 150000, "merchant_payback": "2.13", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 6, "interest": 14, "subvention": "customer", "min_amount": 150000, "merchant_payback": "3.96", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 9, "interest": 15, "subvention": "customer", "min_amount": 150000, "merchant_payback": "5.97", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 12, "interest": 15, "subvention": "customer", "min_amount": 150000, "merchant_payback": "7.67", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 18, "interest": 15, "subvention": "customer", "min_amount": 150000, "merchant_payback": "10.95", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 24, "interest": 15, "subvention": "customer", "min_amount": 150000, "merchant_payback": "14.07", "processing_fee_plan": { "type": "fixed", "amount": 19900 } } ], "ICIC": [ { "duration": 3, "interest": 15.99, "subvention": "customer", "min_amount": 150000, "merchant_payback": "2.61", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 6, "interest": 15.99, "subvention": "customer", "min_amount": 150000, "merchant_payback": "4.50", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 9, "interest": 15.99, "subvention": "customer", "min_amount": 150000, "merchant_payback": "6.35", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 12, "interest": 15.99, "subvention": "customer", "min_amount": 150000, "merchant_payback": "8.15", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 18, "interest": 15.99, "subvention": "customer", "min_amount": 150000, "merchant_payback": "11.61", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 24, "interest": 15.99, "subvention": "customer", "min_amount": 150000, "merchant_payback": "14.89", "processing_fee_plan": { "type": "fixed", "amount": 19900 } } ], "YESB": [ { "duration": 3, "interest": 16, "subvention": "customer", "min_amount": 150000, "merchant_payback": "2.61", "processing_fee_plan": { "type": "percentage", "percentage": 1 } }, { "duration": 6, "interest": 16, "subvention": "customer", "min_amount": 150000, "merchant_payback": "4.51", "processing_fee_plan": { "type": "percentage", "percentage": 1 } }, { "duration": 9, "interest": 16, "subvention": "customer", "min_amount": 150000, "merchant_payback": "6.35", "processing_fee_plan": { "type": "percentage", "percentage": 1 } }, { "duration": 12, "interest": 16, "subvention": "customer", "min_amount": 150000, "merchant_payback": "8.15", "processing_fee_plan": { "type": "percentage", "percentage": 1 } }, { "duration": 18, "interest": 16, "subvention": "customer", "min_amount": 150000, "merchant_payback": "11.62", "processing_fee_plan": { "type": "percentage", "percentage": 1 } }, { "duration": 24, "interest": 16, "subvention": "customer", "min_amount": 150000, "merchant_payback": "14.90", "processing_fee_plan": { "type": "percentage", "percentage": 1 } } ], "CITI": [ { "duration": 3, "interest": 14, "subvention": "customer", "min_amount": 250000, "merchant_payback": "2.29", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } }, { "duration": 6, "interest": 14, "subvention": "customer", "min_amount": 250000, "merchant_payback": "3.96", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } }, { "duration": 9, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "6.35", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } }, { "duration": 18, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "11.62", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } }, { "duration": 24, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "14.90", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } }, { "duration": 12, "interest": 16, "subvention": "customer", "min_amount": 250000, "merchant_payback": "8.15", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } } ], "UTIB": [ { "duration": 18, "interest": 16, "subvention": "customer", "min_amount": 300000, "merchant_payback": "11.62", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } }, { "duration": 24, "interest": 16, "subvention": "customer", "min_amount": 300000, "merchant_payback": "14.90", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } }, { "duration": 3, "interest": 16, "subvention": "customer", "min_amount": 300000, "merchant_payback": "2.61", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } }, { "duration": 6, "interest": 16, "subvention": "customer", "min_amount": 300000, "merchant_payback": "4.51", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } }, { "duration": 9, "interest": 16, "subvention": "customer", "min_amount": 300000, "merchant_payback": "6.35", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } }, { "duration": 12, "interest": 16, "subvention": "customer", "min_amount": 300000, "merchant_payback": "8.15", "processing_fee_plan": { "type": "combination", "percentage": 1, "amount": 10000 } } ], "IDFB": [ { "duration": 3, "interest": 14, "subvention": "customer", "min_amount": 2500, "merchant_payback": "2.29" }, { "duration": 6, "interest": 15, "subvention": "customer", "min_amount": 2500, "merchant_payback": "4.23" }, { "duration": 9, "interest": 15, "subvention": "customer", "min_amount": 2500, "merchant_payback": "5.97" }, { "duration": 12, "interest": 15, "subvention": "customer", "min_amount": 2500, "merchant_payback": "7.67" }, { "duration": 18, "interest": 15, "subvention": "customer", "min_amount": 2500, "merchant_payback": "10.95" }, { "duration": 24, "interest": 15, "subvention": "customer", "min_amount": 2500, "merchant_payback": "14.07" } ], "FDRL": [ { "duration": 3, "interest": 15.99, "subvention": "customer", "min_amount": 250000, "merchant_payback": "2.61" }, { "duration": 6, "interest": 15.99, "subvention": "customer", "min_amount": 250000, "merchant_payback": "4.50" }, { "duration": 9, "interest": 15.99, "subvention": "customer", "min_amount": 250000, "merchant_payback": "6.35" }, { "duration": 12, "interest": 15.99, "subvention": "customer", "min_amount": 250000, "merchant_payback": "8.15" }, { "duration": 18, "interest": 15.99, "subvention": "customer", "min_amount": 250000, "merchant_payback": "11.61" }, { "duration": 24, "interest": 15.99, "subvention": "customer", "min_amount": 250000, "merchant_payback": "14.89" } ], "HSBC": [ { "duration": 3, "interest": 15, "subvention": "customer", "min_amount": 200000, "merchant_payback": "2.45", "processing_fee_plan": { "type": "fixed", "amount": 9900 } }, { "duration": 6, "interest": 15, "subvention": "customer", "min_amount": 200000, "merchant_payback": "4.23", "processing_fee_plan": { "type": "fixed", "amount": 9900 } }, { "duration": 9, "interest": 15, "subvention": "customer", "min_amount": 200000, "merchant_payback": "5.97", "processing_fee_plan": { "type": "fixed", "amount": 9900 } }, { "duration": 12, "interest": 15, "subvention": "customer", "min_amount": 200000, "merchant_payback": "7.67", "processing_fee_plan": { "type": "fixed", "amount": 9900 } }, { "duration": 18, "interest": 15, "subvention": "customer", "min_amount": 200000, "merchant_payback": "10.95", "processing_fee_plan": { "type": "fixed", "amount": 9900 } }, { "duration": 24, "interest": 15, "subvention": "customer", "min_amount": 200000, "merchant_payback": "14.07", "processing_fee_plan": { "type": "fixed", "amount": 9900 } } ], "HDFC_DC": [ { "duration": 6, "interest": 16, "subvention": "customer", "min_amount": 500000, "merchant_payback": "4.51", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 9, "interest": 16, "subvention": "customer", "min_amount": 500000, "merchant_payback": "6.35", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 12, "interest": 16, "subvention": "customer", "min_amount": 500000, "merchant_payback": "8.15", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 18, "interest": 16, "subvention": "customer", "min_amount": 500000, "merchant_payback": "11.62", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 3, "interest": 16, "subvention": "customer", "min_amount": 300000, "merchant_payback": "2.61", "processing_fee_plan": { "type": "fixed", "amount": 19900 } } ], "INDB_DC": [ { "duration": 3, "interest": 17, "subvention": "customer", "min_amount": 500000, "merchant_payback": "2.77", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 6, "interest": 17, "subvention": "customer", "min_amount": 500000, "merchant_payback": "4.78", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 9, "interest": 17, "subvention": "customer", "min_amount": 500000, "merchant_payback": "6.73", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 12, "interest": 17, "subvention": "customer", "min_amount": 500000, "merchant_payback": "8.63", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 18, "interest": 17, "subvention": "customer", "min_amount": 500000, "merchant_payback": "12.28", "processing_fee_plan": { "type": "fixed", "amount": 19900 } }, { "duration": 24, "interest": 17, "subvention": "customer", "min_amount": 500000, "merchant_payback": "15.73", "processing_fee_plan": { "type": "fixed", "amount": 19900 } } ] }, ... } ``` ## Payment Flow on Standard Checkout Customers select the products on your website or app and proceed to Checkout. On the Checkout page, the customers: 1. Enter the **Phone Number** and click **Continue**. 2. Select **EMI** as the payment method. ![Select emi payment option on checkout](https://razorpay.com/docs/build/browser/assets/images/emi-options-card.jpg) 3. Select **Credit Card**. ![Select credit card payment option on checkout](https://razorpay.com/docs/build/browser/assets/images/emi-credit-card.jpg) 4. Choose a bank from the list and select the EMI tenure. Click **Continue**. ![EMI tenure and click Select Plan](https://razorpay.com/docs/build/browser/assets/images/emi-credit-tenure1.jpg) 5. Enter the relevant details. The eligibility depends on the customer's card's BIN (first 6 digits). If the card is not eligible, the customers can pay the full amount. 6. Choose if they want to **Save this card as per RBI guidelines** or pay without saving the card. After the successful payment, Razorpay redirects customers to your application or website. Customers' monthly statements will reflect the EMI amount with interest charged by the bank. When the customers complete the payment on the Checkout, the entire transaction amount is authorized by the customer's issuing bank and converted into EMIs within 3-4 days, depending on the payment terms agreed with the credit card provider. ## FAQs [Credit Card EMI FAQs](/docs/payments/payment-methods/emi/faqs#credit-card-emi). # OneCard Credit Card EMI Source: https://razorpay.com/docs/payments/payment-methods/emi/credit-card-emi/onecard Offer OneCard Credit Card EMI option to your customers on Razorpay Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Offer Credit Card EMIs by OneCard to your customers. The credit card is offered in collaboration with banks, such as IDFC First Bank, SBM Bank, South Indian Bank, Federal Bank, and Bank of Baroda Financial. OneCard is a new-age credit card built for the mobile generation with customer experience at its core. ## Payment Flow Customers select the products on your website or app and proceed to Checkout. On the Checkout page, the customers: 1. Enter the **Phone Number** and click **Continue**. 2. Select **EMI** as the payment method. ![Select emi payment option on checkout](https://razorpay.com/docs/build/browser/assets/images/emi-options-card.jpg) 3. Select **Credit Card**. ![Select credit card payment option on checkout](https://razorpay.com/docs/build/browser/assets/images/emi-credit-card.jpg) 4. Select **OneCard** from the list and the EMI tenure. Click **Continue**. ![EMI tenure and click Select Plan](https://razorpay.com/docs/build/browser/assets/images/emi-select-onecard.jpg) 5. Enter the OneCard Credit Card details and choose if they want to **Save this card as per RBI guidelines** or pay without saving the card. 6. Click **Continue**. 7. Razorpay Checkout redirects to OneCard for approval. You can either swipe right on your OneCard app to approve payment or click **Approve using OTP** and enter the OTP sent to your mobile number. When the customers complete the payment on the Checkout, the entire transaction amount is authorized by OneCard and converted into EMIs within 3-4 days, depending on the payment terms agreed with the credit card provider. > [!NOTE] > > **Handy Tips** > > Check the standard [credit card interest rates charged by OneCard.](/docs/payments/payment-methods/emi/faqs#what-are-the-interest-rates-charged-by-other-credit-cards-for-emi) # About Debit Card EMI Source: https://razorpay.com/docs/payments/payment-methods/emi/debit-card-emi Offer Debit Card EMIs to your customers at Razorpay Checkout. Check the payment flow and supported Banks. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Debit Card EMI Changelog](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to Debit Card EMI (since Jan 2024). Using Razorpay, you can let your customers use Debit EMI as a payment method to buy various products on EMI using their Debit Cards without paying the entire amount immediately. Razorpay supports EMIs on debit cards issued by [major banks](/docs/payments/payment-gateway/emiยฒ/faqs#5-can-you-provide-a-list-of-the). EMI is available by default on Razorpay Standard Checkout. No additional integration is needed. > [!WARNING] > > **Watch Out!** > > Instant Refunds are not supported on EMI, Cardless EMI and Pay Later. ## Supported Banks for Debit Card EMIs Below is a list of banks that support debit card EMIs. | Bank Code | Issuer Bank | | - | - | | HDFC | HDFC Bank | > [!NOTE] > > **Handy Tips** > > Check the [standard debit card interest rates](/docs/payments/payment-gateway/emiยฒ/faqs#5-can-you-provide-a-list-of-the) and the minimum amount charged by the banks. ## Payment Flow on Standard Checkout Customers select the products on your website or app and proceed to Checkout. On the Checkout page, the customers: 1. Enter the **Phone Number** and click **Continue**. 2. Select **EMI** as the payment method. ![Select emi payment option on checkout](https://razorpay.com/docs/build/browser/assets/images/emi-options-card.jpg) 3. Select **Debit Card**. ![Select debit card payment option on checkout](https://razorpay.com/docs/build/browser/assets/images/emi-debit-card.jpg) 4. Choose a bank from the list and select the EMI tenure. Click **Continue**. ![EMI tenure and click Select Plan](https://razorpay.com/docs/build/browser/assets/images/emi-credit-tenure.jpg) 5. They enter the relevant card details and choose if they want to **Save this card as per RBI guidelines** or pay without saving the card. 6. Click **Continue**. If the customers are not eligible, they can pay the full amount. After the successful payment, Razorpay redirects customers to your application or website. Customers' monthly statements will reflect the EMI amount with interest charged by the bank. ## FAQs [Debit Card EMI FAQs](/docs/payments/payment-methods/emi/faqs#debit-card-emi). # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/payment-methods/emi/faqs Find answers to frequently asked questions about EMI as a payment method supported at Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ## Common > [accordion] If a customer chooses EMI as the payment method, do I get the full amount upfront? > > Yes, you receive the full amount at once and the provider/bank converts it into EMI for the customer. > [accordion] What happens when the customer fails to pay the EMI? > > The loss is borne by the provider/bank. You receive the full payment upfront. > [accordion] Can my customers avail Offers for EMI payments at Checkout? > > Yes, they can avail offer on debit and credit card EMIs. Know more about [creating EMI Offers](/docs/payments/offers). ## Debit Card EMI > [accordion] How do banks perform the EMI eligibility check during the transaction flow? > > Eligibility is checked using the card number and registered phone number. Therefore, customers should always use the phone number registered with the bank while making a payment. > [accordion] What is the minimum balance required in the customer's account to avail Debit Card EMI? > > None. Customers need not have any minimum balance in their accounts while placing the order. However, they need to ensure that their accounts have sufficient funds to pay the EMI due every month. > [accordion] How will the customers know that they are eligible for Debit Card EMI? > > Customers can check their eligibility by sending the SMS > > `DCEMI last 4 digits of Debit Card number` to `56767`, from their registered mobile number. > [accordion] What is the criteria to avail Debit Card EMI? > > To avail [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi), your customers should pass the eligibility criteria set by their banks. The minimum order amount on the Checkout should be โ‚น5000 (for HDFC and IndusInd debit cards). > [accordion] Can you provide a list of the EMI plans and interest rates of different banks that support Debit card EMI? > > The interest rates applied by each bank for Debit Card EMIs is provided below. > > * The minimum transaction amount for which EMIs can be availed on debit cards can vary for each bank. > > * The maximum transaction amount depends upon the available pre-approved limit for the customer. > > > [accordion] For **HDFC Bank (HDFC)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Interest rates | Maximum Amount | > > | - | - | - | - | > > | 3 months | 3000 | 16% | NA | > > | 6 months | 5000 | 16% | NA | > > | 9 months | 5000 | 16% | NA | > > | 12 months | 5000 | 16% | NA | > > | 18 months | 5000 | 16% | NA | > > | 24 months | NA | NA | NA | > [accordion] Can the customers change the EMI plan after placing the order? > > No, EMI plans cannot be changed after an order is placed. > [accordion] Do customers need to pay any down-payment to avail Debit Card EMI? > > No, the customers need not pay any down-payment amount to avail the Debit Card EMI option. > [accordion] Is there a possibility to foreclose EMIs availed on Debit Cards? > > Yes, Debit Card EMIs can be foreclosed after clearing the first three EMIs. > [accordion] Which are the business categories for which Debit Card EMI is not allowed? > > The Debit Card EMI payment method is not allowed for certain business categories. Check the relevant Category section below for the list of sub-categories and support status. Debit Card EMI is not allowed for categories with **N** as the status. > > > [!WARNING] > > > > **Watch Out!** > > > > Due to our partner bank restrictions, the Debit Card EMI payment methods may not be available to all the Merchant Categories and Subcategories. > > > [accordion] Financial Services > > > > | Sub Category | Description | Status | > > | - | - | - | > > | mutual\_fund | Mutual Fund | N | > > | lending | Lending | N | > > | cryptocurrency | Cryptocurrency | N | > > | insurance | Insurance | Y | > > | nbfc | NBFC | N | > > | cooperatives | Cooperatives | Y | > > | pension\_fund | Pension Fund | Y | > > | forex | Forex | N | > > | securities | Securities | N | > > | commodities | Commodities | N | > > | accounting | Accounting and Taxes | Y | > > | financial\_advisor | Financial and Investment Advisors/Financial Advisor | Y | > > | crowdfunding | Crowdfunding Platform | N | > > | trading | Stock Brokerage and Trading | N | > > | betting | Betting | N | > > | get\_rich\_schemes | Get Rich Schemes | N | > > | moneysend\_funding | MoneySend Funding | Y | > > | wire\_transfers\_and\_money\_orders | WIRE TRANSFER MONEY ORDER | N | > > | tax\_preparation\_services | Tax Preparation Service | Y | > > | tax\_payments | Tax Payments | Y | > > | digital\_goods | Digital Goods-Multi-Category | Y | > > | atms | Financial Institutions-Automated Cash Disbursements | N | > > > [accordion] Education > > > > | college | College | > > | - | - | > > | schools | Schools | > > | university | University | > > | professional\_courses | Professional Courses | > > | distance\_learning | Distance Learning | > > | day\_care | Pre-School/Day Care | > > | coaching | Coaching Institute | > > | elearning | E-Learning | > > | vocational\_and\_trade\_schools | SCHOOLS, TRADE AND VOCATIONAL | > > | sporting\_clubs | ATHLETIC FEES | > > | dance\_halls\_studios\_and\_schools | Dance Halls, Studios and Schools | > > | correspondence\_schools | Schools, Correspondence | > > > [accordion] Healthcare > > > > | Category Code | Category Name | Status | > > | - | - | - | > > | pharmacy | Pharmacy | N | > > | clinic | Clinic | Y | > > | hospital | Hospital | Y | > > | lab | Lab | Y | > > | dietician | Dietician/Diet Services | Y | > > | fitness | Gym and Fitness | Y | > > | health\_coaching | Health and Lifestyle Coaching | Y | > > | health\_products | Health Products | Y | > > | healthcare\_marketplace | Marketplace/Aggregator | N | > > | osteopaths | Osteopaths | Y | > > | medical\_equipment\_and\_supply\_stores | Dental/Laboratory/Medical/Ophthalmic Hospital Equipment and Supplies | Y | > > | drug\_stores | DRUGS, DRUG PROPRIETARIES | N | > > | podiatrists\_and\_chiropodists | Podiatrists and Chiropodists | Y | > > | dentists\_and\_orthodontists | Dentists, Orthodontists | Y | > > | hardware\_stores | Hardware Stores | Y | > > | ophthalmologists | Optometrists, Ophthalmologists | Y | > > | orthopedic\_goods\_stores | Orthopedic Goods-Artificial Limb Stores | Y | > > | health\_practitioners\_medical\_services | Health Practitioners, Medical Services-not elsewhere classified | Y | > > | testing\_laboratories | Testing Laboratories-Non medical | Y | > > | doctors | Doctors-not elsewhere classified | Y | > > > [accordion] Utilities > > > > | Sub Category | Description | Status | > > | - | - | - | > > | electricity | Electricity | Y | > > | gas | Gas | Y | > > | telecom | Telecom Service Provider | Y | > > | water | Water | Y | > > | cable | Cable operator | Y | > > | broadband | Broadband | Y | > > | dth | DTH | Y | > > | internet\_provider | Internet service provider | Y | > > | bill\_and\_recharge\_aggregators | Bill Payment and Recharge Aggregators | Y | > > | central | Central Department | Y | > > > [accordion] Government > > > > | Sub Category | Description | Status | > > | - | - | - | > > | central | Central Department | Y | > > | state | State Department | Y | > > | intra\_government\_purchases | Intra-Government Purchases -Government Only | Y | > > | goverment\_postal\_services | Postal Services -Government Only | Y | > > > [accordion] Logistics > > > > | Sub Category | Description | Status | > > | - | - | - | > > | freight | Freight Consolidation/Management | Y | > > | courier | Courier Shipping | Y | > > | warehousing | Public/Contract Warehousing | Y | > > | distribution | Distribution Management | Y | > > | end\_to\_end\_logistics | End-to-end logistics | Y | > > | courier\_services | Courier Services-Air \&, Ground, Freight Forwarders | Y | > > > [accordion] Tours and Travel > > > > | Sub Category | Description | Status | > > | - | - | - | > > | aviation | Aviation | Y | > > | accommodation | Lodging and Accommodation | Y | > > | ota | OTA | Y | > > | travel\_agency | Tours and Travel Agency | Y | > > | tourist\_attractions\_and\_exhibits | Tourist Attractions and Exhibits | Y | > > | aquariums\_dolphinariums\_and\_seaquariums | Aquariums, Dolphinariums, and Seaquariums | Y | > > | timeshares | Timeshares | Y | > > > [accordion] Transport > > > > | Sub Category | Description | Status | > > | - | - | - | > > | cab\_hailing | Cab/auto hailing | Y | > > | bus | Bus ticketing | Y | > > | train\_and\_metro | Train and metro ticketing | Y | > > | automobile\_rentals | National Car Rental | Y | > > | cruise\_lines | CRUISE LINES | Y | > > | parking\_lots\_and\_garages | Automobile Parking Lots and Garages | Y | > > | bridge\_and\_road\_tolls | BRIDGE & ROAD FEES, TOLLS | Y | > > | freight\_transport | Railroads and Freight | Y | > > | truck\_and\_utility\_trailer\_rentals | Truck and Utility Trailer Rentals | Y | > > | transportation | Transportationโ€”Suburban and Local Commuter Passenger, including Ferries | Y | > > > [accordion] Ecommerce > > > > | Sub Category | Description | Status | > > | - | - | - | > > | ecommerce\_marketplace | Horizontal Commerce/Marketplace | N | > > | agriculture | Agricultural products | Y | > > | books | Books and Publications | Y | > > | electronics\_and\_furniture | Electronics and Furniture | Y | > > | coupons | Coupons and deals | Y | > > | rental | Product Rental | Y | > > | fashion\_and\_lifestyle | Fashion and Lifestyle | Y | > > | gifting | Flowers and Gifts | Y | > > | grocery | Grocery | Y | > > | baby\_products | Baby Care and Toys | Y | > > | office\_supplies | Office Supplies | Y | > > | wholesale | Wholesale/Bulk trade | Y | > > | religious\_products | Religious products | Y | > > | pet\_products | Pet Care and Supplies | Y | > > | sports\_products | Sports goods | Y | > > | arts\_and\_collectibles | Arts, crafts and collectibles | Y | > > | sexual\_wellness\_products | Sexual Wellness Products | Y | > > | drop\_shipping | Dropshipping | N | > > | crypto\_machinery | Crypto Machinery | Y | > > | tobacco | Tobacco | Y | > > | weapons\_and\_ammunitions | Weapons and Ammunitions | Y | > > | stamps\_and\_coins\_stores | Stamps & Coins Stores | Y | > > | automobile\_parts\_and\_equipements | MOTOR VEHICLE SUPPLIES | Y | > > | office\_equipment | Office, Photographic, Photocopy, and Microfilm Equipment | Y | > > | garden\_supply\_stores | Lawn and Garden Supply Stores | Y | > > | household\_appliance\_stores | Household Appliance Stores | Y | > > | non\_durable\_goods | NONDURABLE GOODS | Y | > > | electrical\_parts\_and\_equipment | Electrical Parts and Equipment | Y | > > | wig\_and\_toupee\_shops | Wig and Toupee Shops | Y | > > | gift\_novelty\_and\_souvenir\_shops | Card, Gift, Novelty, and Souvenir Shops | Y | > > | duty\_free\_stores | Duty Free Stores | Y | > > | office\_and\_commercial\_furniture | Office and Commercial Furniture | Y | > > | dry\_goods | Piece Goods, Notions, and Other Dry Goods | Y | > > | books\_and\_publications | Book Stores | Y | > > | camera\_and\_photographic\_stores | Camera and Photographic Supply Stores | Y | > > | meat\_supply\_stores | Freezer, Locker Meat Provisioners | Y | > > | leather\_goods\_and\_luggage | Leather Goods and Luggage Stores | Y | > > | snowmobile\_dealers | Snowmobile Dealers | Y | > > | men\_and\_boys\_clothing\_stores | Menโ€™s and Boyโ€™s Clothing and Furnishings Store | Y | > > | paint\_supply\_stores | Varnishes, Paints, Supplies | Y | > > | automotive\_parts | Automotive Parts, Accessories Stores | Y | > > | jewellery\_and\_watch\_stores | Precious Stones and Metals, Watches and Jewelry | Y | > > | auto\_store\_home\_supply\_stores | Auto Store, Home Supply Stores | Y | > > | tent\_stores | Tent and Awning Shops | Y | > > | petroleum\_and\_petroleum\_products | Petroleum and Petroleum Products | N | > > | department\_stores | Department Stores | Y | > > | shoe\_stores\_retail | Shoe Stores | Y | > > | automotive\_tire\_stores | Automotive Tire Stores | Y | > > | sport\_apparel\_stores | Sports Apparel, Riding Apparel Stores | Y | > > | chemicals\_and\_allied\_products | Chemicals and Allied Products | Y | > > | fireplace\_parts\_and\_accessories | FIREPLACE FIREPLACE SCREENS AND ACCESSORIES STORES | Y | > > | commercial\_equipments | COMMERCIAL EQUIPMENTS | Y | > > | family\_clothing\_stores | Family Clothing Stores | Y | > > | fabric\_and\_sewing\_stores | Fabric, Needlework, Piece Goods, and Sewing Stores | Y | > > | camper\_recreational\_and\_utility\_trailer\_dealers | Camper, Recreational and utility trailer dealers | Y | > > | record\_shops | Record Shops | Y | > > | home\_supply\_warehouse | Home Supply Warehouse | Y | > > | clocks\_and\_silverware\_stores | Clock, Jewelry, Watch, and Silverware Store | N | > > | art\_supply\_stores | Artist Supply Stores, Craft Shops | Y | > > | pawn\_shops | Pawn Shops | Y | > > | school\_supplies\_and\_stationery | Office, School Supply, and Stationery Stores | Y | > > | opticians\_optical\_goods\_and\_eyeglasse\_stores | Opticians, Optical Goods, and Eyeglasses | Y | > > | watch\_and\_jewellery\_repair\_stores | Clock, Jewelry, and Watch Repair Shops | N | > > | wholesale\_footwear\_stores | Commercial Footwear | Y | > > | antique\_stores | Antique Reproduction Stores | Y | > > | plumbing\_and\_heating\_equipment | Plumbing and Heating Equipment | Y | > > | variety\_stores | Variety Stores | Y | > > | liquor\_stores | Package Stores, Beer, Wine, Liquor | N | > > | boat\_dealers | Boat Dealers | Y | > > | cosmetic\_stores | Cosmetic Stores | Y | > > | home\_furnishing\_stores | Miscellaneous House Furnishing Specialty Shops | Y | > > | telecommunication\_equipment\_stores | Telecommunication Equipment Including Telephone Sales | Y | > > | women\_clothing | Womens Ready to Wear Stores | Y | > > | florists | Florists | Y | > > | commercial\_photography\_and\_graphic\_design\_services | Commercial Art, Graphics, Photography | Y | > > | building\_matrial\_stores | Building Materials, Lumber Stores | Y | > > | candy\_nut\_confectionery\_shops | Candy, Nut, Confectionery Stores | Y | > > | glass\_and\_wallpaper\_stores | Glass, Paint, Wallpaper Stores | Y | > > | video\_game\_supply\_stores | Video Amusement Game Supplies | Y | > > | drapery\_and\_window\_coverings\_stores | Drapery, Upholstery, and Window Coverings Stores | Y | > > | uniforms\_and\_commercial\_clothing\_stores | Menโ€™s, Womenโ€™s, and Childrenโ€™s Uniforms and Commercial Clothing | Y | > > | automotive\_paint\_shops | Automotive Paint Shops | Y | > > | durable\_goods\_stores | Durable Goods not elsewhere classified | Y | > > | fur\_shops | Furriers and Fur Shops | Y | > > | industrial\_supplies | Industrial Supplies | Y | > > | motorcycle\_shops\_and\_dealers | Motorcycle Shops and Dealers | Y | > > | children\_and\_infants\_wear\_stores | Childrenโ€™s and Infantsโ€™ Wear Stores | Y | > > | computer\_software\_stores | Computer Software Stores | Y | > > | women\_accessory\_stores | Women Accessory and Specialty Stores | Y | > > | books\_periodicals\_and\_newspaper | Books, Periodicals and Newspapers | Y | > > | floor\_covering\_stores | Floor Covering Stores | Y | > > | crystal\_and\_glassware\_stores | Crystal and Glassware Stores | Y | > > | hardware\_equipment\_and\_supply\_stores | Hardware Equipment and Supplies | Y | > > | discount\_stores | Discount stores | Y | > > | computers\_peripheral\_equipment\_software | Computers, Computer Peripheral Equipment, Software | Y | > > | automobile\_and\_truck\_dealers | Automobile and Truck Dealers-Used Only-Sales | Y | > > | aircraft\_and\_farm\_equipment\_dealers | Miscellaneous Automotive, Aircraft, and Farm Equipment Dealers-not elsewhere classified | Y | > > | antique\_shops\_sales\_and\_repairs | Antique Shops-Sales, Repairs, and Restoration Services | Y | > > | bicycle\_stores | Bicycle Shops-Sales and Service | Y | > > | hearing\_aids\_stores | Hearing Aids-Sales, Service, Supply Stores | Y | > > | music\_stores | Music Stores-Musical Instruments, Pianos, Sheet Music | Y | > > | construction\_materials | Construction Materials-not elsewhere classified | Y | > > | accessory\_and\_apparel\_stores | Accessory and Apparel Stores-Miscellaneous | Y | > > | second\_hand\_stores | SECOND HAND STORES-USED MERCHANDISE STORES | Y | > > | fuel\_dealers | Fuel Dealers-Coal, Fuel Oil, Liquefied Petroleum, Wood | N | > > | furniture\_and\_home\_furnishing\_store | Furniture and Home Furnishing store | Y | > > > [accordion] Food and Beverages > > > > | Sub Category | Description | Status | > > | - | - | - | > > | online\_food\_ordering | Online Food Ordering | Y | > > | restaurant | Restaurants | Y | > > | food\_court | Food Courts/Corporate Cafeteria | Y | > > | catering | Catering Services | Y | > > | alcohol | Alcoholic Beverages | Y | > > | restaurant\_search\_and\_booking | Restaurant search and reservations | Y | > > | dairy\_products | Dairy Products Stores | Y | > > | bakeries | Bakeries | Y | > > > [accordion] IT and Software > > > > | Sub Category | Description | Status | > > | - | - | - | > > | saas | SaaS (Software as a service) | N | > > | paas | Platform as a service | N | > > | iaas | Infrastructure as a service | N | > > | consulting\_and\_outsourcing | Consulting and Outsourcing | N | > > | web\_development | Web designing, development and hosting | Y | > > | technical\_support | Technical Support | Y | > > | data\_processing | Data processing | Y | > > > [accordion] Gaming > > > > | Sub Category | Description | Status | > > | - | - | - | > > | game\_developer | Game developer and publisher | N | > > | esports | E-sports | N | > > | online\_casino | Online Casino | N | > > | fantasy\_sports | Fantasy Sports | N | > > | gaming\_marketplace | Game distributor/Marketplace | N | > > > [accordion] Media and Entertainment > > > > | Sub Category | Description | Status | > > | - | - | - | > > | video\_on\_demand | Video on demand | Y | > > | music\_streaming | Music streaming services | Y | > > | multiplex | Multiplexes | Y | > > | content\_and\_publishing | Content and Publishing | Y | > > | ticketing | Events and movie ticketing | Y | > > | news | News | Y | > > | video\_game\_arcades | Video Game Arcades/Establishments | N | > > | video\_tape\_production\_and\_distribution | Motion Pictures and Video Tape Production and Distribution | Y | > > | bowling\_alleys | Bowling Alleys | Y | > > | billiard\_and\_pool\_establishments | Billiard and Pool Establishments | Y | > > | amusement\_parks\_and\_circuses | Amusement Parks, Carnivals, Circuses, Fortune Tellers | Y | > > | ticket\_agencies | Theatrical Producers-except Motion Pictures, Ticket Agencies | Y | > > > [accordion] Services > > > > | Sub Category | Description | Status | > > | - | - | - | > > | repair\_and\_cleaning | Repair and cleaning services | Y | > > | interior\_design\_and\_architect | Interior Designing and Architect | Y | > > | movers\_and\_packers | Movers and Packers | Y | > > | legal | Legal Services | Y | > > | event\_planning | Event planning services | Y | > > | service\_centre | Service Centre | Y | > > | consulting | Consulting Services | N | > > | ad\_and\_marketing | Ad and marketing agencies | Y | > > | services\_classifieds | Services Classifieds | Y | > > | multi\_level\_marketing | Multi-level Marketing | Y | > > | construction\_services | GENERAL CONTRACTORS | Y | > > | architectural\_services | Horticultural and Landscaping Services | Y | > > | car\_washes | CAR WASHES | Y | > > | motor\_home\_rentals | A MOTOR HOME AND RECREATIONAL | Y | > > | stenographic\_and\_secretarial\_support\_services | Stenographic and Secretarial Support Services | Y | > > | chiropractors | Chiropractors | Y | > > | automotive\_service\_shops | Automotive Service Shops | Y | > > | shoe\_repair\_shops | Hat Cleaning Shops, Shoe Repair Shops, Shoe Shine Parlors | Y | > > | telecommunication\_service | Telecom Servc including but not ltd to prepaid phone serv | Y | > > | fines | FINES | N | > > | security\_agencies | Agencies โ€“ Security Services | Y | > > | type\_setting\_and\_engraving\_services | Typesetting, Plate Making, Related Services | Y | > > | small\_appliance\_repair\_shops | Appliance Repair Shops, Electrical and Small | Y | > > | photography\_labs | Photo Developing, Photofinishing Laboratories | Y | > > | dry\_cleaners | Dry Cleaners | Y | > > | electronic\_repair\_shops | Electronic Repair Shops | Y | > > | cleaning\_and\_sanitation\_services | Specialty Cleaning, Polishing, and Sanitation Preparations | Y | > > | nursing\_care\_facilities | Nursing and Personal Care Facilities | Y | > > | direct\_marketing | Direct Marketing Other Direct Marketers not elsewhere classified | Y | > > | veterinary\_services | Veterinary Services | Y | > > | affliated\_auto\_rental | AFFILIATED AUTO RENTAL | Y | > > | alimony\_and\_child\_support | COURT COST INCLUDING ALIMONY AND CHILD SUPPORT | Y | > > | airport\_flying\_fields | AIRPORT FLYING FIELDS | Y | > > | tire\_retreading\_and\_repair\_shops | Tire Retreading and Repair Shops | Y | > > | television\_cable\_services | Cable and other Pay Television Services | Y | > > | recreational\_and\_sporting\_camps | Recreational and Sporting Camps | Y | > > | agricultural\_cooperatives | AGRICULTURAL COOPERATIVES | Y | > > | carpentry\_contractors | Carpentry Contractors | Y | > > | wrecking\_and\_salvaging\_services | Wrecking and Salvage Yards | Y | > > | automobile\_towing\_services | Towing Services | Y | > > | barber\_and\_beauty\_shops | Barber and Beauty Shops | Y | > > | video\_tape\_rental\_stores | Video Tape Rental Stores | Y | > > | golf\_courses | Golf Courses, Public | Y | > > | miscellaneous\_repair\_shops | Miscellaneous Repair Shops and Related Services | Y | > > | motor\_homes\_and\_parts | MOTOR HOME DEALERS | Y | > > | debt\_marriage\_personal\_counseling\_service | Debt, Marriage, Personal Counseling Service | Y | > > | air\_conditioning\_and\_refrigeration\_repair\_shops | Air Conditioning and Refrigeration Repair Shops | Y | > > | tailors | Alterations, Mending, Seamstresses, Tailors | Y | > > | massage\_parlors | Massage Parlors | Y | > > | horse\_or\_dog\_racing | Government Licensed Horse/Dog Racing | N | > > | credit\_reporting\_agencies | Consumer Credit Reporting Agencies | Y | > > | heating\_and\_plumbing\_contractors | Air Conditioning, Heating, and Plumbing Contractors | Y | > > | electrical\_contractors | ELECTRICAL CONTRACTORS | Y | > > | carpet\_and\_upholstery\_cleaning\_services | Carpet and Upholstery Cleaning | Y | > > | roofing\_and\_metal\_work\_contractors | Roofing and Siding, Sheet Metal Work Contractors | Y | > > | internet\_service\_providers | Computer Network/Information Services | Y | > > | laundry\_services | Cleaning, Garment, and Laundry Services | Y | > > | recreational\_camps | Trailer Parks and Campgrounds | Y | > > | masonry\_contractors | Insulation, Masonry, Plastering, Stonework, and Tile Setting Contractors | Y | > > | exterminating\_and\_disinfecting\_services | Exterminating and Disinfecting Services | Y | > > | ambulance\_services | Ambulance Services | Y | > > | funeral\_services\_and\_crematories | Funeral Services and Crematories | Y | > > | metal\_service\_centres | Metal Service Centers and Offices | Y | > > | copying\_and\_blueprinting\_services | Quick Copy, Reproduction, and Blueprinting Services | Y | > > | fuel\_dispensers | Fuel Dispenser, Automated | N | > > | lottery | Government Owned Lottery,Government Owned Lottery | N | > > | welding\_repair | WELDING REPAIR | Y | > > | mobile\_home\_dealers | Mobile Home Dealers | Y | > > | concrete\_work\_contractors | CONCRETE WORK CONTRACTORS | Y | > > | boat\_rentals | Boat Leases and Boat Rentals | Y | > > | personal\_shoppers\_and\_shopping\_clubs | Buying/Shopping Clubs, Services | Y | > > | door\_to\_door\_sales | DOOR-TO-DOOR SALES | Y | > > | travel\_related\_direct\_marketing | Direct Marketing-Travel-Related Arrangement Services | Y | > > | lottery\_and\_betting | Betting -including Lottery Tickets, Chips at Gaming Casinos, Off-Track Betting and Wagers at Race Tracks | N | > > | bands\_orchestras\_and\_miscellaneous\_entertainers | Bands, Orchestras, and Miscellaneous Entertainers-not elsewhere classified | Y | > > | furniture\_repair\_and\_refinishing | Furniture-Reupholstery and Repair, Refinishing | Y | > > | direct\_marketing\_and\_subscription\_merchants | Direct Marketing-Continuity/Subscription Merchants | N | > > | typewriter\_stores\_sales\_service\_and\_rentals | Typewriter Stores-Sales, Service, and Rentals | Y | > > | direct\_marketing\_insurance\_services | Direct Marketing-Insurance Services | Y | > > | business\_services | Business Services-not elsewhere classified | Y | > > | inbound\_telemarketing\_merchants | Direct Marketing-Inbound Telemarketing Merchants | N | > > | recreation\_services | Recreation Services-not elsewhere classified | Y | > > | swimming\_pools | Swimming Pools-Sales and Supplies | Y | > > | outbound\_telemarketing\_merchants | Direct Marketing-Outbound Telemarketing Merchants | N | > > | public\_warehousing | Public Warehousing-Farm Products, Refrigerated Goods, | Y | > > | clothing\_rental\_stores | Clothing Rental-Costumes, Uniforms, and Formal Wear | Y | > > | contractors | Contractors, Special Trade-not elsewhere classified | Y | > > | transportation\_services | Transportation Services-not elsewhere classified | Y | > > | electric\_razor\_stores | Electric Razor Stores-Sales and Service | Y | > > | service\_stations | Service Stations with or without Ancillary Services | N | > > | photographic\_studio | Photographic studios | Y | > > | professional\_services | Professional services | Y | > > > [accordion] Housing and Real Estate > > > > | Sub Category | Description | Status | > > | - | - | - | > > | developer | Developer | N | > > | facility\_management | Facility Management Company | Y | > > | rwa | RWA | Y | > > | coworking | Co-working spaces | N | > > | realestate\_classifieds | Real estate classifieds | N | > > | space\_rental | Home or office rentals | N | > > > [accordion] Not-for-Profit > > > > | Sub Category | Description | Status | > > | - | - | - | > > | charity | Charity | Y | > > | educational | Educational | Y | > > | religious | Religious | Y | > > | personal | Personal | Y | > > > [accordion] Social > > > > | Sub Category | Description | Status | > > | - | - | - | > > | matchmaking | Dating and Matrimony platforms | N | > > | social\_network | Social Network | Y | > > | messaging | Messaging and Communication | Y | > > | professional\_network | Professional Network | Y | > > | neighbourhood\_network | Local/Neighbourhood network | Y | > > | automobile\_associations\_and\_clubs | Automobile Associations | Y | > > | political\_organizations | Political Organizations | N | > > | country\_and\_athletic\_clubs | Clubs-Country Clubs, Membership-Athletic, Recreation, Sports, Private Golf Courses | Y | > > | associations\_and\_membership | Associations and membership | Y | ## Credit Card EMI > [accordion] What are the standard credit card interest rates charged by the banks for EMI? > > The interest rates charged by various banks for each of the tenures are provided for your reference. The minimum transaction amount for which EMIs are applicable can vary for each bank. The maximum amount is dependent on the card limit set by the issuing bank. > > > [accordion] **American Express (AMEX)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 5000 ^^^^^^^ | 199 ^^^^^^^ | 14% | October 12, 2023 ^^^^^^^ | > > | 6 months | | | 14% | | > > | 9 months | | | 14% | | > > | 12 months | | | 14% | | > > | 18 months | | | 15% | | > > | 24 months | | | 15% | | > > | 36 months | | | NA | | > > > [accordion] **Bank of Baroda (BARB)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | NA ^^^^^^^ | 16% | July 26, 2024 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | NA | | > > > [accordion] **Citibank (CITI)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | A one-time processing fee of 1% or โ‚น100, whichever is higher, will be charged by the bank. ^^^^^^^ | 16% | April 08, 2024 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | NA | | > > > [accordion] **Federal Bank (FDRL)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | NA ^^^^^^^ | 15.99% | July 26, 2024 ^^^^^^^ | > > | 6 months | | | 15.99% | | > > | 9 months | | | 15.99% | | > > | 12 months | | | 15.99% | | > > | 18 months | | | 15.99% | | > > | 24 months | | | 15.99% | | > > | 36 months | | | NA | | > > > [accordion] **HDFC Bank (HDFC)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 1000 | 299 ^^^^^^^ | 16% | July 23, 2025 ^^^^^^^ | > > | 6 months | 1000 | | 16% | | > > | 9 months | 1000 | | 16% | | > > | 12 months | 1000 | | 16% | | > > | 18 months | 3000 | | 16% | | > > | 24 months | 3000 | | 16% | | > > | 36 months | NA | | NA | | > > > [accordion] **HSBC Bank (HSBC)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2000 ^^^^^^^ | 99 ^^^^^^^ | 15% | 21 February 2024 ^^^^^^^ | > > | 6 months | | | 15% | | > > | 9 months | | | 15% | | > > | 12 months | | | 15% | | > > | 18 months | | | 15% | | > > | 24 months | | | 15% | | > > | 36 months | | | NA | | > > > [accordion] **ICICI Bank (ICIC)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 1500 ^^^^^^^ | 199 ^^^^^^^ | 15.99% | November 29, 2023 ^^^^^^^ | > > | 6 months | | | 15.99% | | > > | 9 months | | | 15.99% | | > > | 12 months | | | 15.99% | | > > | 18 months | | | 15.99% | | > > | 24 months | | | 15.99% | | > > | 36 months | | | NA | | > > > [accordion] **IDFB Bank (IDFB)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | A one-time processing fee of 1% or โ‚น99, whichever is higher, will be charged by the bank. ^^^^^^^ | 16% | September 17, 2025 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | 16% | | > > > [accordion] **IndusInd Bank (INDB)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2000 ^^^^^^^ | 249 ^^^^^^^ | 16% | September 12, 2024 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | 16% | | > > > [accordion] **Kotak Mahindra Bank (KKBK)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | 249 ^^^^^^^ | 16% | February 21, 2024 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | NA | | > > > [accordion] **RBL Bank (RATN)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2000 ^^^^^^^ | 199 ^^^^^^^ | 13% | April 05, 2023 ^^^^^^^ | > > | 6 months | | | 14% | | > > | 9 months | | | 15% | | > > | 12 months | | | 15% | | > > | 18 months | | | 15% | | > > | 24 months | | | 15% | | > > | 36 months | | | NA | | > > > [accordion] **State Bank of India (SBIN)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | NA | 16.75% | January 7, 2026 ^^^^^^^ | > > | 6 months | | A one-time processing fee of โ‚น40 will be charged if the transaction amount exceeds โ‚น20,000. | 16.50% | | > > | 9 months | | A one-time processing fee of โ‚น79 will be charged if the transaction amount exceeds โ‚น20,000. | 16.50% | | > > | 12 months | | A one-time processing fee of โ‚น159 will be charged if the transaction amount exceeds โ‚น20,000. | 16% | | > > | 18 months | | A one-time processing fee of โ‚น199 will be charged if the transaction amount exceeds โ‚น20,000. | 16.25% | | > > | 24 months | | A one-time processing fee of โ‚น299 will be charged if the transaction amount exceeds โ‚น20,000. | 16.25% | | > > | 36 months | | NA | NA | | > > > [accordion] **Standard Chartered (SCBL)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | A one-time processing fee of 1% will be charged by the bank. ^^^^^^^ | 11.88% | July 26, 2024 ^^^^^^^ | > > | 6 months | | | 13% | | > > | 9 months | | | 14% | | > > | 12 months | | | 14% | | > > | 18 months | | | NA | | > > | 24 months | | | NA | | > > | 36 months | | | NA | | > > > [accordion] **Axis Bank (UTIB)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 3000 ^^^^^^^ | A one-time processingfee of 1% or โ‚น100, whichever is higher, will be charged by the bank. ^^^^^^^ | 16% | December 12, 2023 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | NA | | > > > [accordion] **Yes Bank (YESB)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 1500 ^^^^^^^ | 299 ^^^^^^^ | 16% | December 12, 2023 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | NA | | > [accordion] What are the interest rates charged by other credit cards for EMI? > > The interest rates charged by other cards for EMI is given below. > > > [accordion] **OneCard**: > > > > | Tenures in Months | Minimum Amount (in INR) | Interest rates | > > | - | - | - | > > | 3 months | 2500 ^^^^^^ | 16% | > > | 6 months | | 16% | > > | 9 months | | 16% | > > | 12 months | | 16% | > > | 18 months | | 16% | > > | 24 months | | 16% | ## Cardless EMI > [accordion] What are the standard interest rates charged by the banks for cardless EMI? > > The standard interest rates charged by various banks for cardless EMI are provided for your reference. > > | Cardless EMI | Issuer Bank | Provider Code | Minimum Amount (in INR) | 3 months | 6 months | 9 months | 12 months | 18 months | > | - | - | - | - | - | - | - | - | - | > | InstaCred | HDFC Bank | `hdfc` | 5000 | 16% | 16% | 16% | 16% | 16% | > | InstaCred | ICICI Bank | `icic` | 7000 | 16% | 16% | 16% | 16% | NA | > | InstaCred | IDFC First | `idfb` | 5000 | 24% | 24% | 24% | 24% | NA | > | InstaCred | Kotak Mahindra Bank | `kkbk` | 3000 | 20% | 20% | 20% | 20% | NA | > | axio | NA | `walnut369` | 900 | 24% | 24% | 24% | NA | NA | > | Fibe | NA | `earlysalary` | 3000 | 30% | 30% | 30% | NA | NA | > | ZestMoney | NA | `zestmoney` | 3000 | 22% | 24% | 24% | NA | NA | > [accordion] What are the standard interest rates charged by Pay Later providers for cardless EMI? > > The standard interest rates charged by the providers for Pay Later providers are given below: > > | Pay Later | 15 days | 30 days | 45 days | 60 days | 90 days | > | - | - | - | - | - | - | > | LazyPay | Interest free | NA | NA | NA | NA | > | PayPal | Interest free | NA | NA | NA | NA | > > \* Interest rates are determined on a case-to-case basis. [Contact support](https://razorpay.com/support/#request) for more information. > > > [!WARNING] > > > > **Watch Out!** > > > > All interest rates mentioned above are per annum. ## No Cost EMI > [accordion] Who bears the cost for the discount given in No Cost EMI? > > You, as a merchant, would bear the cost of No Cost EMI. It will be given as an upfront discount on the product cost to the end consumer. The discount percentage will vary by the bank and period of EMI. > [accordion] Which payment methods can be used for No Cost EMI? > > No Cost EMI is available on all credit card and debit card EMI banks. > [accordion] Will the customers' banks continue to charge them interest? > > Yes, the customers' banks will continue to charge them interest. However, this interest charge has been provided to the customer as an upfront discount at the time of purchase, effectively giving them the benefit of a No Cost EMI. > [accordion] Can I enable No Cost EMIs at the Checkout? > > Yes. Razorpay enables you to display No Cost EMIs at the Checkout. Know more about [No Cost EMIs](/docs/payments/offers/no-cost-emi). > [accordion] How can I know about the percentage discount of the No Cost EMI that I bear? > > > [!NOTE] > > > > **Handy Tips** > > > > The banks charge GST to end consumers on the interest paid over and above the following amount. > > Calculations on the cost incurred by the merchant at all standard plan and tenures are listed below: > > | Amount (in INR) | Interest (in %) | Tenure (in Months) | Amount Paid by Customer | Monthly EMI | No Cost EMI Discount | Discount | Pricing | Total Cost (in %) | > | - | - | - | - | - | - | - | - | - | > | 10000 | 11% | 3 | 9,819.43 | 3333.33 | 180.57 | 1.81% | 3% | 4.81% | > | 10000 | 12% | 3 | 9,803.28 | 3333.33 | 196.72 | 1.97% | 3% | 4.97% | > | 10000 | 13% | 3 | 9,787.18 | 3333.33 | 212.82 | 2.13% | 3% | 5.13% | > | 10000 | 14% | 3 | 9,771.13 | 3333.33 | 228.87 | 2.29% | 3% | 5.29% | > | 10000 | 15% | 3 | 9,755.11 | 3333.33 | 244.89 | 2.45% | 3% | 5.45% | > | 10000 | 11% | 6 | 9686.85 | 1666.67 | 313.15 | 3.13% | 3% | 6.13% | > | 10000 | 12% | 6 | 9659.13 | 1666.67 | 340.87 | 3.41% | 3% | 6.41% | > | 10000 | 13% | 6 | 9631.53 | 1666.67 | 368.47 | 3.68% | 3% | 6.68% | > | 10000 | 14% | 6 | 9604.04 | 1666.67 | 395.96 | 3.96% | 3% | 6.96% | > | 10000 | 15% | 6 | 9576.68 | 1666.67 | 423.32 | 4.23% | 3% | 7.23% | > | 10000 | 11% | 9 | 9556.66 | 1111.11 | 443.34 | 4.43% | 3% | 7.43% | > | 10000 | 12% | 9 | 9517.80 | 1111.11 | 482.20 | 4.82% | 3% | 7.82% | > | 10000 | 13% | 9 | 9479.17 | 1111.11 | 520.83 | 5.21% | 3% | 8.21% | > | 10000 | 14% | 9 | 9440.77 | 1111.11 | 559.23 | 5.59% | 3% | 8.59% | > | 10000 | 15% | 9 | 9402.61 | 1111.11 | 597.39 | 5.97% | 3% | 8.97% | > | 10000 | 11% | 12 | 9428.80 | 833.33 | 571.20 | 5.71% | 3% | 8.71% | > | 10000 | 12% | 12 | 9379.23 | 833.33 | 620.77 | 6.21% | 3% | 9.21% | > | 10000 | 13% | 12 | 9330.04 | 833.33 | 669.96 | 6.70% | 3% | 9.70% | > | 10000 | 14% | 12 | 9281.21 | 833.33 | 718.79 | 7.19% | 3% | 10.19% | > | 10000 | 15% | 12 | 9232.76 | 833.33 | 767.24 | 7.67% | 3% | 10.67% | > | 10000 | 11% | 18 | 9179.92 | 555.56 | 820.08 | 8.20% | 3% | 11.20% | > | 10000 | 12% | 18 | 9110.15 | 555.56 | 889.85 | 8.90% | 3% | 11.90% | > | 10000 | 13% | 18 | 9041.13 | 555.56 | 958.87 | 9.59% | 3% | 12.59% | > | 10000 | 14% | 18 | 8972.85 | 555.56 | 1027.15 | 10.27% | 3% | 13.27% | > | 10000 | 15% | 18 | 8905.30 | 555.56 | 1094.70 | 10.95% | 3% | 13.95% | > | 10000 | 11% | 24 | 8939.84 | 416.67 | 1060.16 | 10.60% | 3% | 13.60% | > | 10000 | 12% | 24 | 8851.41 | 416.67 | 1148.59 | 11.49% | 3% | 14.49% | > | 10000 | 13% | 24 | 8764.21 | 416.67 | 1235.79 | 12.36% | 3% | 15.36% | > | 10000 | 14% | 24 | 8678.23 | 416.67 | 1321.77 | 13.22% | 3% | 16.22% | > | 10000 | 15% | 24 | 8593.43 | 416.67 | 1406.57 | 14.07% | 3% | 17.07% | > [accordion] How does the No Cost EMI settlement work? > > The order amount minus the entire interest subvented by you as a discount is settled in your bank account as per your [settlement cycle](/docs/payments/settlements#settlement-cycle). > > > [!WARNING] > > > > **Watch Out!** > > > > However, Razorpay pricing is not included in this settlement, it will be applied in addition to the above amount. > [accordion] Can I create No Cost EMI offers on Cardless EMI? > > No, we do not support No Cost EMI offers on Cardless EMI. ## Low Cost EMI > [accordion] Why should I run Low Cost EMI Offers? > > Running Low Cost EMI Offers helps you attract a wider customer base by reducing the upfront cost barrier. This leads to increased sales and higher average order values. > > Additionally, offering discount on interest for longer tenures sets you apart in a competitive market and opens opportunities for upselling, contributing to overall business growth and financial stability. > [accordion] Who bears the cost for the discount given in Low Cost EMI? > > As a business, you would bear the partial cost of Low Cost EMI, which appears as an upfront discount on the product cost to the end consumer. > > You can decide the cost to subvent for each tenure and the customer bears the remaining cost. The interest percentage will vary by the bank and the EMI tenure. Know more about the [EMI Calculation](/docs/payments/offers/low-cost-emi#calculation-of-emi). > [accordion] Which payment methods can be used for Low Cost EMI? > > Low Cost EMI is available on all credit and debit card EMIs. > [accordion] Will the customers' banks continue to charge them interest? > > Yes, the customers' banks will continue to charge them interest. However, partial interest subvented by you appears as an upfront discount to the customers at the time of purchase. > [accordion] Can I enable Low Cost EMIs at the Checkout? > > Yes. Razorpay enables you to display Low Cost EMIs at the Checkout. Know more about [Low Cost EMIs](/docs/payments/offers/low-cost-emi). > [accordion] How can I know about the percentage discount of the Low Cost EMI that I bear? > > You can decide how much percentage of the total interest you want to subvent during offer creation. This appears as an upfront discount on the product cost and the customer bears the remaining cost. > [accordion] How does the Low Cost EMI settlement work? > > The order amount minus the discount subvented by you is settled in your bank account as per your [settlement cycle](/docs/payments/settlements#settlement-cycle). > > > [!WARNING] > > > > **Watch Out!** > > > > Razorpay pricing is not included in this settlement, it will be applied in addition to the above amount. > [accordion] Can I create Low Cost EMI offers on Cardless EMI? > > No, we do not support Low Cost EMI offers on Cardless EMI. # Low Cost EMI Source: https://razorpay.com/docs/payments/payment-methods/emi/low-cost-emi Let your customers avail Low Cost EMIs offered by all major banks. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Offer Low Cost EMI to strike the perfect balance between providing affordable financing to customers while maintaining a sustainable financial model. You can decide the cost to support each EMI tenure, and the customer bears the remaining cost. Low Cost EMIs let customers enjoy the benefits of EMI at an affordable rate while minimising your overall cost. ## Create Low Cost EMI Offers You can create [Low Cost EMI Offers](/docs/payments/offers/low-cost-emi) for a selected issuer from your Dashboard. ## How it Works Customers select the products on your website or app and proceed to Checkout. On the Checkout page, the customers: 1. Enter the **Phone Number** and click **Continue**. 2. Select **EMI** as the payment method. 3. Select the EMI option where Low Cost EMI is available. If the amount entered in the Checkout is eligible for the discount, all the applicable EMI options are shown. ![select EMI option where Low Cost EMI is available](https://razorpay.com/docs/build/browser/assets/images/low-cost-select-emi.jpg) 4. After customers select this option, all the applicable plans the card issuer provides are displayed for the entered amount. 5. Choose the EMI tenure and click **Continue**. ![Select Low Cost EMI tenure](https://razorpay.com/docs/build/browser/assets/images/low-cost-emi-select-tenure.jpg) 6. They enter the relevant details and choose if they want to **Save this card as per RBI guidelines** or pay without saving the card. After the successful payment, Razorpay redirects customers to your application or website. > [card] Handy Tips > > You can create Low Cost EMI Offers on Credit and Debit card EMIs only. > [card] Customer's Monthly Statement > > Customers' monthly statements will reflect the total interest charged by the bank. However, the Low Cost EMI discount amount is applied upfront to the purchase to cover it. ## FAQs See: [Low Cost EMI FAQs](/docs/payments/payment-methods/emi/faqs#low-cost-emi). # About No Cost EMI Source: https://razorpay.com/docs/payments/payment-methods/emi/no-cost-emi Let your customers avail No Cost EMIs offered by all major banks. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India A No Cost EMI is an offer where customers pay for a product in installments with zero interest. Offer No Cost EMIs on credit and debit cards issued by all the major banks. EMI discount is applied to the customer's purchase to cover the interest that the bank charges. ## Create No Cost EMI Offers 1. You can create No Cost EMIs for a selected issuer from your Dashboard. 2. Follow the steps in Offers to [create No Cost EMIs](/docs/payments/offers/create) on the Dashboard. ## How it Works 1. Enter the **Phone Number** and click **Continue**. 2. Select **EMI** as the payment method. 3. Select the EMI option where No Cost EMI is available. If the amount entered in the Checkout is eligible for the discount, all the applicable EMI options are shown. ![Plans eligible for the card issurer](https://razorpay.com/docs/build/browser/assets/images/select-bank.jpg) 4. Select the EMI tenure and click **Continue**. They enter the relevant details. ![EMI tenure and click Select Plan](https://razorpay.com/docs/build/browser/assets/images/select-no-cost-emi-plan.jpg) 5. If the customers are: * **Eligible** to avail of the EMI, they click **Continue**. * **Not eligible** for availing the EMI, they have to pay the full amount. They click **Pay full amount** and are prompted to confirm the action. 6. Choose if they want to **Save this card as per RBI guidelines** or pay without saving the card. After the successful payment, Razorpay redirects customers to your application or website. By the end of the EMI cycle, the card issuer deducts the EMI amount from the customerโ€™s bank. ## FAQs See: [No Cost EMI FAQs](/docs/payments/payment-methods/emi/faqs#no-cost-emi). ### Related Information [Bajaj Finserv No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi/bajaj-finserv) # Bajaj Finserv No Cost EMIs Source: https://razorpay.com/docs/payments/payment-methods/emi/no-cost-emi/bajaj-finserv Let your customers avail No Cost EMIs offered by Bajaj Finserv. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Offer No Cost EMIs by Bajaj Finserv to your customers. No Cost EMIs are offered as an upfront discount to your customers. The interest levied on the EMIs is waived off. After the customer makes the purchase, they are charged as per the credit card billing cycle or payment terms agreed with Bajaj Finserv. ## Prerequisites * The customer should be a registered user of the EMI card provider, **Bajaj Finserv**. * Generate API keys from the [Dashboard](https://razorpay.com/dashboard). A combination of `key_id` and `key_secret` is required to authenticate API request sent to Razorpay servers. ## How it Works For the customers to avail No Cost EMIs on the Razorpay Standard Checkout, follow the detailed steps as explained below: > [accordion] Step 1: Create No Cost EMI Offers > > Raise a request with the[Razorpay Support team](https://razorpay.com/support/#request)to create the relevant No Cost EMIs you want to display on the Checkout. Get the appropriate `offer_id` created for each EMI plan. > [accordion] Step 2: Associate Offer with an Order > > Obtain the `offer_id`. Let us say, `offer_ANZoaxsOww2X53`, from our Support team. Create an order for the transaction amount for which the created offer should be applied. > > `POST /orders` > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/orders \ > -H "Content-Type: application/json" \ > -d '{ > "amount": 1000000, > "currency": "INR", > "discount": true, > "offers": [ > "offer_ANZoaxsOww2X53" > ] > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > ArrayList Offer = new ArrayList(); > Offer.add("offer_JTUADI4ZWBGWur"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount", 1000000); // amount in the smallest currency unit > orderRequest.put("currency", "INR"); > orderRequest.put("discount", true); > orderRequest.put("offers", Offer); > > Order order = razorpayclient.orders.create(orderRequest); > System.out.print(order); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > client.order.create({ > "amount": 1000000, > "currency": "INR", > "receipt": "receipt#1", > "discount": true, > "offers": [ > "offer_ANZoaxsOww2X53" > ] > }) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->order->create(array('amount' => 1000000, 'currency' => 'INR', 'discount' => '1', 'offers'=> array('offer_JTUADI4ZWBGWur'))); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > order = Razorpay::Order.create amount: 50000, currency: 'INR', discount: '1', receipt: 'receipt#1', offers: [ > 'offer_ANZoaxsOww2X53"' > ] > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > instance.orders.create({ > amount: 1000000, > currency: "INR", > receipt: "receipt#1", > discount: true, > offers: [ > "offer_ANZoaxsOww2X53" > ] > }) > ``` > > ```go Go theme={null} > import ( razorpay "github.com/razorpay/razorpay-go" ) > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > data := map[string]interface{}{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "offers": []interface{}{ > "offer_JTUADI4ZWBGWur", > }, > } > body, err := client.Order.Create(data, nil) > ``` > > ```json Response theme={null} > { > "id": "order_CjyoZFRpB8r0AH", > "entity": "order", > "amount": 1000000, > "amount_paid": 0, > "amount_due": 1000000, > "currency": "INR", > "receipt": null, > "offer_id": "offer_ANZoaxsOww2X53", > "offers": [ > "offer_ANZoaxsOww2X53" > ], > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1561018912 > } > ``` > > `amount` *mandatory* > : `integer` Amount, in currency subunits, for which the order is created. For example, if the order is to be created for โ‚น30,000, enter the value 3000000 (in paise). > > `currency` *mandatory* > : `string` ISO code of the currency associated with the order amount. > > `notes` *optional* > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > `offers` *mandatory* > : `array` Unique identifier of the offer. \ > Pass the `offer_id` obtained from Razorpay Support team. > > `discount`*optional* > : `boolean` Indicates if a discount is to be applied by Razorpay or not. Possible values:\\ > > * `true`: Discount is applied. > * `false`: Discount is not applied. > [accordion] Step 3: Trigger Checkout > > The `order_id` obtained in the previous step can be passed to the Checkout page as follows: > > Copy-paste the parameters as `options` in your code: > > ```html Checkout with Callback URL (JavaScript) theme={null} > > > > ``` > > ```html Checkout with Handler Functions (JavaScript) theme={null} > > > > ``` ## How Customers Avail Offers on Checkout The customers can complete the payment as follows: 1. On the Razorpay Checkout, customers enter the required details and select **EMI** as the payment method. ![Standard checkout with bajaj finserv.](https://razorpay.com/docs/build/browser/assets/images/bajaj-finserv-emi-new-amount.jpg) 2. They can select **Cardless and Others**. ![Bajaj FinServ displayed in Cardless and Others section](https://razorpay.com/docs/build/browser/assets/images/bajaj-finserv-new-select-new.jpg) 3. Customers select the EMI tenure and click **Continue**. ![Select an EMI Plan and Select Plan.](https://razorpay.com/docs/build/browser/assets/images/bajaj-finserv-new-plan-select.jpg) 4. They enter the details of Bajaj Finserv-issued card and click **Continue**. ![details of Bajaj Finserv-issued card.](https://razorpay.com/docs/build/browser/assets/images/bajaj-finserv-new-card-details.jpg) After the successful payment, Razorpay redirects customers to your application or website. Customers' monthly statements will reflect the EMI amount with interest charged by the bank. You can check the status of the payment from the Dashboard. ### FAQs See: [No Cost EMI FAQs](/docs/payments/payment-methods/emi/faqs#no-cost-emi). # About MOTO Payments Source: https://razorpay.com/docs/payments/payment-methods/moto Accept MOTO (Mail-Order-Telephone-Order) payments to charge a customer's credit card without card CVV data and 2-factor-authentication. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can use MOTO (Mail-Order-Telephone-Order) transactions to charge a customer's credit card without using the CVV or 2-factor-authentication. You can extend this flow to your customers to reduce payment failures that may occur due to low internet speeds or redirects to bank pages. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ### PCI-DSS Compliance You must be PCI-compliant to accept and process customer's card details using the MOTO option. The compliance certificate should be updated as per the yearly renewal cycle. ## Frequently Asked Questions > [accordion] What card types or issuers can be used with MOTO? > > You can use the MOTO feature for all Visa and Mastercard credit cards. > [accordion] What is the payment flow for MOTO? > > All payments are authorized without card cvv data and 2-factor authentication. > [accordion] Is cryptogram value required to process MOTO transactions via tokenised cards? > > For MOTO transactions via tokenised cards, cryptogram value is not required to process the payment. ### Related Information [Batch MOTO Payments](/docs/payments/payment-methods/moto/batch) # MOTO Batch Card Payments Source: https://razorpay.com/docs/payments/payment-methods/moto/batch Create MOTO card payments in batches from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can use the MOTO (Mail-Order-Telephone-Order) payment method to charge a customer's credit card without CVV or 2-factor authentication. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. #### PCI-DSS Compliance You must be PCI-compliant to accept and process customers' card details using the MOTO payment method. The compliance certificate should be updated as per the yearly renewal cycle. ## Steps to Create Batch Card Payments Following are the steps to create MOTO card payments in batch: 1. [Download sample batch file](#step-1-download-sample-batch-file). 2. [Fill in card and payment details](#step-2-fill-in-card-and-payment-details). 3. [Upload the filled batch file](#step-3-upload-the-filled-batch-file). 4. [Preview and confirm uploaded file](#step-4-preview-and-confirm-uploaded-file). 5. [View and download Batch Payment Report](#step-5-download-batch-payment-report). ### Step 1: Download Sample Batch File 1. Log in to the Dashboard. 2. Navigate to **Transactions** โ†’ **Batch Payments** and click **Download Sample File**. ![](https://razorpay.com/docs/build/browser/assets/images/batch_payments-1.jpg) [Download the sample template](https://cdn.razorpay.com/dashboard/sample_batch_payments.csv) to fill in the requisite details. ### Step 2: Fill in Card and Payment Details In the downloaded file, fill the necessary details while ensuring that the header row is not modified. A sample data row is shown below: ![](https://razorpay.com/docs/build/browser/assets/images/batch-card-payment-sample-file.jpg) > [!NOTE] > > **Feature Request** > > MOTO payments can also be processed using Razorpay token id if you are using tokenisation or a [saved card](/docs/payments/payment-methods/cards/features/saved-cards) feature. > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. > [accordion] Batch File Details > > Different fields that need your input are listed below: > > `Header` *mandatory* > : `string` Description of the batch file. > > `email` *mandatory* > : `string` Customer's email address. For example, `gaurav.kumar@example.com`. > > `contact` *mandatory* > : `integer` Customer's contact number. For example, `+919988998899`. > > `card_number` *mandatory* > : `integer` Customer's card number or token id. For example, cards - `4386289407660153` and token id - `token_Kb9yf1HWGiZMhu`. > > `expiry_year` *conditionally mandatory* > : `integer` Expiry year for the card in `YYYY` format. Mandatory only for cards. For example, `2022`. > > `expiry_month` *conditionally mandatory* > : `integer` Expiry month for the card in `MM` format. Mandatory only for cards. For example, `08`. > > `cardholder_name` *conditionally mandatory* > : `string` Cardholder's name. Mandatory only for cards. For example, `Gaurav Kumar`. > > `amount` *mandatory* > : `integer` Amount that is to be charged to the customer. The amount should be in the currency subunit. For example, for an amount of โ‚น234.56, enter the value `23456`. > > `currency` *mandatory* > : `string` The currency in which the payment is to be charged. For example, `INR`.\ > You can select any one of the [supported currencies](/docs/payments/international-payments). > > `receipt` *optional* > : `string` Unique reference entered by you the payment. For example, `#566`. > > `description` *optional* > : `string` Description for the payment. For example, `Towards purchase of encyclopedia`. > > `notes` *optional* > : `json object` Set of key-value pairs that can be associated with the payment. This can be useful for storing additional information about the payment. A maximum of 15 key-value pairs, each of 256 characters (maximum), are supported. > [!NOTE] > > **Handy Tips** > > To fetch the token id, go to Reports on your Dashboard and download the **Custom Token Report**. ### Step 3: Upload the Filled Batch File To upload a batch payment file: 1. On the Dashboard, navigate to **Transactions** โ†’ **Batch Payments**. ![](https://razorpay.com/docs/build/browser/assets/images/batch_payments-1.jpg) 2. Upload the filled-in template by clicking the **Click here to upload** button. Currently, CSV, XLS and XLSX file formats are supported. ![](https://razorpay.com/docs/build/browser/assets/images/batch_payments-2.jpg) ### Step 4: Preview and Confirm Uploaded File If the batch file is successfully uploaded with appropriate headers and attributes, you will be able to preview the first three rows of the uploaded document. After verifying the accuracy of the data, click **Process Payments** to confirm the upload. ![](https://razorpay.com/docs/build/browser/assets/images/batch_payments-3.jpg) ### Step 5: Download Batch Payment Report After the file is processed, you can download a batch file report. The report includes the final state of each payment request. Click **Download** for the relevant **Batch Id**. ![](https://razorpay.com/docs/build/browser/assets/images/batch_payments-4.jpg) > [accordion] Batch Status > > The uploaded file can be in the following states: > > * `Created`: This is the initial state of the file when it is uploaded. It indicates that the upload is successful, and will be picked up for processing. > > * `Processed`: This is the final state of the file. Payments in a file in this state can either be successfully authorised or have errors during authorisation. There is a chance that a few of the payments did not get authorised due to issues such as invalid cards or an invalid expiry date. Download the file to check the status of the payments. > > The output file is the same as the uploaded file with additional columns added, which are as follows: > > `order_id` > : `razorpay_order_id` linked to the payment. > > `payment_id` > : `payment id` used to process the payment. > > `status` > : Indicates the status of the payment. Possible values: > > * `success` > * `failed` > > `error_code` > : If the payment failed due to an error, this column will have an error code. > > `error_description` > : If the payment failed due to an error, this column will have the reason for the failure. ## Frequently Asked Questions > [accordion] What card types or issuers can be used with MOTO? > > You can use the MOTO feature for all Visa and Mastercard credit cards. > [accordion] What is the payment flow for MOTO? > > All payments are authorised without card CVV data and 2-factor authentication. > [accordion] How many rows can I upload in a single batch file? > > You can upload a maximum of 500 rows in a single batch file. > [accordion] Once the batch file is uploaded, how long will it take for all the payments to be processed? > > Typically, all the payments are processed within 60 minutes after the batch file is uploaded successfully. > [accordion] Can duplicate transactions be included in the same file? > > Yes. Each row in the batch file is treated as a unique entry and processed without additional validation checks. # Netbanking Source: https://razorpay.com/docs/payments/payment-methods/netbanking List of banks supported on Razorpay Payment Gateway for Netbanking payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can accept payments from your customers using Netbanking. The customers enter their Netbanking credentials to make payments. This method is available by default. No additional integration or permissions are needed to enable this method at your application Checkout. ## Netbanking Payment Flow The diagram given below represents the payment flow for netbanking: ![Payment Flow for Netbanking](https://razorpay.com/docs/build/browser/assets/images/payment-flow-netbanking.jpg) To pay using the Netbanking payment method, customers: 1. Select **Netbanking** as the payment method on the checkout page and choose their bank from the list of supported banks. 2. Are redirected to their bank's secure login page. 3. Enter their **Netbanking credentials (User ID and Password)** to authenticate. 4. Review the payment details and authorise the transaction. ![Payment Flow for Netbanking](https://razorpay.com/docs/build/browser/assets/images/NB_Payment_Flow.gif) After successful payment, customers are redirected back to your website or app with the payment confirmation. > [accordion] Supported Platforms and Availability > > | **Supported Platforms** | **Availability** | > | - | - | > |
  • Web
  • Mobile web
  • Android
  • iOS
| Available by default. No additional integration or permissions needed. | ## Supported Banks > [accordion] List of supported banks: > > > [!WARNING] > > > > **Watch Out!** > > > > Allahabad Bank netbanking is merged with Indian Bank, and both the bank codes are supported. > > | Sl. No. | Bank Code | Bank Name | > | - | - | - | > | 1 | AIRP | Airtel Payments Bank | > | 2 | ALLA | Allahabad Bank | > | 3 | AUBL | AU Small Finance Bank | > | 4 | BARB\_R | Bank of Baroda - Retail Banking | > | 5 | BBKM | Bank of Bahrain and Kuwait | > | 6 | BDBL | Bandhan Bank | > | 7 | BKDN | Dena Bank | > | 8 | BKID | Bank of India - Retail Banking | > | 9 | CBIN | Central Bank of India | > | 10 | CIUB | City Union Bank | > | 11 | CNRB | Canara Bank | > | 12 | CORP | Corporation Bank | > | 13 | COSB | Cosmos Co-operative Bank | > | 14 | CSBK | Catholic Syrian Bank | > | 15 | DBSS | Development Bank of Singapore | > | 16 | DCBL | DCB Bank | > | 17 | DEUT | Deutsche Bank | > | 18 | DLXB | Dhanlaxmi Bank | > | 19 | ESAF | ESAF Small Finance Bank | > | 20 | ESFB | Equitas Small Finance Bank | > | 21 | FDRL | Federal Bank | > | 22 | HDFC | HDFC Bank | > | 23 | HSBC | HSBC | > | 24 | IBKL | IDBI | > | 25 | ICIC | ICICI Bank | > | 26 | IDFB | IDFC FIRST Bank | > | 27 | IDIB | Indian Bank | > | 28 | INDB | Indusind Bank | > | 29 | IOBA | Indian Overseas Bank | > | 30 | JAKA | Jammu and Kashmir Bank | > | 31 | JSBP | Janata Sahakari Bank (Pune) | > | 32 | JSFB | Jana Small Finance Bank | > | 33 | KARB | Karnataka Bank | > | 34 | KCCB | The Kalupur Commercial Co-Operative Bank | > | 35 | KJSB | Kalyan Janata Sahakari Bank | > | 36 | KKBK | Kotak Mahindra Bank | > | 37 | KVBL | Karur Vysya Bank | > | 38 | LAVB\_R | Lakshmi Vilas Bank - Retail Banking | > | 39 | MAHB | Bank of Maharashtra | > | 40 | MSNU | Mehsana Urban Bank | > | 41 | NESF | North East Small Finance Bank | > | 42 | NKGS | NKGSB Co-operative Bank | > | 43 | NSPB | NSDL Payments Bank | > | 44 | ORBC | Oriental Bank of Commerce | > | 45 | PMCB | Punjab & Maharashtra Co-operative Bank | > | 46 | PSIB | Punjab & Sind Bank | > | 47 | PUNB\_R | Punjab National Bank - Retail Banking | > | 48 | RATN | RBL Bank | > | 49 | SRCB | Saraswat Co-operative Bank | > | 50 | SBBJ | State Bank of Bikaner and Jaipur | > | 51 | SBHY | State Bank of Hyderabad | > | 52 | SBIN | State Bank of India | > | 53 | SBMY | State Bank of Mysore | > | 54 | SBTR | State Bank of Travancore | > | 55 | SCBL | Standard Chartered Bank | > | 56 | SIBL | South Indian Bank | > | 57 | STBP | State Bank of Patiala | > | 58 | SURY | Suryoday Small Finance Bank | > | 59 | SVCB | Shamrao Vithal Co-operative Bank | > | 60 | SYNB | Syndicate Bank | > | 61 | TJSB | Thane Janata Sahakari Bank | > | 62 | TMBL | Tamilnadu Mercantile Bank | > | 63 | TNSC | Tamilnadu State Apex Co-operative Bank | > | 64 | UBIN | Union Bank of India | > | 65 | UCBA | UCO Bank | > | 66 | UTBI | United Bank of India | > | 67 | UTIB | Axis Bank | > | 68 | VARA | Varachha Co-operative Bank Limited | > | 69 | YESB | Yes Bank | ## Fetch Supported Methods Use the below endpoint to fetch a list of banks Razorpay supports for netbanking payments: `GET /methods` > [!WARNING] > > **Watch Out!** > > To fire this API, provide your \[KEY\_ID] for authorization. Your `` is **NOT** required and should **NOT** be passed. ```bash Request theme={null} curl -u [YOUR_KEY_ID] \ -X GET https://api.razorpay.com/v1/methods ``` ```json Response theme={null} { "entity": "methods", ... ... ... "netbanking": { "AUBL": "AU Small Finance Bank", "AIRP": "Airtel Payments Bank", "ALLA": "Allahabad Bank", "ANDB": "Andhra Bank", "ANDB_C": "Andhra Bank - Corporate Banking", "UTIB": "Axis Bank", "BDBL": "Bandhan Bank", "BBKM": "Bank of Bahrein and Kuwait", "BARB_R": "Bank of Baroda - Retail Banking", "BKID": "Bank of India", "MAHB": "Bank of Maharashtra", "BACB": "Bassein Catholic Co-operative Bank", "CNRB": "Canara Bank", "CSBK": "Catholic Syrian Bank", "CBIN": "Central Bank of India", "CIUB": "City Union Bank", "COSB": "Cosmos Co-operative Bank", "DCBL": "DCB Bank", "BKDN": "Dena Bank", "DEUT": "Deutsche Bank", "DBSS": "Development Bank of Singapore", "DLXB": "Dhanlaxmi Bank", "DLXB_C": "Dhanlaxmi Bank - Corporate Banking", "ESAF": "ESAF Small Finance Bank", "ESFB": "Equitas Small Finance Bank", "FDRL": "Federal Bank", "FSFB": "Fincare Small Finance Bank", "HDFC": "HDFC Bank", "ICIC": "ICICI Bank", "IBKL": "IDBI", "IBKL_C": "IDBI - Corporate Banking", "IDFB": "IDFC FIRST Bank", "IDIB": "Indian Bank", "IOBA": "Indian Overseas Bank", "INDB": "Indusind Bank", "JAKA": "Jammu and Kashmir Bank", "JSFB": "Jana Small Finance Bank", "JSBP": "Janata Sahakari Bank (Pune)", "KCCB": "Kalupur Commercial Co-operative Bank", "KJSB": "Kalyan Janata Sahakari Bank", "KARB": "Karnataka Bank", "KVBL": "Karur Vysya Bank", "KKBK": "Kotak Mahindra Bank", "LAVB_C": "Lakshmi Vilas Bank - Corporate Banking", "LAVB_R": "Lakshmi Vilas Bank - Retail Banking", "MSNU": "Mehsana Urban Co-operative Bank", "NKGS": "NKGSB Co-operative Bank", "NESF": "North East Small Finance Bank", "ORBC": "PNB (Erstwhile-Oriental Bank of Commerce)", "UTBI": "PNB (Erstwhile-United Bank of India)", "PSIB": "Punjab & Sind Bank", "PUNB_R": "Punjab National Bank - Retail Banking", "RATN": "RBL Bank", "RATN_C": "RBL Bank - Corporate Banking", "SRCB": "Saraswat Co-operative Bank", "SVCB_C": "Shamrao Vithal Bank - Corporate Banking", "SVCB": "Shamrao Vithal Co-operative Bank", "SIBL": "South Indian Bank", "SCBL": "Standard Chartered Bank", "SBBJ": "State Bank of Bikaner and Jaipur", "SBHY": "State Bank of Hyderabad", "SBIN": "State Bank of India", "SBMY": "State Bank of Mysore", "STBP": "State Bank of Patiala", "SBTR": "State Bank of Travancore", "SURY": "Suryoday Small Finance Bank", "SYNB": "Syndicate Bank", "TMBL": "Tamilnadu Mercantile Bank", "TNSC": "Tamilnadu State Apex Co-operative Bank", "TBSB": "Thane Bharat Sahakari Bank", "TJSB": "Thane Janata Sahakari Bank", "UCBA": "UCO Bank", "UBIN": "Union Bank of India", "CORP": "Union Bank of India (Erstwhile Corporation Bank)", "VARA": "Varachha Co-operative Bank", "YESB": "Yes Bank", "YESB_C": "Yes Bank - Corporate Banking", "ZCBL": "Zoroastrian Co-operative Bank" }, ... ... ... } ``` ## Third-Party Validation (TPV) Use Third-Party Validation if your business model requires customers to register a bank account and use the registered account to make payments. * [Third-Party Validation document](/docs/payments/third-party-validation) * [List of banks that support TPV](/docs/payments/third-party-validation/bank-list) # Pay Later Source: https://razorpay.com/docs/payments/payment-methods/pay-later Offer Pay Later (Buy Now, Pay Later) payment method at Razorpay Checkout. Check providers and payment flow. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Pay Later Changelog](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to Pay Later (since Jan 2024). Accept payments from your customers using the **Pay Later** service offered by various third-party providers. * Know about [how to enable/disable Pay Later](/docs/payments/dashboard/account-settings/payment-methods#request-payment-methods) as a payment method for your account. * No additional integration is required to show Pay Later on your Standard Checkout integration. > [!WARNING] > > **Watch Out!** > > Instant Refunds are not supported on EMI, Cardless EMI and Pay Later. ## How it Works Based on the concept [Buy Now, Pay Later](https://en.wikipedia.org/wiki/Buy_now,_pay_later): 1. The customers get a running line of credit by registering with any providers. 2. When customers buy goods or services on your website or apps, no money is debited from their accounts. 3. You receive the payments from their providers. 4. The customer pays back to the provider as per the fixed schedule defined by the provider. **At Razorpay Checkout:** 1. At the Checkout, customers enter their contact details and from the displayed list of **Pay Later** providers, customers select their preferred provider. ![Pay Later payment method on Checkout screen](https://razorpay.com/docs/build/browser/assets/images/pm-paylater-checkout.jpg) 2. Customers authorise their accounts via the OTP sent to their registered phone numbers. 3. Payment is completed after successful validation. ## Supported Pay Later Providers | **Provider name** | **Provider Code** | | - | - | | LazyPay | `lazypay` | | PayPal | `paypal` | > [!NOTE] > > **Handy Tips** > > * PayPal now supports the Pay Later feature. You should enable both [PayPal](/docs/payments/payment-methods/wallets/paypal#to-enable-paypal) and the Pay Later options under Account & Settings โ†’ Pay Later (under Payment methods) on the Dashboard to enable the Pay Later feature. > * Check the standard interest rates charged by [Pay Later providers](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged). # Sodexo Source: https://razorpay.com/docs/payments/payment-methods/sodexo Accept payments using Sodexo meal cards for food and beverage orders. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Accept payments using Sodexo meal cards for food and beverage purchases with Razorpay Optimizer. By incorporating Sodexo meal card payments, businesses can offer customers a seamless and familiar payment experience, expanding the range of payment options available for food and beverage purchases. ![sodexo checkout](https://razorpay.com/docs/build/browser/assets/images/sodexo-checkout.jpg) ## Add Sodexo as a Payment Method > [!NOTE] > > **Handy Tips** > > Sodexo integration is supported on all checkout types: [standard](/docs/payments/payment-gateway/web-integration/standard), [custom](/docs/payments/payment-gateway/web-integration/custom), and [server-to-server (S2S)](/docs/payments/payment-gateway/s2s-integration). Follow the steps given below on the Razorpay Dashboard: > [accordion] Step 1: Enable Optimizer and Add PayU as Payment Provider > > 1. Enable [Optimizer](/docs/payments/optimizer) on your Razorpay account. > 2. Log in to the Dashboard and navigate to **Optimizer**. > 3. [Add PayU as a payment provider](/docs/payments/optimizer/payu-instant#add-payu-as-a-payment-provider). > 4. Select `card` and `sodexo` payment methods and submit. > > ![Add Salt Key sodexo](https://razorpay.com/docs/build/browser/assets/images/add-key-salt-new-payu-sodexo.jpg) > [accordion] Step 2: Configure Sodexo as a Payment Method > > 1. On the Razorpay Dashboard, navigate to **Account & Settings**. > 2. Select **Sodexo** from the list of payment methods and click **Request**. Know more about [how to request for a payment method](/docs/payments/dashboard/account-settings/payment-methods#request-payment-methods). > > ![sodexo request](https://razorpay.com/docs/build/browser/assets/images/sodexo-request.jpg) > > After the completion of the above steps, Sodexo appears on the Razorpay Checkout. # Tabby โ€” BNPL Payment Method for UAE Customers Source: https://razorpay.com/docs/payments/payment-methods/tabby Accept BNPL payments from UAE customers via Tabby Pay on Razorpay Standard Checkout. Split purchases into 4 interest-free AED payments or pay over time for up to 12 months. Tabby is the leading Buy Now, Pay Later (BNPL) platform in the UAE and KSA. Enabling Tabby at checkout enables UAE customers to split their purchase into 4 interest-free payments or up to 12 months, for cart values over AED 2,000 with no late fees or interest, using a payment method they already know and trust. Razorpay manages the end-to-end integration with Tabby. No separate contract with Tabby is required. > [!NOTE] > > **Handy Tips** > > * Pay Later (Short Term Credit) is provided by Tabby LLC. Terms and conditions apply. Visit [tabby.ai](https://tabby.ai) for more information. > * Tabby is currently available for **UAE** customers. Saudi Arabia support is coming soon. > * Razorpay's [pay in native currency](/docs/payments/payment-methods/cards/dynamic-currency-conversion/) feature ensures your UAE customer sees the amount in AED at checkout. ## Advantages Merchants who enable Tabby report measurable uplift across key checkout metrics: * **Higher Conversion Rate**: Customers who see BNPL at checkout are more likely to complete the purchase. * **Reduced Card Abandonment**: When your customer sees Tabby at checkout, they likely already have an account and can complete payment in under 60 seconds. * **Flexible Order Value Range**: Tabby can be used by your customers for a wide range of order values for a single order, depending on merchant category. For additional limits, please contact your Account Manager or [Razorpay Support](https://razorpay.com/support/). ## Prerequisites Before enabling Tabby, ensure the following: * Active Razorpay account with **International Payments** enabled. * **KYB (Know Your Business)** verification completed on the Razorpay Dashboard. * You are a **PFB (Platform Fee Bearer)** merchant. This means Razorpay's platform fees are borne by you (the merchant), not passed to the customer. > [!NOTE] > > **Handy Tips** > > Merchants onboarded to Razorpay after January 2026 do not need to complete a separate KYB verification as your existing onboarding covers it. You just have to activate it on your Razorpay Dashboard. ## Restricted Categories Tabby is not available for the following merchant categories. If your MCC falls in a restricted category, Tabby will not appear for activation on your Dashboard. | Restricted Category | Examples | | - | - | | Gambling, Betting | Online casinos, sports betting, lotteries | | Adult Content | Adult entertainment, dating services | | Tobacco, Vaping | Cigarettes, e-cigarettes, vape products | | Weapons, Ammunition | Firearms, knives, ammunition | | Cryptocurrency | Crypto exchanges, NFT platforms, token sales | ## How to Enable Tabby Tabby is activated via self-serve on the Razorpay Dashboard. 1. Log in to the [Razorpay Dashboard](https://dashboard.razorpay.com). 2. Navigate to **Settings โ†’ Payment Methods โ†’ International**. 3. Locate the **Tabby** row and click **Enable**. 4. Complete KYB verification if prompted. 5. Once approved, Tabby appears automatically in your checkout for eligible UAE customers. > [!NOTE] > > **Handy Tips** > > Approval typically takes up to one week. Track your activation status on the same Dashboard page. ## Customer Eligibility Tabby appears at checkout only when the customer meets all of the following conditions: * Customers must have a UAE mobile number (+971) and pass Tabby's eligibility check. * Wide range of order values range based on merchant category. Customers will pay in AED only. * Real-time eligibility check by Tabby, instant and invisible to the customer. ## How It Works Tabby works like any other payment method on Razorpay Checkout: 1. [Create Order](/docs/api/orders/create/) with the required details. 2. Customer provides details such as name, email, phone and shipping address. 3. Customer completes payment on Tabby. Customer is redirected to Tabby's secure page for OTP verification and approval (if details were not passed during the order creation). 4. Razorpay auto-captures the payment. You receive a `payment.captured` webhook. No manual action required. 5. Customer is redirected to your success or failure page. Order is confirmed. ![Tabby as a Payment Method on Razorpay Checkout for UAE customers](https://mintlify.s3.us-west-1.amazonaws.com/razorpay-881012b3/assets/images/tabby-checkout.jpg) ## Create an Order for Tabby When creating a Razorpay order that may be paid via Tabby, pass buyer information, shipping address, and line item data in your order API call. Tabby uses this data for real-time credit scoring. The more complete the data, the higher the approval rate. Parameters without the *optional* tag are mandatory. Optional parameters are recommended for higher approval rates. > [accordion] Order-Level Fields > > `amount` > : `integer` Order amount in paise (INR). Razorpay converts to AED at checkout. > > `currency` > : `string` The currency of the order. Razorpay automatically displays and collects the payment in AED on the checkout, converting at the time of the transaction. > [accordion] Buyer Fields > > Passed via `notes` or `customer_details` in the Order API. If missing, Razorpay collects these from the customer inline at checkout. > > `phone` > : `string` Customer phone with country code. For example, `+971501234567`. > > `name` *optional* > : `string` Customer full name. Recommended for higher approval rates. > > `email` *optional* > : `string` Customer email address. Recommended for higher approval rates. This information will be collected during checkout, if not passed here. > [accordion] Address Fields > > Passed via `customer_details`. For platform merchants (Shopify, Magento), plugin data is used as a fallback. > > `shipping_address.city` *optional* > : `string` Shipping city name. For example, `Dubai`. This information will be collected during checkout, if not passed here. > > `shipping_address.address` *optional* > : `string` Street address, building name, apartment number. > > `shipping_address.zip` *optional* > : `string` Postal or ZIP code. > > `billing_address` *optional* > : `object` Billing address (city, address, zip). This information will be collected during checkout, if not passed here. > > > [!NOTE] > > > > **Handy Tips** > > > > For orders with no physical shipping, pass a shipping address and set `is_virtual = true` on each line item. This signals to Tabby that the shipping address is a billing address. > [accordion] Line Items > > Passed via `line_items` in the Order API. > > > [!WARNING] > > > > **Watch Out!** > > > > Do not use the `products` section of the Orders API. > > `line_items[].name` *optional* > : `string` Product name or title. > > `line_items[].title` *optional* > : `string` Display title (can be the same as `name`). > > `line_items[].unit_price` *optional* > : `string` Unit price of the item. > > `line_items[].quantity` *optional* > : `integer` Quantity ordered. Must be โ‰ฅ 1. > > `line_items[].category` *optional* > : `string` Product category. For example, `Fashion` or `Electronics`. Used for risk scoring. > > `line_items[].product_id` *optional* > : `string` SKU or product reference id. ## Webhooks All Tabby payments are auto-captured. No manual capture step is required from your end. You receive standard Razorpay webhooks for each transaction. | Status | Description | Webhook Event | | - | - | - | | `captured` | Payment captured successfully. Settlement to follow. | `payment.captured` | | `failed` | Payment failed or customer rejected by Tabby. Alternate payment methods are shown. | `payment.failed` | | `refund.created` | Refund has been initiated. | `refund.created` | | `refund.processed` | Refund completed successfully. | `refund.processed` | Configure webhooks under **Dashboard โ†’ Settings โ†’ Webhooks**. The `method` field in webhook payloads will show `tabby`. ## Settlement Tabby payments are settled to your registered bank account on a **T+11 to T+13** cycle from the date of customer payment, in **INR**. You receive the full captured amount (minus applicable MDR) regardless of whether the customer completes all future payments. Tabby absorbs the instalment risk entirely. ## Refunds Both full and partial refunds are supported. Refunds are processed in INR. Refer to the table below to understand the refund rules. | Rule | Details | | - | - | | Time limit | Refunds must be initiated within 180 days from the original payment creation date. | | Minimum balance | Refunds are processed only when your running Tabby transaction volume exceeds the refund amount. If your Tabby balance is insufficient, the refund cannot be processed until new Tabby transactions bring the balance above the required amount. | | Full refund | Entire order amount is refunded after deducting the applicable charges levied by Tabby. Use for cancellations, defective items or incorrect products. | | Partial refund | A portion of the order is refunded after deducting the applicable charges levied by Tabby. Use for multi-item orders where some items are returned. | To process a refund: 1. Go to **Dashboard โ†’ Transactions** 2. Select the Tabby transaction 3. Click **Process Refund via Tabby**. > [!WARNING] > > **Watch Out!** > > If the refund amount exceeds your current running Tabby balance, the refund option will be greyed out. You will need to wait until transaction volume accumulates sufficiently before the refund can be processed. ## Testing 1. Switch to **Test Mode** in the Razorpay Dashboard. 2. Create a test order within the permitted amount range. 3. On the Checkout page, select **Tabby** and complete the test flow. 4. Verify the payment status via Dashboard and webhook. > [!NOTE] > > **Handy Tips** > > Test mode simulates both approved and rejected scenarios. Use the test phone numbers provided in the Dashboard to trigger specific outcomes. ## Frequently Asked Questions (FAQs) > [accordion] 1. Why is Tabby not showing in my checkout? > > Tabby appears only for eligible UAE customers (detected at Razorpay checkout) and within the supported order value range. Verify your Tabby activation status under **Settings โ†’ Payment Methods โ†’ International** on the Dashboard. > [accordion] 2. How is customer eligibility determined? > > Tabby runs a real-time scoring check using the customer's phone, email and device signals. This is invisible to the customer and takes under 2 seconds. If rejected, a generic message is shown and alternate payment methods are offered automatically. Passing more order details when creating the order significantly improves approval rates. > [accordion] 3. When do I get paid? > > Settlement follows a T+11 to T+13 cycle from the date of customer payment, in INR to your registered bank account. See [Settlement](#settlement) for details. > [accordion] 4. Why can't I process a refund? > > Refunds require that your running Tabby transaction volume exceeds the refund amount. If your current Tabby balance is insufficient, the refund option will not be available. Additionally, refunds must be initiated within 180 days of the payment creation date. See [Refunds](#refunds) for details. > [accordion] 5. Why was the customer rejected by Tabby? > > Tabby's underwriting is independent and specific rejection reasons are not shared with merchants. Razorpay shows a generic error and automatically offers alternate payment methods to the customer. > [accordion] 6. What if the customer does not complete all payments? > > Tabby absorbs 100% of the instalment risk. You receive the full captured amount (minus applicable MDR) regardless of whether the customer completes subsequent payments. # Transaction Limits for Payment Methods Source: https://razorpay.com/docs/payments/payment-methods/transaction-limits List of transaction limits for every payment method permitted on Razorpay. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Using Razorpay you can provide a host of payment methods to your customers to make payments. However, due to restrictions from banking partners, there are transaction limits for the different payment methods. ## Payment Methods and Transaction Limits The following table lists the various methods and the transaction limits: | Payment Method | Maximum Transaction Limit | | - | - | | Netbanking | โ‚น5,00,000 | | Cards | โ‚น5,00,000 | | UPI | โ‚น1,00,000 Know more about the [UPI transaction limits prescribed by different entities](/docs/payments/payment-methods/transaction-limits/upi). | | Wallets |
  • For non-KYC Merchants: โ‚น10,000
  • For KYC Merchants: โ‚น1,00,000
| | Pay Later |
  • ICICI Bank PayLater: โ‚น30,000
  • GetSimpl: โ‚น30,000
  • FlexiPay by HDFC Bank: โ‚น60,000 (Minimum limit: โ‚น2,000)
| | PayPal | As per the limit of your verified PayPal account (this is usually USD 10,000 for the verified PayPal account). | > [!NOTE] > > **Handy Tips** > > You can increase the transaction limits by raising a request with our [support team](https://razorpay.com/support/). # UPI Transaction Limits Source: https://razorpay.com/docs/payments/payment-methods/transaction-limits/upi Check the UPI transaction limits set by banks, NPCI, BHIM and other PSP Apps. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The UPI transaction limits prescribed by banks, NPCI and PSP Apps are provided in the following sections. ## NPCI Prescribed Transaction Limits for Merchant Categories The following table lists the transaction limit for different merchant categories as per NPCI: | Merchant Categories | Transaction Limits (โ‚น) | | - | - | | P2M Transactions | 1,00,000 | | BFSI | 2,00,000 | | Non-verified merchants | Collect payments up to 2,000 | | MCC 6211 for IPO and purchase of G-Sec through RBI Retail Direct Scheme (RDS) | 5,00,000 | | Healthcare | 5,00,000 | | Education | 5,00,000 | ## Limit Set by PSP Apps Usually, most of the PSP apps allow daily payments of up to โ‚น1,00,000 or a maximum of 10 transactions per day. ### Limit Set by BHIM App The following table lists the transaction limit set by the BHIM app: | Transactions | Per Transaction Limit (โ‚น) | | - | - | | P2P | 40,000 | | P2M Verified | 1,00,000 | | P2M Non-verified | 40,000 | | Bill Pay | 20,000 | ## Other limits * To protect against fraud, some transactions might get flagged for further review by UPI apps or banks. * UPI apps have risk engines to flag and block transactions. * In addition, there is a [GPay transaction limit per day](https://razorpay.com/learn/gpay-transaction-limit/) depending on your bank. ## Bank Prescribed Limits The following table lists the List of banks with their UPI transaction limits: | S No | Bank Name | Bank Type | Sponsor Bank | UPI Transaction limit | UPI Daily Limit | | - | - | - | - | - | - | | 1 | Abhyudaya Co-operative Bank | Cooperative | NA | 5,000 | 25,000 | | 2 | Adarsh Co-op Bank Ltd | Cooperative | HDFC Bank | 50,000 | 50,000 | | 3 | Aditya Birla Idea Payments Bank | Payments Bank | NA | 1,00,000 | 1,00,000 | | 4 | Airtel Payments Bank | Payments Bank | NA | 1,00,000 | 1,00,000 | | 5 | Allahabad Bank | Public Sector Bank | NA | 25,000 | 1,00,000 | | 6 | Allahabad UP Gramin Bank | RRB | Allahabad Bank | 20,000 | 40,000 | | 7 | Andhra Bank Public | Sector Bank | NA | 1,00,000 | 1,00,000 | | 8 | Andhra Pradesh Grameena Vikas Bank | RRB | SBI | 25,000 | 1,00,000 | | 9 | Andhra Pragathi Grameena Bank | RRB | NA | 10,000 | 20,000 | | 10 | Apna Sahakari Bank | Cooperative | NA | 1,00,000 | 1,00,000 | | 11 | Assam Gramin Vikash Bank | RRB | United Bank of India | 5,000 | 25,000 | | 12 | Axis Bank | Private | NA | 1,00,000 | 1,00,000 | | 13 | Bandhan Bank | Private | NA | 1,00,000 | 1,00,000 | | 14 | Bank Of Baroda | Public Sector Bank | NA | 25,000 | Not set | | 15 | Bank Of India | Public Sector Bank | NA | 10,000 | 1,00,000 | | 16 | Bank of Maharashtra | Public Sector Bank | NA | 1,00,000 | 1,00,000 | | 17 | Baroda Gujarat Gramin Bank | RRB | Bank of Baroda | 25,000 | Not Set | | 18 | Baroda Rajasthan Kshetriya Gramin Bank | RRB | Bank of Baroda | 25,000 | 25,000 | | 19 | Baroda Uttar Pradesh Gramin Bank | RRB | Bank of Baroda | 25,000 | 25,000 | | 20 | Bassein Catholic Coop Bank | Cooperative | NA | 20,000 | 40,000 | | 21 | Bhilwara Urban Co operative Bank Ltd | Cooperative | HDFC | 5000 | 25000 | | 22 | Canara Bank | Public Sector Bank | NA | 10,000 | 25,000 | | 23 | Catholic Syrian Bank | Private | NA | 1,00,000 | 1,00,000 | | 24 | Central Bank of India | Public Sector Bank | NA | 25,000 | 50,000 | | 25 | Chaitanya Godavari Grameena Bank | RRB | Andhra Bank | 25,000 | 1,00,000 | | 26 | Chhattisgarh Rajya Gramin Bank | RRB | SBI | 25,000 | 1,00,000 | | 27 | Citibank Retail | Foreign Bank | NA | 1,00,000 | 1,00,000 | | 28 | City Union Bank | Private | NA | 1,00,000 | 1,00,000 | | 29 | Coastal Local Area Bank Ltd | Cooperative | BOM | 50,000 | 1,00,000 | | 30 | Corporation Bank | Public Sector Bank | NA | 50,000 | 1,00,000 | | 31 | DBS Digi Bank | Foreign Bank | NA | 1,00,000 | 1,00,000 | | 32 | DCB Bank | Private | NA | 5,000 | 5000 | | 33 | Dena Bank | Public Sector Bank | NA | 1,00,000 | 1,00,000 | | 34 | Deutsche Bank AG (Web Collect) | Foreign Bank | NA | NA | NA | | 35 | Dhanlaxmi Bank Ltd | Private | NA | 1,00,000 | 1,00,000 | | 36 | Dombivali Nagrik Sahakari Bank | Cooperative | NA | 1,00,000 | 1,00,000 | | 37 | Equitas Small Finance Bank | Small Finance Bank | NA | 25,000 | 1,00,000 | | 38 | ESAF Small Finance Bank | Small Finance Bank | NA | 1,00,000 | 1,00,000 | | 39 | Federal Bank | Private | NA | 1,00,000 | 1,00,000 | | 40 | FINO Payments Bank | Payments Bank | NA | 1,00,000 | 1,00,000 | | 41 | G P Parsik Bank | Cooperative | NA | 1,00,000 | 1,00,000 | | 42 | HDFC Bank | Private | NA | 1,00,000 | 1,00,000 | | 43 | Himachal Pradesh Gramin Bank | RRB | PNB | 50,000 | 50,000 | | 44 | HSBC | Foreign Bank | NA | 1,00,000 | 1,00,000 | | 45 | Hutatma Sahakari Bank Ltd | Cooperative | ICICI Bank | 1,00,000 | No limit | | 46 | ICICI Bank | Private | NA | 10,000 (25000 for Google Pay users) | 10000 (25000 for Google Pay users) | | 47 | IDBI Bank | Public Sector Bank | NA | 25,000 | 50,000 | | 48 | IDFC First Bank | Private | NA | 1,00,000 | 1,00,000 | | 49 | India Post Payment Bank | Payments Bank | NA | 25,000 | 50,000 | | 50 | Indian Bank | Public Sector Bank | NA | 1,00,000 | 1,00,000 | | 51 | Indian Overseas Bank | Public Sector Bank | NA | 10,000 | 20,000 | | 52 | IndusInd Bank | Private | NA | 1,00,000 | 1,00,000 | | 53 | J\&K Grameen Bank | RRB | Jammu & Kashmir Bank | 20,000 | 20,000 | | 54 | Jalgaona Janata Sahkari Bank | Cooperative | NA | 1,00,000 | 1,00,000 | | 55 | Jammu & Kashmir Bank | Private | NA | 20,000 | 20,000 | | 56 | Jana Small Finance Bank | Small Finance Bank | NA | 10,000 | 40,000 | | 57 | Janta Sahakari Bank Pune | Cooperative | NA | 1,00,000 | 1,00,000 | | 58 | Jio Payments Bank | Payments Bank | NA | 1,00,000 | 1,00,000 | | 59 | Kallappanna Awade Ichalkaranji Janata Sahakari Bank Ltd. | Cooperative | NA | 25,000 | 2,00,000 | | 60 | Karnataka Bank | Private | NA | 1,00,000 | 2,00,000 | | 61 | Karnataka Vikas Gramin Bank | RRB | NA | 25,000 | 25,000 | | 62 | Karur Vysaya Bank | Private | NA | 1,00,000 | 1,00,000 | | 63 | Kashi Gomti Samyut Gramin Bank | RRB | NA | 1,00,000 | 1,00,000 | | 64 | Kaveri Grameena Bank | RRB | SBI | 25,000 | 25,000 | | 65 | Kerala Gramin Bank | RRB | NA | 20,000 | 20,000 | | 66 | Kotak Mahindra Bank | Private | NA | 1,00,000 | 1,00,000 | | 67 | Langpi Dehangi Rural Bank | RRB | SBI | 10,000 | 1,00,000 | | 68 | Madhya Bihar Gramin Bank | RRB | PNB | 25,000 | 1,00,000 | | 69 | Maharashtra Grameen Bank | RRB | BOM | 25,000 | 1,00,000 | | 70 | Maharashtra State Cooperative Bank | Cooperative | NA | 5,000 | 50,000 | | 71 | Malwa Gramin Bank (Merged with Punjab Gramin Bank) | RRB | SBI | 10,000 | 25,000 | | 72 | Manipur Rural Bank | RRB | SBI | 10,000 | 10,000 | | 73 | Maratha Cooperative Bank | Cooperative | NA | 1,00,000 | 1,00,000 | | 74 | Meghalaya Rural Bank | Foreign Bank | SBI | 1,00,000 | 1,00,000 | | 75 | Mizoram Rural Bank | RRB | SBI | 25,000 | 1,00,000 | | 76 | NKGSB Co-op. Bank Ltd. | Cooperative | NA | 20,000 | 40,000 | | 78 | Oriental Bank of Commerce | Public Sector Bank | NA | 1,00,000 | 1,00,000 | | 79 | Paschim Banga Gramin Bank | RRB | UCO | 5,000 | 25,000 | | 80 | Paytm Payments Bank | Payments Bank | NA | 1,00,000 | 1,00,000 | | 81 | Pragathi Krishna Gramin Bank | RRB | NA | 20,000 | 20,000 | | 82 | Prathama U.P. Gramin Bank | RRB | NA | 10,000 | 50,000 | | 83 | Punjab and Maharastra Coop Bank | Cooperative | NA | 1,00,000 | 1,00,000 | | 84 | Punjab and Sind Bank | Public Sector Bank | NA | 10,000 | 10,000 | | 85 | Punjab Gramin Bank | RRB | PNB | 10,000 | 25,000 | | 86 | Punjab National Bank | Public Sector Bank | NA | 25,000 | 50,000 | | 87 | Purvanchal Bank | RRB | SBI | 25,000 | 1,00,000 | | 88 | Rajasthan Marudhara Gramin Bank | RRB | SBI | 25,000 | 25,000 | | 89 | Rajkot Nagari Sahakari Bank Ltd | Cooperative | NA | 1,00,000 | 1,00,000 | | 90 | Samruddhi Co-op Bank Ltd | Cooperative | TJSB | 1,00,000 | 1,00,000 | | 91 | Sarva Haryana Gramin Bank | RRB | PNB | 50,000 | 1,00,000 | | 92 | Sarva UP Gramin Bank | RRB | PNB | 50,000 | 1,00,000 | | 93 | Saurashtra Gramin Bank | RRB | SBI | 20,000 | 1,00,000 | | 94 | Shree Kadi Nagarik Sahakari Bank Ltd. | Cooperative | Yes Bank | 1,00,000 | 1,00,000 | | 95 | South Indian Bank | Private | NA | 1,00,000 | 1,00,000 | | 96 | Standard Chartered | Foreign Bank | NA | 1,00,000 | 1,00,000 | | 97 | State Bank Of India | Public Sector Bank | NA | 1,00,000 | 1,00,000 | | 98 | Suco Souharda Sahakari Bank | Cooperative | ICICI Bank | 1,00,000 | 1,00,000 | | 99 | Suryoday Small Finance Bank Ltd | Small Finance Bank | NA | 1,00,000 | 1,00,000 | | 100 | Suvarnayug Sahakari Bank Ltd | Cooperative | HDFC | 1,00,000 | 1,00,000 | | 101 | Syndicate Bank | Public Sector Bank | NA | 10,000 | 1,00,000 | | 102 | Tamilnadu Mercantile Bank | Private | NA | 20,000 | 1,00,000 | | 103 | Telangana Gramin Bank | RRB | SBI | 25,000 | 1,00,000 | | 104 | Telangana State Co Operative Apex Bank | Cooperative | IDBI | 10,000 | 1,00,000 | | 105 | Thane Bharat Sahakari Bank | Cooperative | NA | 1,00,000 | 1,00,000 | | 106 | The Cosmos Co-Operative Bank Ltd | Cooperative | NA | 10,000 | 50,000 | | 107 | The A.P. Mahesh Co-Operative Urban Bank | Cooperative | NA | 25,000 | 25,000 | | 108 | The Ahmedabad District Co-operative Bank Ltd | Cooperative | GSCB | 10,000 | 25,000 | | 109 | The Ahmedabad Mercantile Co-op Bank Ltd | Cooperative | HDFC Bank | 1,00,000 | 1,00,000 | | 110 | The Andhra Pradesh State Cooperative | Cooperative | NA | 10,000 | 1,00,000 | | 111 | The Baroda Central Co-operative Bank Ltd. | Cooperative | GSCB | 15,000 | 1,00,000 | | 112 | The Gujarat State Co-operative Bank Limited | Cooperative | NA | 50,000 | 1,00,000 | | 113 | The Hasti Co-operative Bank Ltd | Cooperative | NA | 1,00,000 | 1,00,000 | | 114 | The Kalyan Janta Sahkari Bank | Cooperative | NA | 1,00,000 | 1,00,000 | | 115 | The Lakshmi Vilas Bank Limited | Private | NA | 1,00,000 | 1,00,000 | | 116 | The Mahanagar Co-Op. Bank Ltd | Cooperative | NA | 25,000 | 50,000 | | 117 | The Malad Sahakari Bank Ltd. | Cooperative | PMCO | 10,000 | 50,000 | | 118 | The Mehsana Urban Co-Operative Bank | Cooperative | NA | 1,00,000 | 1,00,000 | | 119 | The Municipal Co-op Bank Ltd. | Cooperative | NA | 5,000 | 50,000 | | 120 | The Muslim Co-Operative Bank Ltd | Cooperative | HDFC | 1,00,000 | 1,00,000 | | 121 | The Nainital Bank Ltd | Private | NA | 20,000 | 40,000 | | 122 | The Ratnakar Bank Limited | Private | NA | 25,000 | 25,000 | | 123 | The Saraswat Co-Operative Bank | Cooperative | NA | 1,00,000 | 1,00,000 | | 124 | The Surat Peoples Co Op. Bank Ltd | Cooperative | NA | 25,000 | 1,00,000 | | 125 | The Sutex Co-op Bank | Cooperative | ICICI Bank | 1,00,000 | 1,00,000 | | 126 | The SVC Co-Operative Bank Ltd | Cooperative | NA | 10,000 | 20,000 | | 127 | The Thane Janta Sahakari Bank Ltd | Cooperative | NA | 1,00,000 | 1,00,000 | | 128 | The Udaipur Mahila Samridhi Urban Co-op Bank Ltd | Cooperative | ICICI Bank | 1,00,000 | 1,00,000 | | 129 | The Udaipur Mahila Urban Co-op Bank Ltd | Cooperative | NA | 1,00,000 | 1,00,000 | | 130 | The Urban Cooperative Bank Ltd Dharangaon | Cooperative | ICICI Bank | 20,000 | 25,000 | | 131 | The Varachha Co-op Bank Ltd. | Cooperative | NA | 20,000 | 40,000 | | 132 | The Vijay Cooperative Bank Ltd | Cooperative | ICIC Bank | 20,000 | 2,00,000 | | 133 | The Vishweshwar Sahakari Bank Ltd | Cooperative | NA | 1,00,000 | 1,00,000 | | 134 | Tripura Gramin Bank | RRB | SBI | 10,000 | 10,000 | | 135 | UCO Bank | Public Sector Bank | NA | 1,00,000 | 1,00,000 | | 136 | Ujjivan Small Finance Bank Limited | Small Finance Bank | NA | 50,000 | 1,00,000 | | 137 | Union Bank of India | Public Sector Bank | NA | 1,00,000 | 2,00,000 | | 138 | United Bank of India | Public Sector Bank | NA | 25,000 | 60,000 | | 139 | Uttarakhand Gramin Bank | RRB | SBI | 25,000 | 1,00,000 | | 140 | Vananchal Gramin Bank | RRB | SBI | 20,000 | 20,000 | | 141 | Vasai Vikas Co-op Bank Ltd | Cooperative | NA | 1,00,000 | 1,00,000 | | 142 | Vijaya Bank | Public Sector Bank | NA | 25,000 | 50,000 | | 143 | Yes Bank | Private | NA | 1,00,000 | 1,00,000 | # About UPI Source: https://razorpay.com/docs/payments/payment-methods/upi Accept payments by enabling various UPI apps at Razorpay Checkout. Check all the supported UPI integrations. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India UPI checkout is a smooth payment experience for users as compared to other payment modes, thus provides higher transaction success rates for your business. Razorpay supports multiple [third-party apps](https://www.npci.org.in/what-we-do/upi/3rd-party-apps) and has direct integration with [Google Pay.](/docs/payments/payment-methods/upi/google-pay) Check the UPI payment flow and the various UPI integrations available with Razorpay. > [!WARNING] > > **UPI Collect Flow Deprecated** > > According to NPCI guidelines, the UPI Collect flow is being deprecated effective 28 February 2026. Customers can no longer make payments or register UPI mandates by manually entering VPA/UPI id/mobile numbers. > > **Exemptions:** UPI Collect will continue to be supported for: > > * MCC 6012 & 6211 (IPO and secondary market transactions). > * iOS mobile app and mobile web transactions. > * UPI Mandates (execute/modify/revoke operations only) > * eRupi vouchers. > * PACB businesses (cross-border/international payments). > > **Action Required:** > > * If you are a new Razorpay user, use [UPI Intent](/docs/payments/payment-methods/upi/upi-intent). > * If you are an existing Razorpay user not covered by exemptions, you must migrate to UPI Intent or UPI QR code to continue accepting UPI payments. For detailed migration steps, refer to the [migration documentation](/docs/announcements/upi-collect-migration/standard-integration). ## Special Onboarding Requirements for SEBI-Registered Intermediaries (MCC 6211) If your business is classified under **Merchant Category Code 6211 (Securities Brokers/Dealers)** and is a **SEBI-registered intermediary** (including Stockbrokers, Mutual Funds, PMS providers and so on), you must adhere to a special regulatory mandate for UPI collection, effective **October 1, 2025**. **UPI Identifier Requirements** * Businesses must **use a standardised UPI identifier** as mandated by SEBI for all registered intermediaries. * The identifier must incorporate the `@validbankpsp` handle. For example, `@validhdfc` or `@validicici`. * This specific `@validbankpsp` handle can only be allocated by a **Self-Certified Syndicate Bank (SCSB)**. * The allocation by the SCSB must follow a prescribed validation process. > [accordion] List of Self-Certified Syndicate Banks Eligible to Issue UPI IDs > > 1. AU Small Finance Bank > 2. Axis Bank > 3. Bandhan Bank > 4. Bank of Baroda > 5. Bank of India > 6. Bank of Maharashtra > 7. Canara Bank > 8. Central Bank of India > 9. Citibank N.A > 10. City Union Bank > 11. DBS Bank India Limited > 12. DCB Bank > 13. Deustche Bank > 14. Dhanlaxmi Bank Limited > 15. Equitas Small Finance Bank > 16. GP Parsik Sahakari Bank Limited > 17. HDFC Bank Limited > 18. HSBC Bank > 19. ICICI Bank > 20. IDBI Bank Limited > 21. IDFC FIRST Bank > 22. Indian Bank > 23. Indian Overseas Bank > 24. IndusInd Bank > 25. Jana Small Finance Bank Limited > 26. Janata Sahakari Bank Limited > 27. Karnataka Bank Limited > 28. Karur Vysya Bank Limited > 29. Kotak Mahindra Bank > 30. Nutan Nagarik Sahakari Bank Limited > 31. Punjab & Sind Bank > 32. Punjab National Bank > 33. Rajkot Nagarik Sahakari Bank Limited > 34. RBL BANK > 35. Saraswat Co-operative Bank Limited > 36. South Indian Bank > 37. Standard Chartered Bank > 38. State Bank of India > 39. SVC Co-operative Bank Limited > 40. Tamilnad Mercantile Bank > 41. The Ahmedabad Mercantile Co-operative Bank Limited > 42. The Catholic Syrian Bank Limited > 43. The Federal Bank Limited > 44. The Jammu & Kashmir Bank Ltd > 45. The Kalupur Commercial Co-operative Bank Limited > 46. The Mehsana Urban Co-operative Bank Limited > 47. The Surat People's Co-op Bank Limited > 48. TJSB Sahakari Bank Limited > 49. UCO Bank > 50. Union Bank of India > 51. Utkarsh Small Finance Bank Limited > 52. Yes Bank ### Get Standardised UPI Address Follow the steps to successfully create your new UPI id. > [accordion] Step 1: Request Your `@valid` UPI ID (Mandatory Action on SI Portal) > > The standard Razorpay terminal request is **not supported**. All `@valid` UPI IDs must be requested and approved through the **SEBI Intermediary Portal (SI Portal)**. > > 1. Log in to the [SEBI Intermediary Portal](https://siportal.sebi.gov.in/intermediary/index.html) using your credentials. > 2. From the dropdown menu, navigate to: **Entity Category โ†’ @valid UPI ID Request โ†’ UPI Request Portal**. > 3. Click **Request New UPI IDs** or **View All Requests**. > 4. Click **Add new UPI ID**. > > Please determine your settlement model and bank account as a next step, before you continue to fill the form. > [accordion] Step 2: Determine Your Settlement Model and Bank Account > > Your VPA creation and required bank accounts depend on how the funds are settled. You must create separate VPAs for **One-Time** and **Autopay** transactions, using **RZP1** and **RZP2** respectively. > > > [accordion] Model I: Settlement to the Intermediary (Broking, AMC, PMS) > > > > Funds settle directly into your entity's bank account. > > > > **Requirement**: You must use your own bank account that resides within the chosen PSP Bank. If you choose `@validhdfc`, you must use an **HDFC Bank account**. If you do not have an account, you must open one. > > > > **VPA Format Examples**: > > > > * **One-Time**: `mfhouse.rzp1.mf@validhdfc` > > * **Autopay**: `mfhouse.rzp2.mf@validhdfc` > > > [accordion] Model II: Settlement to the Clearing Corporation (Broking for Mutual Funds/Bonds) > > > > Funds settle into the bank account of a Clearing Corporation (**ICCL / NCL**). > > > > **Requirement**: You must use the specific Bank Account Number and IFSC provided by Razorpay that corresponds to the respective Clearing Corporation (ICCL or NCL) and PSP Bank (**ICICI/Axis/HDFC**). > > > > **VPA Format Examples**: > > > > * **MF Broker (ICCL)**: `mfbroker.icclrzp1.brk@validhdfc` > > * **Bond Broker (NCL)**: `bondsbroker.nsecbricsrzp1.brk@validhdfc` > [accordion] Step 3: Fill Form to Request Your `@valid` UPI ID on SI Portal > > 5. Under **Entity Information**, enter the following details: > * Entity Name > * Registration Number > * PAN > * Category Code > 6. Under **Legal Account Holder Name**, enter the following details: > * Legal Account Holder Name > > * Legal Account Holder PAN > > * Set up different legal account holder based on your model: > > > [accordion] For Model I users: > > > > If the funds are intended to settle directly into your own SEBI-registered entity's bank account (applicable for most Brokers, AMCs and PMS providers): > > > > 1. Set **Different Legal Account Holder?** to **No**. The system will automatically use your **Entity's Name** as the Legal Account Holder. > > 2. Proceed to enter your entity's bank account details (which must be with the chosen PSP Bank). > > > [accordion] For Model II users: > > > > If the funds are intended to settle into the bank account of a Clearing Corporation (applicable for intermediaries facilitating transactions settled via an exchange, such as Broking for Mutual Funds or Bonds): > > > > 3. Set **Different Legal Account Holder?** to **Yes**. > > 4. Select **Clearing Corporation**, under **Legal Account Holder Role**\*. > > 5. Select **NSE Clearing Limited** or **Indian Clearing Corporation Limited** (as applicable), under **Legal Account Holder Name**\*. > > 7. To use a registered Trade Name, set **Use Trade Name as Username:** to **Yes** and provide the **Trademark Registration Number**. > > The default username is based on your **Legal Entity Name**. > > 8. Under the **UPI Handle Request** section, fill up the below **Beneficiary Information**: > * Account Number > > * IFSC Code > > * Select the "**I confirm that Account Number: `123456789101112` and IFSC: `BANK123456` belongs to Gaurav (PAN: `ABCD123456`)**" checkbox. > > > [!NOTE] > > > > **Handy Tips** > > > > This account must correspond to the chosen **PSP Bank (Model I)** or the respective **Clearing Corporation (Model II)**. > > 9. Enter a **Username**. The system auto-generates a unique UPI Username based on your entity information. > > If the default name is not descriptive enough, click **Generate Longer** to add more words from your Entity Name. Click **Reset** to revert to the original system-generated name. > > 10. Add an **Optional Parameter**. Click **Enable** to add this field. This parameter is **mandatory** to ensure the VPA can be successfully mapped to your Razorpay account. > > The primary purpose of this identifier is to allow you to create multiple unique VPAs using the same base username and PSP handle. > > * **First VPA Request**: Use `RZP1` > * **Second VPA Request**: Use `RZP2` > * **Subsequent VPAs**: Use sequential identifiers as needed (for example, `RZP3`, `RZP4` and so on). > > Each UPI id you request must have a unique optional parameter for sequencing. > > **Example VPA Structure**: `[yourname].rzp1.[suffix]@valid[bank]` > > 11. The **Payment Service Provider (PSP)** section determines which bank's `@valid` handle will be used in your UPI id (for example, `@validhdfc`). > > * The system automatically selects the bank that holds the **Beneficiary Bank Account** you provided (based on the IFSC). The dropdown will then only display the corresponding `@valid` handles from that bank. > > * To use a PSP different from your bank account's bank, set **Do you wish to use beneficiary's bank as PSP?** option to **No**. > > * Then, select the desired **Bank Name** from the new options and choose the suitable `@valid` **UPI Handle**. > > > [!NOTE] > > > > **Handy Tips** > > > > If your preferred PSP is not listed, you must check with your bank as this indicates a configuration issue or restriction. > > 12. Click **Add Record**. A record of your UPI handle request will be created. > 13. To submit your UPI handle request, go to **View All Requests** โ†’ click **Submit UPI Handle Request**. > > Once submitted, the request goes to the selected **Self-Certified Syndicate Bank (PSP)** for due diligence and document verification before approving the UPI id on the SI Portal. > [accordion] Step 4: Final Submission to Razorpay for Mapping > > After the bank confirms the UPI id allocation, you must share the final, approved VPA details with the [Razorpay support team](https://razorpay.com/support/) to link it to your Payment Gateway MIDs. > > 14. **Share the approved VPA(s)**, corresponding Bank Account, IFSC, Account Holder Name and the Razorpay Merchant IDs (MIDs) that need to be mapped. > 15. **Submit bank-specific documents** (as part of the bank's due diligence): > > | **PSP Bank** | **Required Documentation** | > | - | - | > | **Axis Bank** | Only the VPA details are required. Razorpay will reach out if the bank needs additional documentation. | > | **HDFC Bank** | **Mandatory:** You must provide a screenshot of the SEBI Portal landing page, clearly displaying the approved Bank A/c, IFSC, UPI ID and UTN No. | > | **ICICI Bank** | You are required to complete and share the following directly with ICICI Bank:
  1. Parent MID Sheet
  2. UPI Merchant Onboarding Form
  3. Corporate API Suite (CAS)
  4. Technical Details to Include in Forms: Port, IP, URL
You are required to complete and share the **Parent MID Sheet** and the **UPI Merchant Onboarding Form** directly with ICICI Bank. | > > 16. **Wait for Review:** Our Operations Team will manually review your request, validate your SEBI registration and coordinate with the necessary banking partners for handle allocation. > > This manual process typically takes **5 to 7 business days** to complete. ## UPI Payment Flow Given below is the payment flow for UPI: ![Payment Flow for UPI](https://razorpay.com/docs/build/browser/assets/images/payment-flow-upi_collect.jpg) ## Collect Flow The Collect Flow works like this: 1. Customers enter their VPAs or mobile number linked to their UPI in the Checkout. 2. Open the respective UPI apps and complete the payment after 2-factor authentication (UPI PIN and MPIN are entered) on their mobile devices. 3. Customers are redirected to your website or app after successful payment. Watch the video to see how UPI collect flow works. ![Pay via UPI mobile number](https://razorpay.com/docs/build/browser/assets/images/upi-collect.gif) The customers must accept the request they receive on their UPI app to make the payment successfully. > [accordion] Supported Platforms, UPI Apps and Availability > > | **Supported Platforms** | **Supported UPI Apps** | **Availability** | > | - | - | - | > |
  • Web
  • Mobile web
  • Android
| [All](https://www.npci.org.in/what-we-do/upi/3rd-party-apps) | Available by default | ## Intent flow After customers select the UPI payment app on the Checkout, the app is launched automatically on their mobile devices. Customers need not enter VPA or phone number as these details are prefilled and submitted along with the other payment details. ![UPI Checkout with Intent Flow](https://razorpay.com/docs/build/browser/assets/images/pay-pm-upi-intent-android.gif) > [accordion] Supported Platforms, UPI Apps and Availability > > | **Supported Platforms** | **Supported UPI Apps** | **Availability** | > | - | - | - | > |
  • Mobile web
  • Android
  • iOS
|
  • PhonePe and GooglePay for Mobile-web on Google Chrome only
  • Paytm, PhonePe and GooglePay for Android and iOS
| Available by default | ## In-App Flow Turbo UPI by Razorpay is an in-app process that enables businesses to accept UPI payments from customers within their mobile applications. Customers no longer need to switch to third-party UPI apps to complete payments in this flow. This helps increase payment success rates and improves customer experience. Know more about [Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi). Given below is a sample UI representation: ![Turbo UPI Workflow Flow](https://razorpay.com/docs/build/browser/assets/images/upi-turbo-flow.gif) > [accordion] Supported Platforms, UPI Apps and Availability > > | **Supported Platforms** | **Supported UPI Apps** | **Availability** | > | - | - | - | > |
  • Android
  • iOS
| NA | Requires **Approval** (Reach out to support)
  • [**Android Custom Integration**](/docs/payments/payment-gateway/android-integration/custom/payment-methods/turbo-upi)
  • [**iOS Custom Integration**](/docs/payments/payment-gateway/ios-integration/custom/payment-methods/turbo-upi)
  • [Android Standard Integration](/docs/payments/payment-gateway/android-integration/standard/payment-methods/turbo-upi)
  • [iOS Standard Integration](/docs/payments/payment-gateway/ios-integration/standard/payment-methods/turbo-upi)
| ## Omnichannel This is an intent flow wherein customers enter their mobile numbers instead of VPAs in the UPI app. The payments are completed after 2-factor authentication (UPIN and MPIN are entered). > [accordion] Supported Platforms, UPI Apps and Availability > > | **Supported Platforms** | **Supported UPI Apps** | **Availability** | > | - | - | - | > | Android only | Only for Google Pay | Requires Approval (Reach out to support) and [**Integration**](/docs/payments/payment-methods/upi/google-pay/omnichannel)Integration | ## Google Pay SDK This is an intent flow wherein the customer can complete the payment within your app itself without being redirected to the UPI app on the mobile device. This is particularly useful when you want the customer to experience a seamless payment experience while safeguarding your brand identity. > [accordion] Supported Platforms, UPI Apps and Availability > > | **Supported Platforms** | **Supported UPI Apps** | **Availability** | > | - | - | - | > | Android only | Only for Google Pay | Requires [Integration](/docs/payments/payment-methods/upi/google-pay/custom-integration#intent-based-integration-using-google-pay-sdk) | > [!NOTE] > > **Third Party Validation** > > If your business model requires the customers to make transactions **only** from the bank account that was submitted to your business at the time of registration then know more about [Third-Party Validation](/docs/payments/third-party-validation). Check the [list of banks that support TPV](/docs/payments/third-party-validation/bank-list). ### Related Information * [UPI Error Codes](/docs/errors/payments/upi) * [UPI Transaction Limits](/docs/payments/payment-methods/transaction-limits/upi) # RuPay Credit Card on UPI Source: https://razorpay.com/docs/payments/payment-methods/upi/cc-on-upi Offer RuPay Credit Cards on UPI as a payment method to your customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Leverage the full potential of UPI Payments by integrating RuPay Credit Cards. Watch this video to know more about RuPay credit card on UPI. [YouTube video player](https://www.youtube.com/embed/8_N9o7291k4) ### Advantages > [tab] For Customers > > * More touch points to make payments via their RuPay credit cards. > * Easy to make credit card payments without the need to enter the card details and OTP for every transaction. > * Carry out all RuPay credit card and bank account transactions without the need to carry a wallet. > [tab] For Businesses > > * Reduce costs associated with maintaining a POS device by efficiently managing RuPay credit card payment. > * Increase in average spends per customer on UPI as customers tend to spend higher with credit cards. > * Enhance the payment experience for customers, ensuring a smoother process. ## Customer Fee Bearer Customer Fee Bearer (CFB) on Credit Card on UPI is a payment feature that allows you to pass on processing fees to customers when they make UPI payments using their linked credit cards. This feature enables you to maintain your profit margins while offering customers the convenience of using credit cards through UPI for everyday transactions. The checkout will: * Automatically detect when a customer selects UPI as the payment method. * Display fee breakdown transparently before payment, showing the convenience fee separately from the order amount. * Process payment seamlessly after customer confirmation. > [!NOTE] > > **Feature Enablement** > > This is an on-demand feature. Contact your account manager or raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature enabled. > [accordion] Advantages > > * **Cost Optimisation**: Pass processing fees directly to customers, protecting your margins while accepting premium payment methods. > * **Expanded Customer Base**: Tap into the growing UPI credit card user segment who prefer credit over debit for rewards and cash flow benefits. > * **Seamless Experience**: Customers enjoy the familiar UPI interface while accessing their credit lines. > * **Higher Transaction Values**: Credit card users typically have higher spending capacity compared to debit card users. ### Prerequisites * This feature is available on the Axis Switch gateway only. * Integrate with [Razorpay Standard Checkout](/docs/payments/payment-gateway#integrate-payment-gateway-web-mobile-ecommerce-plugins). * This feature is **not** available on UPI Collect method (NPCI restriction). * Certain business categories are restricted as per NPCI guidelines. The following MCC codes cannot accept credit card payments on UPI: > [accordion] Restricted MCC codes > > | MCC Code | Category | > | - | - | > | 6012 | Lending, NBFC, Cooperatives, Pension Fund | > | 4829 | Wire Transfers and Money Orders | > | 7322 | Debt Collection Agencies | > | 6010 | Forex | > | 6011 | ATMs | > | 6051 | Cryptocurrency | > | 6211 | Mutual Fund, Securities, Commodities, Trading | > | 7800 | Lottery | > | 7802 | Horse or Dog Racing | > | 7995 | Lottery and Betting | ## Frequently Asked Questions (FAQs) > [accordion] How can my customers link their RuPay Credit Cards to UPI? > > Linking a RuPay credit card to the UPI is similar to linking a savings bank account or debit card to UPI. > > To link a RuPay credit card to UPI, customers need to: > > 1. Head over to the PSP app (BHIM, PhonePe, Paytm) on their smartphone. > 2. Tap the **Add credit card** option and select the bank that has issued the RuPay credit card. > 3. Enter the last six digits and validity details of their RuPay credit card. > 4. To verify, they need to enter the OTP received via SMS on the registered mobile number. Once the verification is complete, they can set up the PIN. > > Their registration of RuPay credit cards on UPI will then be complete. > [accordion] How will the customers make a UPI payment with RuPay Credit cards? > > To make a payment using RuPay credit card on UPI, the user must follow these steps: > > 1. Select RuPay credit card as the payment option during the UPI payment process. > > 2. Enter the UPI PIN set during the earlier process of linking the RuPay credit card. > > > [!WARNING] > > > > **Watch Out!** > > > > To ensure a successful transaction, it is essential that the mobile number linked to the customer's UPI account is active on their smartphone and matches the mobile number linked to the credit card issued by their bank. > [accordion] How can I identify UPI payments made using RuPay credit cards? > > You can retrieve the details of the account type (bank account or credit card) used for UPI payments through the Payment Webhook, Fetch Payment API, and the Dashboard. > > 1. **Payment Webhook**: The payment entity will now include the payer account type details. Refer to the [Payment Authorized Payload](/docs/webhooks/payments#payment-authorised). > 2. **Fetch Payment API**: The payment entity will now include the payer account type details. Refer to the [Fetch API sample code](/docs/api/payments/fetch-with-id). > 1. Click on a UPI payment to look at the details of the payment. > 2. The payment drawer will display the following information for Credit Card payments on UPI: > 1. Payment Method: UPI > 2. Payer Account Type: Credit card > > ![Image shows Credit Card payment via UPI on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/cc-upi-dashboard.jpg) > [accordion] What is the coverage of Credit Card acceptance via UPI? > > The following UPI apps support linking of RuPay credit cards to UPI: > > * BHIM > * PhonePe > * Paytm > > In terms of bank coverage, RuPay card holders from the following issuing banks can link their credit cards to the UPI apps to make payments via RuPay credit cards on UPI: > > * Axis Bank > * Bank of Baroda > * Canara Bank > * HDFC Bank > * Indian Bank > * Kotak Mahindra Bank > * Punjab National Bank > * Union Bank > [accordion] How do I enable Credit Card transactions via UPI for my business? > > Razorpay will take care of enabling this feature for you. > [accordion] Will I be charged for Credit Cards transactions via UPI? > > We charge a small fee for all credit card transactions via UPI. Refer to our [pricing policy](https://razorpay.com/pricing/). > [accordion] Which businesses are currently not supported from accepting credit card payments on UPI? > > You will not be able to accept credit card payments on UPI if you fall under the following category: > > 1. **Businesses on Customer fee bearer** > 2. **Restricted MCC codes** - NPCI will not support credit card payments on the following MCC codes. Businesses with these MCC codes will not be able to accept credit card payments on UPI. > > | MCC | Category | > | - | - | > | 6010 | Financial institutions manual cash disbursements | > | 6012 | Financial institutions merchandise and services | > | 6013 | Cash Withdrawal ICCW | > | 7407 | P2PM CHANGES | > | 7408 | Lending Platform | > | 7409 | Digital account openings | > | 6011 | Financial institutions automated cash disbursements | > | 6051 | Non-financial institutions foreign currency, money orders(not wire transfer), scrip and travellers checks | > | 6211 | Securities brokers and dealers | > | 7322 | Debt collection agencies | > | 7800 | Government-Owned Lotteries | > | 7801 | Government-Licensed On-Line Casinos (On-LineGambling) | > | 7995 | Betting, including lottery tickets, casino gaming chips, off-track betting and wagers at race tracks | > | 7802 | Government-Licensed Horse/Dog Racing | > | 9406 | Government-Owned Lotteries (Specific Countries) | > | 4829 | Wire transfers and money orders | # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/payment-methods/upi/faqs Find answers to frequently asked questions about UPI as a payment method at Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ## UPI Collect Flow (Deprecated) > [accordion] Why is UPI Collect being discontinued? > > The National Payments Corporation of India (NPCI) is sunsetting the UPI Collect flow to align with the latest ecosystem compliance standards and enhance transaction security. By supporting only UPI Intent flows (automatic app redirection on mobile) and Dynamic QR (on desktop), the ecosystem aims to reduce manual entry errors and curb fraudulent `pull` requests, leading to higher success rates for businesses. > [accordion] From when will UPI Collect stop working? > > NPCI is sunsetting UPI Collect across all devices and operating systems effective 28 February 2026. Razorpay is rolling out this transition in phases to ensure all businesses are compliant before the final deadline. > [accordion] Will this impact Standard, Custom and S2S Checkout? > > Yes, this change impacts all Razorpay integrations: > > * **Standard Checkout**: Razorpay will automatically handle the transition by removing the UPI Collect option and enabling Intent/QR flows for one-time and recurring payments. > * **Custom/S2S Checkout**: You must take manual action to remove the UPI Collect option from your UI and backend and ensure you have enabled UPI Intent or QR codes. > > Check deprecation and migration guides below: > > * [Standard Integration](/docs/announcements/upi-collect-migration/standard-integration). > * [Custom Integration](/docs/announcements/upi-collect-migration/custom-integration) > * [S2S Integration](/docs/announcements/upi-collect-migration/s2s-integration) > [accordion] Is UPI Autopay affected by this change? > > Yes, but only for new mandate registrations. New registrations via the Collect flow will no longer be supported. Migrate to UPI Intent (for mobile) and Dynamic QR (for desktop) for setting up new mandates. > > Automatic debits for already registered mandates on the UPI Collect flow will continue to be supported. No changes are required for existing mandates. > [accordion] What happens if I do not migrate before the deadline? > > Transactions initiated via the deprecated UPI Collect flow after the deadline may fail or be declined. If you have not enabled UPI Intent flows on your checkout, this could result in lost revenue. We recommend migrating as soon as possible. > [accordion] Will there be downtime during migration? > > No downtime is expected during this migration. The transition is being conducted in phases and we will keep you informed ahead of the sunset timelines. > > If you are using Custom/S2S checkout, ensure UPI Intent and QR payment modes are live on your checkout before removing the UPI Collect option to ensure a seamless experience for your customers. > [accordion] Who can I contact for migration support? > > * **Managed Accounts**: Contact your Razorpay Account Manager for dedicated assistance. > * **Self-Serve Accounts**: Raise a support ticket via your [Razorpay Dashboard](https://dashboard.razorpay.com) or email [support@razorpay.com](mailto:support@razorpay.com). > [accordion] My UPI payments stopped working after UPI Collect was disabled. What should I do? > > If UPI Collect was disabled on your account and you have not enabled UPI Intent or QR code, your checkout may break and prevent customers from completing UPI payments. > > > [tab] Standard Checkout > > > > * UPI Intent (mobile/mobile web) and UPI QR code (desktop) are automatically enabled on your checkout > > * If you were not using these flows previously, you may need to configure them. > > * Refer to the [Standard Checkout migration guide](/docs/announcements/upi-collect-migration/standard-integration) for more information. > > > [tab] Custom/S2S Checkout > > > > * You must manually integrate UPI Intent and QR code. > > * Refer to the migration guides: > > * [Custom integration](/docs/announcements/upi-collect-migration/custom-integration). > > * [S2S integration](/docs/announcements/upi-collect-migration/s2s-integration). > > **To prevent this issue:** > > * Ensure UPI Intent and QR code are enabled and working on your checkout **before** UPI Collect is disabled. > * Test the new flows thoroughly. > * For Standard Checkout, verify that Intent/QR modes are active on your account even if you were not using them before. ## Common > [accordion] I am seeing an error while enabling UPI as payment method. How to resolve? > > If you are facing error while enabling UPI as payment method: > > * You might have made a request using a non-owner role. Please log in as an owner and try again. See [Manage Team](https://razorpay.com/docs/payments/dashboard/account-settings/manage-team/). > * If the issue persists, clear your cookies and retry. > > If you still receive an error, reach out to the [Razorpay Support team](https://razorpay.com/support/). > [accordion] How can I enable UPI apps for my account? > > Navigate to **Account & Settings โ†’ Payment Methods** and check if UPI apps are reflecting along with other payment methods. If it is not enabled, you can reach out to the [Razorpay Support team](https://razorpay.com/support/) to get it enabled. > See [UPI Payment Methods](https://razorpay.com/docs/payments/payment-methods/upi/). > [accordion] Which UPI apps does Razorpay support? > > Here is the [list of supported UPI apps](https://razorpay.com/docs/payments/payment-methods/upi/supported-apps/). # Google Pay Source: https://razorpay.com/docs/payments/payment-methods/upi/google-pay Use Google Pay at the Razorpay Standard or Custom Checkout page. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Your customers can make payments using Google Payโ„ข at the Razorpay checkout. You can integrate and show Google Pay on any of the following platforms: Desktop Browser, Mobile Web (M-Web) and Android App. ## Integration on Standard Checkout - Web and Android If you are using Razorpay's Standard Checkout, you do not need to make any change to integrate Google Pay on your checkout page. Razorpay will display Google Pay as an option under the **UPI** section on the checkout page. ![GooglePay Standard Checkout](https://razorpay.com/docs/build/browser/assets/images/upi-checkout-header-changes.jpg) ### Web > [tab] Collect Flow > > On your website, all Google Pay requests are Collect requests. > > 1. The customer selects the Google Pay option, enters their UPI handle and clicks **Pay**. > 2. A request is sent to the Google Pay app installed on their mobile device. > 3. The customer manually opens the Google Pay app and approves the request. > [tab] Intent Flow > > Customers can make intent-based payments using Google Pay on mobile-web applications. The customer is redirected to Google Payโ€™s application, installed on their mobile devices, to complete the payment. > > > [!WARNING] > > > > **Watch Out!** > > > > This feature is only available for web pages running on HTTPS on Google Chrome for Android (v56 and above) and not on Google Chrome web views. > > > [!NOTE] > > > > **Feature Request** > > > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ### Android > [!WARNING] > > **UPI Collect Flow Deprecated** > > According to NPCI guidelines, the UPI Collect flow is being deprecated effective 28 February 2026. Customers can no longer make payments or register UPI mandates by manually entering VPA/UPI id/mobile numbers. > > **Exemptions:** UPI Collect will continue to be supported for: > > * MCC 6012 & 6211 (IPO and secondary market transactions). > * iOS mobile app and mobile web transactions. > * UPI Mandates (execute/modify/revoke operations only) > * eRupi vouchers. > * PACB businesses (cross-border/international payments). > > **Action Required:** > > * If you are a new Razorpay user, use [UPI Intent](/docs/payments/payment-methods/upi/upi-intent). > * If you are an existing Razorpay user not covered by exemptions, you must migrate to UPI Intent or UPI QR code to continue accepting UPI payments. For detailed migration steps, refer to the [migration documentation](/docs/announcements/upi-collect-migration/standard-integration). > [tab] Intent-Based Integration > > When using the Standard Checkout, Google Pay is shown inside the payment method **UPI**. The customer selects Google Pay from the list of apps and click **Pay**. Customers are then redirected to the Google Pay application, provided it is installed on the mobile device they are using to access checkout, where they can make the payment. > [tab] Intent-Based Integration Using Google Pay SDK > > You also have the option to integrate Google Pay with the Standard Checkout on your Android app using Google's SDK. This lets you open Google Pay within your application for customers to make the payment without any redirection, enhancing the user experience. > > #### Prerequisites > > 1. [Sign up](https://support.google.com/pay/business/answer/7684271?hl=en\&ref_topic=7684388) for a business account with Google Pay. > 2. [Contact our Support Team](https://razorpay.com/support/#request) and have them **whitelist your UPI ID/VPA**. > 3. Verify your UPI ID/VPA details on the [Google Merchant Console](https://support.google.com/pay/business/answer/7684398?hl=en\&ref_topic=7684388). Google deposits a small amount into the bank account linked to your VPA (UPI ID). > 4. You should have already integrated [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > 5. [Generate API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. > > To integrate Google Pay with the Checkout on your Android app using Google's SDK: > > 1. Download the [Google Pay SDK](https://rzp-1415-prod-mobile.s3.amazonaws.com/android/googlepay-sdk/google-pay-client-api-1.0.0.aar) and add the `.aar` files to the application library. > > > [!NOTE] > > > > **Handy Tips** > > > > The Razorpay-Google Pay SDK acts as a wrapper over the native Google-SDK. This SDK connects Razorpay's SDK with the Google SDK. You need all the 3 SDKs (listed below) for the flow to work. > > > > * Razorpay Android SDK > > * Google Pay SDK > > * Razorpay-Google Pay SDK > > 1. Add the following lines of code to the `build.gradle` file of your application: > > ```java build.gradle theme={null} > dependencies { > implementation(name: 'razorpay-googlepay-1.3.0', ext: 'aar') > implementation(name:'google-pay-client-api-1.0.0 ', ext:'aar') > implementation 'com.android.support:customtabs:26.1.0' > implementation 'com.google.android.gms:play-services-tasks:15.0.1 > } > ``` > > This adds the dependencies for the SDK and creates a Google Pay UPI payment method on your Checkout form. > [tab] Collect-Based Integration > > This is same as [UPI Collect Integration](/docs/payments/payment-gateway/android-integration/custom/payment-methods#collect-flow). > > The customers enter their UPI handle in the **Enter your UPI ID** section at Checkout and click **Pay**. Collect the customer's UPI handle and pass it in the payment request with method as `upi`. > > Razorpay then triggers a Collect request. The Collection request is sent to the customer's Google Pay application where they can make the payment. > > > [!NOTE] > > > > **NPCI Restrictions for UPI Collect Flow** > > > > * UPI Collect Flow is not available for these MCCs. You can use [UPI Intent Flow](/docs/payments/payment-methods/upi/upi-intent) as an alternative. > > * 5816 > > * 6540 > > * 4812 > > * 4814 > > * 5413 > > * 7408 > > * 6513 > > * 7995 > > * 5412 > > * 5413 ## Integration on Custom Checkout To enable Google Pay on your custom checkout: 1. Show Google Pay as a separate Option. 2. Trigger payment when a user clicks Google Pay on your checkout. Know more about [Google Pay Custom Checkout Integration](/docs/payments/payment-methods/upi/google-pay/custom-integration). # Google Pay Omnichannel Checkout Source: https://razorpay.com/docs/payments/payment-methods/upi/google-pay/omnichannel Let your customers make payments using Google Pay on their mobile devices without entering VPA. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Use Google Pay Omnichannel to initiate a payment using the customer's phone number. * The customers receive a Google Pay request on their registered mobile devices, and complete the payment using the Google Pay app installed on their devices. * This reduces the overhead of entering the VPA, leading to better success rates for your UPI transactions. ## Workflow Request and accept payments from your customers using Omnichannel with the following steps: 1. The customer selects **Google Pay** as the payment method to make the payment for the transaction. 2. The GooglePay app opens on the mobile device. The customer can complete the payment. ![Payment on Google Pay App](https://razorpay.com/docs/build/browser/assets/images/upi-gpay-omnichannel-2-new.jpg) ## Integration on Standard Checkout Use Google Omnichannel at your Checkout to send a payment request to the customers directly on the Google Pay app. ![Google Omnichannel Checkout Page](https://razorpay.com/docs/build/browser/assets/images/omnichannel-checkout-header-changes-2.jpg) > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ### Prerequisites 1. [Sign up](https://support.google.com/pay/business/answer/7684271?hl=en\&ref_topic=7684388) for a business account with Google Pay. 2. [Contact our Support Team](https://razorpay.com/support/#request) and have them whitelist your UPI ID/VPA. 3. Verify your UPI ID/VPA details on the[Google Merchant Console](https://support.google.com/pay/business/answer/7684398?hl=en\&ref_topic=7684388). Google deposits a small amount into the bank account linked to your VPA (UPI ID). 4. You should have already integrated [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). 5. [Generate API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. ### Integration Steps If you are using Razorpay Standard Checkout Integration for your web applications or Android apps, you do not require any additional integration to display **Google Pay** in the list of payment options. Get in touch with our [Support team](https://razorpay.com/support/#request) to help you to accept payments using Omnichannel at your application Checkout. ## Integration on Custom Checkout [Integrate with Custom Checkout](/docs/payments/payment-methods/upi/google-pay/omnichannel/custom-integration) ### Related Information * [UPI Error Codes](/docs/errors) * [UPI Transaction Limits](/docs/payments/payment-methods/transaction-limits/upi) # Saved VPA Source: https://razorpay.com/docs/payments/payment-methods/upi/saved-vpa Save the VPA details entered by a customer at Razorpay Checkout and use them for future transactions made by the customer on your website or app. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India In an online transaction using UPI collect flow, the flow looks like this: 1. Customers enter their Virtual Payment Address (VPA) at the Checkout. 2. Open the respective UPI apps and complete the payment after successful two-factor authentication. 3. Customers are redirected to your website or app after successful payment. > [!WARNING] > > **UPI Collect Flow Deprecated** > > According to NPCI guidelines, the UPI Collect flow is being deprecated effective 28 February 2026. Customers can no longer make payments or register UPI mandates by manually entering VPA/UPI id/mobile numbers. > > **Exemptions:** UPI Collect will continue to be supported for: > > * MCC 6012 & 6211 (IPO and secondary market transactions). > * iOS mobile app and mobile web transactions. > * UPI Mandates (execute/modify/revoke operations only) > * eRupi vouchers. > * PACB businesses (cross-border/international payments). > > **Action Required:** > > * If you are a new Razorpay user, use [UPI Intent](/docs/payments/payment-methods/upi/upi-intent). > * If you are an existing Razorpay user not covered by exemptions, you must migrate to UPI Intent or UPI QR code to continue accepting UPI payments. For detailed migration steps, refer to the [migration documentation](/docs/announcements/upi-collect-migration/standard-integration). ## What is Saved VPA With Razorpay, you can save the VPAs (UPI ids) of a customer at the Checkout itself. * The VPAs entered by the customer are stored and secured as **tokens** in Razorpay. * The customers do not need to enter the VPAs and use the saved VPAs every time they make a transaction. > [accordion] On-Demand Feature - Raise a Request > > > [!NOTE] > > > > **Feature Request** > > > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ### Advantages * **Faster Checkout Experience**: By saving the VPAs at the Checkout, you can help your customers to complete their UPI payments faster, resulting in better success rates and better customer retention for you. * **Global Tokens**: Razorpay utilizes global tokens functionality wherein tokens saved by a customer on one instance of Razorpay Standard Checkout are displayed in another instance. For example, on a visit to a store A, the customer has saved the `gaurav.kumar@okhdfcbank` on Razorpay Checkout. On a visit to store B, while making the UPI transaction on Razorpay Checkout, the customer will be shown `gaurav.kumar@okhdfcbank`, the VPA previously saved at store A's Checkout. ## Prerequisites The customers should authenticate once (be logged in) through the saved card flow on Razorpay Checkout. ## How this Works Watch the GIF to understand Saved VPA flow: ![Saved VPA Flow](https://razorpay.com/docs/build/browser/assets/images/saved-vpa2.gif) On the Checkout page, the customers: 1. Enter the **Phone Number** and click **Continue**. 2. Select **UPI** as the payment method. 3. Enter the UPI ID, that is **VPA**, of their choice and select **Save UPI ID for future use** check box. Razorpay saves the VPAs as tokens. > [!NOTE] > > **Handy Tips** > > All the saved VPAs are visible under the **UPI** tab at the Checkout. 4. On a repeat visit, customer clicks **Cards**. If there are any saved card details associated to the entered phone number, an OTP is sent. 5. After customer enters OTP, the saved cards become visible. The customer can go back to the checkout screen and select **UPI**. # List of Supported UPI Apps Source: https://razorpay.com/docs/payments/payment-methods/upi/supported-apps Check the UPI apps supported for UPI Intent payments, with their package names and shortcodes, for Android, iOS and mobile web. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Given below is the list of UPI apps supported for [UPI Intent](/docs/payments/payment-methods/upi/upi-intent) payments. Select the tab for your platform. > [tab] Android SDK > > UPI apps supported on the Razorpay Android SDK, with their package names. > > | # | App Name | Package Name | > | - | - | - | > | 1 | Google Pay | `com.google.android.apps.nbu.paisa.user` | > | 2 | PhonePe | `com.phonepe.app` | > | 3 | Paytm | `net.one97.paytm` | > | 4 | CRED | `com.dreamplug.androidapp` | > | 5 | BHIM | `in.org.npci.upiapp` | > | 6 | Tata Neu | `com.tatadigital.tcp` | > | 7 | iMobile by ICICI | `com.csam.icici.bank.imobile` | > | 8 | Amazon Pay | `in.amazon.mShop.android.shopping` | > | 9 | Samsung Wallet | `com.samsung.android.spay` | > | 10 | MobiKwik | `com.mobikwik_new` | > | 11 | Kiwi | `in.gokiwi.kiwitpap` | > | 12 | Navi | `com.naviapp` | > | 13 | Super.Money | `money.super.payments` | > | 14 | Shriram One | `com.shriram.one` | > | 15 | Kotak811 | `com.kotak811mobilebankingapp.instantsavingsupiscanandpayrecharge` | > | 16 | slice | `indwin.c3.shareapp` | > | 17 | PayZapp | `com.hdfcbank.payzapp` | > | 18 | Fi Money | `com.epifi.paisa` | > | 19 | POP UPI | `com.popclub.android` | > | 20 | Bajaj Pay | `org.altruist.BajajExperia` | > | 21 | BharatPe | `com.postpe.app` | > | 22 | MoneyView | `com.whizdm.moneyview.loans` | > | 23 | WhatsApp | `com.whatsapp` | > | 24 | Kredit.pe | `com.kreditpe.android.app` | > | 25 | FamApp | `com.fampay.in` | > | 26 | Lxme | `com.lxme` | > | 27 | Scapia | `cards.scapia.android` | > | 28 | Snapmint | `com.snapmint.customerapp` | > | 29 | ZET | `in.magnetapp` | > | 30 | Kotak UPI | `com.olive.kotak.upi` | > | 31 | Kotak Mobile Banking | `com.msf.kbank.mobile` | > | 32 | BHIM SBI Pay | `com.sbi.upi` | > | 33 | YONO SBI | `com.sbi.lotusintouch` | > | 34 | HDFC Bank | `com.snapwork.hdfc` | > | 35 | Axis Pay | `com.upi.axispay` | > | 36 | Axis Mobile | `com.axis.mobile` | > | 37 | Jupiter | `money.jupiter` | > | 38 | IDFC First | `com.idfcfirstbank.optimus` | > | 39 | Canara Bank | `com.canarabank.mobility` | > | 40 | Bajaj Finserv | `in.bajajfinservmarkets.app` | > | 41 | BoB World | `com.bankofbaroda.upi` | > | 42 | PNB Bank | `com.fss.pnbpsp` or `com.mgs.pnbupi` | > | 43 | Fed Mobile | `com.fedmobile` | > | 44 | India Post | `com.iexceed.appzillon.ippbMB` | > | 45 | MyJio | `com.jio.myjio` | > | 46 | Vyom | `com.infrasoft.uboi` | > | 47 | Freecharge | `com.freecharge.android` | > | 48 | SIB Mirror+ | `com.SIBMobile` | > | 49 | OmniCard | `com.eroute.omnicard` | > | 50 | Groww | `com.nextbillion.groww` | > | 51 | Digibank | `com.dbs.in.digitalbank` | > | 52 | IndOASIS | `com.IndianBank.IndOASIS` | > | 53 | AU0101 | `com.ausmallfinancebank.amb` | > | 54 | Cent Mobile | `com.infrasofttech.CentralBank` | > | 55 | RBL MoBank | `com.rblbank.mobank` | > | 56 | IndusInd Mobile | `com.fss.indus` | > | 57 | Indus Indie | `com.indusind.indie` | > | 58 | Digi Khata | `com.paypointz.wallet` | > | 59 | BHIM UCO | `com.lcode.ucoupi` | > | 60 | YesBank Iris | `in.irisbyyes.app` | > | 61 | Yes Bank | `com.YesBank` | > | 62 | WhatsApp Business | `com.whatsapp.w4b` | > | 63 | ICICI Pockets | `com.icicibank.pockets` | > | 64 | United UPI | `com.fss.unbipsp` | > | 65 | KVB | `com.mycompany.kvb` | > | 66 | Vijaya Bank | `com.fss.vijayapsp` | > | 67 | Dena Bank | `com.dena.upi.gui` | > | 68 | JK UPI | `com.fss.jnkpsp` | > | 69 | Hike | `com.bsb.hike` | > | 70 | IDFC | `com.fss.idfcpsp` | > | 71 | Aditya Birla Payments Bank | `com.abipbl.upi` | > | 72 | Microsoft Kaizala | `com.microsoft.mobile.polymer` | > | 73 | Fino Payments Bank | `com.finopaytech.bpayfino` | > | 74 | Oriental Bank of Commerce | `com.mgs.obcbank` | > | 75 | Lotza | `com.upi.federalbank.org.lotza` | > | 76 | IndusInd Pay | `com.mgs.induspsp` | > | 77 | Wizely | `ai.wizely.android` | > | 78 | DCB Bank | `com.olive.dcb.upi` | > | 79 | Yes Bank Merchant | `com.mgs.yesmerchantnative.prod` | > | 80 | Chillr | `in.chillr` | > | 81 | Bullet | `money.bullet` | > | 82 | Mi Pay | `com.mipay.in.wallet` | > | 83 | Mi Pay | `com.mipay.wallet.in` | > | 84 | Fave | `com.pinelabs.fave` | > | 85 | Ultracash | `com.ultracash.payment.customer` | > | 86 | TimePay | `com.npst.timepay.society` | > | 87 | Goibibo | `com.goibibo` | > | 88 | DakPay | `com.fss.ippbpsp` | > | 89 | BHIM IOB | `com.euronet.iobupi` | > | 90 | BHIM CSB | `com.lcode.csbupi` | > | 91 | Tvam | `com.atyati.tvamapp` | > | 92 | PNB One | `com.Version1` | > | 93 | Flipkart | `com.flipkart.android` | > | 94 | Freo Pay | `com.moneytap.bnpl.app` | > | 95 | SalarySe | `com.salaryse.android` | > | 96 | Curie | `com.yield.curie_money` | > | 97 | CTRLPay | `com.mswipe.mswipeppiwallet` | > [tab] iOS SDK > > UPI apps supported on the Razorpay iOS SDK, with their shortcodes and URL schemes. Add each URL scheme, without `://`, to `LSApplicationQueriesSchemes` in your app's `info.plist` file. > > > [!NOTE] > > > > **Pass only the shortcode** > > > > On the iOS SDK, `upi_app_package_name` must contain only the shortcode that the SDK returns in `getAppsWhichSupportUpi()`. For example, pass `google_pay` for Google Pay. > > | # | App Name | Shortcode | URL Scheme | > | - | - | - | - | > | 1 | Snapmint | `snapmint` | `snapmint://` | > | 2 | Google Pay | `google_pay` | `tez://` | > | 3 | PhonePe | `phonepe` | `phonepe://` | > | 4 | Paytm | `paytm` | `paytmmp://` | > | 5 | CRED | `cred` | `credpay://` | > | 6 | MobiKwik | `mobikwik` | `mobikwik://` | > | 7 | Freecharge | `freecharge` | `freecharge://` | > | 8 | Amazon Pay | `amazonpay` | `amazonpay://` | > | 9 | Navi | `navi` | `navi://`, `navipay://` (mandates) | > | 10 | Kiwi | `kiwi` | `kiwi://` | > | 11 | PayZapp | `payzapp` | `payzapp://` | > | 12 | Jupiter | `jupiter` | `jupiter://` | > | 13 | YONO SBI | `sbiyono` | `sbiyono://` | > | 14 | WhatsApp | `whatsapp` | `whatsapp-consumer://` | > | 15 | slice | `slice` | `slice-upi://` | > | 16 | BoB World | `bobupi` | `bobupi://` | > | 17 | MyJio | `myjio` | `myjio://` | > | 18 | OmniCard | `omnicard` | `omnicard://` | > | 19 | Shriram One | `shriramone` | `shriramone://` | > | 20 | IndusInd Mobile | `indusmobile` | `indusmobile://` | > | 21 | BHIM | `bhim` | `bhim://` | > | 22 | POP UPI | `popclubapp` | `popclubapp://` | > | 23 | FamApp | `fampay` | `in.fampay.app://` | > | 24 | Kotak811 | `kotakbank` | `kotakbank://` | > | 25 | BharatPe | `postpe` | `postpe://` | > | 26 | Super.Money | `super` | `super://` | > | 27 | Lxme | `lxme` | `lxme://` | > | 28 | Scapia | `scapia` | `scapia://` | > | 29 | Curie | `curie_money` | `curieapp://` | > [tab] Android Mobile Web > > UPI apps supported on mobile websites opened on Android devices, with their shortcodes. > > | # | App Name | Shortcode | > | - | - | - | > | 1 | Google Pay | `google_pay` | > | 2 | PhonePe | `phonepe` | > | 3 | POP UPI | `popclubapp` | > | 4 | Paytm | `paytm` | > | 5 | CRED | `cred` | > | 6 | BHIM | `bhim` | > | 7 | MobiKwik | `mobikwik` | > | 8 | Super.Money | `super_money` | > | 9 | MoneyView | `moneyview` | > | 10 | iMobile by ICICI | `icici` | > | 11 | Navi | `navi` | > | 12 | PayZapp | `payzapp` | > | 13 | Jupiter | `jupiter` | > | 14 | Kredit.pe | `kreditpe` | > | 15 | FamApp | `fampay` | > | 16 | Tata Neu | `tataneu` | > | 17 | Lxme | `lxme` | > | 18 | Scapia | `scapia` | > | 19 | Snapmint | `snapmint` | > | 20 | SalarySe | `salaryse` | > | 21 | Curie | `curie_money` | > | 22 | ZET | `zet` | > | 23 | CTRLPay | `mswipe` | > | 24 | slice | `slice` | > | 25 | Kotak811 | `kotakbank` | > | 26 | WhatsApp | `whatsapp` | > > > [!NOTE] > > > > **Other UPI apps** > > > > If a customer's UPI app is not in this list but is installed on their device, they can select **Others** on Checkout. The app then appears in the native Android app selector. > [tab] iOS Mobile Web > > UPI apps supported on mobile websites opened on iOS devices. > > | # | App Name | > | - | - | > | 1 | Google Pay | > | 2 | PhonePe | > | 3 | POP UPI | > | 4 | Paytm | > | 5 | CRED | > | 6 | Navi | > | 7 | BHIM | > | 8 | MobiKwik | > | 9 | Super.Money | > | 10 | Jupiter | > | 11 | Kredit.pe | > | 12 | FamApp | > | 13 | Tata Neu | > | 14 | Lxme | > | 15 | Scapia | > | 16 | Snapmint | > | 17 | SalarySe | > | 18 | Curie | > | 19 | ZET | > | 20 | CTRLPay | > | 21 | slice | > | 22 | Kotak811 | > | 23 | WhatsApp | # Turbo UPI Source: https://razorpay.com/docs/payments/payment-methods/upi/turbo-upi Turbo UPI is a 1-step payment experience to enable seamless in-app UPI payments. Check use cases, Turbo UPI flows and how to integrate. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Turbo UPI by Razorpay enables businesses to accept UPI payments from their customers within their mobile application. Customers no longer need to switch to third-party UPI apps to complete payments. This helps increase payment success rates and improves customer experience. Given below is a sample UI representation: ![Turbo UPI Standard Checkout Flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-flow.jpg) > [accordion] On-Demand Feature - Raise a Request > > > [!NOTE] > > > > **Feature Request** > > > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ### Advantages > [tab] Customers > > 1. Turbo UPI eliminates the need for transactions to be routed via an external third-party UPI application. > 2. The steps are reduced from 5 to 1 simple step. > 3. Improve UPI payment success rate with Turbo UPI compared to traditional third-party UPI apps. > 4. Single source for dispute resolution and refund handling. In case of payment failure or refunds, the customer will not be handling multiple parties to resolve the dispute and will have a single point of dispute resolution. > 5. 5x faster UPI payment versus regular UPI payments. > [tab] Businesses > > 1. Control over your customer's payment journey. > 2. Achieve a faster time-to-market. > 3. With customers never leaving your app, reduce timeout issues significantly, and get more visibility on payment failures. > 4. Higher success rate by 6-8%: With lesser opportunities for your customers to drop off in the payment experience. > 5. With Turbo UPI, know where your customers drop off in the payment journey and take action quickly to increase your conversion rate. This feature gives businesses complete control over the user journey. > 6. As new capabilities are added to the UPI application, such as Credit Cards on UPI, do not depend on adoption across third-party UPI apps. Go live on Turbo with each innovation and provide customers with a better payment experience. ## Use Cases Turbo UPI is helpful for businesses with high-frequency transactions. > [accordion] Examples > > * **Doorstep Food/Grocery Delivery**\\ > > Customers select UPI to make quick payments for food/grocery delivery. However, they have to hop between the business and UPI apps, which causes friction. Customers are unsure which support team to contact for disputes - the UPI app or the business. With Turbo UPI, customers can experience 1-click payments and speedy dispute resolution on the business app. > > * **Insurance**\\ > > Customers use UPI to pay their insurance premiums, which could be high-ticket transactions. Insurance firms can use Turbo UPI to make the premium payment experience faster and smoother and achieve a higher payment success rate, which reassures customers. > > * **Investment**\\ > > Investment companies must comply with regulations and collect payments from only customers' KYC-verified bank accounts. With Turbo UPI, investment companies can implement third-party validation on all customer payments and ensure regulatory compliance while providing a 1-click payment experience. > > * **Gaming**\\ > > Turbo UPI enables customers to make in-app game purchases without leaving the gaming app. This enhances the customer's experience as they can make a quick UPI payment and continue playing. ## Turbo UPI Flows Turbo UPI has three flows: * [Onboarding Flow](/docs/payments/payment-methods/upi/turbo-upi#onboarding-flow) * [Transactional Flow](/docs/payments/payment-methods/upi/turbo-upi#transactional-flow) * [Non-Transactional Flow](/docs/payments/payment-methods/upi/turbo-upi#non-transactional-flow) ## Onboarding Flow Follow the steps to onboard customers: 1. The customer navigates to your app's checkout screen and taps **+Link bank account**. ![Razorpay Turbo UPI- Add bank account](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-std-add-bank.jpg) 2. The customer needs to give permission so that we can validate the phone number with the bank. ![Razorpay Turbo UPI- Allow Phone Permission](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-std-allow-phone.jpg) 3. The customer is shown a list of banks from which they can select one. ![Razorpay Turbo UPI- Bank Selection](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-custom-select-bank-account.png) 4. This adds the customer's bank account. After the onboarding is complete the customer can also set up their UPI PIN. ![Razorpay Turbo UPI- Bank Account Linked](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-in-app-acc-linked.jpg) 5. The customer can complete the payment using the newly added Bank account. > [!NOTE] > > **Handy Tips** > > If you have not set up the UPI PIN before, additional standard steps will be required, including entering card details and setting up the PIN. ## Transactional Flow Transactional flow is the user journey of making the payment via Turbo UPI. 1. The customer proceeds to the checkout and selects the bank account they want to make the payment. 2. The customer enters the UPI PIN. ## Non-Transactional Flow The following methods should also be integrated along with Turbo UPI: * **Delete linked Bank Account**: Customers can delete their existing bank account linked to your app. * **Check Balance**: Customers can check their account balance on your app. * **Reset UPI PIN**: Customer can reset their UPI PIN for the bank account linked to your app. * **Change UPI PIN**: Customer can change their UPI PIN for the bank account linked to your app. ![View the non-transactional flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-non-transactional.jpg) ## Integrate Turbo UPI Perform the following steps to integrate Turbo UPI: > [tab] Standard Checkout > > * [Android Integration](/docs/payments/payment-gateway/android-integration/standard/payment-methods/turbo-upi) > * [iOS Integration](/docs/payments/payment-gateway/ios-integration/standard/payment-methods/turbo-upi) > [tab] Custom Checkout > > * [Android Integration](/docs/payments/payment-gateway/android-integration/custom/payment-methods/turbo-upi) > * [iOS Integration](/docs/payments/payment-gateway/ios-integration/custom/payment-methods/turbo-upi) # UPI Intent Source: https://razorpay.com/docs/payments/payment-methods/upi/upi-intent Accept payments from your customers via UPI app on your mobile that supports the Intent flow using Razorpay. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can make UPI payments easier for your customers by enabling UPI Intent on your application Checkout. ### Benefits Enjoy the benefits such as higher conversion rates, decrease in abandoned carts and a decrease in time to complete the payment. Your customers are also benefited in the following ways: * No need to handle push or SMS notifications. * No need to switch between applications to complete a payment (merchant, SMS and app). * No need to remember their VPAs. ## Understand Intent flow The payment flow for UPI Intent payments is given below. ![Payment Flow for UPI Intent Payments](https://razorpay.com/docs/build/browser/assets/images/payment-flow-upi_intent.jpg) 1. In the UPI Intent flow, the customer selects UPI as the payment method on your website or app. A list of UPI apps supporting the intent flow is displayed. > [!WARNING] > > **Watch Out!** > > By default, the top PSP (Payment Service Provider) apps appear on the customer's mobile irrespective of the installation status of the UPI apps. 2. The customers select their preferred app. The UPI app opens with pre-populated payment details. 3. The customers enter their UPI PIN to complete their transactions. 4. After the payment is successful, the customers are redirected to your app or website. > [accordion] Supported Platforms > > UPI Intent is supported on **mWeb (Android and iOS)** and **Mobile App (WebView)**. On **Desktop Web**, UPI Intent is not supported, a QR code is automatically displayed instead. > > | Platform | Procedure | > | - | - | > | **mWeb** | Customers are redirected to their preferred UPI app to complete the payment. For the complete integration guide, refer to [UPI Intent on Mobile Web](/docs/payments/payment-gateway/web-integration/custom/payment-methods/upi-intent-mweb). | > | **Mobile App (WebView)** | UPI Intent requires deep link handling in your Android or iOS app to launch UPI apps from the WebView. For the complete integration guide, refer to [UPI Intent in WebView: Android](/docs/payments/payment-gateway/web-integration/custom/features/webview/upi-intent-android) and [UPI Intent in WebView: iOS](/docs/payments/payment-gateway/web-integration/custom/features/webview/upi-intent-ios). | > | **Desktop Web** | UPI Intent is not supported. A QR code is automatically displayed for customers to scan with their preferred UPI app. No additional code changes are required. | ## Integrate on Android, iOS and Mobile Web > [tab] Android > > Use the Android SDK to support UPI Intent payments when a payment is processed through Razorpay in a WebView inside an app. > > ![UPI Checkout with Intent Flow](https://razorpay.com/docs/build/browser/assets/images/pay-pm-upi-intent-android.gif) > > #### Installation > > [Download the JAR file](https://rzp-1415-prod-mobile.s3.amazonaws.com/android/googlepay-sdk/tez-client-api-0.9.4.aar) and include it in the `libs` folder. > > #### Initialisation > > To initiate the SDK, call the Razorpay class constructor in your project and pass `key` as Razorpay API key and `webView` as the object that handles the payment flow. > > ```java Java theme={null} > import com.razorpay.Razorpay > > Razorpay razorpay = new Razorpay(key, webView, activity); > ``` > > ```java Kotlin theme={null} > import com.razorpay.Razorpay; > > val razorpay = Razorpay(key, webview, activity) > ``` > > #### Passing Result to Razorpay > > After UPI is selected as the payment method, Razorpay invokes the **Intent Flow** page that lists all the available intent flows for the user to select and make the payment. Upon payment completion, the UPI app returns the result back to your `activity` in `onActivityResult` method. This should be passed to Razorpay as shown below: > > ```java Java theme={null} > @Override > protected void onActivityResult(int requestCode, int resultCode, Intent data) { > super.onActivityResult(requestCode, resultCode, data); > if (requestCode == Razorpay.UPI_INTENT_REQUEST_CODE) { > razorpay.onActivityResult(requestCode, resultCode, data); > } > } > ``` > > ```java Kotlin theme={null} > override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { > super.onActivityResult(requestCode, resultCode, data) > if (requestCode == Razorpay.UPI_INTENT_REQUEST_CODE) { > razorpay.onActivityResult(requestCode, resultCode, data) > } > } > ``` > > Refer to the [list of supported UPI intent apps for Android SDK](/docs/payments/payment-methods/upi/supported-apps#android-sdk). > [tab] iOS > > Use the iOS Standard SDK to support UPI Intent payments on your iOS apps. > > ![Payment Process on iOS Apps](https://razorpay.com/docs/build/browser/assets/images/upi-intent-ios.gif) > > #### Prerequisites > > * Sign up for a Razorpay account. > * [Generate API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. > > #### iOS Standard Checkout > > To enable UPI Intent on your iOS app's Standard Checkout: > > 1. Ensure that the [latest version of the iOS Standard SDK](/docs/payments/payment-gateway/ios-integration/standard/troubleshooting-faqs#how-can-i-update-the-razorpay-ios-standard-sdk-version) is integrated with your app. > > 2. Your iOS app must seek permission from the device to open the UPI PSP app that the customer selects on Checkout. For this, you must make the following changes in your iOS app's info.plist file. > > ```xml info.plist theme={null} > LSApplicationQueriesSchemes > > tez > phonepe > paytmmp > credpay > mobikwik > in.fampay.app > bhim > amazonpay > navi > kiwi > payzapp > jupiter > omnicard > icici > popclubapp > sbiyono > myjio > slice-upi > bobupi > shriramone > indusmobile > kotakbank > snapmint > freecharge > navipay > whatsapp-consumer > postpe > super > lxme > scapia > curieapp > > > ``` > > Refer to the [list of supported UPI intent apps for iOS SDK](/docs/payments/payment-methods/upi/supported-apps#ios-sdk). > > #### UPI Intent on Recurring Payments > > Configure and initiate a recurring payment transaction on UPI Intent: > > ```swift ViewController.swift theme={null} > let options: [String:Any] = [ > "key": "YOUR_KEY_ID", > "order_id": "order_DBJOWzybfXXXX", > "customer_id": "cust_BtQNqzmBlXXXX", > "prefill": [ > "contact": "+919000090000", > "email": "gaurav.kumar@example.com" > ], > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > "amount": 10000, // Amount should match the order amount > "currency": "INR", > "recurring": 1 // This key value pair is mandatory for Intent Recurring Payment. > ] > ``` > > ```objectivec ViewController.m theme={null} > NSDictionary *options = @{ > @"key": @"YOUR_KEY_ID", > @"order_id": @"order_DBJOWzybfXXXX", > @"customer_id": @"cust_BtQNqzmBlXXXX", > @"prefill": @{ > @"contact": @"+919000090000", > @"email": @"gaurav.kumar@example.com" > }, > @"image": @"https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > @"amount": @(10000), // Amount should match the order amount > @"currency": @"INR", > @"recurring": @(1) // This key value pair is mandatory for Intent Recurring Payment. > }; > ``` > [tab] Mobile Web > > Using Razorpay you can let your customers make UPI Intent payments on your mobile website. > For example, when the customer selects a UPI PSP, the PSP app opens automatically. Customers can then proceed with the payment without navigating away from your mobile website. This leads to a faster checkout experience with higher success rates. > > > [!NOTE] > > > > **Feature Enablement** > > > > The UPI Intent feature is usually available by default. If you are unable to access this feature, [contact our Support Team](https://razorpay.com/support/#request) to get this enabled on your account. > > #### Features > > * The UPI intent on mobile web is available at Razorpay Standard Checkout and other products such as Payment Links, Payment Pages and Invoices. > > * It works for UPI PSP apps. > > > [!WARNING] > > > > **Watch Out!** > > > > By default, the top PSP apps appear on the customer's mobile irrespective of the installation status of the UPI apps. > > * It works on Android and iOS smartphones. > > #### Prerequisites > > * [Sign up](https://dashboard.razorpay.com/#/access/signup) for a Razorpay account. > * [Generate API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. > * Integrate Razorpay Standard Checkout on your [Website](/docs/payments/payment-gateway/web-integration/standard). > > #### Standard Checkout > > UPI Intent for mobile websites works automatically if the intent flow is enabled on your account. You can enable UPI Intent in WebView on your [Android app](/docs/payments/payment-gateway/web-integration/standard/webview/upi-intent-android) or [iOS app](/docs/payments/payment-gateway/web-integration/standard/webview/upi-intent-ios). > > Refer to the list of supported UPI intent apps for [Android Mobile Web](/docs/payments/payment-methods/upi/supported-apps#android-mobile-web) and [iOS Mobile Web](/docs/payments/payment-methods/upi/supported-apps#ios-mobile-web). ## Best Practices Following are the best practices to be followed to accept online payments using UPI intent flow. You must show the list of UPI apps in 2 sections: * Top performing apps (GPAY > PhonePe > Paytm > BHIM) * Other apps ### Related Information * [UPI Error Codes](/docs/errors) * [UPI Transaction Limits](/docs/payments/payment-methods/transaction-limits/upi) # Validate VPA Source: https://razorpay.com/docs/payments/payment-methods/upi/vpa-validation Validate a customer's virtual payment address(VPA) used for making UPI collect payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India In UPI collect flow, the customers enter Virtual Payment Address (VPA) to make the payment. You can confirm the validity of VPA by sending an API request to Razorpay. > [!WARNING] > > **UPI Collect Flow Deprecated** > > According to NPCI guidelines, the UPI Collect flow is being deprecated effective 28 February 2026. Customers can no longer make payments or register UPI mandates by manually entering VPA/UPI id/mobile numbers. > > **Exemptions:** UPI Collect will continue to be supported for: > > * MCC 6012 & 6211 (IPO and secondary market transactions). > * iOS mobile app and mobile web transactions. > * UPI Mandates (execute/modify/revoke operations only) > * eRupi vouchers. > * PACB businesses (cross-border/international payments). > > **Action Required:** > > * If you are a new Razorpay user, use [UPI Intent](/docs/payments/payment-methods/upi/upi-intent). > * If you are an existing Razorpay user not covered by exemptions, you must migrate to UPI Intent or UPI QR code to continue accepting UPI payments. For detailed migration steps, refer to the [migration documentation](/docs/announcements/upi-collect-migration/standard-integration). ### API Sample Code `POST /payments/validate/vpa` ```bash Request theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/validate/vpa \ -H "Content-Type: application/json" \ -d '{ "vpa": "gauravkumar@exampleupi" }' ``` ```json Response theme={null} { "vpa": "gauravkumar@exampleupi", "success": true, "customer_name": "Gaurav Kumar" } ``` > [tab] Request Parameters > > `vpa` *mandatory* > : `string` The virtual payment address (VPA) you want to validate. For example, `gauravkumar@exampleupi`. > > > [!WARNING] > > > > **Deprecation Notice** > > > > UPI Collect is deprecated effective 28 February 2026. This tab is applicable only for exempted businesses. If you are not covered by the exemptions, refer to the [migration documentation](/docs/announcements/upi-collect-migration/standard-integration) to switch to UPI Intent. > [tab] Response Parameters > > `vpa` > : `string` The virtual payment address (VPA) sent as the request attribute. In this case, `gauravkumar@exampleupi`. > > `success` > : `boolean` Indicates whether the VPA exists. Possible values: > > * `true`: The VPA exists. > * `false`: The VPA does not exist. > > `customer_name` > : `string` The name linked to the VPA. For example, `Gaurav Kumar`. Appears only when the value of `success` is `true`. # Prepaid Wallets on UPI Source: https://razorpay.com/docs/payments/payment-methods/upi/wallets-on-upi Offer Prepaid Wallets on UPI as a payment method to your customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Leverage the full potential of UPI Payments by integrating Prepaid Payment Instruments. Watch this video to know more about Prepaid Wallets on UPI. [YouTube video player](https://www.youtube.com/embed/2z5vI3SL7uY?si=EPw3-M2404o34YNy) ### Advantages > [tab] For Customers > > * Increased touch points to make payments via their prepaid wallets irrespective of the wallets integrated with your business. > * Ease of completing wallet payments with better reach on UPI. > * Store money in their wallet without worrying about the amount being stuck in the wallet. > [tab] For Businesses > > * Accept prepaid digital wallet payments without the costs of integration with a wallet issuer. > * Experience a high success rate of one-step wallet transactions on UPI. > * Enhance the payment experience for customers, ensuring a smoother process. ## Frequently Asked Questions (FAQs) > [accordion] How can customers link their digital wallets to UPI? > > To link a wallet to UPI, customers need to: > > 1. Head over to the wallet issuer app (Amazon Pay, PhonePe) on their smartphone. > > 2. Secure a VPA address issued by the wallet issuer through mobile number verification. > > 3. Once the VPA address is assigned, the registration of the wallet on UPI is complete. > > > [!NOTE] > > > > **Handy Tips** > > > > Only those who have completed the KYC verification process can link their wallets with UPI. > [accordion] How will the customer make a UPI payment with wallets? > > To make a payment via digital wallets on UPI: > > 1. The customer can scan the UPI QR through their wallet app and make wallet payments on UPI. No UPI PIN is required while making a wallet transaction on UPI. > > 2. The customer can also enter the VPA address or the phone number linked to their registered wallet on the checkout page to make UPI payments. > > > [!WARNING] > > > > **Watch Out!** > > > > The mobile number linked to UPI should be in use on the smartphone and should be the same number linked to the wallet. > [accordion] How can I identify UPI payments made using prepaid wallets? > > You can retrieve the details of the account type (bank account or credit card) used for UPI payments through the Payment Webhook, Fetch Payment API, and the Dashboard. > > * **Payment Webhook**: The payment entity will now include the payer account type details. Refer to the [Payment Authorized Payload](/docs/webhooks/payments#payment-authorised). > * **Fetch Payment API**: The payment entity will now include the payer account type details. Refer to the [Fetch API sample code](/docs/api/payments/fetch-with-id). > * **On the Dashboard** : > 1. Click on a UPI payment to look at the payment details. > 2. The payment drawer will display the following information for wallet payments on UPI: > 1. Payment Method: UPI > 2. Paid from: Wallet > > ![Image shows Wallet payment via UPI on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/wallet-upi-dashboard.jpg) > [accordion] What is the coverage of wallet acceptance via UPI? > > The following wallet issuers support linking wallets to UPI: > > * Amazon Pay > * PhonePe > * Fampay > * OneCard > > In terms of bank coverage, the following banks will identify wallet transactions on UPI from **30th August 2023**: > > * Axis Bank > * HDFC Bank > * Yes Bank > * ICICI Bank > [accordion] How do I enable wallet transactions via UPI for my business? > > Razorpay will take care of enabling this feature for you. > [accordion] Will I be charged for wallet transactions via UPI? > > A Platform fee of 2% is levied for all wallet transactions via UPI. This pricing is determined by rates shared by banks and a wallet issuer service charge. > [accordion] Which businesses are currently not supported from accepting wallet payments on UPI? > > You will not be able to accept wallet payments on UPI if you fall under the [**businesses on Customer fee bearer (CFB)**](/docs/payments/dashboard/account-settings/configuration/convenience-fees) category. # About Wallets Source: https://razorpay.com/docs/payments/payment-methods/wallets Accept payments using various Wallets like Bajaj Pay, Amazon Pay, PayPal and more at Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India With Razorpay, you can offer your customers Wallets as a payment method. A digital wallet is like a virtual version of your physical wallet. It stores your money and payment methods electronically on your device. You can use it to make quick and secure payments online or in stores, providing convenience and an extra layer of security compared to traditional methods. ## Enable Wallets on Dashboard You can view the wallets enabled for your Razorpay account from the **Account & Settings** โ†’ **Payment methods** tab. ![Enable Wallet - Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/pay-pm-wallets.jpg) > [!NOTE] > > **Additional Payment Methods** > > You can raise requests for [additional payment methods](/docs/payments/dashboard/account-settings/payment-methods#request-payment-methods). Know more about [Payment Methods](/docs/payments/dashboard/account-settings/payment-methods#request-payment-methods). ## Supported Wallets The table below lists the various wallets available to you. Some of them are available by default, while others require approval from us. Raise a request with our [Support Team](https://razorpay.com/support/#request) to enable such wallets. | Wallet Provider | Availability | Wallet Code | | - | - | - | | PayZapp | Requires [approval](https://razorpay.com/support) | `payzapp` | | Airtel Money | โœ“ | `airtelmoney` | | MobiKwik | โœ“ | `mobikwik` | | Ola Money | โœ“ | `olamoney` | | Bajaj Pay | Requires [approval](https://razorpay.com/support) | `bajajpay` | | PhonePe | Requires [approval](https://razorpay.com/support) | `phonepe` | | [PhonePe Switch](/docs/payments/payment-gateway/web-integration/custom/phonepe-switch) | **For businesses registered with PhonePe Switch only** | `phonepeswitch` | | [PayPal](/docs/payments/payment-methods/wallets/paypal) | **International Payments Only**. Requires [approval](https://razorpay.com/support) | `paypal` | | [Amazon Pay](/docs/payments/payment-methods/wallets/amazon-pay) | Requires [approval](https://razorpay.com/support) | `amazonpay` | ## Related Information [Payment Methods and Transaction Limit](/docs/payments/payment-methods/transaction-limits#payment-methods-and-transaction-limits) # Amazon Pay - Standard Checkout Source: https://razorpay.com/docs/payments/payment-methods/wallets/amazon-pay Offer Amazon Pay wallet as a payment method to your customers on Razorpay Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Amazon Pay is a wallet-based payment method that allows customers with an Amazon account to make payments using their Amazon Pay balance. After Amazon Pay is enabled and integrated, it is listed on your website/app Checkout page as an option under the wallet payment method. Know more about [Amazon Pay](https://www.amazonpay.in/). > [accordion] On-Demand Feature - Raise a Request > > > [!NOTE] > > > > **Feature Request** > > > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ## Integrate Amazon Pay on Standard Checkout - Web, Mobile and iOS You can accept payments through wallets which are available by default. However, if you want to accept payments from external wallets, such as Amazon Pay, integration is required. Razorpay does not process payments for external wallets and gives you the control along with all the customer data entered in the Checkout form. > [!NOTE] > > **Handy Tips** > > The wallet payment option can be used for a purchase amount of up to โ‚น20000 (2000000 in paise). > [tab] Web > > To list external wallets on your web application, you need to first integrate our [Checkout form](/docs/payments/payment-gateway/web-integration/standard). After you integrate, follow the steps given below: > > 1. Add a key `external` to `checkout.js` options. > 2. Set `wallets` with wallet name array in `external` as the first parameter. > > ```javascript JavaScript theme={null} > external: { > wallets: ['amazonpay'] > } > ``` > > 3. Set `handler` with a callback function in `external` as the second parameter. > > ```javascript JavaScript theme={null} > external: { > wallets: ['amazonpay'], > handler: function(data) { > 'data' > console.log(this, data) > } > } > ``` > > The Amazon Pay is now shown in the wallets section. If the customer selects the external wallet and clicks **Submit**, our Standard Checkout library returns the control to you in the `external:handler:` method. You will get the selected wallet name as an argument. You will have to handle the payment flow for the wallet from hereon. > [tab] Android > > To integrate Amazon Pay wallet with the Standard Checkout on your Android app: > > 1. Download the following SDKs and add the `aar` files to the application library. > * Download [Amazon-SDK](https://rzp-1415-prod-mobile.s3.amazonaws.com/android/googlepay-sdk/tez-client-api-0.9.4.aar). > > * Download [Razorpay-Amazon Pay SDK](https://rzp-1415-prod-mobile.s3.amazonaws.com/android/googlepay-sdk/tez-client-api-0.9.4.aar). > > > [!NOTE] > > > > **Handy Tips** > > > > The Razorpay-Amazon Pay SDK acts as a wrapper over the native Amazon-SDK. > > 2. Add the following lines of code to the `build.gradle` file of your application: > > ```java build.gradle theme={null} > dependencies { > implementation(name: 'razorpay-amazonpay-1.3.0', ext: 'aar') > implementation(name:'PayWithAmazon', ext:'aar') > implementation 'com.android.support:customtabs:26.1.0' > } > ``` > > This will add the dependencies for the SDK and display the Amazon Pay wallet on your Checkout form. > [tab] iOS > > Amazon Pay as a payment method is available by default on iOS and no additional integration is needed. # Bajaj Pay - Standard Checkout Source: https://razorpay.com/docs/payments/payment-methods/wallets/bajaj-pay Let your customers make payments using the Bajaj Pay wallet on Razorpay Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Bajaj Pay Wallet is a secure digital wallet that simplifies everyday payments for your customers. Customers can pay bills on the go or easily initiate fund transfers from their phones. ## Enable Bajaj Pay Using Dashboard Enable Bajaj Pay payment method on the Dashboard if not already enabled: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **Payment Methods**. 3. Select **Wallet**. 4. Click **Request** beside **Bajaj Pay Wallet**. ![Dashboard image of bank transfer request](https://razorpay.com/docs/build/browser/assets/images/bajaj-pay-wallet-request.jpg) 5. A request form appears. Select the payment instrument to be enabled on your Checkout. Click **Save & Next**. 6. Fill in the required details and click **Save & Next**. > [!NOTE] > > **Handy Tips** > > * If you are an existing business, some of the required details will be auto-filled. > * You can click the **Edit** button to fill in the incomplete details before submitting the form. 7. Fill in the **Management/Ownership** details in the form. When complete form details are filled, click **Submit Form**. 8. After the form is submitted, the request is sent to activate the selected payment instruments. The feature enablement request will take 2 business days to be approved. After the payment instrument is enabled, you will see the **Activated** status beside the selected one. ### Standard Integration After Bajaj Pay is enabled, it is listed on the Razorpay Standard Checkout as an option under the wallet payment method. No additional integration is needed. You can view the wallets enabled for your account under the **Account & Settings โ†’ Payment Methods** tab. ## Payment Flow for Standard Checkout On your website or app, customers select the products and proceed to Checkout. On the Checkout page, the customers: 1. Enter the **Phone Number** and click **Continue**. 2. Select **Wallet** as the payment method. ![Select Wallets](https://razorpay.com/docs/build/browser/assets/images/pay-pm-wallets-checkout.jpg) 3. Select **Bajaj Pay** and click **Continue**. ![Select Bajaj Wallet](https://razorpay.com/docs/build/browser/assets/images/pay-pm-wallet-bajaj.jpg) 4. Enter the **OTP** sent to their mobile number. In case of insufficient balance, click **Add Funds**. ![Bajaj Wallet - OTP Screen](https://razorpay.com/docs/build/browser/assets/images/pay-pm-wallet-bajaj-otp.jpg) 5. The payment is completed if they have sufficient balance in the wallet. After the successful payment, customers are directed to your application or website. You receive the amount in your wallet as per your settlement cycle. # PayPal Source: https://razorpay.com/docs/payments/payment-methods/wallets/paypal Integrate PayPal with Razorpay to accept international payments. Check how Razorpay handles currency conversions for you. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India PayPal is a payment method that you can integrate with your [Razorpay Checkout](/docs/payments/payment-gateway#integrate-payment-gateway-web-mobile-ecommerce-plugins) to accept payments in [international currencies](/docs/payments/international-payments#supported-currencies). You can accept payments based on the transaction limit of your PayPal account. Know more about the other [payment methods and the transaction limits](/docs/payments/payment-methods/transaction-limits). ### Advantages Integrating PayPal as a payment method on Checkout offers you the following advantages: * **Better Success Rates**: Enjoy up to 20% higher success rates. * **Faster Settlement time**: Get paid on a T+1 settlement schedule. * **Wide user base**: Reach Over 300 million PayPal users around the world. * **No additional charges**: PayPal defines the rates for transactions. * **Currency Conversion**: Handle currency conversions from INR to your customer's native currency. ## Onboarding Process to Enable PayPal Watch this video to see the onboarding process to enable PayPal on your checkout form. [YouTube video player](https://www.youtube.com/embed/N5ZtN-_zye8?si=C0VWahb6kPT7Lk4s) > [!NOTE] > > **Handy Tips** > > * The PayPal section is visible only in the **Live** mode on the Dashboard. > * PayPal now supports the Pay Later feature. You should enable both [PayPal](/docs/payments/payment-methods/wallets/paypal#to-enable-paypal) and the Pay Later options under Account & Settings โ†’ Pay Later (under Payment methods) on the Dashboard to enable the Pay Later feature. > [accordion] To enable PayPal: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **International payments** (under Payment methods). Scroll to the **PayPal** section and click **Link Account**. > > ![Link PayPal Account on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/paypal-link-account.jpg) > 3. Upon redirection to PayPal: > * If you do not have a PayPal account, you need to complete the verification process and KYC. This will include confirming your email address by clicking on the link sent to you by PayPal. > * If you already have a PayPal account, you need to authorise Razorpay to accept payments. > > You should now be able to see your PayPal enablement status set to `Pending` on your Dashboard. PayPal will activate your account within 48 hours if all of the previous steps are successfully completed. > > You can now proceed with the integration. This depends on how you have integrated Razorpay on your website or application. > > By default, your PayPal account is configured to receive USD payments. You can enable more currencies on your account from your PayPal Dashboard. > > > [!WARNING] > > > > **Watch Out!** > > > > * You should not use the same email ID for multiple MIDs. > > * Each business should set up a separate PayPal account for each MID. ## Standard Checkout Integration If you are using Razorpay Standard Checkout, you just need to enable PayPal from your dashboard and complete the [onboarding procedure](/docs/payments/payment-methods/wallets/paypal#onboarding-process-to-enable-paypal). After the onboarding is completed and PayPal is enabled for you, it appears on your checkout form for all supported currencies. ## Currency Conversion Customers can use PayPal Currency Conversion to convert international payments in INR (or other currency) to a currency of their choice. This enables businesses to continue accepting payments via PayPal. > [accordion] Watch how currency conversion works at checkout in this video > > * You will have your PayPal account configured to receive payments in all currencies. * You can pass the currency in INR to Razorpay or enable more currencies on your account from your PayPal dashboard. * Razorpay applies [open exchange rates](https://openexchangerates.org/) for currency conversion on an hourly basis. * When converting currencies on a payment or transfer, the standard PayPal charges are applicable. > [!NOTE] > > **Handy Tips** > > * PayPal does not accept payment requests in INR. Razorpay facilitates currency conversions from INR to your customer's home currency. > * By default, the PayPal conversion feature is enabled on Standard Checkout for all merchants with PayPal account linked with the Razorpay account. > * This is currently supported only on Razorpay standard checkout integration. ## Settlements You receive the payments made using PayPal directly to your PayPal wallet. PayPal makes the settlements in INR. ## Refunds > [!NOTE] > > **Refunds - PayPal Balance Required** > > Ensure you have sufficient balance in your PayPal account before you initiate a refund. 1. Refunds can be initiated by you either from the [Dashboard](/docs/payments/payments/dashboard#issue-a-refund) or by using the [Refunds API](/docs/api/refunds/create-normal). 2. The refund amount is deducted from your PayPal account and credited to your customer's PayPal account. ## Frequently Asked Questions (FAQs) > [accordion] I am an existing customer, are there any integration changes to be done to support international payments via ? > > There are no integration changes required for you to accept payments via an international debit or credit card. > However, if you want to display a foreign currency on your checkout, you need to pass the relevant code in the **currency** parameter in the Checkout code. > [accordion] How do I disable the PayPal payment method activated on my account? > > Please raise a support ticket with Razorpay over [here](https://razorpay.com/support/). > [accordion] I have already registered for PayPal. How do I change the PayPal account which I had added to ? > > You can log in to your PayPal Dashboard, go to **Settings** and update your email address to your new account.\\ > > If you want to keep both your accounts active, please raise a request with our [Support team](https://razorpay.com/support/). > [accordion] I have completed my registration on PayPal. Why does my status on the Dashboard still say pending? > > Ensure you have uploaded your bank account and company details on the PayPal Dashboard before PayPal can complete your registration. \\ > > Please log in to to your PayPal account and check if you have completed the 3 steps: \\ > > a. Verify your email with PayPal. \\ > > b. Upload and verify your PAN Card. \\ > > c. Update your Bank Account details. \\ > [accordion] I have enabled PayPal and the status shows activated on my Dashboard. However, why is there no option to pay with PayPal on my checkout? > > PayPal will be shown on your checkout only if the purchasing currency is other than Indian Rupee (INR), for example, if the currency is USD or EUR. PayPal will not appear on your checkout otherwise. > [accordion] What is the pricing for PayPal? > > To know more about the pricing for PayPal check out the [documentation](https://www.paypal.com/in/webapps/mpp/paypal-seller-fees). > [accordion] By when will PayPal be activated on my account? > > * **Existing PayPal Account**: Razorpay enables PayPal on your checkout in 2 days. > * **New PayPal Account**: After you complete all the onboarding steps on PayPal's website, Razorpay enables PayPal on your checkout within 5 working days. # About Refunds Source: https://razorpay.com/docs/payments/refunds Initiate Normal and Instant Refund payments using Razorpay Dashboard and APIs for your customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States There could be situations when customers request a refund of the payments made for the products or services purchased or availed on your website or app. > [!NOTE] > > **Customer Looking for Refund** > > If you are a customer looking for a refund, know about [customer refunds](/docs/payments/customers/customer-refunds). ## Refund Types Following are the various types of refunds that you can use to refund payments to your customers:
  • [Normal Refund](/docs/payments/refunds/normal) \ Amount is refunded within 5-7 working days.
  • [Instant Refund](/docs/payments/refunds/instant) \ Amount is refunded almost immediately.\ By issuing instant refunds to your customers, you can provide a better user experience for them. This also helps in improving their reliability and trust in your business.
  • [Batch Refund](/docs/payments/refunds/batch) \ Issue refunds in bulk using an XLSX or CSV file. Once you upload a file, it is picked up for processing after 70 minutes. You can cancel a batch upload in the 70 minutes before it is picked up for processing.
## Dashboard Actions You can perform the following actions on refunds from the Dashboard: * [View Refunds](/docs/payments/refunds/view) * [Issue Refunds](/docs/payments/refunds/issue) * [View Settlement Details of a Refund](/docs/payments/refunds/view#view-settlement-details-of-a-refund) * [Subscribe to Webhook Events](/docs/payments/refunds/subscribe-to-webhooks) ## Refund States Following are the various states of a refund: | States | Description | | - | - | | `processed` | This is the final state of the refund. | | `failed` | A refund can attain the failed state in the following scenarios:
  • Normal refunds are not possible for a payment which is more than 6 months old.
  • Instant refunds can sometimes fail because of customer's account or bank-related issues.
A refund can attain the failed state in certain cases. For example, normal refunds are not possible for a payment which is more than 6 months old. | > [!WARNING] > > **Watch Out!** > > Usually, Razorpay moves a refund to the `processed` state before receiving the ARN/RRN number from the Gateway. You can ensure that a refund moves to the `processed` state only after receiving confirmation from the Gateway by activating this feature on your account by raising a [support request](https://razorpay.com/support/#request). ## Handle Refund Chargeback For the prevention of chargebacks, Razorpay only does **source refunds**. It means that money is refunded to the payment method that the customer used to make the payment. For example, if a credit card was used to make the payment, the refund is pushed to the same credit card. Similarly, in the case of UPI payments, the refund is pushed to the VPA used while making the payment. If a chargeback is received for an instantly refunded payment, the processed refund will have a **UTR (Unique Transfer Reference)** in the callback. This UTR appears against the **ARN (Application Reference Number)** parameter in the Refund entity. The UTR serves as a proof of refund completed between you and Razorpay. Additionally, Razorpay passes the **RRN (Razorpay Reference Number)** of the payment in the Fund Transfer Request sent for the refund. This ties the instant refund back to the parent payment, thereby, serving as a proof of the refund. This data can also be used as a defense against a future chargeback or arbitration case. ## Reports Detailed insights can be gained using reports and real-time data on the Dashboard. These reports can then be used for accounting and reconciliation purposes. Know more about [reports](/docs/payments/dashboard/reports). Understand [how the Refund process works](/docs/payments/refunds/normal#how-normal-refunds-work). ### Related Information * [EMI and Pay Later Refunds](/docs/payments/refunds/emi-pay-later) * [Add funds to your account to process refunds (low account balance)](/docs/payments/dashboard/account-settings/balances#add-funds-to-reserve-balance) * [Handle refund errors](/docs/payments/refunds/errors) * [Refunds API](/docs/payments/refunds/apis) * [Refund Communication](/docs/payments/refunds/communication) * [Refunds FAQs](/docs/payments/refunds/faqs) # Refunds APIs Source: https://razorpay.com/docs/payments/refunds/apis List of Refunds APIs to perform actions like creating, viewing and updating refunds. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can use the Refunds APIs to perform various actions. You can perform a few of these actions by logging in to the Dashboard as well. ## List of Refunds APIs The table below lists the various Refunds APIs and gives a brief description of each API: | API | Description | | - | - | | [Create a Normal refund](/docs/api/refunds/create-normal) | API to create a Normal refund | | [Create an Instant refund](/docs/api/refunds/create-instant) | API to create an Instant refund | | [View multiple refunds for a payment](/docs/api/refunds/fetch-multiple-refund-payment) | API to retrieve multiple refunds for a payment | | [Create an Instant Refund (Idempotent Request)](/docs/api/refunds/instant-refunds-idempotent) | API to create an Instant refund (idempotent request) | | [Create a Normal Refund (Idempotent Request)](/docs/api/refunds/normal-refunds-idempotent) | API to create a Normal refund (idempotent request) | | [View refund for a specific refund](/docs/api/refunds/fetch-specific-refund-payment) | API to retrieve details of a specific refund made for a payment | | [View all refunds](/docs/api/refunds/fetch-all) | API to view details of all refunds | | [View refund details by refund id](/docs/api/refunds/fetch-with-id) | API to retrieve refund details using the refund id | | [Update refund](/docs/api/refunds/update) | API to update the 'Notes' field of an existing refund | ### Related Information
  • [About Refunds](/docs/payments/refunds)
  • [Normal Refund](/docs/payments/refunds/normal)
  • [Instant Refund](/docs/payments/refunds/instant)
  • [Batch Refund](/docs/payments/refunds/batch)
  • [Issue Refunds](/docs/payments/refunds/issue)
  • [Subscribe to Webhooks](/docs/payments/refunds/subscribe-to-webhooks)
  • [Refunds FAQs](/docs/payments/refunds/faqs)
# Auto-Refunds Source: https://razorpay.com/docs/payments/refunds/auto-refunds Know why Razorpay auto-refunds some payments, how to identify auto-refunds and how to prevent them. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Auto-refunds are refunds that Razorpay triggers, as opposed to refunds you initiate from the Dashboard or using APIs. Only payments in the `authorized` state can be auto-refunded. Payments in the `captured` state are never auto-refunded. They are refunded only when you initiate a refund or when you lose a [dispute](/docs/payments/disputes). ## Reasons for Auto-Refunds The table below lists the reasons a payment can be auto-refunded and when the auto-refund is triggered. | Reason for Auto-Refund | When the Auto-Refund is Triggered | | - | - | | [Late authorisation](/docs/payments/payments/late-authorisation): the payment is authorised after your capture timeout. | Once the refund time window has passed. | | Insufficient account balance when you are on the Platform Fee Bearer model. | 3 days after the payment is authorised. | | Duplicate payment on an order that is already in the `paid` state. | Immediately. | | The payment is not captured within your configured capture timeout (3 days by default). Know more about [Payment Capture Settings](/docs/payments/payments/capture-settings). | Once the refund time window has passed. | | [ACH](/docs/payments/payment-methods/ach) and [POS terminal](/docs/pos/refunds) payments that are not captured manually. | Once the refund time window has passed. | > [!NOTE] > > **Refund Speed** > > Auto-refunds are always processed at normal speed. Know more about [Normal Refunds](/docs/payments/refunds/normal) and how long they take to reach the customer. ## Identify Auto-Refunds Auto-refunds create a refund entity, just like the refunds you initiate. Use the payment's `captured` field to tell them apart. An auto-refunded payment was never captured, so the value is always `false`. A refund on a payment where `captured` is `true` is one you initiated or one for a lost dispute. * **Webhooks**: Auto-refunds trigger the [refunds webhook events](/docs/webhooks/refunds). Check `payload.payment.entity.captured` in the webhook payload. If it is `false`, the refund is an auto-refund. * **APIs**: When you [fetch refunds using the API](/docs/api/refunds/fetch-all), [fetch the corresponding payment](/docs/api/payments/fetch-with-id) for each refund. If the payment's `captured` value is `false`, the refund is an auto-refund. This needs one payment request for each refund, so for large volumes, use webhooks to identify auto-refunds as they happen. * **Emails**: Razorpay sends you an email for each auto-refund, with the reason, a description and any corrective action you need to take. ## View Auto-Refunds on the Dashboard On the **Refunds** page of the Dashboard, check the **Refund Source** column to tell auto-refunds apart from refunds you initiate. Refunds you initiate show **Business Initiated**. Auto-refunds show the reason, for example, **Auto-refunded - Late Auth**. You can also download the refunds report and filter the auto-refunded transactions by their refund source. > [!NOTE] > > **Settlements and Fees** > > Auto-refunds are triggered before the payment is captured. So the auto-refunded amount is not part of your settlement amount, and no processing fee is deducted from your settlement for an auto-refund. ## Prevent Auto-Refunds To prevent your payments from being auto-refunded: * If you have set up manual capture on the Dashboard, capture payments within the capture timeout. Know more about [Payment Capture Settings](/docs/payments/payments/capture-settings). * Set capture timeouts on the Dashboard in [Payment Capture Settings](/docs/payments/payments/capture-settings#auto-capture-with-custom-timeouts). * Pass [capture settings in the Orders API](/docs/payments/payments/capture-settings/api). * Capture a late authorised payment yourself before it is auto-refunded. Know more about [handling late authorised payments](/docs/payments/payments/late-authorisation/handle). ### Related Information * [Normal Refunds](/docs/payments/refunds/normal) * [Refunds Webhook Events](/docs/webhooks/refunds) * [Late Authorisation](/docs/payments/payments/late-authorisation) * [Handle Late Authorised Payments](/docs/payments/payments/late-authorisation/handle) * [Payment Capture Settings](/docs/payments/payments/capture-settings) # Batch Refunds Source: https://razorpay.com/docs/payments/refunds/batch Create and cancel refunds in bulk to your customers using Batch Refunds. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Use Batch refunds to make refunds in bulk using an XLSX or CSV file. Once you upload a file, it is picked up for processing after 70 minutes. You can cancel a batch upload in the 70 minutes before it is picked up for processing. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ## Batch States A batch file can be in any of these states: * `created`: This is the initial state of the file when it is uploaded. Once you upload a file, it stays in the `created` state for 70 minutes. You can cancel the upload during this time. * `processing`: This state indicates that the batch file is getting processed. * `processed`: This is the final state of the file. It indicates that all the rows in the batch file were processed, either successfully or unsuccessfully. Download the Batch Refund Report from the Dashboard to check the status of each refund. * `cancelled`: You can only cancel batch uploads in the `created` state. You cannot cancel batch uploads in the `processing` or `processed` states. ## Refund Fees > [tab] Normal Refunds > > Razorpay does not charge any processing fee for Normal refunds. However, the transaction fee and GST levied by Razorpay at the time of payment capture will not be reversed to your account. > [tab] Instant Refunds > > Razorpay charges a small transaction fee to process Instant refunds. The fees is deducted directly from your account balance and reflects under the **Refunds** tab on the Dashboard. In cases where the Instant refund fails and the refund takes 5-7 working days, the levied fee is credited back to your balance. The fee break-up is shown in the end-of-the-month invoice generated by Razorpay. View and download the details of fees charged in the **Instant Refunds Reports** from the Dashboard. > > For more details about pricing, [raise a Razorpay Support request](https://razorpay.com/support/#request). ## Create a Batch Refund Follow the steps given below to create refunds in bulk using batch refund. To create a batch refund: 1. Log in to the Dashboard. 2. Go to **Transactions** and click **View All** on the **Refunds** tab. Select **Batch Refunds** and click **Click here to upload**. ![batch refunds new](https://razorpay.com/docs/build/browser/assets/images/batch-refunds-new.gif) 3. Download the sample file. 4. Add the required data to the sample file. Know more about [Batch File Fields](#batch-file-fields). 5. Upload the file to the Dashboard, check the preview to ensure details are correct, and click **Submit Batch**. ![Create a Batch Refund](https://razorpay.com/docs/build/browser/assets/images/refunds-upload-batch-file.jpg) ### Batch File - Fields Download the sample file, add your data and upload it for processing. We support CSV, XLS and XLSX file formats for the batch file. We do not support custom headers. Shown below is a sample data from a batch file: ![Batch File Sample Data](https://razorpay.com/docs/build/browser/assets/images/refunds-batch-file.jpg) The below table lists the various headers in the sample batch file and briefly describes each. `Payment Id`*mandatory* : `string` The unique identifier for the payment that is to be refunded. For example, `pay_F1JdjAyjRexm9T`. `amount`*mandatory* : `integer` The amount, in subunits, to be refunded. For example, pass `1000` to process a refund of โ‚น10. `speed` *optional* : `string` The speed at which the refund should be processed. Possible values: * `normal` : The refund is processed in 5-7 working days. * `optimum` : Instant Refunds. If it is not possible to process the refund instantly, we will process the refund in 5-7 working days. Know more about [Instant Refunds](/docs/payments/refunds/instant). If no value is passed, the refund is processed using the default Refund speed set on the Dashboard. ## Cancel a Batch Upload You can cancel a batch upload from the Dashboard. > [!NOTE] > > **Handy Tips** > > You can only cancel batch uploads in the `created` states. You cannot cancel batch uploads in the `processing` and `processed` states. To cancel a batch upload: 1. Log in to the Dashboard. 2. Go to **Transactions** and click **View All** on the **Refunds** tab. Select **Batch Refunds**. ![batch refunds new](https://razorpay.com/docs/build/browser/assets/images/batch-refunds-new.gif) 3. Click **Cancel** for the **Batch Id** that you want to cancel. ## Batch Refund Report Though a batch file may have acquired `processed` state, all the refunds may not have been successful due to errors. For example, if an incorrect payment id is added to the file, the file might be `processed`, but the refund would have failed. You can download the Batch Refund report to check the status of each data row. To download the Batch Refund report: 1. Log in to the Dashboard. 2. Go to **Transactions** and click **View All** on the **Refunds** tab. Select **Batch Refunds**. ![batch refunds new](https://razorpay.com/docs/build/browser/assets/images/batch-refunds-new.gif) 3. Click **Download** for the required **Batch Id** to download the Batch Refund Report. * If a payment was successfully refunded, the corresponding data row is populated with a `Refund Id`. * If a payment was not successfully refunded, the corresponding data row is populated with `Error Code` and `Error Description`. ### Batch Report - Fields Given below is a sample data from a processed batch file: ![Processed Batch File Sample Data](https://razorpay.com/docs/build/browser/assets/images/refunds-processed-batch-file.jpg) The below table describes each of the headers of the processed batch file: `Payment Id` : `string` The unique identifier for the payment that is to be refunded. For example, `pay_F1JdjAyjRexm9T`. `Amount` : `integer` The amount, in subunits, to be refunded. For example, pass `1000` to process a refund of โ‚น10. `Refund Id` : `string` The unique identifier of the refund. For example, `rfnd_EqWThTE7dd7utf`. `Refunded Amount` : `integer` The amount, in subunits, refunded to the customer. For example, `1000` means โ‚น10 was refunded to the customer. `status` : `string` The status of the refund. Possible values: * `processed` : The refund was successfully processed by us. * `failure` : The refund was not processed. You need to create the refund again. `speed` *optional* : `string` The speed at which the refund should be processed. Possible values: * `normal` : The refund is processed in 5-7 working days. * `optimum` : Instant Refunds. If it is not possible to process the refund instantly, we will process the refund in 5-7 working days. Know more about [Instant Refunds](/docs/payments/refunds/instant). `Error Code` : `string` The error code for the failure. For example, `BAD_REQUEST_ERROR`. `Error Description` : `string` The reason for the error. For example, `The refund amount provided is greater than the unrefunded amount`. ### Related Information
  • [About Refunds](/docs/payments/refunds)
  • [Normal Refunds](/docs/payments/refunds/normal)
  • [Instant Refunds](/docs/payments/refunds/instant)
  • [Refunds FAQs](/docs/payments/refunds/faqs)
# Refund Communication Source: https://razorpay.com/docs/payments/refunds/communication Check the refund-related emails sent to your customers after the refunds are initiated. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States If a customer is asking for a refund, the banking partner provides a unique reference number (either RRN, ARN or UTR) when a refund is processed. The customer can use this reference number to track the refund status with the bank. As a customer, you will be notified of the specific payment to be refunded in 7-10 working days. > [!NOTE] > > **Customer Looking for Refund** > > If you are a customer looking for a refund, know more about [customer refunds](/docs/payments/customers/customer-refunds). ## Refund Mailers Razorpay sends you the following email communications for refunds: * Refund Mailer\ After you process the refund, Razorpay sends you an email with the refund id and unique reference number (ARN, RRN or UTR) provided by the bank. ![Refund Mailer](https://razorpay.com/docs/build/browser/assets/images/normal_refund_mailer1.jpg) * RRN/ARN Update Mailer\ When you refund a credit card payment, the banking partner will share an ARN with Razorpay. Razorpay sends you an email with this ARN number. ![RRN/ARN Update Mailer](https://razorpay.com/docs/build/browser/assets/images/normal_arn_mailer.jpg) > [!NOTE] > > **Handy Tips** > > Razorpay sends the **Refund** and **RRN/ARN Update** emailers only if the customer email is passed to us. ### Related Information * [Customer Refunds](/docs/payments/customers/customer-refunds) * [Refunds APIs](/docs/payments/refunds/apis) # EMI and Pay Later Refunds Source: https://razorpay.com/docs/payments/refunds/emi-pay-later Initiate the process of Refunds for EMI transactions and Pay Later. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can refund payments to customers who have used EMI methods, such as Debit Card EMI, Credit Card EMI, Cardless EMI and so on, offered by different banks that have partnered with Razorpay. You can also process refunds to your customers who have made payments using the [Pay Later](/docs/payments/payment-methods/pay-later) option. Know more about the various [third-party providers offering Pay Later](/docs/payments/payment-methods/pay-later). ## How EMI and Pay Later Refunds Work When your customer makes an online purchase using EMI methods on your website or app, the transaction amount is converted into Equated Monthly Instalments (EMIs). Following is the EMI payment flow from the customer to the merchant: 1. Customer purchases for Total\_Amt via EMI on your website or app. 2. Bank pays Razorpay (Razorpay\_Amt = Total\_Amt - Bank Commission). 3. Razorpay pays you (Merchant\_Amt = Razorpay\_Amt - Razorpay Commission). > [!NOTE] > > **Handy Tips** > > The EMI includes a portion of the principal outstanding and interest component, which your customer needs to pay every month until the full amount is paid. ## Refund Flow for EMI Transactions 1. You receive a refund request from your customer. 2. You will raise a Refund Request with Razorpay, indicating the amount to be refunded, which is โ‚นX. > [!NOTE] > > **Handy Tips** > > You can set the required payment terms and conditions. 3. Razorpay then passes the Refund Request with the bank, indicating the amount to be refunded. 4. The bank refunds the amount, Min (โ‚นX, Total Principal paid). * If โ‚นX = Total Principal Amount paid by the customer, it is a **Full Refund**. * If โ‚นX \< Total Principal Amount paid by the customer, it is a **Partial Refund**. > [!NOTE] > > **Handy Tips** > > * Your customer may be charged cancellation charges by the bank over and above the refund amount. > * The interest paid for EMI payments cannot be refunded. ### Use Cases > [tab] Debit Card EMI Refund > > If your customer purchases a product from your website or app using the Debit Card EMI option and raises a refund request, only a full refund request can be raised. > > Debit Card EMI does not support multiple partial refunds as order information or product details are not sent to the bank processing the EMI payments. Razorpay team shares the reconciliation file with the bank, and the bank refunds the amount based on the calculations. > > > [!NOTE] > > > > **Handy Tips** > > > > * For DC EMI, only a full refund is allowed. A partial refund is not supported. > > * The interest paid for EMI payments cannot be refunded and is directly managed by the issuing bank. > > **Examples - How refund is processed for Debit Cards EMIs** > > * A customer purchases 3 products - Product A, B and C, in a single payment using the Debit Card EMI option. The customer cancels Product A within 5 days of purchase and then cancels Product B on the 7th day. Here, a partial refund will not be supported as there are multiple items/orders, and Razorpay does not provide an order-level split up to the bank. A full refund request can be raised with the bank for all the 3 products. > * A customer purchases 2 products - Product A (โ‚น2000) and Product B (โ‚น7000). In a 3-month EMI plan, the customer needs to pay an EMI amount of โ‚น3100 (Total payment of โ‚น9300 in 3 months). After paying the first installment, the customer returns Product A. In this case, for a Debit Card EMI option, you cannot raise a partial refund request for โ‚น2000. You will have to raise a full refund request for the entire amount of โ‚น9000. The interest of โ‚น100 that the customer paid as part of the first EMI installment cannot be refunded. > > Know more about [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi). > [tab] Credit Card EMI Refund > > If a customer purchases a product on your website or app using the Credit Card EMI option and requests for refund, there can be the following two scenarios in case the refund is processed: > > * For a full refund request made by your customer, the full principal amount is refunded. > * For a partial refund, the principal amount will be reduced by the amount that has been refunded. > > **Examples - How refund is processed for Credit Cards EMIs** > > * A customer purchases 2 products - Product A (โ‚น2000) and Product B (โ‚น7000). In a 3-month EMI plan, the customer needs to pay an EMI amount of โ‚น3100 (Total payment of โ‚น9300 in 3 months). The customer decides to return both Product A and Product B. In this case, for a Credit Card EMI option, the entire amount of โ‚น9000 will be refunded to your customer. However, the interest or any other processing charges levied for using the EMI option may not be reversed. > > * A customer purchases 2 products - Product A (โ‚น2000) and Product B (โ‚น7000). In a 3-month EMI plan, the customer needs to pay an EMI amount of โ‚น3100 (Total payment of โ‚น9300 in 3 months). The customer decides to return Product A. In this case of partial refund, for a Credit Card EMI option, the principal amount of โ‚น2000 will be refunded to your customer. The remaining EMIs will be re-calculated basis the new principal amount, which is the Original amount - Refunded amount. > > > [!NOTE] > > > > **Handy Tips** > > > > * The interest paid for EMI payments cannot be refunded and is directly managed by the issuing bank. > > * Depending on the card issuer and their terms and conditions, the processing charges levied for using the EMI option may or may not be reversed. > > * Whether it is a full refund or a partial refund, the GST and other charges already levied by the bank may not get refunded. > > * To cancel a Credit Card EMI, your customer should contact the credit card issuing bank. > > To cancel a Credit Card EMI, your customer must reach out to the bank. Know more about [Credit Card EMI](/docs/payments/payment-methods/emi). > [tab] No Cost EMI Refund > > The No Cost EMI Refund process is similar to a normal [EMI Refunds](#refund-flow-for-emi-transactions) process. The only difference is that the Principal Amount used in calculations is the amount after subtracting the discount amount. > > **Example** > Let us consider the example of buying a mobile phone worth โ‚น15000 using the No Cost EMI on a 3-month EMI period. The bank charges 15% interest per annum. In this case, the retailer offers a discount of โ‚น367.33. > > | **Original Cost of Mobile Phone** | **No Cost EMI Discount Offered by Retailer** | **Net Cost of Phone** | **Total interest to be paid under EMI (In case of purchase on EMI)** | **Final Price** | **EMI for 3 months** | > | - | - | - | - | - | - | > | โ‚น15000 | โ‚น367.33 | โ‚น14632.67 | โ‚น367.33 | โ‚น15000 | โ‚น5000 | > > In the above example, the Principal Amount = โ‚น14632.67 (and not โ‚น15000). The original price is discounted by โ‚น367.33. This cost is borne by the retailer. For a bank charging 15% interest per annum with an EMI period of 3 months, the discount is 2.45%. The discounted amount is โ‚น367.33 (โ‚น15000 \* 2.45%).\ > Your customer will pay interest on a discounted amount of โ‚น14632.67. The interest paid by them would-be โ‚น367.33. > > > [!NOTE] > > > > **Handy Tips** > > > > * Your customer may be charged cancellation charges by the bank over and above the refund amount. > > * Interest already billed in a particular transaction is not refundable under any circumstances. > > * The processing charges levied by the bank for using the No Cost EMI option cannot be refunded to the customer. > > Know more about [No Cost EMIs](/docs/payments/payment-methods/emi/no-cost-emi). > [tab] Cardless EMI Refund > > Your customer purchases a product from your website or app using the Cardless EMI option and requests for a refund. Any EMI instalments paid by the customer is refunded to the same payment mode or account that was used to make the payment. > > > [!NOTE] > > > > **Handy Tips** > > > > Razorpay does not do calculations for Cardless EMI. > > Know more about [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi). ## Refund Flow for Pay Later 1. You receive a refund request from your customer. 2. You will raise a Refund Request with Razorpay, indicating the amount to be refunded. 3. Razorpay passes the refund request details to the respective [Pay Later providers](/docs/payments/payment-methods/pay-later#supported-pay-later-providers), where the refund takes place before the Payback Period: * If it is a **full refund**, your customerโ€™s loan is closed by the respective provider. They are no longer billed to repay this amount. * If it is a **partial refund**, your customer is billed and will need to repay the balance amount to the Pay Later provider. Here, the refunded amount gets adjusted against the loan amount. > [!NOTE] > > **Handy Tips** > > * The refund will take place within 5-7 business days, depending on the providerโ€™s processing time. > * Where the amount is repaid to the Pay Later provider, your customer gets a good credit limit (amount of credit available for use) with the refund amount. This balance amount can be used for subsequent payments. Know more about [Pay Later](/docs/payments/payment-methods/pay-later). ## Refund Timelines Below is the list of refund timelines supported by cardless EMI and pay later providers. > [tab] Cardless EMI Providers > > | Providers | Refund Timelines | > | - | - | > | axio | 30 days | > | Zestmoney | 1 year | > | Fibe | Infinite | > | InstaCred | Infinite | > [tab] Pay Later Providers > > | Providers | Refund Timelines | > | - | - | > | Lazypay | 6 months | > | PayPal | 6 months | ## Frequently Asked Questions (FAQs) > [accordion] How can the customers track the EMI refund amount in their accounts? > > For the EMI refund, a record is displayed in the customer's bank statement stating the Refund/Reversal amount for the payment towards EMI. The EMI amount refunded to your customer depends upon their bank based on the cancellation fee, processing fee, or any other bank charges. > [accordion] What happens to the EMIs if the customer cancels an order? > > If your customer cancels or returns an order purchased using the Credit Card or Debit Card EMI option, the entire purchase amount is immediately refunded to the customer's card. The EMI is also canceled at your (merchant) end. If the customer has paid any down-payment amount, it is refunded to the customer's card within 5-7 business days. The customers should contact their bank to confirm the EMI cancellation. > [accordion] How will future EMI payments be affected in case there is a pending amount to be paid after a refund? > > Suppose there is a balance amount to be paid by the customer. In that case, the remaining EMIs will be re-calculated basis the new principal amount, which is the Original amount, the refunded amount.\ > In order to close the loan, the customer has to pay the pending amount and only then it would be complete closure. However, this is a very rare case scenario. Refer to the following examples: > > * A customer purchases 2 products - Product A and Product B. After paying a few EMIs, the customer decides to cancel the complete order. In this case, the customer needs to pay the full refund. The original loan booking amount will be debited in full and get adjusted against the full refund credit. The interest debits done earlier will be credited. However, the customer might need to follow up with the bank to ensure that the EMI transaction is canceled and that no more EMIs are debited. > * A customer purchases 2 products - Product A (โ‚น2000) and Product B (โ‚น7000). In a 3-month EMI plan, the customer needs to pay an EMI amount of โ‚น3100 (A total payment of โ‚น9300 in 3 months). After paying for a couple of monthly installments, the customer returns Product B. In this case, the customer will pay as per the regular EMI plan, that is, without affecting the EMI booking. The refund amount will reflect as a credit on the card. However, the interest already billed will not be reversed. # Handle Refund Errors Source: https://razorpay.com/docs/payments/refunds/errors Check the errors that may occur while processing Refunds and how to handle these errors. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Sometimes when you try to process a refund request, it fails to get processed and you may encounter `BAD_REQUEST_ERROR` messages stating refunds are not supported. This happens because most of the banks do not support refunds for payments that are more than 6 months old. ## List of Possible Refund Errors Given below is a refund error example. ```json Error Response theme={null} { "error": { "code": "BAD_REQUEST_ERROR", "description": "Refund is not supported by the bank because the payment is more than 6 months old", "source": null, "step": null, "reason": null, "metadata": {} } } ``` You can try to process such refunds using [**Instant Refund**](/docs/payments/refunds/instant). To check the refund status, navigate to the **Refund Details** pop-up by clicking on the specific **Refund Id** under the **Transactions** โ†’ **Refunds** tab. You can get the ARN/RRN for successfully processed refunds under the [Dashboard Refunds tab](/docs/payments/refunds/view) or using the [Fetch Refund API](/docs/api/refunds/fetch-with-id). This is a unique reference number which can be used by the customers to track refunds. > [!NOTE] > > **Instant Refund Fee** > > We charge a [small fee to process instant refunds](/docs/payments/refunds/instant#refund-fees). If **Instant Refund** for a payment that is more than 6 months old is not supported, an error message is displayed on the **Refund Payment** pop-up. You will encounter the following error code and error message in the API response: ```json Error Response theme={null} { "error": { "code": "BAD_REQUEST_ERROR", "description": "Refund is not supported by the bank because the payment is more than 6 months old", "source": null, "step": null, "reason": null, "metadata": {} } } ``` > [!NOTE] > > **Instant Refund Fee Reversal** > > If the instant refund fails, any fee charged will be reversed to your account. ### Related Information
  • [About Refunds](/docs/payments/refunds)
  • [Normal Refunds](/docs/payments/refunds/normal)
  • [Instant Refunds](/docs/payments/refunds/instant)
  • [Batch Refund](/docs/payments/refunds/batch)
  • [Refunds FAQs](/docs/payments/refunds/faqs)
# Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/refunds/faqs Find answers to frequently asked questions about Refunds via Razorpay and IRCTC refunds. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States ## General FAQs > [accordion] How do I initiate a refund? > > You can issue partial or full refund using: > > * [Dashboard](/docs/payments/refunds/issue#issue-refunds). > * [APIs](/docs/api/refunds). > > By default, the entire amount is refunded. If you issue a partial refund, ensure the partial refund option is selected and enter the desired value in INR. > > > [!WARNING] > > > > **Watch Out!** > > > > Razorpay issues immediate refunds. Once a refund is issued, it cannot be canceled or reversed. > [accordion] Do you charge for refund? > > * **Refunds**\\ > > No, we do not charge for the regular refunds. However, fees and taxes charged for a captured payment are not reversed. > * **Instant Refunds**\\ > > Yes, we charge a small fee to issue instant refunds. Know more about [instant refund pricing](https://razorpay.com/pricing/). > [accordion] I am unable to refund a payment. What do I do? > > If your current balance is less than the amount you are trying to refund, you can either initiate the refund once you receive further payments or you can [add funds](/docs/payments/dashboard/account-settings/balances#add-funds-to-reserve-balance) to your account from the Dashboard. > [accordion] Why was a payment refunded that I did not refund? > > Razorpay auto-refunds some payments that are not captured, for example, payments that are not captured within your capture timeout, late authorised payments or duplicate payments on an already paid order. These auto-refunds are processed at normal speed. Know more about [auto-refunds](/docs/payments/refunds/auto-refunds). > [accordion] When a refund is initiated, can its status remain 'pending' until settlement? How should I track the final status (processed/failed)? > > Yes, a refund status can remain in a 'pending' state, particularly when the refund cannot be processed instantly. This state indicates that the refund has been accepted by Razorpay but is still being processed by the bank or payment network. > > The **`refund.processed` webhook** is the **most reliable and recommended** way to receive the final status update (Processed, Failed or Reversed). > > We strongly suggest implementing **both** the Refund API response handler (for immediate status) and the **`refund.processed` webhook** (for the definitive final status update) to ensure reliable status tracking and update your inventory/ledger accurately. > [accordion] Do all refunds (including Instant Refunds) always return a 'processed' status instantly via the Refund API? > > No, not all refunds return 'processed' instantly. > > * **Instant Refunds (Optimum Speed):** If the refund is successfully processed instantly, the API response will typically show a `processed` status immediately or shortly after. > * **Normal Refunds (Standard Speed) or Failed Instant Refunds:** If the refund defaults to the normal processing speed (5-7 business days) or if the API call is synchronous but the bank processing takes time, the initial API response might return a **`pending`** status. > > In all scenarios, rely on the **`refund.processed` webhook** for the final, verified status update to ensure your application records are correct. ## IRCTC Customers > [accordion] I have cancelled my ticket. When will I receive my refund? > > After you cancel a booking, IRCTC has to initiate the refund. You will receive the credit in your account within 7-10 working days from the date of refund. > [accordion] How can I check the status of my transaction if I have not received a confirmation mail? > > If you have not received the email, check your booking status directly on the IRCTC portal or contact IRCTC support. > [accordion] My account has been debited but I have not received my tickets. How do I proceed? > > If you have not received your booking confirmation mail from IRCTC after paying for your tickets, it means your payment was unsuccessful. > > In such cases, your money is credited back to your account within 7-10 working days from the transaction date. Know more about the [refund timelines](https://razorpay.com/blog/why-do-refunds-take-time/). > > If you have not received the amount even after 10 days, [contact support](https://razorpay.com/support/) with the following details: > > * IRCTC transaction id. > * A copy of the bank statement from the date of debit to the current date. > * UPI Reference number (if the transaction is via UPI). # About Instant Refunds Source: https://razorpay.com/docs/payments/refunds/instant Check Instant Refunds, how they are processed, supported payment methods, processing time and refund fees. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can refund the amount to your customer almost instantly using Instant Refunds. This provides a better user experience for them. This also helps in improving their reliability and trust in your business. > [!NOTE] > > **Handy Tips** > > Instant Refunds feature is enabled by default for your account. You should set the refund speed to `optimum` when creating a refund request to ensure refunds are processed instantly. We will consider the default speed if you do not specify the same during the refund request. Know more about [setting the default speed](/docs/payments/refunds/refund-speed) from the Dashboard. Refunds will be processed at an optimal speed based on Razorpay's internal fund transfer logic: * If the refund can be processed instantly, Razorpay will do so irrespective of the payment method used to make the payment. * If an Instant Refund is not possible, Razorpay will initiate a refund that is processed at the normal speed. > [!NOTE] > > **Customer Looking for Refund** > > If you are a customer looking for a refund, know more about [customer refunds](/docs/payments/customers/customer-refunds). ## How Instant Refunds Work When an Instant Refunds request is sent to Razorpay, our system processes the refunds instantly. The customer receives the refund within minutes (or an hour, sometimes) on their original payment source. Instant Refunds is a value-added service provided by Razorpay; if and when you opt, Razorpay will charge due consideration for providing Instant Refunds services. You must agree to read and understand the terms of Instant Refunds before signing up. Following is a typical flow for instant refunds: ![Instant Refund Flow](https://razorpay.com/docs/build/browser/assets/images/instant-refund-flow.jpg) ### Payment Methods We support the following payment methods for Instant refunds. The list of banks that support Instant refunds differs according to payment methods. * [List of supported banks for Netbanking](/docs/payments/refunds/supported-payment-methods#netbanking) * [List of supported banks for UPI](/docs/payments/refunds/supported-payment-methods) Refunds are sent back to the original payment method used in making the payment. For example, if netbanking was used to make the payment, the refund amount was pushed to the same netbanking details. ### Processing Time For all transactions, the time taken depends on the amount to be refunded: | **Refund Amount** | **Time Taken for Refund** | | - | - | | Up to โ‚น500000 | Credited immediately to the customer's account. | | More than โ‚น500000 and up to โ‚น10000000 | Processed via NEFT and credited within 3โ€“4 hours during business hours. For refunds raised beyond business hours, it can take up to 1 business day. | | More than โ‚น10000000 | The refund is processed at normal speed and can take 5โ€“7 business days. | ### Refund Fees Razorpay charges a small transaction fee to process Instant Refunds. The fees is deducted directly from your account balance and reflects under the Dashboard Refunds tab. In cases where the Instant refund fails and the refund takes 5-7 working days, the levied fee is credited back to your account balance. The fee break-up is shown in the end-of-the-month invoice generated by Razorpay. You can view and download the details from the **Instant Refunds Reports** from the Dashboard. Visit the [pricing page](https://razorpay.com/pricing/) for more details. > [!WARNING] > > **Watch Out!** > > In the case of instant refunds, the Platform fee charged or deducted for the transaction will not be refunded. ## Dashboard and API Actions You can perform the following actions: * [Issue Instant refunds](/docs/payments/refunds/issue) * [Handle refund errors](/docs/payments/refunds/errors) ### Related Information * [Payment Methods for Instant Refunds](/docs/payments/refunds/supported-payment-methods) * [Batch Refunds](/docs/payments/refunds/batch) * [Refunds API](/docs/payments/refunds/apis) * [Subscribe to Webhooks](/docs/payments/refunds/subscribe-to-webhooks) * [Refunds FAQs](/docs/payments/refunds/faqs) # Issue Refunds Source: https://razorpay.com/docs/payments/refunds/issue Issue refunds to customers using Razorpay Dashboard and APIs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can issue refunds to your customers using the Dashboard or APIs. Refunds are possible for `captured` payments only. > [!NOTE] > > **Customer Looking for Refund** > > If you are a customer looking for a refund, know about [customer refunds](/docs/payments/customers/customer-refunds). ## Full and Partial Refunds Refunds can be made either in **full** or in **part**. * **Full Refund** \ You can refund the entire amount that you received in the payment. * **Partial Refund** \ You can refund part of the amount received in the payment. You can issue multiple, partial refunds as long as their sum does not exceed the captured amount. A payment moves to the `refunded` state only when the entire amount is refunded to the customer. In case of partial refunds, the payment remains in the `captured` state till the entire payment is refunded. ## Issue Refunds ### Issue Refunds Using Dashboard Watch this video to see how to issue a refund. [How to issue a refund via the Razorpay Dashboard](https://www.youtube.com/embed/O-tkAsnvV1w?si=WKjXZtkSYrdCVDVW) To issue refunds: 1. Log in to the Dashboard. 2. Navigate to **Transactions** โ†’ **Payments**. 3. Select the payment for which refund is requested. The payment should be in the `captured` state. 4. On the **Refund Payment** page, in the **amount** field, enter an amount lesser than the captured amount for issuing a partial refund. By default, the entire amount will be refunded. 5. Look for the **Refund Instantly** check box. * If you want to issue a normal refund, unselect the **Refund Instantly** check box. ![Unselect Refund Instantly to issue a normal refund](https://razorpay.com/docs/build/browser/assets/images/instant_refunds_self_serve-normal-refund-payment.jpg) * If you want to issue an [instant refund](/docs/payments/refunds/instant), select the **Refund Instantly** check box. ![Select Refund Instantly to issue Instant Refunds](https://razorpay.com/docs/build/browser/assets/images/instant_refunds_self_serve-instant-refund-payment.jpg) 6. Review the fees that will be levied for the refund to be processed instantly. 7. Click the **Issue Full Refund** or **Issue Partial Refund** button, depending on the amount to be refunded. ### Issue Refunds Using API To create a normal refund, use [Create a Normal Refund API](/docs/api/refunds/create-normal). ### Related Information
  • [About Refunds](/docs/payments/refunds)
  • [Normal Refunds](/docs/payments/refunds/normal)
  • [Instant Refunds](/docs/payments/refunds/instant)
  • [Batch Refunds](/docs/payments/refunds/batch)
  • [View Refunds](/docs/payments/refunds/view)
  • [Refunds FAQs](/docs/payments/refunds/faqs)
# Normal Refunds Source: https://razorpay.com/docs/payments/refunds/normal Check how to issue Normal Refunds to your customers, the refund process, processing time and refund fees. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can issue Normal refunds to your customers which are processed within 7-10 working days. > [!NOTE] > > **Customer Looking for Refund** > > If you are a customer looking for a refund, know more about [customer refunds](/docs/payments/customers/customer-refunds). ## How Normal Refunds Work When you make a Normal refund request to Razorpay, the information is sent to banking partners or other related stakeholders. Each of them have their own process for refund requests. After processing the refund request, the refund amount is sent to the customer's bank account or card balance. Following is a typical flow for card refunds: ![Normal Refund Flow](https://razorpay.com/docs/build/browser/assets/images/normal-refund-flow.jpg) ### Payment Methods We support all payment methods for Normal refunds. Refunds are sent back to the original payment method used in making the payment. For example, if a credit card was used to make the payment, the refund amount is pushed to the same credit card. ### Processing Time When you send a Normal refund request to Razorpay, the information is sent to our banking partners. Depending on the bank's processing time, it can take 7-10 business days for the refunds to reflect in the customer's bank account or card balance. The time taken to process a normal refund depends on the payment mode used while making the payment. | **Payment Method** | **Refund Time** | | - | - | | `credit` or `debit` cards | 5-10 days | | `netbanking` | 2-10 days | | `wallet` | 0-3 days | | `upi` | 2-7 days | ### Refund Fees For Normal refunds, Razorpay does not charge any processing fee. However, the transaction fee and GST levied by Razorpay at the time of payment capture will not be reversed to your account (merchant's account). ## Dashboard and API Actions You can perform the following actions: * [Issue Normal refunds](/docs/payments/refunds/issue) * [View Refunds](/docs/payments/refunds/view) * [Handle refund errors](/docs/payments/refunds/errors) ### Related Information
  • [Batch Refund](/docs/payments/refunds/batch)
  • [Instant Refund](/docs/payments/refunds/instant)
  • [Add funds to your account to process refunds (low account balance)](/docs/payments/dashboard/account-settings/balances#add-funds-to-reserve-balance)
  • [Refunds API](/docs/payments/refunds/apis)
  • [Subscribe to Webhooks](/docs/payments/refunds/subscribe-to-webhooks)
  • [Refunds FAQs](/docs/payments/refunds/faqs)
# Set Refund Speed Source: https://razorpay.com/docs/payments/refunds/refund-speed Set the default refund speed at which to process refunds. You can also override the default refund speed. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can configure the speed at which all the refunds should be processed for your customers. ## Set Default Speed of Refunds Depending on your business needs, you can select from the following: * **Normal Refund** \ In this mode, the speed attribute is set to `normal`. The customers will receive their refunds within 5-7 business days. * **Instant Refund** \ In this mode, the speed attribute is set to `optimum`. Razorpay attempts to initiate fund transfer using IMPS, NEFT or UPI. The customer will receive the refunds instantly. If unsuccessful, Razorpay processes the refund via the `normal` speed. The selected speed is set as the **default speed** and all the refunds, thereafter, will be processed at the chosen speed. To set the default speed for all the refunds: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** and click **Capture and refund settings** under the **Payments and refunds** section. 3. In the **Default Refund Speed** section, choose between **Normal Refund** and **Instant Refund**. > [!NOTE] > > **Handy Tips** > > The chosen value is also applied as the default speed in the [Refund API request](/docs/api/refunds). ## Override Default Refund Speed You can override the default refund speed while refunding a payment from the **Transactions** โ†’ **Payments** tab of the Dashboard. Watch this video to see how to override the default refund speed while issuing a refund. [How to override the default refund speed while issuing a refund from the Razorpay Dashboard](https://www.youtube.com/embed/hOhr1x_xAls) The possible ways in which you can switch between Normal and Instant Refunds are listed below: | **Default Speed setting** | **All Refunds** | **Refund Payment option** | **Processed speed of the Refund** | | - | - | - | - | | **Normal Refund** | All the refunds are processed at the `normal` speed. | **Refund Instantly** option is selected. | The refund is processed at the `optimum` speed. If an instant refund is not possible, Razorpay initiates a normal refund. | | **Instant Refund** | All the refunds are processed at an `optimum` speed. If an instant refund is not possible, Razorpay initiates a normal refund. | **Refund Instantly** option is unselected. | The refund is processed at the `normal` speed. | To set the default speed for all the refunds: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** and select **Capture and refund settings**. 3. In the **Default Refund Speed** section, choose between **Normal Refund** and **Instant Refund**. > [!NOTE] > > **Handy Tips** > > The chosen value is also applied as the default speed in the [Refund API request](/docs/api/refunds). ### Related Information * [About Refunds](/docs/payments/refunds) * [Normal Refunds](/docs/payments/refunds/normal) * [Batch Refunds](/docs/payments/refunds/batch) * [Issue Refunds](/docs/payments/refunds/issue) * [View Refunds](/docs/payments/refunds/view) * [Refunds FAQs](/docs/payments/refunds/faqs) # Subscribe to Webhooks Source: https://razorpay.com/docs/payments/refunds/subscribe-to-webhooks Subscribe to various webhook events related to Refunds to receive instant notifications. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Get notified by subscribing to webhook events available for refunds. To subscribe to webhook events: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **Webhooks** to subscribe to any of the events listed below. ## List of Webhook Events The table below lists the webhook events available for refunds. | Webhook Event | Description | | - | - | | `refund.created` | Triggered when a refund is created. | | `refund.processed` | Triggered when the refund is successfully processed. | | `refund.failed` | Triggered when we are not able to process a refund. | | `refund.speed_changed` | Triggered when refund speed is changed. | Know more about [Webhooks](/docs/webhooks) and check the [sample payloads.](/docs/webhooks/refunds) ### Related Information * [About Refunds](/docs/payments/refunds) * [Refunds APIs](/docs/payments/refunds/apis) # Supported Payment Methods Source: https://razorpay.com/docs/payments/refunds/supported-payment-methods List of payment methods that support Instant Refunds. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore We support the following payment methods for instant refunds. The list of banks that support instant refunds differ according to payment methods - [Netbanking](/docs/payments/refunds/supported-payment-methods#netbanking) and [UPI](/docs/payments/refunds/supported-payment-methods). Refunds will be sent back to the original payment method used in making the payment. For example, if netbanking was used to make the payment, the refund will be pushed to the same netbanking details. ## Netbanking We support instant refunds for netbanking payments made from the following banks: | Bank Name | Bank Code | | - | - | | Bank of Baroda | `BARB_R` | | Canara Bank | `CNRB` | | Central Bank of India | `CBIN` | | Equitas Bank | `ESFB` | | IndusInd Bank | `INDB` | | Karur Vysya Bank | `KVBL` | | RBL Bank | `RBL` | # View Refunds Source: https://razorpay.com/docs/payments/refunds/view View details of Refunds and Settlements using the Razorpay Dashboard and APIs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States After issuing a refund for a payment, you can check its status in the **Refunds** tab. You can also view details of settled refunds. ## View Details of a Refund Watch this video to see how you can view the details of a refund. [YouTube video player](https://www.youtube.com/embed/0InIsDOFFYc?si=okGBDREys7eSescV) To view a refund: 1. Log in to the Dashboard. 2. Click **Transactions** on the left navigation and **View All** on the **Refunds** tab. 3. Click a **Refund Id** to view details of the refund. ## View Settlement Details of a Refund Watch this video to see how you can view settlement details of a refund. [YouTube video player](https://www.youtube.com/embed/69rO4FIBRNo?si=q_DFpeDSyqoZNhML) To view a detailed break-down of a settlement made to your account: 1. Log in to the Dashboard. 2. Navigate to **Transactions** โ†’ **Refunds**. 3. Click the **Refund Id** for which you want to view the settlement details. 4. In the **Refund Details** view, you can see the settlement details. 5. Click on the **settlement\_id** to view a detailed breakdown. ### Related Information * [Normal Refund](/docs/payments/refunds/normal) * [Batch Refund](/docs/payments/refunds/batch) * [Issue Refunds](/docs/payments/refunds/issue) * [Refunds FAQs](/docs/payments/refunds/faqs) # About Settlements Source: https://razorpay.com/docs/payments/settlements Check how Razorpay settles money received from your customers to your bank account- Settlement Cycle, Partial Settlements and Settlement States. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Settlement is the process in which the money received from your customers is settled in your bank account. Settlements for all payments are done in INR (Indian Rupees), irrespective of the currency in which the customer made the payment. Once Razorpay receives the amount, it is settled in your bank account after deducting fees. #### Prerequisites Following are some of the prerequisites for settlements of payments from customers to your bank account: * Your account must be KYC approved. * Your account must be fully activated for payments to be settled to your bank account. Know more about [KYC Verification](/docs/payments/set-up#kyc-details). * The payment must be captured. Know more about [capturing payments](/docs/payments/payments/capture-settings). ## Settlement Cycle We automatically settle captured payments to the bank account you submitted to us during your [KYC verification](/docs/payments/set-up#kyc-details) following our settlement cycle. The settlement cycle is subject to bank approval and can vary based on your business vertical, risk factors and so on. ![Checkout screen with details of Settlement Cycle](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-settlement_cycle.jpg) > [!NOTE] > > **Handy Tips** > > Working days do not include the bank holidays. ## Domestic Settlements The standard settlement cycle for domestic payments is **T+2** working days (where **T** is the date of transaction capture). > [accordion] Example > > You captured 20 payments on February 02, 2019 at 9:00 a.m., and your settlement schedule is **T+2** days. The payments you captured on February 02, 2019 is settled to your bank account on February 04, 2019 at 9:00 a.m. If the settlement day is a bank holiday, the settlement is made on the next working day after the bank holiday. ## International Settlements The default settlement cycle for international payments is as per applicable law(s). You can view your settlement cycle on the Razorpay Dashboard. Settlements for all payments is done in INR (Indian Rupees), irrespective of the currency in which the payment was made. The payment is converted using the exchange rate at the time of payment creation. Razorpay allows you to accept payments in any of the [supported international currencies](/docs/payments/international-payments#supported-currencies). We may hold part or all of an international payment as a [reserve](/docs/payments/settlements/reserves) before we settle it to you. > [accordion] Example > > You captured 7 international payments on February 02, 2019 and your settlement schedule is T+7 days 9:00 a.m. The payments you captured on February 02, 2019 is settled in your account on February 09, 2019 at 9:00 a.m.If the settlement day is a bank holiday, the settlement is made on the next working day after the bank holiday. ## Instant Settlements Using Instant Settlements, you can access your funds as and when you want. Normally, you would receive settlements according to your settlement cycle. Razorpay Instant Settlements helps you reduce your settlement period from **T+2** days (default settlement cycle) to a few minutes (from the time of the transaction), thus enabling your business to avoid cash-flow challenges and prepare better for working capital requirements. Know more about [Instant Settlements](/docs/payments/settlements/instant). > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ## Partial Settlements Razorpay initiates partial settlements when your amount that requires settlement exceeds your current live balance (when the settlement is scheduled). Razorpay accurately calculates the amount that requires settlement based on the live balance, ensuring that settlements are not skipped. When settling transactions, we will only choose the ones that add up to your current live balance. This ensures that your settlements are timely and regular and you can maintain stable cash flow. > [accordion] Example 1 > > You captured a payment of โ‚น1000 on July 02, 2023, and your settlement schedule is T+2 days 5:00 p.m. Hence, the live balance is โ‚น1000, which will be the settlement amount. > > However, on July 02, 2023, you had to refund your customer โ‚น100. Due to this, your live balance is โ‚น900. As the current live balance is lesser than the settlement scheduled, Razorpay will initiate partial settlements and settle your current live balance of โ‚น900. > [accordion] Example 2 > > You captured three payments of P1 - โ‚น500, P2 - โ‚น300 and P3 - โ‚น200 on July 02, 2023, and your settlement schedule is T+2 days 5:00 p.m. Hence, the live balance is โ‚น1000, which will be the settlement amount. > > However, on July 02, 2023, you had to refund your customer โ‚น100. Due to this, your live balance is โ‚น900. As the current live balance is lesser than the settlement scheduled, Razorpay will initiate partial settlements and settle transactions P1 and P2 on T+2 as it adds upto โ‚น900. P3 will be scheduled for the next day, shown as an upcoming settlement, and paid in the next slot. ## Settlement States Following are the various states of a settlement: ![Settlement Life Cycle flow](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-settlement_life_cycle.jpg) Some reasons for settlement failure: * Your bank account is inactive or frozen. * Incorrect bank account details. * The settlement was rejected by your bank. ## Dashboard Actions You can perform the following actions from the Razorpay Dashboard: * [View settlement details](/docs/payments/settlements/dashboard#view-settlements-using-dashboard) * [Check settlements break-up](/docs/payments/settlements/dashboard#settlements-break-up-description) * [Enable settlements on hold](/docs/payments/settlements/dashboard#enable-settlements-placed-on-hold) * [View reports related to settlements](/docs/payments/settlements/dashboard#reports) ### Related Information * [Settlements APIs](/docs/payments/settlements/apis) * [Settlement FAQs](/docs/payments/settlements/faqs) # Settlements APIs Source: https://razorpay.com/docs/payments/settlements/apis List of Settlements APIs and Instant Settlements (On-demand Settlement) APIs available to perform actions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can use the Settlement APIs to perform various actions. You can perform a few of these actions from the Dashboard as well. ## List of Settlements API The table below lists the various Settlement APIs and gives a brief description of each API: | API | Description | | - | - | | [View All Settlements](/docs/api/settlements/fetch-all) | API to view all settlements. | | [View Settlements by Id](/docs/api/settlements/fetch-with-id) | API to view settlement details by providing the settlement id. | | [Settlement Recon](/docs/api/settlements/fetch-recon) | API to view all transactions such as payments, refunds, transfers and adjustment settled to you for a particular day or month. | List of Instant Settlements APIs: | Term | Description | | - | - | | [Create Instant Settlements](/docs/api/settlements/instant/create) | API to create an Instant Settlement. | | [Fetch all Instant Settlements](/docs/api/settlements/instant/fetch-all) | API to view all Instant Settlements. | | [Fetch Instant Settlements by id](/docs/api/settlements/instant/fetch-with-id) | API to view Instant Settlement details by providing the settlement id. | | [Fetch all Instant Settlements with Payout Details](/docs/api/settlements/instant/fetch-all-payout) | API to retrieve payout details as part of the response for all instant settlements requests. | | [Fetch Instant Settlements with Payout ID](/docs/api/settlements/instant/fetch-with-id-payout) | API to retrieve payout details as part of the response for a specific instant settlement request. | ### Related Information * [About Settlements](/docs/payments/settlements) * [Settlements - Dashboard Actions](/docs/payments/settlements/dashboard) * [Settlement FAQs](/docs/payments/settlements/faqs) # Settlements - Dashboard Actions Source: https://razorpay.com/docs/payments/settlements/dashboard View settlement details, check the settlements break-up, enable settlements on hold and view reports from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States ## View Settlements Using Dashboard You can view details of settlements made to you from the Dashboard. * View a detailed break-down of the amount settled to you from the Dashboard. * View details, such as the total settlement amount (credit + debit amount), applicable service fees, service tax, adjustments, and so on. Watch this video to see how to view settlements from the Dashboard. [YouTube video player](https://www.youtube.com/embed/mmn2WkrmKwI?si=y3kf7FxP07YhHEpZ) To view settlement details: 1. Log in to the Dashboard. 2. Navigate to **Settlements**. 3. Click on the **details** of the settlement ID that you wish to refer to. ### View Channel-Wise Settlements > [accordion] Benefits of Channel-Wise Settlements > > * **Zero cross-channel failures**: POS settlements will not fail due to online refunds. > * **Clear fund visibility**: Know exactly how much you have in each channel. If you are an omni-channel business (Online (Domestic transactions + International Cards)) or cross-border business (Alternate Payment Method (International)), your settlements are processed separately for each channel type. This provides complete fund isolation and eliminates cross-channel settlement failures. ### Understand Segregated Settlements With balance segregation, settlements are organised by channel type: | Channel Type | Description | Transactions Included | Additional Details | | - | - | - | - | | Online (Domestic transactions + International Cards) | Domestic online payments and international card transactions | PG domestic transactions (cards, UPI, netbanking and wallets), international card payments | Supports Instant Settlements. | | In-Person | POS terminal transactions | All POS/offline transactions | POS device rentals are automatically collected from this balance. Operates independently from online transactions. | | Alternate Payment Method (International) | Balance from international payment methods such as PayPal, Stripe and other cross-border payment methods | International bank transfers, cross-border payments via supported APM providers | Settled separately from domestic balances. Subject to forex conversion and international settlement timelines. | ![razorpay settlements details](https://razorpay.com/docs/build/browser/assets/images/account-settings-settlements-details-segg-bal.jpg) Each channel type has its own settlement schedule and settlement history. #### View Settlements by Channel To view channel-wise settlements: 1. Log in to the Dashboard. 2. Navigate to **Settlements**. 3. Use the **Balance Type** filter to select the channel you want to view: * **Online (Domestic transactions + International Cards)** * **In-Person** * **Alternate Payment Method (International)** The settlements list will display only settlements for the selected channel. #### Settlement Cards on Home Page On the Dashboard home page, you will see separate settlement cards for each active balance: * Each card shows the current balance, last settlement amount and next settlement date. * Click on any card to view detailed settlement history for that channel. > [!NOTE] > > **Handy Tips** > > With segregated balances, you can now enable Instant Settlements for your PG Online balance even if you have POS or Cross-Border enabled. Previously, Instant setting were restricted for cross-border and omni-channel businesses. ### View Settlements Using API You can view settlement details using the [Settlements API](/docs/api/settlements). ### Settlements Break-Up Description The following screenshot displays the settlement break-up: ![Settlement break-up description image](https://razorpay.com/docs/build/browser/assets/images/settlements-2.jpg) A settlement has the following components: `Payment` : The total payment amount that is being settled before deductions. `Adjustment` : Adjustments to transactions, if any. `Tax` : Tax deducted on the payment. `Fee` : Fees deducted by Razorpay for the transactions. `Transfer` : Transfers made if any, Transfers are payouts made to your [linked accounts](/docs/payments/route/linked-account). Linked accounts are accounts created for third-party sellers by you after onboarding them onto the Razorpay platform. `Refunds` : Refunds made if any, are refunds you have issued to your customer. > [accordion] Example > > In this example, the amount settled to your account = Payment - Adjustment - Tax - Fee - Transfer + Refunds > > | Transaction Details | Amount(โ‚น) | > | - | - | > | Payment | 50.00 | > | Refunds | 10.00 | > | Tax | 2.88 | > | Fee | 16.00 | > | Total amount settled in your account | 20.94 | > [accordion] Example: Gross Settelements and Deductions Calculations > > Following is an example of gross settlements and deductions calculations of your settlement: > > ![settlement components detail view](https://razorpay.com/docs/build/browser/assets/images/settlement-components-view.jpg) > > The gross settlements and deductions calculations only apply to merchants on the prepaid model. ## View Settlement Timeline on Dashboard You can view the settlement timeline to check when the settlement for a particular payment will be credited. To view the settlement timeline: 1. Log in to the Dashboard. 2. Navigate to **Settlements**. 3. Click on theย **details**ย of the settlement id for which you want to view the timeline. 4. You will be able to see the settlement timeline for that particular settlement id. ![Razorpay Dashboard - View settlement timeline](https://razorpay.com/docs/build/browser/assets/images/settlements-details-timeline.jpg) ## Enable Settlements Placed On Hold Your settlement can be placed on hold if we detect some risk with your payments or with your Razorpay account. You are notified about this on your Dashboard. Contact the [support team](https://razorpay.com/support) to enable settlements that are placed on hold. ![Settlements placed on hold](https://razorpay.com/docs/build/browser/assets/images/settlements-risk-soh-notice.jpg) To enable settlements when they are put on hold: 1. Log in to the Dashboard. 2. Navigate to **Home**. 3. Click **Resolve** on the notification as shown above.. ## Reports Detailed insights can be gained using reports and real-time data on the Dashboard. These reports can then be used for accounting and reconciliation purposes. Know more about [reports.](/docs/payments/dashboard/reports) ### Channel-Wise Settlement Reports For businesses with segregated balances, settlement reports include: * **Channel Type**: Identifies whether the transaction was from Online (Domestic transactions + International Cards), In-person and Alternate Payment Method (International). * **Balance Account id**: Unique identifier for the specific balance account. You can filter reports by channel type to reconcile settlements for each balance separately. ### Related Information * [About Settlements](/docs/payments/settlements) * [Settlements API](/docs/payments/settlements/apis) * [Settlement FAQs](/docs/payments/settlements/faqs) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/settlements/faqs Find answers to frequently asked questions about Razorpay Payment Settlements. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States ## Settlements > [accordion] What are settlements? > > Settlement is the process in which the money received from your customers is settled to your bank account. Settlements for all payments will be done in INR (Indian Rupees), irrespective of the currency in which the payment was made by the customer. Settlement cycle is subject to bank approval and can vary based on your business vertical, risk factor, and so on. Each settlement generated has a unique settlement id attached to it along with the amount settled. Know more about [Settlements](/docs/payments/settlements). > [accordion] What is the settlement cycle you offer? > > Our standard settlement cycle is T+2 working days, T being the date of transaction capture. This means that the captured payments are settled within 2 working days from the date of capture. This applies to domestic payments. International payments follow a longer settlement cycle of T+7 working days. For details, see FAQ 9. > > > [!NOTE] > > > > **Handy Tips** > > > > Working days do not include second and fourth Saturdays, Sundays and bank holidays. For details on how holidays affect your settlement date, see FAQ 7. > [accordion] How do I check settlements in my bank account? > > Each settlement has a Unique Transaction Reference (UTR) number, which is provided by our banking partners. You can see this number in the settlement section when you click on a particular settlement id. You can also download **Settlement Reports** from the **Reports** section to view UTR. This is a unique reference number available across banks, which can be used to track a specific settlement in your bank account. > > ![UTR](https://razorpay.com/docs/build/browser/assets/images/settlements-utr.jpg) > [accordion] The status of my settlement shows as failed on the Dashboard. What do I do? > > Razorpay sends emails regarding blocked or failed settlements to your registered email address. Please revert to the email with the necessary details. If you have not received any email from Razorpay, please contact our [Support Team](https://razorpay.com/support/#request) for assistance. > [accordion] How to reconcile settlements along with the transactions made? > > You can [download a daily or a monthly report](/docs/payments/magic-checkout/analytics/reports#generate-reports) for the **Settlement Reconciliation Report** from the **Reports** section on the Dashboard. The report contains transactions and the corresponding settlement ids. > [accordion] Why are my settlements blocked? > > Razorpay sends emails regarding blocked or failed settlements to your registered email address. Please revert to the email with the necessary details. If you have not received any email from Razorpay, please contact our [Support Team](https://razorpay.com/support/#request) for assistance. If your settlements are paused due to a bank holiday or weekend, see FAQ 7. > [accordion] Are settlements processed on weekends and bank holidays? > > No. Settlements to your bank account are processed only on **bank working days**. They are not processed on Sundays, the second and fourth Saturdays, and public or bank holidays, and are credited on the next working day. > > **Why does this happen even when UPI, IMPS, NEFT and RTGS operate 24x7?** > > Although consumer payment rails operate round-the-clock, settlements to businesses depend on the **inter-bank settlement and fund-flow process** between the issuing banks, Razorpay's nodal/escrow account, and your bank. This process follows the banking calendar and RBI fund-flow norms, which do not operate on bank holidays. As a result, the standard settlement cycle is paused on those days. > > If your business requires funds on a holiday or weekend, you can use [Instant Settlements or Smart Settlements](/docs/payments/settlements/instant) to settle your available balance 24x7, including holidays, for a small fee. > [accordion] My settlement is delayed over a long weekend or consecutive holidays โ€” is this normal? > > Yes. The T+2 cycle counts only working days. When holidays fall back-to-back (for example, a Saturdayโ€“Sundayโ€“public-holiday stretch), the credit date moves to the next available working day, which can compound into a multi-day delay. You can check the expected credit date against the settlement schedule on your Dashboard, or settle immediately via [Instant Settlements](/docs/payments/settlements/instant). > [accordion] How is the settlement cycle different for international payments? > > International payments follow a longer settlement cycle than domestic payments. While domestic payments are settled on a **T+2 working day** cycle, the standard cycle for international payments is **T+7 working days**, where **T** is the date the payment is captured. The exact cycle is subject to applicable laws and is shown on your Razorpay Dashboard. > > As with domestic settlements, international settlements are processed only on bank working days. If the settlement date falls on a weekend or bank holiday, the credit moves to the next working day. International payments are settled in INR (Indian Rupees), irrespective of the currency in which the payment was made, using the exchange rate at the time of payment creation. Know more about [International Settlements](/docs/payments/settlements#international-settlements). ## Balance Segregation > [accordion] What is Balance Segregation? > > Balance Segregation is a feature that maintains separate balances for each payment channel type. > > Instead of having one combined balance, you now have multiple isolated balances: > > * **Online (Domestic transactions + International Cards)**: Domestic PG transactions and international card payments. > * **In-Person**: POS terminal transactions. > * **Alternate Payment Method (International)**: Balances from international bank transfer. > > This ensures complete fund isolation, regulatory compliance and eliminates cross-channel settlement failures. > [accordion] Why are my balances now showing separately on the Dashboard? > > If you are an omni-channel business (using both PG and POS) or a cross-border business, your balances are automatically segregated by channel type. This is to ensure compliance with RBI guidelines that prohibit co-mingling of funds across different payment channels and to provide you with better visibility and control over your funds. > [accordion] What is included in the Online (Domestic transactions + International Cards) balance? > > The Online (Domestic transactions + International Cards) balance includes: > > * All domestic PG transactions (cards, UPI, netbanking, domestic wallets). > * International card transactions. > > This balance is separate from your In-Person (POS) and APM International balances. > [accordion] What is included in the In-Person balance? > > The In-Person balance includes all transactions processed through POS terminals. This balance is used for: > > * POS transaction settlements. > * POS device rental deductions (if applicable). > * Refunds for POS transactions. > > It operates completely independently from your Online (Domestic transactions + International Cards) balance. > [accordion] What is included in the APM (International) balance? > > The Alternate Payment Method (International) balance includes cross-border transactions made through international bank transfers. > > This is separate from international card transactions, which are included in the Online (Domestic transactions + International Cards) balance. > [accordion] How does Balance Segregation affect my settlements? > > **With Balance Segregation**: > > * Settlements are processed separately for each balance account (Online (Domestic transactions + International Cards), In-Person, APM International). > * Each balance has its own settlement schedule. > * Refunds and chargebacks are debited only from the respective channel balance. > * You can enable Instant Settlements independently for each balance. > * Settlement failures due to cross-channel fund usage are eliminated. > [accordion] I am a PG + POS business. Can I now use Instant Settlements? > > Yes. With Balance Segregation, Instant Settlements is now available for omni-channel businesses. You can enable Instant Settlements on your PG Online balance independently of your POS balance. This was previously restricted to prevent cross-channel fund utilisation issues, which are now resolved with segregated balances. > [accordion] I am a Cross-border business. How does Balance Segregation benefit me? > > For cross-border businesses, Balance Segregation provides: > > * Separate balance for APM (International) transactions. > * International card transactions tracked in your Online (Domestic transactions + International Cards) balance. > * Instant Settlements enabled for your Online (Domestic transactions + International Cards) balance. > * Clear visibility of domestic vs international transaction funds. > [accordion] What happens to refunds with segregated balances? > > Refunds are now processed from the same channel balance where the original payment was received: > > * Online payment refund โ†’ debited from Online (Domestic transactions + International Cards) balance > * In-Person (POS) payment refund โ†’ debited from In-Person balance > * APM International payment refund โ†’ debited from APM International balance > > This ensures that refunds in one channel never impact settlements in another channel. > [accordion] Will my existing balance be migrated to segregated balances? > > No, existing balances are not migrated. Balance Segregation applies to new transactions going forward. Your current combined balance will continue to be settled as per your existing settlement cycle, while new transactions will be credited to the appropriate segregated balance based on channel type. > [accordion] How do I view my segregated balances on the Dashboard? > > You can view your segregated balances in multiple places on the Dashboard: > > * **Home Page**: Separate balance cards for each channel type (Online (Domestic transactions + International Cards), In-Person, APM International). > * **Settlements Page**: Filter settlements by balance type. > * **Account & Settings โ†’ Balances**: Detailed view of all your balance accounts. > > Each balance card shows the current amount, next settlement date and settlement cycle. > [accordion] Can I transfer funds between my segregated balances? > > No, inter-channel fund transfers are not currently supported. Each balance operates independently to maintain fund isolation and regulatory compliance. If you have specific requirements, please contact our [Support Team](https://razorpay.com/support/#request). > [accordion] How are POS device rentals collected with Balance Segregation? > > With Balance Segregation, POS device rentals are automatically collected from your POS (In-Person) balance only. This ensures that rental deductions never impact your PG Online balance or cause settlement failures. The collection is automated through the Meter Pricing Platform for businesses enrolled in the program. > [accordion] Will my settlement reports change with Balance Segregation? > > Yes, settlement reports now include additional fields: > > * **Channel Type**: Identifies the source channel (Online (Domestic transactions + International Cards), In-Person, APM International). > * **Balance Account id**: Unique identifier for the balance account. > > You can filter reports by channel type to reconcile each balance separately. The Settlement Reconciliation Report will show transactions grouped by their respective balance accounts. > [accordion] I see multiple balances but I only use PG Online. Why? > > If you only use PG Online for domestic transactions, you will typically see just one balance account (Online (Domestic transactions + International Cards)). Multiple balances appear only when you have: > > * Both PG Online and POS enabled (In-person). > * International bank transfers (APM International balance). > * International card payments (included in Online (Domestic transactions + International Cards) balance). > > If you believe there is an error in your balance configuration, please contact our [Support Team](https://razorpay.com/support/#request). > [accordion] Are international card transactions and international APM transactions in the same balance? > > No, they are in separate balances: > > * **International card transactions** are included in the **Online (Domestic transactions + International Cards)** balance along with domestic transactions. > * **International APM transactions** (international bank transfers) are in the separate **APM (International)** balance. > This separation ensures proper fund isolation for different payment method types. ## Instant Settlements > [accordion] What are Instant Settlements? > > By default, the settlement cycle is T+2 days for domestic payments and T+7 days for international payments, where `T` is the date the payment was captured.\\ > > The Instant Settlement feature allows you to settle your current balance to your bank account instantly 24x7 for a small fee. You can either settle your current balance in full or choose to settle a portion of it as per your needs. > [accordion] Are there any additional charges for Instant Settlements? > > Yes. We charge a [small fee](https://razorpay.com/capital/instant-settlements/#capital-pricing-section) to process Instant Settlements. > [accordion] How is the fees and tax for an Instant Settlement deducted? > > The fees and tax for an Instant Settlement is deducted from the request settlement amount. > For example, you place a request for โ‚น2000. Fees of โ‚น3 and tax of โ‚น1 is deducted from the requested amount and the remaining amount, โ‚น1995 is settled to your bank account. > [accordion] Why is there a limit on Instant Settlements? > > We have introduced the limits on Instant Settlements to make the settlement process more predictable for your daily needs. With limits, you can: > > * Settle a definite amount from the assigned limit until the next working day. > * Enjoy a quicker and higher success rate throughout the working day. > > For any queries, [contact support](https://razorpay.com/support/#request) or your Relationship Manager. > [accordion] Once enabled, do I need to make Instant Settlement request for all my settlements? > > No. You can create an Instant Settlement request when you need the money. If you do not create an Instant Settlement, your current balance is settled to your bank account as per your settlement cycle. > [accordion] What happens to my current balance if I do not make any Instant Settlement requests? > > Your current balance is settled to your bank account as per your settlement cycle. > [accordion] Once Instant Settlements are enabled, will I be charged for all my settlements? > > No. You will only be charged for the Instant settlements you create. You will not be charged for settlements that happen according to your settlement cycle. > [accordion] How do I enable instant settlements? > > Instant settlements is an on-demand feature. [Raise a request](https://razorpay.com/support/#request) with our support team to get this feature activated on your account. Know more about [initiating instant settlements](/docs/payments/settlements/instant#initiate-instant-settlements). ## Smart Settlements > [accordion] What are Smart Settlements? > > [Smart Settlement](/docs/payments/settlements/instant#initiate-smart-settlements) is an extended form of [Instant Settlement](/docs/payments/settlements/instant#initiate-instant-settlements) that allows you to settle amounts above โ‚น 5 L in one shot using the RTGS channel. A settlement done via Smart Settlements reflects as a single entry in your bank statement making reconciliation much easier. > [accordion] What is the amount cap for Smart Settlements? > > You can initiate a Smart Settlement if the amount is abover โ‚น 5 L. The maximum ceiling is โ‚น 50 Cr per settlement. > [accordion] Is it mandatory to use Smart Settlements if the amount is > > 5 L? > > No, Smart Settlement is a recommended option for amounts > 5 L and \< 5 Cr because it settles the amount as one credit in your bank statement. You can still use the Instant Settlement option for this range, but it will appear as multiple entries in your bank statement. > **However, amounts > 5 Cr are settled through Smart Settlements only. Instant Settlement option is automatically disabled for amounts > 5Cr.** > > Find out more about [Instant Vs Smart Settlements](/docs/payments/settlements/instant#instant-vs-smart-settlements) > [accordion] Do I have to request for enabling Smart Settlements? > > No, Smart Settlement feature is automatically enabled if the Instant Settlement feature is activated for your dashboard. However, Instant Settlement is an on-demand feature. [Contact support](https://razorpay.com/support/#request) to get this feature enabled. > [accordion] Is there a separate fee for Smart Settlements? > > No, Smart Settlements follow the same fee structure as Instant Settlements. Click to know more about [Instant Settlement pricing.](https://razorpay.com/capital/instant-settlements/#capital-pricing-section) > [accordion] How is the fees and tax for a Smart Settlement deducted? > > The fees and taxes for Smart Settlements are deducted from the requested settlement amount. > For example, you place a request for โ‚น2000, fees of โ‚น3 and tax of โ‚น1 is deducted from the requested amount and the remaining amount, โ‚น1995 is settled to your bank account. > [accordion] What is the settlement cycle for Smart Settlements? > > The settlement cycle is **T+0** for Smart Settlements. Since Smart Settlements are routed through RTGS channel, the transaction usually happens real-time. However, depending on bank channel traffic, it may sometimes take up to 1 hour. # Instant Settlements Source: https://razorpay.com/docs/payments/settlements/instant Use the Instant Settlement feature to settle funds instantly to your bank account. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [!WARNING] > > International payments cannot be settled using Instant Settlements. You can use the **Instant Settlement** feature in Razorpay to settle your available balance to your bank account instantly, 24x7, for a small fee. * Settle your available balance to your bank account in full, or choose to settle a portion of it. Note that there is a **maximum daily withdrawable limit**. * The **maximum daily withdrawable limit** is a limit set for every Razorpay merchant for instant settlements that resets automatically at the beginning of each business day. * By default, the settlement cycle is **T+2 days for domestic payments** and for **international payments it is as per applicable law(s)**. **T** refers to the captured payment date. With Instant Settlements, you receive funds on a T+0 basis. * You can use [Instant Settlements](#initiate-instant-settlements) to settle amounts \< โ‚น5 Cr and [Smart Settlements](#initiate-smart-settlements) to settle amounts > โ‚น5 Cr and \< โ‚น50 Cr. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ## How it Works 1. Amounts up to โ‚น5 Lakhs are settled instantly through Instant Settlements. Instant Settlements are routed through the IMPS channel. 2. Smart Settlements option also is enabled when the entered amount is between โ‚น5 Lakhs to โ‚น5 Crores. You can choose between Instant or Smart Settlements here. 1. With Smart Settlements, the settlement amount will reflect as a single credit in your bank statement since it uses the RTGS channel. 2. With Instant Settlement, the amount will show as multiple credits in your bank statement as IMPS channel has an upper limit of โ‚น5 Lakhs per transaction. 3. Amounts between โ‚น5 Crores to โ‚น50 Crores are settled only through Smart Settlements. ## Instant Vs Smart Settlements > [tab] Instant Settlement > > Benefits of Instant Settlement are: > > * Easy and instant access to your money. > * Increased cash flows enabling better payment cycles. > * Better management of inventory and stock. > [tab] Smart Settlements > > Benefits of Smart Settlements are: > > * Settle large sums (between โ‚น5 Lakhs to up to โ‚น50 Crores) to your Current Account in one shot and access it within an hour. > * View the settlement as a single entry in your account statement. > * Manage cash flows and payments in a better way. > [tab] Instant Settlement Vs Smart Settlements > > | Feature | Instant Settlement | Smart Settlements | | > | - | - | - | - | > | Minimum amount per settlement | โ‚น100 | โ‚น5 Lakhs | | > | Maximum amount per settlement | โ‚น5 Crores | โ‚น50 Crores | | > | **Timings** | **24\*7** | **02:00 AM to 9:30 PM** | | > | **Holidays** | **None** | **Jan 26, August 15 and April 1** | | > | Settlement channel | IMPS | RTGS | | > | Dashboard support | Yes | Yes | | > | **API support** | **Yes** | **No** | | > | **Settlement TAT** | **Instant** | **0-60 min** | | > | **No. of credits in bank statement** | **Multiple** | **Single** | | > | Example | Settlement amount: โ‚น5 Crores No. of credits in bank account: โ‚น5 Lakhs \* 100 | Settlement amount: โ‚น5 Crores No. of credits in bank account: โ‚น5 Crores \* 1 | | ## Initiate Instant Settlements Settle amounts **up to โ‚น5 Crores** through **Instant Settlement** feature via Dashboard and API: > [tab] On the Dashboard > > Create Instant Settlements from the Dashboard. > > 1. Log in to the Dashboard. > > 2. Navigate to **Settlements**. > > 3. Click **Settle Now** to go to the **Instant Settlements** window. > > 4. Your current balance, maximum daily withdrawal limit and the current withdrawable amount are displayed. Enter the amount you want to settle to your bank account. > > ![Instant Settlement](https://razorpay.com/docs/build/browser/assets/images/IS1.jpg) > > 5. Click **Next**. A pop-up showing **Instant Settlement** opens. > The fees + tax for the Instant Settlement and the net amount that will be credited to your account will be displayed in the pop up. > > 6. Click **Settle Now** to settle instantly. > [tab] Using APIs > > Create and retrieve Instant Settlements requests using APIs. Refer to the [list of Instant Settlements APIs](/docs/payments/settlements/apis#list-of-settlements-api). ## Initiate Smart Settlements Use the **Smart Settlements** feature to settle amounts **between โ‚น5 Lakhs to โ‚น50 Crores** in a single shot within a time span of 1 hour. 1. Log in to the Dashboard. 2. Navigate to **Settlements**. 3. Click **Settle Now** to go to the **Instant Settlements** window. 4. Your current balance, maximum daily withdrawal limit and the current withdrawable amount are displayed. Enter the amount you want to settle to your bank account. 5. Click **Next**. A pop-up showing Instant Settlement and Smart Settlements opens. The pop-up displays the total fees plus tax for the Instant Settlement, along with the exact net amount that will be credited to your account. 6. For amounts more than โ‚น5 Lakhs, the recommended option is Smart Settlements. ![Smart Settlements](https://razorpay.com/docs/build/browser/assets/images/SS1.jpg) 7. Click **Settle Now** after selecting **Smart Settlements**. The Smart Settlements request is created. The requested amount will be settled to your bank account within 1 hour. > [!WARNING] > > **Watch Out!** > > * Smart Settlements can be used via Dashboard only. > * For amounts more than โ‚น5 Crores, only the Smart Settlements option is enabled in the pop-up. You can check the Dashboard for latest updates on the limits and availability of instant settlements. # Reserves on International Payments Source: https://razorpay.com/docs/payments/settlements/reserves Know how rolling and fixed reserves work on your international payments, how much we hold, for how long and where to track the release date. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India A reserve is money we hold in your Razorpay account for a set period, before we settle it to you. It covers any disputes raised on your payments, including chargebacks. A reserve is your money. We hold it temporarily and then release it to you. We charge no fee on it, and you are not exposed to exchange rate movement while we hold it. > [!NOTE] > > **Handy Tips** > > Every amount, percentage and hold period on this page is an example. Your own terms appear in your Razorpay Dashboard. > [!WARNING] > > **Watch Out!** > > The **Reserve balance** on this page is not the [Reserve Balance](/docs/payments/dashboard/account-settings/balances#reserve-balance) under **Account & Settings** โ†’ **Balances**. That one is a buffer you add yourself to cover refunds. This one is money we hold back from your international payments. Both can apply to your account. ## Prerequisites A reserve applies to your account when: * Your account is KYC approved and fully activated. Know more about [KYC Verification](/docs/payments/set-up#set-up-a-razorpay-account-and-complete-kyc). * You have international payments enabled. Know more about [International Payments](/docs/payments/international-payments). * We have set reserve terms for your account based on your account profile. Reserves apply only to international payments. Your domestic payments settle on your normal [settlement cycle](/docs/payments/settlements#settlement-cycle). ## How it Works The reserve sits between the payment we capture and the amount we settle to you: 1. You accept an international payment. We capture it as usual. 2. We calculate the reserve on the amount remaining after our fees and taxes. 3. We hold either a percentage of the payment or the whole payment, depending on your terms. 4. We settle the remainder on your normal settlement cycle. 5. We release the held amount to your balance on its scheduled release date. The released amount then settles on your normal cycle. ## Types of Reserves You are on one reserve type at a time, never both. The table below lists how the two types differ: | Reserve Type | How Much We Hold | How It Comes Back | | - | - | - | | [Rolling reserve](#rolling-reserve) | A percentage of each payment in scope, or the whole payment | We release each held amount on its own date, one at a time | | [Fixed reserve](#fixed-reserve) | A percentage of each payment until a target amount is reached, then nothing | We return the whole balance in one go, once we decide it is no longer needed | ## Rolling Reserve Your rolling reserve depends on the payments it applies to, and on how much we hold and for how long. ### Payments in Scope Some international payments are verified by the customer's bank before they go through. Others are not. Unverified payments are easier for your customers to complete. They are also more likely to be disputed later. These are your **non-3DS payments**. Know more about [Support for Non-3D Secure Transactions](/docs/payments/international-payments/support-non-3ds). A reserve can apply to any of your international payments. Which ones it covers depends on your account profile. For some accounts it is only the non-3DS payments, for others it is all international payments. Your terms tell you which applies to you, and your Dashboard shows which of your payments contributed to the reserve. ### Hold Amount and Period We hold either a percentage of each payment in scope, for example 30%, or the whole payment. The hold period is up to 75 days. ### Examples Your settlement cycle is T+7, so a payment you take on day 1 reaches you on day 8. On day 1 you take 7 international payments adding up to โ‚น6,00,000. Of these, 5 are 3DS payments of โ‚น1,00,000 each and 2 are non-3DS payments of โ‚น50,000 each. We calculate reserves on the amount remaining after our fees and taxes. The tables below ignore fees and taxes to keep the arithmetic readable. > [accordion] Example 1: We hold your non-3DS payments in full, for 60 days > > The table below lists what happens to each payment: > > | Payment | Amount | Held | Settles on Day 8 | Released to Your Balance | > | - | - | - | - | - | > | 1 to 5 (3DS) | โ‚น1,00,000 each | None | โ‚น1,00,000 each | None | > | 6 (non-3DS) | โ‚น50,000 | โ‚น50,000 | None | โ‚น50,000 on day 61 | > | 7 (non-3DS) | โ‚น50,000 | โ‚น50,000 | None | โ‚น50,000 on day 61 | > | **Total** | **โ‚น6,00,000** | **โ‚น1,00,000** | **โ‚น5,00,000** | **โ‚น1,00,000** | > > Only payments 6 and 7 are affected. They reach you about 2 months later than usual. The other 5 settle on day 8. > [accordion] Example 2: We hold 40% of your non-3DS payments, for 45 days > > Same 7 payments, but we hold only part of each non-3DS payment. The table below lists what happens to each payment: > > | Payment | Amount | Held | Settles on Day 8 | Released to Your Balance | > | - | - | - | - | - | > | 1 to 5 (3DS) | โ‚น1,00,000 each | None | โ‚น1,00,000 each | None | > | 6 (non-3DS) | โ‚น50,000 | โ‚น20,000 | โ‚น30,000 | โ‚น20,000 on day 46 | > | 7 (non-3DS) | โ‚น50,000 | โ‚น20,000 | โ‚น30,000 | โ‚น20,000 on day 46 | > | **Total** | **โ‚น6,00,000** | **โ‚น40,000** | **โ‚น5,60,000** | **โ‚น40,000** | > > You receive โ‚น30,000 of each non-3DS payment on day 8 and the remaining โ‚น20,000 about 6 weeks later. Your 3DS payments are unaffected. > [accordion] Example 3: We hold 30% of every international payment, for 30 days > > Here the reserve covers your whole international volume, not only the non-3DS part of it. The table below lists what happens to each payment: > > | Payment | Amount | Held | Settles on Day 8 | Released to Your Balance | > | - | - | - | - | - | > | 1 to 5 (3DS) | โ‚น1,00,000 each | โ‚น30,000 each | โ‚น70,000 each | โ‚น30,000 each on day 31 | > | 6 (non-3DS) | โ‚น50,000 | โ‚น15,000 | โ‚น35,000 | โ‚น15,000 on day 31 | > | 7 (non-3DS) | โ‚น50,000 | โ‚น15,000 | โ‚น35,000 | โ‚น15,000 on day 31 | > | **Total** | **โ‚น6,00,000** | **โ‚น1,80,000** | **โ‚น4,20,000** | **โ‚น1,80,000** | > > We hold no payment in full, and you have all of it back within a month. ## Fixed Reserve A fixed reserve has a target amount. A percentage of each payment goes towards the target. Once the target is reached, we stop holding and every payment after that settles in full. This caps how much of your money we ever hold. A fixed reserve also comes back differently. A rolling reserve releases one amount at a time. A fixed reserve sits as a single balance. We return it in one go, once we decide it is no longer needed. We review reserves on our own initiative. Where your business performs well, we may lower the target or lift the reserve altogether. A waiting period applies once that happens, and your terms tell you how long it is. > [accordion] Example: We hold 10% of each payment until a โ‚น4,50,000 fixed reserve is built > > Your payments come in at different sizes, so 10% of each is a different amount. The table below lists how the reserve balance builds up: > > | Payment | Held | Reserve Balance | Settles on Normal Cycle | > | - | - | - | - | > | โ‚น2,00,000 | โ‚น20,000 | โ‚น20,000 | โ‚น1,80,000 | > | โ‚น75,000 | โ‚น7,500 | โ‚น27,500 | โ‚น67,500 | > | โ‚น3,20,000 | โ‚น32,000 | โ‚น59,500 | โ‚น2,88,000 | > | ... | ... | ... | ... | > | โ‚น1,10,000 | โ‚น11,000 | โ‚น4,42,000 | โ‚น99,000 | > | โ‚น1,50,000 | โ‚น8,000 | **โ‚น4,50,000, target met** | โ‚น1,42,000 | > | โ‚น90,000 | โ‚น0 | โ‚น4,50,000 | โ‚น90,000 | > > We take only what the target still needs. On the โ‚น1,50,000 payment, 10% would have been โ‚น15,000, but only โ‚น8,000 was still needed. The reserve never goes past โ‚น4,50,000, and every payment after that settles in full. ## View Your Reserve Balance Log in to the [Razorpay Dashboard](https://dashboard.razorpay.com/) and navigate to **Settlements**. Your balance appears as: * **Total balance**: everything in your account. * **Live balance**: available to settle. * **Reserve balance**: currently held. To see each hold, go to **Transactions** and open the **Reserves** tab. It lists each held amount, the payment it came from and the date we release it. Your active reserve terms appear under **Account & Settings** โ†’ **International payments**. These terms cover the percentage, the payments the reserve covers and the hold period. Download your settlement and reserve reports to reconcile: amount processed, less amount held, equals amount settled. Know more about [settlement reports](/docs/payments/settlements/dashboard#reports). ## How We Review Reserves We review every reserve periodically, usually every 3 to 6 months. As your account performance improves, we can reduce your reserve, narrow its scope or remove it. Any change applies to payments from that point onward. Amounts we already hold stay on their original release schedule. To reduce the chances of a reserve being placed or increased: * Deliver promptly and share tracking details with your customers. * Keep customers informed about delays or changes to their order. * Keep your dispute rate below 1% of your sales. * Process refunds quickly rather than letting complaints build up. ## Frequently Asked Questions (FAQs) > [accordion] Is a reserve a fee or a charge? > > No. It is your money. We hold it temporarily and release it to you after deducting any disputed amounts it covers. We charge no fee on it. > [accordion] Do I earn interest on money held in reserve? > > No. We hold the funds as a buffer, not as a deposit. > [accordion] Why is my settlement lower than the payment amount? > > The reserve sits between the two. Your settlement report shows the amount processed, the amount held and the amount settled, so the two tie back. > [accordion] Will all my international payments be delayed? > > Not necessarily. Which payments your reserve covers depends on your account profile. For some accounts it is only the non-3DS payments, for others it is all international payments. Payments outside your reserve settle on your normal cycle. Your terms tell you which applies to you, and your Dashboard shows which of your payments contributed to the reserve. > [accordion] Which of my payments contributed to my reserve? > > Every held amount in your **Reserves** tab links back to the payment it came from. Use it to see which payments contributed and when we release each one. > [accordion] Can I choose which setup applies to me? > > No. We set your terms based on your account profile. > [accordion] Can I refund a customer using my reserve balance? > > No. We pay refunds from your live balance, or from refund credits if your live balance is short. Your reserve stays in place to cover disputes. If you refund often, keep enough live balance or refund credits available. > [accordion] What happens if a dispute comes in? > > We debit the disputed amount from your live balance, as we do today. If your live balance does not cover it, we recover the shortfall from your next payments. We also take it from your reserve when we release it. > [accordion] Will the reserve be there forever? > > No. We review reserves periodically and can reduce or remove them as your account performance improves. > [accordion] What happens if I turn off international payments? > > We hold no further amounts. We release anything already held on its existing schedule, so those payments stay covered for any disputes raised later. > [accordion] What happens to held funds if I close my account? > > We hold them for a period to cover any late disputes. We then release the balance to your registered bank account. > [accordion] Am I exposed to exchange rate movement on held funds? > > No. We hold reserves in INR, after we convert your payment. The amount we hold and the amount we release are the same. > [accordion] My FIRS shows a higher amount than what reached my bank account. Why? > > We issue your FIRS on the full amount received from abroad and converted to INR, which is correct. The remittance did come in. Part of it sits in your reserve and settles to you later. For that period the FIRS reads higher than your bank credits. > > Your Internal FIRS bridges the two. It carries the amount currently held and the date we release it, alongside the settlement date and UTR for each entry. Use it to reconcile what was realised against what reached your account. Submit it with your FIRS when you claim export benefits. Regenerate the Internal FIRS once all the settlements for a month have gone through, so the mapping is complete. Know more about the [FIRS Automated Process](/docs/payments/international-payments/firs-automated-process). > [accordion] Can I have both a rolling reserve and a fixed reserve? > > No. Only one applies to your account at a time. ### Related Information * [Accept Payments Above Your Transaction Limit](/docs/payments/international-payments/over-limit-transactions) * [Support for Non-3D Secure Transactions](/docs/payments/international-payments/support-non-3ds) * [About Settlements](/docs/payments/settlements) * [Settlement FAQs](/docs/payments/settlements/faqs) # Android Standard Checkout Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/android-integration/standard Check the prerequisites before you integrate with Razorpay Android Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [card] [Android Standard SDK Changelog](/docs/payments/changelog#mobile-sdks) > > Discover new features, updates and deprecations related to Razorpay Android Standard SDK (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/android-integration/standard/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about Android Standard integration. You can use Razorpay Standard SDK to integrate the Razorpay Payment Gateway with your Android Application. > [!NOTE] > > **Handy Tips** > > * Starting from version 1.6.22, the Android Standard SDK includes codes in **Kotlin**. Please add the Kotlin library to your project. > > * Due to the [changes](https://support.google.com/googleplay/android-developer/answer/9047303) in Google Play Developer policy, we have removed auto-read SMS feature from Razorpay Android Standard SDK versions 1.5.1 and higher. > > However, if your Android app already has permission to read SMS, then Razorpay auto-reads it. > > * Upgrade to the latest version available on the [Maven Repository](https://mvnrepository.com/artifact/com.razorpay/checkout). > > * According to the PCI regulations, payment processing is not allowed on TLS v1. Hence, if the device does not have TLS v1.1 or v1.2, the SDK will throw an error in the `onPaymentError` method. Check the [TLS versions](https://developer.android.com/reference/javax/net/ssl/SSLSocket#default-configuration-for-different-android-versions). > > * If you are using SDK version below 1.6.15, you need to make [changes to your Android `Manifest.xml` file](/docs/payments/payment-gateway/android-integration/standard/troubleshooting-faqs). > [!TIP] > > **Update SDK** > > Check your [current SDK version](/docs/payments/payment-gateway/android-integration/standard/troubleshooting-faqs#how-can-i-check-the-razorpay-android-standard-sdk-version). If it is outdated, please [update the SDK](/docs/payments/payment-gateway/android-integration/standard/troubleshooting-faqs#how-can-i-update-the-razorpay-android-standard-sdk-version) manually to ensure uninterrupted settlements of your funds. > > From version 1.6.40 onwards, the latest version is automatically updated, eliminating the need for manual updates. ## Integration Steps **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works).
Follow these integration steps: > [card] [1. Build Integration](/docs/payments/payment-gateway/android-integration/standard/integration-steps#1-build-integration) > > Integrate Android Standard SDK. > [card] [2. Test Integration](/docs/payments/payment-gateway/android-integration/standard/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/android-integration/standard/integration-steps#3-go-live-checklist) > > Check the go-live checklist. > [card] [Sample App](https://github.com/razorpay/razorpay-android-sample-app/) > > Check the sample app to integrate on GitHub. ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Customisation Options Source: https://razorpay.com/docs/payments/payment-gateway/android-integration/standard/customisation Add company logo and disable Checkout on full screen using the Razorpay Android Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can customise the Checkout form to suit your business needs. You can perform the following customisations: * [Add Company Logo](/docs/payments/payment-gateway/android-integration/standard/customisation#add-company-logo). * [Disable Checkout in Full Screen](/docs/payments/payment-gateway/android-integration/standard/customisation#disable-checkout-in-full-screen). ## Add Company Logo By default, the Checkout form uses the logo specified in the **Account & Settings** section of the Dashboard. You can also set a custom logo in the Checkout form. Call the following method *before* you call the [`open` method](/docs/payments/payment-gateway/android-integration/standard/integration-steps#4-initiate-payment-and-display-checkout-form). ```java Add Custom Company Logo theme={null} int image = R.drawable.logo; // Can be any drawable checkout.setImage(image); ``` > [!NOTE] > > **Handy Tips** > > You can also pass the logo image as one of the checkout `options`. > If you pass the image in `options` as well as through `drawable`, the image from drawable appears as the Checkout logo. ## Disable Checkout in Full Screen The Checkout form runs in a separate activity. This activity picks up the theme from the Manifest file. Therefore, if you have a full screen theme, even the Checkout will run in full screen. It is suggested to disable the Checkout in full screen mode to enable the user to switch between various apps, for example, while entering the OTP. If your app is in full screen mode, you can disable it for Checkout by calling the following method: ```java Disable Full Screen theme={null} checkout.setFullScreenDisable(true) ``` ### Related Information [Integrate Payment Gateway using the Android Standard SDK](/docs/payments/payment-gateway/android-integration/standard) # Google Play Console - Data Safety Source: https://razorpay.com/docs/payments/payment-gateway/android-integration/standard/google-data-safety Guidelines for filling out Razorpay SDK-related data points in Google Play Data Safety form. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States The Data Safety section on the Google Play store enables merchants to help people understand what user data their app collects or shares. It also provides information of their app's key privacy and security practices. This helps users make more informed choices when installing apps. **By July 20, 2022**, all developers must declare how they collect and handle user data for the apps they publish on Google Play and provide details about how they protect this data through security practices like encryption. This includes data collected and handled through any third-party libraries or SDKs used in their apps. ## Who is responsible for providing this data? Merchant is responsible for making complete and accurate declarations in their app's store listing on Google Play. Google Play reviews apps across all policy requirements. However, Google cannot determine how we use and handle the data on behalf of the developers. Only merchants possess all the information required to complete the Data Safety form. ## Video Tutorial Watch this video to know how to fill out the Data Safety form. [YouTube video player](https://www.youtube.com/embed/pNAS_0IcHtM) ## Data Safety After you log in to [Google Play Console](https://play.google.com/console/u/0/developers/app/app-content/summary), navigate to **App Content** โ†’ **Data Safety** and provide the relevant answers. These questions are categorised into three sub-sections as follows: 1. [Data Collection and Security](#data-collection-and-security) 2. [Data Types](#data-types) 3. [Data Usage and Handling](#data-usage-and-handling) #### Data Collection and Security This section contains questions about data collection, security and handling practices. | Question | Developer Response | | - | - | | Does your app collect or share any of the required user data types? |
  • Yes: Answer **Yes** if you collect or share any [data types](#data-types).
  • No: Answer **No** if your app does not collect or share any user data types.
| | Is all of the user data collected by your app encrypted in transit? |
  • Yes: Answer **Yes** if you encrypt all the data sent to your servers and other third parties. Razorpay SDK encrypts all data in transit.
  • No: Answer **No** if your app or a third party does not encrypt the collected user data.
| | Do you provide a way for users to request that their data is deleted? |
  • Yes: Answer **Yes** if your app allows users to request the deletion of their data. Razorpay SDK allows users to delete data on request, provided the request meets regulatory guidelines.
  • No: Answer **No** if you do not provide your users with an option to delete their data.
| #### Data Types The following table will help you with privacy declaration for data types concerning Razorpay SDKs. | Category | Data Type | Razorpay SDK Guideline | | - | - | - | | Location | Precise or Coarse location | **No**, Razorpay SDK does not collect approximate or precise location data. | | Personal info | Name | **Yes**, if you have configured to transmit this data to Razorpay. | | Personal info | Email Address | **Yes**, if you have configured to transmit this data to Razorpay. | | Personal info | User IDs | **Yes**, if you have configured to transmit this data to Razorpay. | | Personal info | Address | **Yes**, if you have configured to transmit this data to Razorpay. | | Personal info | Phone number | **Yes**, if you have configured to transmit this data to Razorpay. | | Personal info | Race and ethnicity | **No**, Razorpay does not collect this data. | | Personal info | Political or religious beliefs | **No**, Razorpay does not collect this data. | | Personal info | Sexual orientation | **No**, Razorpay does not collect this data. | | Personal info | Other info | **No**, Razorpay does not collect this data. | | Financial info | User payment info | **Yes**, Razorpay collects information about the user's financial accounts, such as credit card number. | | Financial info | Purchase history | **Yes**, if you have configured to transmit this data to Razorpay. | | Financial info | Credit score | **No**, Razorpay does not collect this data. | | Financial info | Other financial info | **No**, Razorpay does not collect this data. | | Health and fitness | Health info | **No**, Razorpay does not collect this data. | | Health and fitness | Fitness info | **No**, Razorpay does not collect this data. | | Messages | Emails | **No**, Razorpay does not collect this data. | | Messages | SMS or MMS | **No**, Razorpay does not collect this data. | | Messages | Other in-app messages | **No**, Razorpay does not collect this data. | | Photos or videos | Photos | **No**, Razorpay does not collect this data. | | Photos or videos | Videos | **No**, Razorpay does not collect this data. | | Audio files | Voice or sound recordings | **No**, Razorpay does not collect this data. | | Audio files | Music files | **No**, Razorpay does not collect this data. | | Audio files | Other audio files | **No**, Razorpay does not collect this data. | | Files and docs | Files and docs | **No**, Razorpay does not collect this data. | | Calendar | Calendar events | **No**, Razorpay does not collect this data. | | Contacts | Contacts | **No**, Razorpay does not collect this data. | | App activity | App interactions | **Yes**, Razorpay SDK collects app interaction on screens rendered by SDK. | | App activity | In-app search history | **No**, Razorpay does not collect this data. | | App activity | Installed apps | **Yes**, only detection of installed UPI apps is done to enable [UPI intent](/docs/payments/payment-methods/upi/upi-intent) functionality. | | App activity | Other user-generated content | **Yes**, if you have configured to transmit this data to Razorpay. | | App activity | Other actions | **No**, Razorpay does not collect this data. | | Web browsing | Web browsing history | **No**, Razorpay does not collect this data. | | App info and performance | Crash logs | **Yes**, if you have configured to transmit this data to Razorpay. | | App info and performance | Diagnostics | **Yes**, if you have configured to transmit this data to Razorpay. | | App info and performance | Other app performance data | **Yes**, if you have configured to transmit this data to Razorpay. | | Device or other IDs | Device or other IDs | **Yes**, if you have configured to transmit this data to Razorpay. | #### Data Usage and Handling #### Purpose of collecting information Data collected by our SDK will be used only for the purpose of enabling the user to use the services provided by us, to help promote a safe service, calibrate consumer interest in our products and services, inform you about online offers and updates, troubleshoot problems, customise the user experience, detect and protect us against error, fraud and other criminal activity, collect money, enforce our terms and conditions, and as otherwise described to you or the user at the time of collection of such information. #### Purpose of sharing information We do not share user's Personal Information with any third party apart from financial institutions such as banks, RBI, or other regulatory agencies (as may be required) and to provide users with services that we offer through Razorpay, conduct quality assurance testing, facilitate the creation of accounts, provide technical and customer support, or provide specific services, such as synchronisation of your contacts with other software applications, following your instructions. These third parties are not required to use the user's Personal Information other than to provide the services requested by the user. We may share users' Personal Information with our parent company, subsidiaries, joint ventures, or other companies under a common control (collectively, the "AFFILIATES") that we may have now or in the future, in which case we will require them to honour our Privacy Policy. If another company acquires our company or our assets, that company will possess your Personal Information, and will assume the rights and obligations with respect to that information as described in the Privacy Policy. We may disclose your Personal Information to third parties in a good faith belief that such disclosure is reasonably necessary to (a) take action regarding suspected illegal activities; (b) enforce or apply our terms and conditions and Privacy Policy; (c) comply with legal processes, such as a search warrant, subpoena, statute, or court order; or (d) protect our rights, reputation, and property, or that of our Users, Affiliates, or the public. Please note that we are not required to question or contest the validity of any search warrant, subpoena, or other similar governmental requests we receive. We may disclose information in the aggregate to third parties relating to user behaviour in connection with the actual or prospective business relationship with those third parties, such as advertisers and content distributors. For example, we may disclose the number of users that have been exposed to, or clicked on, advertising banners. ## Privacy Link For more information about privacy links, refer to [Razorpay Privacy Policy](https://razorpay.com/privacy/). ### Related Information [Google Play - Data Safety](https://support.google.com/googleplay/android-developer/answer/10787469?hl=en) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/android-integration/standard/integration-steps Steps to integrate your Android application with Razorpay Android Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Follow these steps to integrate your Android application: > [card] [1. Build Integration](/docs/payments/payment-gateway/android-integration/standard/integration-steps#1-build-integration) > > Integrate Android Standard Checkout. > [card] [2. Test Integration](/docs/payments/payment-gateway/android-integration/standard/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/android-integration/standard/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to Integrate Razorpay Payment Gateway on Android App](https://www.youtube.com/embed/MFQ3tz6P5Vw) > [!WARNING] > > **Watch Out!** > > The Android app must have a `minSDKversion` of 19 or higher. If you want to support devices below API level 19, you must override `minSDKversion`. Use the sample code below to override `minSDKversion`: > > ```java Override minSDK theme={null} > tools:overrideLibrary="com.razorpay"/> > ``` ## 1. Build Integration Follow the steps given below: > [accordion] 1 Install Razorpay Android Standard SDK > > To install the SDK in your Android project: > > Add the code given below to your project's top-level `build.gradle` file: \\ > > This gives access to the SDK library. > > ```java build.gradle theme={null} > repositories { > mavenCentral() > } > > dependencies { > implementation 'com.razorpay:checkout:1.6.40' > } > ``` > > > [!NOTE] > > > > **Handy Tips** > > > > From version 1.6.40 onwards, the latest version is automatically updated, eliminating the need for manual updates. > [accordion] 2 Initialize Razorpay Android Standard SDK > > Add your `` dynamically using Checkout's `setKeyId()` method. You can generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. > > To quickly load the `Checkout` form, the `preload` method of `Checkout` must be called much earlier than the other methods in the payment flow. The loading time of the preload resources can vary depending on your network's bandwidth. > > ```java Java theme={null} > public class PaymentActivity extends Activity { > > // ... > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > > /** > * Preload payment resources > */ > Checkout.preload(getApplicationContext()); > > // ... > > checkout.setKeyID(""); > > // ... > } > } > ``` > > ```java Kotlin theme={null} > class PaymentActivity: Activity(), PaymentResultWithDataListener, ExternalWalletListener { > // ..... > override fun onCreate(savedInstanceState: Bundle?) { > super.onCreate(savedInstanceState) > setContentView(R.layout.activity_payment) > /* > * To ensure faster loading of the Checkout form, > * call this method as early as possible in your checkout flow > * */ > Checkout.preload(applicationContext) > val co = Checkout() > // apart from setting it in AndroidManifest.xml, keyId can also be set > // programmatically during runtime > co.setKeyID("rzp_live_XXXXXXXXXXXXXX") > } > //...... > } > ``` > > > [!WARNING] > > > > **Watch Out!** > > > > It is recommended to send the API Key ID from your server-side as app-related metadata fetch. Do not add API Keys in the `AndroidManifest` file. > > > > > [accordion] Proguard Rules > > > > > > If you are using Proguard for your builds, you must add the following lines to your `proguard-rules.pro` file. > > > > > > ```java theme={null} > > > -keepclassmembers class * { > > > @android.webkit.JavascriptInterface ; > > > } > > > > > > -keepattributes JavascriptInterface > > > -keepattributes *Annotation* > > > > > > -dontwarn com.razorpay.** > > > -keep class com.razorpay.** {*;} > > > > > > -optimizations !method/inlining/* > > > > > > -keepclasseswithmembers class * { > > > public void onPayment*(...); > > > } > > > ``` > > > > > [accordion] SDK Integration Check > > > > > > Call `Checkout.sdkCheckIntegration(activity)` to check the health of integration. This will also let you know if the SDK version is outdated. This will only appear in debug mode and not in the release. > [accordion] 3 Create an Order in Server > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order using: > > > [tab] API Sample Code > > > > Use this endpoint to create an order using the Orders API. > > > > `POST /orders` > > > > ```bash Curl theme={null} > > curl -X POST https://api.razorpay.com/v1/orders > > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -H 'content-type:application/json' > > -d '{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "qwsaq1", > > "partial_payment": true, > > "first_payment_min_amount": 230 > > }' > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > JSONObject orderRequest = new JSONObject(); > > orderRequest.put("amount", 50000); // amount in the smallest currency unit > > orderRequest.put("currency", "INR"); > > orderRequest.put("receipt", "order_rcptid_11"); > > > > Order order = razorpay.Orders.create(orderRequest); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > DATA = { > > "amount": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "key1": "value3", > > "key2": "value2" > > } > > } > > client.order.create(data=DATA) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->create(array('receipt' => '123', 'amount' => 50000, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient(your_key_id, your_secret); > > > > Dictionary options = new Dictionary(); > > options.Add("amount", 50000); // amount in the smallest currency unit > > options.add("receipt", "order_rcptid_11"); > > options.add("currency", "INR"); > > Order order = client.Order.Create(options); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > options = amount: 50000, currency: 'INR', receipt: '' > > order = Razorpay::Order.create > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.create({ > > amount: 50000, > > currency: "INR", > > receipt: "receipt#1", > > notes: { > > key1: "value3", > > key2: "value2" > > } > > }) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > data := map[string]interface{}{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "some_receipt_id" > > } > > body, err := client.Order.Create(data) > > ``` > > > > ```json Success Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "rcptid_11", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1642662092 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Order amount less than minimum amount allowed", > > "source": "business", > > "step": "payment_initiation", > > "reason": "input_validation_failed", > > "metadata": {}, > > "field": "amount" > > } > > } > > ``` > > > [tab] Razorpay Postman Public Workspace > > > > You can use the Postman workspace below to create an order: > > > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > > > You can create an order manually by integrating the API sample codes on your server. > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit. For example, for an actual amount of , the value of this field should be `22225`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be of 3 characters. > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7,000 is to be received from the customer in two installments of #1 - โ‚น5,000, #2 - โ‚น2,000, then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > [accordion] 4 Initiate Payment and Display Checkout Form > > There are two ways to pass the checkout parameters. You can either use `payloadhelper` or the `JSONObject` options. We recommend using `payloadhelper` to ensure that the right data types are used for the parameter values. > > > [accordion] PayloadHelper > > > > Create a `JSONObject` to send it to the SDK. > > > > ```java Java theme={null} > > PayloadHelper payloadHelper = new PayloadHelper("INR", 100, "order_XXXXXXXXX"); > > payloadHelper.setName(""); > > payloadHelper.setDescription("Description"); > > payloadHelper.setPrefillEmail(""); > > payloadHelper.setPrefillContact(""); > > payloadHelper.setPrefillCardNum(""); > > payloadHelper.setPrefillCardCvv("111"); > > payloadHelper.setPrefillCardExp("11/30"); > > payloadHelper.setPrefillMethod("card"); > > payloadHelper.setPrefillName("MerchantName"); > > payloadHelper.setSendSmsHash(true); > > payloadHelper.setRetryMaxCount(4); > > payloadHelper.setRetryEnabled(true); > > payloadHelper.setColor("#000000"); > > payloadHelper.setAllowRotation(true); > > payloadHelper.setRememberCustomer(true); > > payloadHelper.setTimeout(10); > > payloadHelper.setRedirect(true); > > payloadHelper.setRecurring("1"); > > payloadHelper.setSubscriptionCardChange(true); > > payloadHelper.setCustomerId("cust_XXXXXXXXXX"); > > payloadHelper.setCallbackUrl("https://accepts-posts.request"); > > payloadHelper.setSubscriptionId("sub_XXXXXXXXXX"); > > payloadHelper.setModalConfirmClose(true); > > payloadHelper.setBackDropColor("#ffffff"); > > payloadHelper.setHideTopBar(true); > > payloadHelper.setNotes(new JSONObject("{\"remarks\":\"Discount to customer\"}")); > > payloadHelper.setReadOnlyEmail(true); > > payloadHelper.setReadOnlyContact(true); > > payloadHelper.setReadOnlyName(true); > > payloadHelper.setImage("https://www.razorpay.com"); > > payloadHelper.setAmount(100); > > payloadHelper.setCurrency("INR"); > > payloadHelper.setOrderId("order_XXXXXXXXXXXXXX"); > > ``` > > > > ```java Kotlin theme={null} > > val payloadHelper = PayloadHelper("INR", 100, "order_XXXXXXXXX") > > payloadHelper.name = "" > > payloadHelper.description = "Description" > > payloadHelper.prefillEmail = "" > > payloadHelper.prefillContact = "" > > payloadHelper.prefillCardNum = "" > > payloadHelper.prefillCardCvv = "111" > > payloadHelper.prefillCardExp = "11/30" > > payloadHelper.prefillMethod = "card" > > payloadHelper.prefillName = "MerchantName" > > payloadHelper.sendSmsHash = true > > payloadHelper.retryMaxCount = 4 > > payloadHelper.retryEnabled = true > > payloadHelper.color = "#000000" > > payloadHelper.allowRotation = true > > payloadHelper.rememberCustomer = true > > payloadHelper.timeout = 10 > > payloadHelper.redirect = true > > payloadHelper.recurring = "1" > > payloadHelper.subscriptionCardChange = true > > payloadHelper.customerId = "cust_XXXXXXXXXX" > > payloadHelper.callbackUrl = "https://accepts-posts.request" > > payloadHelper.subscriptionId = "sub_XXXXXXXXXX" > > payloadHelper.modalConfirmClose = true > > payloadHelper.backDropColor = "#ffffff" > > payloadHelper.hideTopBar = true > > payloadHelper.notes = JSONObject("{\"remarks\":\"Discount to customer\"}") > > payloadHelper.readOnlyEmail = true > > payloadHelper.readOnlyContact = true > > payloadHelper.readOnlyName = true > > payloadHelper.image = "https://www.razorpay.com" > > // these values are set mandatorily during object initialization. Those values can be overridden like this > > payloadHelper.amount=100 > > payloadHelper.currency="INR" > > payloadHelper.orderId = "order_XXXXXXXXXXXXXX" > > ``` > > > > If you want to create certain options that are not available, add them to the `JSONObject` we get from `payloadHelper.getJson()`. > > > [accordion] JSONObject > > > > You can alternatively use the JSONObject options given below. > > > > Create an instance of the `Checkout` and pass the payment details and options as a `JSONObject`. Ensure that you add the `order_id` generated in [Step 3](/docs/payments/payment-gateway/android-integration/standard/integration-steps#3-create-an-order-in-server). > > > > ```java Java theme={null} > > public void startPayment() { > > checkout.setKeyID(""); > > /** > > * Instantiate Checkout > > */ > > Checkout checkout = new Checkout(); > > > > /** > > * Set your logo here > > */ > > checkout.setImage(R.drawable.logo); > > > > /** > > * Reference to current activity > > */ > > final Activity activity = this; > > > > /** > > * Pass your payment options to the Razorpay Checkout as a JSONObject > > */ > > try { > > JSONObject options = new JSONObject(); > > > > options.put("name", "Merchant Name"); > > options.put("description", "Reference No. #123456"); > > options.put("image", "http://example.com/image/rzp.jpg"); > > options.put("order_id", "order_DBJOWzybf0sJbb");//from response of step 3. > > options.put("theme.color", "#3399cc"); > > options.put("currency", "INR"); > > options.put("amount", "50000");//pass amount in currency subunits > > options.put("prefill.email", ""); > > options.put("prefill.contact",""); > > JSONObject retryObj = new JSONObject(); > > retryObj.put("enabled", true); > > retryObj.put("max_count", 4); > > options.put("retry", retryObj); > > > > checkout.open(activity, options); > > > > } catch(Exception e) { > > Log.e(TAG, "Error in starting Razorpay Checkout", e); > > } > > } > > ``` > > > > ```java Kotlin theme={null} > > private fun startPayment() { > > /* > > * You need to pass the current activity to let Razorpay create CheckoutActivity > > * */ > > val activity:Activity = this > > val co = Checkout() > > > > try { > > val options = JSONObject() > > options.put("name","Razorpay Corp") > > options.put("description","Demoing Charges") > > //You can omit the image option to fetch the image from the Dashboard > > options.put("image","http://example.com/image/rzp.jpg") > > options.put("theme.color", "#3399cc"); > > options.put("currency","INR"); > > options.put("order_id", "order_DBJOWzybf0sJbb"); > > options.put("amount","50000")//pass amount in currency subunits > > > > val retryObj = new JSONObject(); > > retryObj.put("enabled", true); > > retryObj.put("max_count", 4); > > options.put("retry", retryObj); > > > > val prefill = JSONObject() > > prefill.put("email","") > > prefill.put("contact","") > > > > options.put("prefill",prefill) > > co.open(activity,options) > > }catch (e: Exception){ > > Toast.makeText(activity,"Error in payment: "+ e.message,Toast.LENGTH_LONG).show() > > e.printStackTrace() > > } > > } > > ``` > > > [!NOTE] > > > > **Handy Tips** > > > > When you paste the checkout options given above, the following error message appears: '`TAG` has private access in `androidx.fragment.app.FragmentActivity`'. You can resolve this by adding the following code: > > > > ```java Resolve TAG has private access theme={null} > > public class MainActivity extends AppCompatActivity implements PaymentResultListener { > > private static final String TAG = MainActivity.class.getSimpleName(); > > ``` > > `Checkout.open()` launches the Checkout form where the customer completes the payment and returns the payment result via appropriate callbacks on the `PaymentResultListener`. > > **Payment Options in JSONObject**: > All available options in the `Standard Web Checkout` are also available in Android. > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If you call the payment start method inside a fragment, ensure that the `fragment`'s parent `activity` implements the `PaymentResultListener` interface. > [accordion] 5 Handle Success and Error Events > > You have the option to implement `PaymentResultListener` or `PaymentResultWithDataListener` to receive callbacks for the payment result. > > * `PaymentResultListener` provides only `payment_id` as the payment result. > * `PaymentResultWithDataListener` provides additional payment data such as email and contact of the customer, along with the `order_id`, `payment_id`, `signature` and more. > > Use the code below to import the function in your `.java` file. This should be added at the beginning of the file. > > ```java PaymentResultListener theme={null} > import com.razorpay.PaymentResultListener > ``` > > ```java PaymentResultWithDataListener theme={null} > import com.razorpay.PaymentResultWithDataListener; > ``` > > > [accordion] 5.1 Sample Code > > > > Given below are the sample codes for implementation: > > > > ```java Java - PaymentResultListener theme={null} > > public class PaymentActivity extends Activity implements PaymentResultListener { > > // ... > > > > @Override > > public void onPaymentSuccess(String razorpayPaymentID) { > > /** > > * Add your logic here for a successful payment response > > */ > > } > > > > @Override > > public void onPaymentError(int code, String response) { > > /** > > * Add your logic here for a failed payment response > > */ > > } > > } > > ``` > > > > ```kotlin Kotlin - PaymentResultListener theme={null} > > class PaymentActivity: Activity(), PaymentResultListener { > > // ... > > override fun onPaymentError(errorCode: Int, response: String?) { > > /** > > * Add your logic here for a failed payment response > > */ > > } > > > > override fun onPaymentSuccess(razorpayPaymentId: String?) { > > /** > > * Add your logic here for a successful payment response > > */ > > } > > ``` > > > > ```java Java - PaymentResultWithDataListener theme={null} > > public class PaymentActivity extends Activity implements PaymentResultWithDataListener { > > // ... > > @Override > > public void onPaymentSuccess(String razorpayPaymentID, PaymentData paymentData) { > > /** > > * Add your logic here for a successful payment response > > */ > > } > > @Override > > public void onPaymentError(int code, String response) { > > /** > > * Add your logic here for a failed payment response > > */ > > } > > } > > ``` > > > > ```kotlin Kotlin - PaymentResultWithDataListener theme={null} > > class PaymentActivity: Activity(), PaymentResultWithDataListener { > > // ... > > override fun onPaymentError(errorCode: Int, response: String?) { > > /** > > * Add your logic here for a failed payment response > > */ > > } > > override fun onPaymentSuccess(razorpayPaymentId: String?, PaymentData: PaymentData) { > > /** > > * Add your logic here for a successful payment response > > */ > > } > > ``` > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > * Razorpay's payment process takes place in a new activity. Since there are two activities involved, your activity can get corrupted or destroyed if the device is low on memory. These two methods should not depend on any variables not set through your life cycle hooks. > > > * It is recommended that you test everything by enabling "Don't Keep Activities" in **Developer Options** under **Settings**. > > > [accordion] Error Codes > > > > The error codes are returned in the `onPaymentError` method: > > > > | Error\_Code | Description | > > | - | - | > > | `Checkout.NETWORK_ERROR` | There was a network error, for example, loss of internet connectivity. | > > | `Checkout.INVALID_OPTIONS` | An issue with options passed in `checkout.open`. | > > | `Checkout.PAYMENT_CANCELED` | The user canceled the payment. | > > | `Checkout.TLS_ERROR` | The device does not support TLS v1.1 or TLS v1.2. | > > > [accordion] 5.2 Erase User Data from SDK > > > > The SDK stores customer-specific data such as email, contact number, and user-session cookies if the customer wants to make another payment in the same session. You can delete such sensitive information before another customer logs into the app. > > > > To erase customer data from the app, you can call the following method anywhere in your app. > > > > ```java Erase Customer Data theme={null} > > Checkout.clearUserData(Context) > > ``` > [accordion] 6 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 7 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > [accordion] 8 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Android Standard SDK. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ### Related Information [Google Play's Data Safety](/docs/payments/payment-gateway/android-integration/standard/google-data-safety) # Additional Support for Payment Methods Source: https://razorpay.com/docs/payments/payment-gateway/android-integration/standard/payment-methods Additional support features available for card, netbanking, wallets and more. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Use the Razorpay Android Standard SDK to integrate supported payment methods on the Checkout form of your Android app as per your business requirements. Here are some additional methods provided by the SDK for the integration and usage of payment methods:
  • [UPI Intent support on Target SDK Version 30 and above](#upi-intent-support-target-sdk-version-30+)
  • [UPI Intent on Recurring Payments](#upi-intent-on-recurring-payments)
  • [Card Utilities](#card-utilities)
  • [Fetch Logo](#fetch-bank-logo-url)
  • [Validate Data](#data-validation)
  • [Custom `WebViewClient` and `WebChromeClient`](#custom-webviewclient-and-webchromeclient)
## UPI Intent Support: Target SDK Version 30+ If your application `targetSdkVersion` is 30 or above, add the following code in your app's manifest file to support the UPI Intent flow. ```xml AndroidManifest.xml theme={null} ``` > [!NOTE] > > **Handy Tips** > > * Refer to the list of [supported UPI apps](/docs/payments/payment-methods/upi/supported-apps). > * Additionally, we recommend you to create 2 sections - **Primary** and **Others**. Under **Primary**, display the following 4 apps: > * GPay > * PhonePe > * Paytm > * BHIM ## UPI Intent on Recurring Payments Configure and initiate a recurring payment transaction on UPI Intent: > [!WARNING] > > **Watch Out!** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get it enabled on your Razorpay account. ```java Java theme={null} JSONObject options = new JSONObject(); options.put("name", "Gaurav Kumar"); options.put("description", "Reference No. #123456"); options.put("image", "http://example.com/image/rzp.jpg"); options.put("order_id", "order_DBJOWzybf0XXXX"); // from response of order creation step options.put("theme.color", "#3399cc"); options.put("currency", "INR"); options.put("amount", "50000"); // pass amount in currency subunits options.put("prefill.email", "gaurav.kumar@example.com"); options.put("prefill.contact", "9000090000"); JSONObject retryObj = new JSONObject(); retryObj.put("enabled", true); retryObj.put("max_count", 4); options.put("retry", retryObj); options.put("recurring", 1); options.put("customer_id", "cust_xxxxxxxxx"); options.put("method", new JSONObject().put("upi", true)); ``` ```kotlin Kotlin theme={null} val options = JSONObject() options.put("name", "Gaurav Kumar") options.put("description", "Reference No. #123456") options.put("image", "http://example.com/image/rzp.jpg") options.put("order_id", "order_DBJOWzybf0XXXX") // from response of order creation step options.put("theme.color", "#3399cc") options.put("currency", "INR") options.put("amount", "50000") // pass amount in currency subunits options.put("prefill.email", "gaurav.kumar@example.com") options.put("prefill.contact", "9000090000") val retryObj = JSONObject() retryObj.put("enabled", true) retryObj.put("max_count", 4) options.put("retry", retryObj) options.put("recurring", 1) options.put("customer_id", "cust_xxxxxxxxx") options.put("method", JSONObject().put("upi", true)) ``` ## Card Utilities You can use these methods for card payment method integration. * [Fetch card network](#fetch-card-network) * [Validate card number](#validate-card-number) * [Fetch card number length of a card network](#fetch-card-number-length-for-card-network) #### Fetch Card Network The SDK provides a method to get the card network name of the provided card number. \ * At least 6 digits of the card number are required to identify the network. \ * Possible values returned by this method are `visa`, `mastercard` and `unknown`.\ * If it is not able to identify the network it returns `unknown`. ```java Fetch Card Network theme={null} razorpay.getCardNetwork(cardNumber); ``` #### Validate Card Number You can determine the validity of the card number entered using the `isValidCardNumber` method. This is a checksum-based method to determine if the entered card number is valid or not. ```java Card Number Validation theme={null} razorpay.isValidCardNumber(cardNumber); ``` #### Fetch Card Number Length for Card Network You can fetch the length of a card number for a specific card network using the `getCardNetworkLength` method. ```java Fetch Length for Card Network theme={null} razorpay.getCardNetworkLength(cardNetworkName); ``` ## Logo You can use the respective methods to fetch: * [Bank Logo URL](#fetch-bank-logo-url) * [Wallet Logo URL](#fetch-wallet-logo-url) * [Square-shaped Wallet Logo URL](#fetch-wallet-square-logo-url) #### Fetch Bank Logo URL The SDK provides a method to fetch the bank logo's URL, here `bankCode` is the code of bank, you will be able to get it from the response received in `onPaymentMethodsReceived` callback. ```java Fetch Bank Logo URL theme={null} razorpay.getBankLogoUrl(bankCode); ``` #### Fetch Wallet Logo URL The SDK provides a method to get the wallet logo's URL. ```java Fetch Wallet Logo URL theme={null} razorpay.getWalletLogoUrl(walletName); ``` #### Fetch Wallet Square Logo URL The SDK provides a method to get the wallet's square-shaped logo's URL. ```java Fetch Wallet Square Logo URL theme={null} razorpay.getWalletSqLogoUrl(walletName); ``` ## Data Validation The SDK provides basic validation for the payment data `JSONObject`. In case of a validation error, the SDK returns an error map in the `onValidationError` callback function. #### Sample Code The sample code shown below describes a validation error on the `contact` field: ```java Data Validation theme={null} razorpay.validateFields(payload, new Razorpay.ValidationListener() { @Override public void onValidationSuccess() { try { razorpay.submit(payload); } catch (Exception exception){} } @Override public void onValidationError(Map error) { /** * The format for returned map is: * "field" : "contact" * "description" : "Descriptive error message" */ Toast.makeText(activity, "Validation: " + error.get("field") + " " + error.get("description"), Toast.LENGTH_SHORT).show(); } }); ``` ## Custom `WebViewClient` and `WebChromeClient` Our SDK sets an instance of `RazorpayWebViewClient` and `RazorpayWebChromeClient` to the Webview passed to facilitate bank page optimizations. If you want to set your own custom `WebViewClient` you have to extend `RazorpayWebViewClient` and pass it to our SDK. > [!WARNING] > > **Watch Out!** > > This step is optional and is only required when you want to set a custom `WebViewClient`/`WebChromeClient` #### Sample Code The sample code given below shows how to customize the `RazorpayWebViewClient`: ```java Customize RazorpayWebViewClient theme={null} /** * Extend the RazorpayWebViewClient for your custom hooks */ razorpay.setWebviewClient(new RazorpayWebViewClient(razorpay){ @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { // Make sure you do not forget to call the super method super.onPageStarted(view, url, favicon); Log.d(TAG, "Custom client onPageStarted"); } @Override public void onPageFinished(WebView view, String url) { // Make sure you do not forget to call the super method super.onPageFinished(view, url); Log.d(TAG, "Custom client onPageFinished"); } }); ``` Similarly, you can set your own `WebChromeClient`: ```java Set WebChromeClient theme={null} /** * Extend the RazorpayWebChromeClient for your custom hooks */ razorpay.setWebChromeClient(new RazorpayWebChromeClient() { @Override public void onProgressChanged(WebView view, int newProgress) { // Make sure you do not forget to call the super method super.onProgressChanged(view, newProgress); customProgressBar.setProgress(newProgress); } }); ``` # Integrate Turbo UPI Mock SDK Source: https://razorpay.com/docs/payments/payment-gateway/android-integration/standard/payment-methods/integration-mock Steps to integrate the Razorpay Turbo UPI Mock SDK with your app. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Mock SDK is a tool designed to facilitate your integration with Turbo UPI. Unlike conventional integration methods that rely on the stability of partner banks and NPCI UAT environments, Mock SDK removes this dependency, streamlining the integration process. > [accordion] Advantages > > * **No Dependency on UAT Environment**: Traditional integration methods often encounter obstacles due to issues with UAT environments. Mock SDK removes this roadblock, enabling you to integrate without external dependency. > * **Streamlines Integration**: Mock SDK is designed to create a smoother integration experience, ensuring a hassle-free process. This allows you to quickly offer Turbo UPI services to the users. > * **Effortless Integration for Essential Flows**: Mock SDK simplifies the process of integrating Turbo for important scenarios. This enables you to expand your range of UPI services for customers without dealing with complex requirements. > * **Seamless Transition to Production**: After testing your integration with Mock SDK, you can smoothly transition to the Production SDK for final testing. This ensures a seamless and secure transition from development to live production. > [accordion] Prerequisites > > 1. Contact our [integrations team](mailto:integrations@razorpay.com) to get your mobile number, app, and GitHub account whitelisted to get access to the `https://github.com/upi-turbo/android-turbo-sample-app` - sample app repository. > > * In this repository, you will find the AAR files (libraries for Turbo) and the sample app source code to help you do the entire integration. > * The AARs on the main branch are for the production environment, the ones on the `TURBO-719` branch are for the UAT environment, and the `mock-product` is for the mock environment. > > These are the important files in the sample app repo: > > * `app/libs`: All libraries (Bank, SecureComponent, and Turbo). > > * `app/build.gradle`: All transitive dependencies needed to integrate Turbo SDK. > > 2. Integrate with the [Razorpay Android Standard Checkout SDK](/docs/payments/payment-gateway/android-integration/standard/integration-steps). > > 3. Import the following frameworks: > > * Checkout SDK > * Razorpay Turbo Wrapper Plugin SDK (maven) > * Razorpay Turbo Mock Core SDK > * Razorpay Turbo Mock SDK > * Razorpay SecureComponent SDK > * Bank SDK > > 4. Add the following lines to your Android project's `gradle.properties` file: > > * `android.enableJetifier=true` > > * `android.useAndroidX=true` > > > [!WARNING] > > > > **Watch Out!** > > > > * `minSDKversion` for using Turbo UPI is currently 19 and cannot be overwritten. > > * API Key Usage for Different Environments: > > * Use the `rzp_test_0wFRWIZnH65uny` API key id for testing on the UAT environment. > > * Use the `rzp_test_vacN5cmVqNIlhO` API key id for testing on the Mock environment. > > * Use the [Razorpay live keys](/docs/api/authentication#live-mode-api-keys) for prod testing. > > * As a compliance requirement, you need to get approval from Google for READ\_SMS permission. Refer to the [Google article](https://support.google.com/googleplay/android-developer/answer/10208820?hl=en) for more details. ## 1. Integration Steps Follow these steps to integrate with [Turbo UPI](/docs/payments/payment-gateway/android-integration/standard/payment-methods/turbo-upi). ## 2. Test Integration Razorpay has three environments: Mock, UAT and Prod. We recommend the following: * Complete the integration with the Mock environment. * Perform the UAT using the Razorpay-provided API keys. ### 2.1 Test Data Use the following data to test the integration. > [accordion] Bank List > > | Bank id | Bank Name | IFSC | > | - | - | - | > | 1 | Axis | AXIS0000001 | > | 2 | SBI | SBI00000001 | > | 3 | HDFC | HDFC0000001 | > | 4 | Yes | YES00000001 | > [accordion] Bank Accounts > > | Bank id | Bank Name | Account Number | Beneficiary Name | Account Balance | UPI PIN | ATM PIN | Card Number | Expiry Date | CVV | OTP | > | - | - | - | - | - | - | - | - | - | - | - | > | 1 | Axis Bank | xxxx0001 | Pratheek | โ‚น100 | Not Set | 1234 | 8000110001 | 01/25 | Random CVV | 123456 | > | 2 | SBI Bank | xxxx0001 | Kushaal Singla | โ‚น9,000 | Not Set | 1234 | 9000110001 | 01/25 | Random CVV | 123456 | > | 2 | SBI Bank | xxxx0203 | Kushaal Singla | โ‚น99,999 | 123456 | 1234 | 9599110203 | 01/25 | Random CVV | 123456 | ### 2.2 Test Case Coverage Following are the various scenarios based on the dependencies. > [accordion] Dependencies and Scenarios > > | S.No | Dependency | Positive Scenarios | Negative Scenarios | > | - | - | - | - | > | 1 | Device Binding | Device Binding |
  • SIM not found
  • SMS sending failed
  • Permissions not given
| > | 2 | Account Linking |
  • Account found
  • PIN set
  • PIN not set
| No account for that number | > | 3 | UPI ID generation |
  • UPI ID present
  • New UPI ID creation
| NA | > | 4 |
  • UPI PIN Management
  • Change PIN
  • Reset PIN
| PIN Changed/Set Successfully |
  • Invalid PIN
  • PIN not matching
  • Incorrect OTP
  • Incorrect card details(Reset PIN)
| > | 5 | P2M Transaction - In-App Payments | Payment Successful |
  • Invalid PIN
  • Timeout
  • Insufficient Balance
| > | 6 | Check Balance | Show Balance | Invalid PIN | > | 7 | Delink Account | Success Only | NA | ### 2.3 How to Test? Given are the various test cases and their sequential steps. > [accordion] 3.1 Device Binding Success > > In the scenario of successful device binding, follow these simple steps: > > 1. Enter a mobile number that exists on the user's device. > 2. Call `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > 3. Grant all the required permissions as prompted. > 4. The device binding process will initiate, including SMS sending. > 5. After successful device binding, a list of banks for selection will appear. > [accordion] 3.2 SIM not found > > In the event of a SIM card not being found, follow these steps: > > 1. Remove all SIM cards from the device. > 2. Call `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > 3. Grant all the required permissions as prompted. > 4. A screen will be displayed with the error message No SIM found. > [accordion] 3.3 Denied Permissions or Access Restricted > > When permissions are denied or access is restricted, follow these steps: > > 1. Enter a mobile number that exists on the user's device. > 2. Call `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > 3. Deny the required permissions when prompted. > 4. A screen will be displayed, asking to allow the denied permissions. > [accordion] 3.4 Account Found > > In the scenario where an account is found, follow these steps: > > 1. Enter a mobile number that exists on the user's device. > 2. Call `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > 3. Grant the required permissions when prompted. > 4. The device binding process will initiate, including SMS sending. > 5. After successful device binding, a list of banks for selection will appear. > 6. Select Axis Bank or SBI Bank as mentioned in the [Test Data](#2-1-test-data). > 7. The expected response should be `UpiTurboLinkAction = SELECT_BANK_ACCOUNT` with `action.getError()==null` (no errors). > 8. The accounts based on the bank selection will be shown. > [accordion] 3.5 PIN > > > [accordion] PIN set > > > > When it comes to setting or managing your PIN, follow these steps: > > > > 1. Enter a mobile number that exists on the user's device. > > 2. Call `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > > 3. Grant the necessary permissions when prompted. > > 4. The device binding process will initiate, including SMS sending. > > 5. After successful device binding, a list of banks for selection will appear. > > 6. Select Axis Bank or SBI Bank as mentioned in the [Test Data](#2-1-test-data). > > 7. The accounts based on the bank selection will be shown. > > 8. Select the account ending with xxxx0203, as mentioned in the [Test Data](#2-1-test-data). > > 9. The account will be linked, and the PIN will be set successfully. > > > [accordion] PIN not set > > > > When dealing with scenarios where a PIN is not set, follow these steps: > > > > 1. Enter a mobile number that exists on the user's device. > > 2. Call `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > > 3. Grant the necessary permissions when prompted. > > 4. The device binding process will initiate, including SMS sending. > > 5. After successful device binding, a list of banks for selection will appear. > > 6. Select Axis Bank or SBI Bank as mentioned in the [Test Data](#2-1-test-data). > > 7. The accounts based on the bank selection will be shown. > > 8. Select an account ending with xxxx0001, as mentioned in the [Test Data](#2-1-test-data). > > 9. A card details screen will be displayed. > > > [accordion] No Account for Specified Number > > > > When there is no account associated with a particular number, follow these steps: > > > > 1. Enter a mobile number that exists on the user's device. > > 2. Call `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > > 3. Grant the necessary permissions when prompted. > > 4. The device binding process will initiate, including SMS sending. > > 5. After successful device binding, a list of banks for selection will appear. > > 6. Select HDFC or Yes Bank as mentioned in the [Test Data](#2-1-test-data). > > 7. A screen will appear with the error message No bank account found. > > > [accordion] PIN set Successfully > > > > For a successful PIN setup, follow these steps: > > > > 1. Enter a mobile number that exists on the user's device. > > 2. Call `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > > 3. Grant the necessary permissions when prompted. > > 4. The device binding process will initiate, including SMS sending. > > 5. After successful device binding, a list of banks for selection will appear. > > 6. Select Axis Bank or SBI Bank as mentioned in the [Test Data](#2-1-test-data). > > 7. The accounts based on the bank selection will be shown. > > 8. Select an account ending with xxxx0001, as mentioned in the [Test Data](#2-1-test-data). > > 9. A card details screen will be displayed. Enter the details from [Test Data](#2-1-test-data). > > 10. Enter bank OTP from [Test Data](#2-1-test-data) on the next screen then proceed. > > 11. Enter and confirm the PIN on the subsequent screens. > > > [accordion] Incorrect OTP > > > > In situations where an incorrect OTP is encountered, follow these steps: > > > > 1. Enter a mobile number that exists on the user's device. > > 2. Call `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > > 3. Grant the necessary permissions when prompted. > > 4. The device binding process will initiate, including SMS sending. > > 5. After successful device binding, a list of banks for selection will appear. > > 6. Select Axis Bank or SBI Bank as mentioned in the [Test Data](#2-1-test-data). > > 7. The accounts based on the bank selection will be shown. > > 8. Select an account ending with xxxx0001, as mentioned in the [Test Data](#2-1-test-data). > > 9. A card details screen will be displayed. Enter the details form [Test Data](#2-1-test-data) > > 10. Enter any random OTP except for 123456. > > > [accordion] Incorrect Card Details (Reset PIN) > > > > When dealing with resetting your PIN with incorrect card details, follow these steps: > > > > 1. Enter a mobile number that exists on the user's device. > > 2. Call `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > > 3. Grant the necessary permissions when prompted. > > 4. The device binding process will initiate, including SMS sending. > > 5. After successful device binding, a list of banks for selection will appear. > > 6. Select Axis Bank or SBI Bank as mentioned in the [Test Data](#2-1-test-data). > > 7. The accounts based on the bank selection will be shown. > > 8. Select an account ending with xxxx0001, as mentioned in the [Test Data](#2-1-test-data). > > 9. Enter incorrect card details. > [accordion] 3.6 UPI ID > > > [accordion] New UPI ID Creation (PIN already set) > > > > For the scenario of creating a new UPI ID with an already set PIN, follow these steps: > > > > 1. Enter a mobile number that exists on the user's device. > > 2. Call the `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > > 3. Grant all the required permissions as prompted. > > 4. The device binding process will initiate, including SMS sending. > > 5. After successful device binding, a screen with a list of Banks will be displayed for Bank selection. > > 6. Select Axis Bank or SBI Bank as mentioned in the [Test Data](#2-1-test-data). > > 7. The accounts based on bank selection will be shown. > > 8. Select an account ending with xxxx0203, as mentioned in the [Test Data](#2-1-test-data). > > 9. Expect the final response to confirm that an account with a UPI ID is linked successfully. > > > [accordion] New UPI ID Creation (PIN not set) > > > > For the scenario of creating a new UPI ID without a set PIN, follow these steps: > > > > 1. Enter a mobile number that exists on the user's device. > > 2. Call the `razorpay.upiTurbo.linkNewUpiAccountWithUI` method. > > 3. Grant all the required permissions as prompted. > > 4. The device binding process will initiate, including SMS sending. > > 5. After successful device binding, a screen with a list of Banks will be displayed for Bank selection. > > 6. Select Axis Bank or SBI Bank as mentioned in the [Test Data](#2-1-test-data). > > 7. The accounts based on bank selection will be shown. > > 8. Select an account ending with xxxx0001, as mentioned in the [Test Data](#2-1-test-data). > > 9. A card detail screen will be displayed. Enter the details from [Test Data](#2-1-test-data). > > 10. Enter the bank OTP from [Test Data](#2-1-test-data) on the next screen, then proceed. > > 11. Enter and confirm the PIN on the subsequent screens. > [accordion] 3.7 Manage Accounts > > > [accordion] Show Balance > > > > For scenarios related to checking your balance, follow these steps: > > > > 1. Enter a mobile number that is already registered on the device. > > 2. Call `razorpay.upiTurbo.manageUpiAccounts` method. > > 3. A list of linked accounts will be displayed. > > 4. Select the account for which you want to check the balance. > > 5. Click on Check Balance, then enter the correct PIN when prompted. > > 6. The balance for the selected account will be displayed. > > > [accordion] Check Balance - Invalid PIN > > > > When it comes to scenarios focused on checking your balance, follow these steps: > > > > 1. Enter a mobile number that exists on the user's device. > > 2. Call the `razorpay.upiTurbo.manageUpiAccounts` method. > > 3. A list of linked accounts will be displayed. > > 4. Select the account for which you want to check the balance. > > 5. Click on Check Balance. > > 6. Enter an incorrect PIN when prompted. > > 7. An error message will be displayed indicating that the provided PIN is invalid or does not match the expected PIN. > > > [accordion] Delink Account - Success > > > > When it comes to scenarios related to delinking your account, follow these steps: > > > > 1. Enter a mobile number that is already registered on the device. > > 2. Call `razorpay.upiTurbo.manageUpiAccounts` method. > > 3. A list of linked accounts will be displayed. > > 4. Select the account you wish to delink. > > 5. Click on the option to delink or remove the account. > > 6. A confirmation alert will be displayed, confirming that your account has been successfully delinked. > > > [accordion] Change PIN - Success > > > > When it comes to successfully changing your PIN, follow these steps: > > > > 1. Enter a mobile number that is registered on the device. > > 2. Call `razorpay.upiTurbo.manageUpiAccounts` method. > > 3. A list of linked accounts will be presented. > > 4. Select the specific account for which you intend to change the PIN. > > 5. Click on Change PIN, and proceed to enter the current PIN, along with the new PIN, and confirm the new PIN on the subsequent screens. > > > [accordion] Change PIN - Failure > > > > When attempting to change your PIN but encountering a failure, follow these steps: > > > > 1. Enter a mobile number that is registered on the device. > > 2. Call `razorpay.upiTurbo.manageUpiAccounts` method. > > 3. A list of linked accounts will be displayed. > > 4. Select the specific account for which you wish to change the PIN. > > 5. Click on Change PIN and proceed to enter an incorrect PIN, or enter a new PIN and a different PIN while confirming it. > > > [accordion] Reset PIN - Success > > > > To successfully reset your PIN, proceed with the following steps: > > > > 1. Enter a mobile number that is registered on the device. > > 2. Call the `razorpay.upiTurbo.manageUpiAccounts` method. > > 3. View the list of linked accounts. > > 4. Select the specific account for which you wish to reset the PIN. > > 5. Click on Reset PIN and follow the prompts to input the bank OTP from the [Test Data](#2-1-test-data). > > 6. Enter the new PIN and confirm it on the subsequent screens. > [!WARNING] > > **Watch Out!** > > * Device Binding will only work if the user has at least one SIM card in their mobile device. > * Users can set/reset the UPI PIN. The configured PIN will be used to validate the transaction. > * Based on the [Test Data](#2-1-test-data) for bank accounts, choose a bank for a single, multiple or no bank account. > * Use the same ATM PIN and card Number mentioned in the [Test Data](#2-1-test-data). > * The UPI PIN will revert to its default setting or be removed when you uninstall or clear storage. > * Amount โ‚น24 is blocked for special cases. Please refer to [Additional Cases](#2-4-additional-cases). ### 2.4 Additional Cases Businesses should have the capability to display a user-friendly message to their customers for certain special or additional error scenarios. The SDK is equipped to simulate some of these cases. | Action | Input Data | Code | Description | | - | - | - | - | | Pay | Amount = โ‚น24 | 91 | Timeout | ### 2.5 TPV Cases * Only one TPV whitelisted account (ending with xxxx0203) is permitted. Payments made using any other accounts will fail with the error Payment failed because the account linked to VPA is invalid. * Payment can be made multiple times when using Mock for any given `order_id`, which is not the case in production. * Use the `rzp_test_V5AtnjYvupQXm1` API key id for TPV testing on the Mock environment. ## 3. Go-live Checklist Complete this [Go-live Checklist](/docs/payments/payment-gateway/android-integration/custom/payment-methods/turbo-upi/integration-ui#3-go-live-checklist) to take your integration live. # Integrate Turbo UPI TPV Source: https://razorpay.com/docs/payments/payment-gateway/android-integration/standard/payment-methods/integration-tpv Know how Razorpay performs Third-Party Validation (TPV) of investor bank accounts in real-time using Razorpay Turbo UPI on Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Third-party validation (TPV) of bank accounts is mandatory for businesses in the BFSI (Banking, Financial Services and Insurance) sector dealing with Securities, Broking and Mutual Funds. You can accept customer payments with the Turbo UPI TPV SDK. Know more about [How TPV works](/docs/payments/third-party-validation#how-it-works). > [!WARNING] > > **Watch Out!** > > You can choose to maintain a whitelisted account per customer using the S2S [Customer Add Bank Account API](/docs/api/customers/bank-accounts#1-add-bank-account-of-customer) on your end. This is an additional functionality. This will help you during the onboarding flow, where only whitelisted accounts will be shown to the users during onboarding. > [accordion] Prerequisites > > 1. Contact our [integrations team](mailto:integrations@razorpay.com) to get your mobile number, app, and GitHub account whitelisted to get access to the `https://github.com/upi-turbo/android-standard-turbo-sample` - sample app repository. > > * In this repository, you will find the AAR files (libraries for Turbo UPI) and the sample app source code to help you with the integration. > * The AARs on the main branch are for the production environment, the ones on the `TURBO-719` branch are for the UAT environment and the ones on `mock-product` are for the Mock environment. > > These are the important files in the sample app repo: > > * `app/libs`: All libraries (Bank, SecureComponent and Turbo). > * `app/build.gradle`: All transitive dependencies needed to integrate Turbo SDK. > > 2. Integrate with the [Razorpay Android Standard Checkout SDK](/docs/payments/payment-gateway/android-integration/standard/integration-steps). > > 3. Import the following frameworks: > * Checkout SDK > * Razorpay Turbo Wrapper Plugin SDK (maven) > * Razorpay Turbo Core SDK > * Razorpay Turbo UI SDK > * Razorpay SecureComponent SDK > * Bank SDK > > 4. Add the following lines to your Android project's `gradle.properties` file: > * `android.enableJetifier=true` > > * `android.useAndroidX=true` > > > [!WARNING] > > > > **Watch Out!** > > > > * `minSDKversion` for using Turbo UPI is currently 19 and cannot be overwritten. > > * API Key Usage for Different Environments: > > * Use the `rzp_test_5sHeuuremkiApj` API key id for testing on the UAT environment. > > * Use the `rzp_test_V5AtnjYvupQXm1` API key id for testing on the Mock environment. > > * Use the [Razorpay live keys](/docs/api/authentication#live-mode-api-keys) for prod testing. > > * As a compliance requirement, you need to get approval from Google for **READ\_SMS** permission. Refer [to the Google article](https://support.google.com/googleplay/android-developer/answer/10208820?hl=en) for more details. ## 1. Integration Steps Given below are the steps: > [accordion] Step 1: Whitelist Customer Bank Accounts *(Optional)* > > You can whitelist (also known as allowlist) your customer's bank accounts to ensure that only those accounts are considered during customer onboarding. By whitelisting the accounts at the start, you can avoid the bank account linking during payment. Use the Customer APIs to create customers and add their bank account details.\\ > > For example, if a customer, Gaurav, has two bank accounts ABC and XYZ, you can use the APIs to create a customer id and link the bank accounts to that id. You can then pass this customer id at the time of payment.\\ > > Follow these steps. > > > [accordion] Step 1.1: Create a Customer > > > > Use this endpoint to create or add a customer with basic details such as name and contact details. > > > > ```bash Request theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > > -X POST https://api.razorpay.com/v1/customers \ > > -H "Content-Type: application/json" \ > > -d '{ > > "name": "Gaurav Kumar", > > "contact": "9123456780", > > "email": "gaurav.kumar@example.com", > > "fail_existing": "0", > > "notes": { > > "notes_key_1": "Tea, Earl Grey, Hot", > > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." > > } > > }' > > ``` > > > > ```json Success Response theme={null} > > { > > "id" : "cust_1Aa00000000004", > > "entity": "customer", > > "name" : "Gaurav Kumar", > > "email" : "gaurav.kumar@example.com", > > "contact" : "9123456780", > > "gstin": null, > > "notes": { > > "notes_key_1":"Tea, Earl Grey, Hot", > > "notes_key_2":"Tea, Earl Greyโ€ฆ decaf." > > }, > > "created_at ": 1234567890 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Contact number should be at least 8 digits, including country code", > > "source": "business", > > "step": "NA", > > "reason": "invalid_contact_number", > > "metadata": {}, > > "field": "contact" > > } > > } > > ``` > > > > > [accordion] Request Parameters > > > > > > `name` *optional* > > > : `string` Customer's name. Alphanumeric value with period (.), apostrophe ('), forward slash (/), at (@) and parentheses are allowed. The name must be between 3-50 characters in length. For example, `Gaurav Kumar`. > > > > > > `contact ` *optional* > > > : `string` The customer's phone number. A maximum length of 15 characters including country code. For example, `+919876543210`. > > > > > > `email ` *optional* > > > : `string` The customer's email address. A maximum length of 64 characters. For example, `gaurav.kumar@example.com`. > > > > > > `fail_existing` *optional* > > > : `string` Possible values: > > > > > > * `1` (default): If a customer with the same details already exists, throws an error. > > > * `0`: If a customer with the same details already exists, fetches details of the existing customer. > > > > > > `gstin` *optional* > > > : `string` Customer's GST number, if available. For example, `29XAbbA4369J1PA`. > > > > > > `notes` *optional* > > > : `object` This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the customer. For example, `cust_1Aa00000000004`. > > > > > > `name` > > > : `string` Customer's name. Alphanumeric, with period (.), apostrophe ('), forward slash (/), at (@) and parentheses allowed. The name must be between 3-50 characters in length. For example, `Gaurav Kumar`. > > > > > > `contact` > > > : `string` The customer's phone number. A maximum length of 15 characters including country code. For example, `+919876543210`. > > > > > > `email` > > > : `string` The customer's email address. A maximum length of 64 characters. For example, `gaurav.kumar@example.com`. > > > > > > `gstin` > > > : `string` GST number linked to the customer. For example, `29XAbbA4369J1PA`. > > > > > > `notes` > > > : `json object` This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > > > `created_at` > > > : `integer` UNIX timestamp, when the customer was created. For example, `1234567890`. > > > [accordion] Step 1.2: Add Customer's Bank Account > > > > The following endpoint adds the customer's bank accounts. > > > > `POST customers/:customer_id/bank_account` > > > > ```bash Request theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > > -X POST https://api.razorpay.com/v1/customers/:customer_id/bank_account \ > > -H "Content-Type: application/json" \ > > -d '{ > > "ifsc_code" : "UTIB0000194", > > "account_number" :"916010082985661", > > "beneficiary_name" : "Gaurav", > > "beneficiary_address1" : "address 1", > > "beneficiary_address2" : "address 2", > > "beneficiary_address3" : "address 3", > > "beneficiary_address4" : "address 4", > > "beneficiary_email" : "gaurav.kumar@example.com", > > "beneficiary_mobile" : "9900990099", > > "beneficiary_city" :"Bangalore", > > "beneficiary_state" : "KA", > > "beneficiary_country" : "IN" > > }' > > ``` > > > > ```json Response theme={null} > > { > > "id": "ba_LSZht1Cm7xFTwF", > > "entity": "bank_account", > > "ifsc": "ICIC0001207", > > "bank_name": "ICICI Bank", > > "name": "Gaurav Kumar", > > "notes": [], > > "account_number": "XXXXXXXXXXXXXXX0434" > > } > > ``` > > > > > [accordion] Path Parameter > > > > > > `customer_id` *mandatory* > > > : `string` Customer id of the customer whose bank account is to be added. > > > > > [accordion] Request Parameters > > > > > > `account_number` *mandatory* > > > : `string` Customer's bank account number. For example, `11214311215411`. > > > > > > `beneficiary_name` *mandatory* > > > : `string` The name of the beneficiary associated with the bank account. > > > > > > `beneficiary_address1` *optional* > > > : `string` The virtual payment address. > > > > > > `beneficiary_email` *optional* > > > : `string` Email address of the beneficiary. For example, `gaurav.kumar@example.com`. > > > > > > `beneficiary_mobile` *optional* > > > : `string` Mobile number of the beneficiary. > > > > > > `beneficiary_city` *optional* > > > : `string` The city of the beneficiary. > > > > > > `beneficiary_state` *optional* > > > : `string` The state of the beneficiary. > > > > > > `beneficiary_country` *optional* > > > : `string` The country of the beneficiary. > > > > > > `beneficiary_pin` *optional* > > > : `integer` The pin code of the beneficiary's address. > > > > > > `ifsc_code` *mandatory* > > > : `string` The IFSC of the bank branch associated with the account. > > > > > [accordion] Response Parameters > > > > > > `bank_accounts` > > > : `array` An array containing bank account details. > > > > > > `id` > > > : `string` Unique identifier of the bank account. > > > > > > `entity` > > > : `string` The type of entity, which in this case is `bank_account`. > > > > > > `ifsc` > > > : `string` The IFSC of the bank branch associated with the account. > > > > > > `bank_name` > > > : `string` The name of the bank. > > > > > > `name` > > > : `string` The name associated with the bank account. > > > > > > `notes` > > > : `object` Set of key-value pairs that can be used to store additional information about the payment. > > > > > > `account_number` > > > : `integer` Customer's bank account number. For example, `0002020000304030434`. > [accordion] Step 2: Create an Order *(Mandatory)* > > Pass the investor bank account details to the `bank_account` array of the Orders API. Given below is the sample code when the `method` is `upi`. > > ```bash Request theme={null} > curl -u : \ > -X POST https://api.razorpay.com/v1/orders \ > -H "Content-Type: application/json" \ > -d '{ > "amount": 500, > "method": "upi", > "receipt": "BILL13375649", > "currency": "INR", > "bank_account": { > "account_number": "765432123456789", > "name": "Gaurav Kumar", > "ifsc": "HDFC0000053" > } > }' > ``` > > ```json Response theme={null} > { > "id": "order_GAWRjlWkVcRh0V", > "entity": "order", > "amount": 500, > "amount_paid": 0, > "amount_due": 500, > "currency": "INR", > "receipt": "BILL13375649", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1573044206 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount expressed in paise (currency supported is INR). For example, for an actual amount of โ‚น1, the value of this field should be `100`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. You can create orders in **INR** only. > > > > `receipt` *optional* > > : `string` Receipt number that corresponds to this order, set for your internal reference. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `method` *mandatory* > > : `string` The payment method used to make the payment. If this parameter is not passed, investors will be able to make payments using both netbanking and UPI payment methods. Possible values: > > > > * `netbanking`: Investors can make payments only using netbanking. > > * `card`: Investors can make payments using debit card. > > * `upi`: Investors can make payments only using UPI. > > > > `bank_account` *mandatory* > > : `object` Details of the bank account that the investor has provided at the time of registration. > > > > `account_number` *mandatory* > > : `string` The bank account number from which the investor should make the payment. For example, `765432123456789` Payments will not be processed for an incorrect account number. > > > > `name` *mandatory* > > : `string` The name linked to the bank account. For example, `Gaurav Kumar`. > > > > `ifsc` *mandatory* > > : `string` The bank IFSC. For example, `HDFC0000053`. > > > [accordion] Response Parameters > > > > `id` > > : `string` Unique identifier of the order. > > > > `entity` > > : `string` Indicates the type of entity. Here, it is `order`. > > > > `amount` > > : `integer` The order amount represented in the smallest unit of the currency passed. For example, amount = 100 translates to 100 paise, that is โ‚น1 (default currency is INR). > > > > `amount_paid` > > : `integer` The amount that has been paid. > > > > `amount_due` > > : `integer` The amount that is yet to be paid. > > > > `currency` > > : `string` The 3-letter ISO currency code for the payment. Currently, we support INR only. > > > > `receipt` > > : `string` A unique identifier of the order entered by the user. For example, `BILL13375649`. > > > > `status` > > : `string` The status of the order. > > > > `notes` > > : `object` Key-value pair you can use to store additional information about the entity. Maximum of 15 key-value pairs, 256 characters each. For example, "note\_key": "Beam me up Scottyโ€. > > > > `created_at` > > : `integer` The Unix timestamp at which the order was created. > > > > `offer_id` > > : `string` Unique identifier of the offer. > > > > `attempts` > > : `integer` The number of payment attempts, successful and failed, that have been made against this order. > [accordion] Step 3: Turbo UPI SDK Action > > You need to link the customer's UPI account with your app. Use the code samples given below to [link a New UPI account](#2-link-new-upi-account). > > > [accordion] 1 Initialise the SDK > > > > Use the code given below to initialise the SDK. > > > > ```java Java theme={null} > > Checkout checkout = new Checkout() > > .upiTurbo(activity) //mandatory > > .setColor("/*color*/ #000000"); //optional > > ``` > > > > ```kotlin Kotlin theme={null} > > val checkout = Checkout() > > .upiTurbo(activity) // mandatory > > .setColor("/*color*/ #000000") // optional > > ``` > > > [accordion] 2 Link New UPI Account > > > > Use the following code to link the newly created UPI account with your app. This function can be called from anywhere in the application, providing multiple entry points for customers to link their UPI account with your app. Linking the new UPI account in advance allows customers to pay directly without repeating the linking process. > > > > ```java Java theme={null} > > checkout.upiTurbo.linkNewUpiAccount("", "#000000" /*color - in hex format*/, > > new GeneralPluginCallback(){ > > > > @Override > > public void onSuccess(UpiAccount upiAccount) { > > > > } > > > > @Override > > public void onError(JSONObject error) { > > > > } > > > > }); > > > > > > ``` > > > > ```kotlin Kotlin theme={null} > > checkout.upiTurbo?.linkNewUpiAccount("", "#000000" /*color - in hex format*/, > > object : GeneralPluginCallback{ > > > > override fun onSuccess(upiAccount: UpiAccount) { > > // use upiAccount to display data to the User > > } > > > > override fun onError(error: JSONObject) { > > // error regarding linking of UpiAccount > > } > > > > }) > > // color parameter in the function can be used to customize the screens in > > // linking process > > ``` > > > > > [accordion] Request Parameters > > > > > > `customerMobile` *mandatory* > > > : `string` Mobile number of the customer. > > > > > > `color` *mandatory* > > > : `string` Colour in HEX format. > > > > > > `listener` *mandatory* > > > : `GeneralPluginCallback` The listener used to receive callbacks for success or failure events. > > > > > [accordion] Response Parameters > > > > > > | Parameter | Description | > > > | - | - | > > > | `onSuccess` | This function is triggered if the list was fetched successfully. | > > > | `onError` | This function is triggered in case an error is thrown during the retrieval process, either by Razorpay SDK or Bank SDK. | > [accordion] Step 4: Payment Flow > > Razorpay SDK will handle all the changes related to Turbo UPI internally. To integrate with the payment flow, [initiate payment and display the checkout form](/docs/payments/payment-gateway/android-integration/standard/integration-steps#4-initiate-payment-and-display-checkout-form). > [accordion] Steps 5: Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > * You need to store these fields in your server. > * You can confirm the authenticity of these details by verifying the signature in the next step. > > ```json Success Callback theme={null} > { > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > "razorpay_order_id": "order_9A33XWu170gUtm", > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > } > ``` > > > [accordion] Parameters > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] Step 6: Verify Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > To verify the `razorpay_signature` returned to you by the Checkout form: > > 1. Create a signature in your server using the following attributes: > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > * `razorpay_payment_id`: Returned by Checkout. > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/api/authentication#generate-api-keys). > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > ```html HMAC Hex Digest theme={null} > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > if (generated_signature == razorpay_signature) { > payment is successful > } > ``` > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. ### Non-Transactional Flow Razorpay provides a single exposed function that allows you to manage linked UPI accounts and access all non-transactional flows seamlessly. > [accordion] Manage UPI Accounts > > The SDK manages the linked `UpiAccounts` on the application by triggering `manageUpiAccounts()`, which follows the following internal non-transaction flows for `UpiAccounts`: > > * **Fetch balance**: Check the customer's account balance. > * **Change UPI PIN**: Provide the customer the ability to change their UPI PIN. > * **Reset UPI PIN**: Let your customers reset the PIN for their account. > * **Delete the account from the application**: Let your customers delink, that is, remove a selected UPI account from your application. > > ```java Java theme={null} > if (checkout.upiTurbo != null) { > checkout.upiTurbo.manageUpiAccounts("9000090000","#000000"/*color - in hex format(nullable)*/, new GenericPluginCallback() { > @Override > public void onSuccess(@NonNull Object data) { > /* can be safely ignored */ > } > > @Override > public void onError(@NonNull JSONObject error) { > /* Throws error if Turbo UPI cannot be initialized or throws error */ > } > }); > } > ``` > > ```kotlin Kotlin theme={null} > checkout.upiTurbo?.manageUpiAccounts("9000090000", "#000000"/*color - in hex format(nullable)*/, object : GenericPluginCallback { > override fun onError(error: JSONObject) { > /* Throws error if Turbo UPI cannot be initialized or throws error */ > } > > override fun onSuccess(data: Any) { > /* Can be safely ignored */ > } > }) > ``` > [!NOTE] > > **Handy Tips** > > You can use the following S2S APIs to maintain and fetch a list of all TPV bank accounts for a customer. > > * Use the [Add Bank Account of Customers API](#step-1-2-add-customers-bank-account) to add bank account of the customers. > * Use the [Delete Bank Account of Customers API](/docs/api/customers/bank-accounts#2-delete-bank-account-of-customer) to delete bank account of the customers. ### Models Exposed from the SDKs The SDKs given below provide access to exposed models for seamless integration. > [accordion] UpiAccount > > | Method | Return Type | Description | > | - | - | - | > | `getAccountNumber` | String | Returns masked bank account number. | > | `getAccountType` | String | The account type. Possible values are `savings` and `current`. | > | `getIfsc` | String | Returns IFSC for Bank. | > | `getBankName` | String | Returns name of bank. | > | `getBankLogoUrl` | String | Returns URL to the PNG image logo. | > | `bankPlaceholderUrl` | String | Image URL for bank logo placeholder. | > | `pinLength` | Integer | Length on UPI PIN. | > [accordion] Error > > | Error | Description | > | - | - | > | `getErrorCode()` | Types of error codes
  • `BAD_REQUEST_ERROR`: Failure from the client's end (SDK).
  • `GATEWAY_ERROR`: Failure either from the Secure Component or the Bank.
  • `SERVER_ERROR`: Failure at PSP.
| > | `getErrorDescription()` | Brief description of the error. | > | `getErrorReason()` | Specifies the reason for the error. | > | `getErrorSource()` | Indicates the origin of the error. | > | `getErrorStep()` | Highlights the stage where the error occurred. | > > [Refer to the list of possible error reasons](/docs/payments/payment-gateway/android-integration/standard/payment-methods/turbo-upi/error-codes). ## 2. Test Integration We recommend the following: * Complete the integration on UAT before using the prod builds. * Perform the UAT using the Razorpay-provided API keys. ## 3. Go-live Checklist Complete these steps to take your integration live: * You should get your app id whitelisted by Razorpay to test on prod. > [!NOTE] > > **Handy Tips** > > Contact our [integrations team](mailto:integrations@razorpay.com) to get your mobile number and app whitelisted. * Import the prod library from the GitHub repository โ†’ `https://github.com/upi-turbo/android-turbo-sample-app/tree/prod/app/libs` prod branch. * Add Proguard rules: * `keepclassmembers,allowobfuscation class * { @com.google.gson.annotations.SerializedName ; }` * `keepclassmembers enum * { *; }` * `keepclassmembers class * { @android.webkit.JavascriptInterface ; }` * `dontwarn com.razorpay.**` * `keep class com.razorpay.** {*;}` * `keep class com.olivelib.** {*;}` * `keep class com.olive.** {*;}` * `keep class org.apache.xml.security.** {*;}` * `keep interface org.apache.xml.security.** {*;}` * `keep class org.npci.** {*;}` * `keep interface org.npci.** {*;}` * `keep class retrofit2.** { *; }` * `keep class okhttp3.** { *; }` * Replace the UAT credential with the [Razorpay live keys](/docs/api/authentication#live-mode-api-keys) for prod testing. # Integrate with Turbo UPI Source: https://razorpay.com/docs/payments/payment-gateway/android-integration/standard/payment-methods/turbo-upi Steps to integrate Razorpay Turbo UPI with your app. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Turbo UPI Android Standard SDK](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to Turbo UPI on Android Standard Checkout (since Jan 2024). With Razorpay Turbo UPI, businesses experience faster and simpler payments. It condenses the payment process from 5 steps to just 1, eliminating app redirections. Enjoy a seamless in-app payment experience, reduce dependencies on third-party UPI apps, and gain complete visibility of the payment journey. You can seamlessly integrate Turbo UPI with Razorpay Android Standard SDK. Explore the full potential of [Razorpay Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi) and know How it Works. ![Turbo UPI Standard Checkout Flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-flow.jpg) > [accordion] Prerequisites > > Before you start integrating Turbo UPI with Razorpay Android Standard SDK, ensure that you follow these guidelines for a smooth integration process: > > 1. **SDK Version Compatibility:** > * Integrate with [Razorpay Android Standard SDK](/docs/payments/payment-gateway/android-integration/standard). Ensure that you integrate with SDK version 1.6.37 or higher. > 2. **Import the following frameworks:** > * In the root settings.gradle file, use: > > ```kotlin Kotlin theme={null} > dependencyResolutionManagement { > repositories { > // ... other repositories ... > maven { > url = uri("https://maven.pkg.github.com/upi-turbo/android-turbo-sample-app") > credentials { > username = "upi-turbo" > password = "" > } > } > } > } > ``` > > * In the library module's build.gradle, use: > > ```kotlin Kotlin theme={null} > dependencies { > // UAT > debugImplementation "com.razorpay:checkout-uat:$CHECKOUT_VERSION" > debugImplementation "com.razorpay:razorpay-turbo-uat:$TURBO_VERSION" > debugImplementation "com.razorpay:turbo-ui-uat:$TURBO_VERSION" > > // Production > releaseImplementation "com.razorpay:checkout:$CHECKOUT_VERSION" > releaseImplementation "com.razorpay:razorpay-turbo:$TURBO_VERSION" > releaseImplementation "com.razorpay:turbo-ui:$TURBO_VERSION" > } > ``` > > 3. **Gradle Properties:** > * Add the following lines to your Android project's `gradle.properties` file: > * `android.enableJetifier=true` > * `android.useAndroidX=true` > 4. **Minimum SDK Version:** > * Keep in check that the `minSDKversion` for using Turbo UPI is currently 23 and cannot be overwritten. > 5. **Contact Prefill in Standard Checkout:** > * Standard Checkout should load with the contact prefilled. This contact information is crucial for setting up UPI accounts. > * Make sure your Checkout options include [**prefill contact**](/docs/payments/payment-gateway/android-integration/standard/integration-steps#4-initiate-payment-and-display-checkout-form). ## Onboarding Flow Ensure your customers [onboard with Razorpay Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi#onboarding-flow) to get started. ### Turbo UI SDK Integration Follow these steps to integrate with Razorpay Turbo UPI: 1. Initialise the Checkout object with the `activity` parameter to enable Turbo UPI functionality. ```kotlin Kotlin theme={null} val checkout = Checkout() .upiTurbo(activity) // mandatory .setColor("/*color*/ #000000") // optional ``` ```kotlin Java theme={null} Checkout checkout = new Checkout() .upiTurbo(activity)//mandatory .setColor("/*color*/ #000000" );//optional ``` 2. Use the following code to link the newly created UPI account with your app. This function can be called from any application section, offering multiple entry points for customers to link their UPI account with your app. Linking it in advance allows customers to pay directly with the linked `UpiAccount` without repeating the linking process. ```kotlin Kotlin theme={null} checkout.upiTurbo?.linkNewUpiAccount("","#000000"/*color - in hex format*/, object: GeneralPluginCallback{ override fun onSuccess(upiAccount: UpiAccount){ // use upiAccount to display data to the User } override fun onError(error: JSONObject){ // error regarding linking of UpiAccount } }) // color parameter in the function can be used to customize the screens in // linking process ``` ```kotlin Java theme={null} checkout.upiTurbo.linkNewUpiAccount("", "#000000"/*color - in hex format*/, new GeneralPluginCallback(){ @Override public void onSuccess(UpiAccount upiAccount){ } @Override public void onError(JSONObject error){ } }); ``` > [!NOTE] > > **Payment Flow** > > Razorpay SDK will handle all the changes related to `UpiTurbo` internally. To integrate with the payment flow, [initiate payment and display the checkout form](/docs/payments/payment-gateway/android-integration/standard/integration-steps#4-initiate-payment-and-display-checkout-form). ### Non-Transactional Flow Razorpay provides a single exposed function that allows you to manage linked UPI accounts and access all non-transactional flows seamlessly. ![View the non-transactional flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-non-transactional.jpg) > [accordion] Manage UPI Accounts > > The SDK manages the linked `UpiAccounts` on the application by triggering `manageUpiAccounts()`, which follows the following internal non-transaction flows for `UpiAccounts`: > > * **Fetch balance**: Check the customer's account balance. > * **Change UPI PIN**: Provide the customer the ability to change their UPI PIN. > * **Reset UPI PIN**: Let your customers reset the PIN for their account. > * **Delete the account from the application**: Let your customers delink, that is, remove a selected UPI account from your application. > > ```kotlin Kotlin theme={null} > checkout.upiTurbo?.manageUpiAccounts("9000090000", "#000000"/*color - in hex format(nullable)*/, object : GenericPluginCallback { > override fun onError(error: JSONObject) { > /* Throws error if Turbo UPI cannot be initialized or throws error */ > } > > override fun onSuccess(data: Any) { > /* Can be safely ignored */ > } > }) > ``` > > ```kotlin Java theme={null} > if (checkout.upiTurbo != null) { > checkout.upiTurbo.manageUpiAccounts("9000090000","#000000"/*color - in hex format(nullable)*/, new GenericPluginCallback() { > @Override > public void onSuccess(@NonNull Object data) { > /* can be safely ignored */ > } > > @Override > public void onError(@NonNull JSONObject error) { > /* Throws error if Turbo UPI cannot be initialized or throws error */ > } > }); > } > ``` ### Models Exposed from the SDKs The SDKs given below provide access to exposed models for seamless integration. > [accordion] Error > > | Error | Description | > | - | - | > | `errorCode` | Types of error codes
  • `BAD_REQUEST_ERROR`: Failure from the client's end (SDK).
  • `GATEWAY_ERROR`: Failure either from the Secure Component or the Bank.
  • `SERVER_ERROR`: Failure at PSP.
| > | `errorDescription` | Brief description of the error. | > | `errorReason` | Specifies the specific reason for the error. | > | `errorSource` | Indicates the origin of the error. | > | `errorStep` | Highlights the stage where the error occurred. | > > [Refer to the list of possible error reasons](/docs/payments/payment-gateway/android-integration/standard/payment-methods/turbo-upi/error-codes). # Turbo UPI SDK - Error Codes Source: https://razorpay.com/docs/payments/payment-gateway/android-integration/standard/payment-methods/turbo-upi/error-codes List of error codes for Turbo UPI SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Given below is the list of error codes categorised by error reasons, with relevant descriptions, source and step. ### Bad Request Errors Given below is the list of Bad Request errors. > [accordion] bank\_not\_live\_on\_upi > > * **Description**: The selected bank is not enabled on UPI. Please try using another bank. > * **Source**: gateway > * **Step**: customer\_onboarding > [accordion] account\_does\_not\_exist > > > [accordion] Payment Debit Request > > > > * **Description**: No accounts found for the selected bank. Please try using another bank. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Payment Credit Request > > > > * **Description**: Payment was unsuccessful as the receiver's bank account is not valid. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_credit\_request > [accordion] transaction\_not\_allowed > > > [accordion] Payment Debit Request > > > > * **Description**: Transaction not permitted to the account as per your bank policy. Please contact your bank for more details or try with another bank account. > > * **Source**: customer > > * **Step**: payment\_debit\_request > > > [accordion] Payment Credit Request > > > > * **Description**: Payment not allowed as it got declined by the receiver's bank. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_credit\_request > [accordion] upi\_pin\_registration\_card\_expired > > * **Description**: Card used while setting UPI PIN has expired. Please use another debit card or use another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_not\_found > > * **Description**: Card details used while setting UPI PIN are incorrect. Please re-check and try again. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_restricted > > * **Description**: Card used while setting UPI PIN has been blocked by your bank. Please reach out to your bank for more information or try using another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] bank\_technical\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: beneficiary\_bank > * **Step**: payment\_status\_request > [accordion] pin\_not\_set > > * **Description**: Payment was unsuccessful as you have not set the UPI PIN on the app. Try using another method. > * **Source**: customer\_psp > * **Step**: payment\_authentication > [accordion] customer\_not\_registered > > * **Description**: No bank account is associated with this mobile number. Please try again by adding your account. > * **Source**: gateway > * **Step**: customer\_onboarding > [accordion] server\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: gateway > * **Step**: payment\_authentication > [accordion] payment\_cancelled\_by\_user > > * **Description**: Flow was aborted as you pressed back from the PIN screen. Please try again. > * **Source**: customer > * **Step**: payment\_authorization ### Gateway Errors Given below is the list of gateway errors. > [accordion] incorrect\_otp > > * **Description**: You have entered an incorrect OTP. Try again. > * **Source**: customer > * **Step**: customer\_onboarding > [accordion] otp\_expired > > * **Description**: You have entered an expired OTP. Please regenerate OTP and try again. > * **Source**: customer > * **Step**: customer\_onboarding > [accordion] insufficient\_funds > > * **Description**: Payment was unsuccessful due to insufficient funds. Kindly check your balance and try again. > * **Source**: customer > * **Step**: payment\_debit\_request > [accordion] insufficient\_funds\_mandate\_block > > * **Description**: Payment was unsuccessful as the amount in your account is blocked for another payment. Try using another account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] otp\_attempts\_exceeded > > * **Description**: You have entered an incorrect OTP too many times. Try again in some time. > * **Source**: customer\_psp > * **Step**: customer\_onboarding > [accordion] account\_dormant > > * **Description**: Payment was unsuccessful as the receiver's bank account is inactive. Any amount deducted will be refunded within 5-7 working days. > * **Source**: beneficiary\_bank > * **Step**: payment\_credit\_request > [accordion] bank\_not\_live\_on\_upi > > * **Description**: Selected bank is not available on UPI. Please try using another bank. > * **Source**: issuer\_bank > * **Step**: customer\_onboarding > [accordion] payment\_timed\_out > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_response > > > [accordion] UPI ID Not Reachable > > > > * **Description**: Payment was unsuccessful as the bank linked to this UPI ID is not reachable at this time. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > [accordion] first\_transaction\_limit\_exceeded > > * **Description**: Payment was unsuccessful as you exceeded the first-time transaction limit set by your bank. You can use another bank account or retry after 24 hours. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] transaction\_limit\_exceeded > > > [accordion] Limit Set By Bank Exceeded > > > > * **Description**: Payment was unsuccessful as you exceeded the transaction limit set by your bank. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > > > [accordion] Daily Amount Limit Exceeded > > > > * **Description**: Payment was unsuccessful as you exceeded the amount limit for the day with this bank account. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > [accordion] first\_time\_transaction\_freeze\_period > > * **Description**: Payment was unsuccessful due to the cooling period set by your bank for first-time user. Please try again after some time. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] transaction\_frequency\_limit\_exceeded > > * **Description**: Payment was unsuccessful as the number of transactions exceeds the max limit set by the bank. You can use another bank account or retry after some time. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] bank\_account\_inactive > > > [accordion] Issuer Bank Account Inactive > > > > * **Description**: Payment was unsuccessful as your account is not active. Please try using another bank account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Receiver Bank Account Inactive > > > > * **Description**: Payment was unsuccessful as the receiver's bank account is not active. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_debit\_request > [accordion] server\_error > > > [accordion] Temporary Issue - Issuer Bank > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_request > > > [accordion] Temporary Issue - Beneficiary Bank > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > > * **Source**: issuer\_bank > > * **Step**: payment\_request > [accordion] invalid\_ifsc > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > * **Source**: gateway > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_blocked > > * **Description**: Card used while setting UPI PIN has been blocked by your bank. Please reach out to your bank for more information or try using another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] bank\_technical\_error > > > [accordion] UPI ID Temporarily Unavailable > > > > * **Description**: Payment was unsuccessful as the bank linked to this UPI ID is temporarily unavailable. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: issuer\_bank > > * **Step**: payment\_credit\_response > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: issuer\_bank > > * **Step**: payment\_credit\_response > [accordion] payment\_declined > > > [accordion] Declined by Bank > > > > * **Description**: Payment was unsuccessful as it was declined by your bank. Reach out to your bank for more details. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_debit\_request > [accordion] pin\_attempts\_exceeded > > * **Description**: You have exceeded the incorrect UPI PIN attempts. You can use another bank account or retry after 24 hours. > * **Source**: customer > * **Step**: payment\_authentication > [accordion] incorrect\_pin > > * **Description**: You have entered incorrect UPI PIN. Please try again with the correct UPI PIN. > * **Source**: customer > * **Step**: payment\_authentication > [accordion] linked\_account\_removal\_failed > > * **Description**: Unable to remove the account. Please try again. > * **Source**: customer\_psp > * **Step**: account\_management > [accordion] sms\_text\_not\_received > > * **Description**: Something went wrong while sending SMS. Please try again. > * **Source**: gateway > * **Step**: customer\_onboarding ### Server Errors Given below is the list of server errors. > [accordion] server\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: issuer\_bank > * **Step**: customer\_onboarding > [accordion] server\_error > > * **Description**: We are facing some trouble completing your request at the moment. Please try again shortly. > * **Source**: internal > * **Step**: payment\_authorization # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/android-integration/standard/troubleshooting-faqs Troubleshoot common error scenarios and find answers to frequently asked questions about Standard Android integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [accordion] Android app is crashing every time I invoke `RazorpayCheckout.open API`. How to resolve this? > > The Android App crashes because the theme color parameter is passed in curly braces. > > Use the code given below to resolve the problem: > > ```java theme={null} > JSONObject options = new JSONObject(); > options.put("name", "Acme Corp"); > options.put("description", "Reference No. #123456"); > options.put("image", "http://example.com/image/rzp.jpg"); > options.put("order_id", "order_DBJOWzybf0sJbb");//from response of step 3. > options.put("theme.color", "#3399CC"); > ``` > [accordion] During checkout, the **Paying To** name reflects my company name. Is it possible to change the **Paying To** name from my company name to my product name? > > No. **Paying to** gives your business name and not the product name. It is a standard flow. So you cannot change it. > [accordion] Does Razorpay support Xamarin for SDK integration? > > No, we do not support Xamarin. However, since Xamarin is essentially a wrapper around Android and iOS, you can create your own Xamarin wrapper using our [Android](/docs/payments/payment-gateway/android-integration/standard) and [iOS](/docs/payments/payment-gateway/ios-integration/standard) SDKs. > > You can refer to Xamarin for integrating native [Android](https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/) and [iOS](https://docs.microsoft.com/en-us/xamarin/ios/platform/binding-objective-c/) libraries. Alternatively, you can use web integration to open the checkout form in a web view. > [accordion] How can I check the Razorpay Android Standard SDK version? > > To check the SDK version: > > 1. Open your Android project in Android Studio. > 2. Navigate to the `build.gradle` file of your app module (usually `app/build.gradle`). > 3. Locate the `dependencies` block in the file. > 4. Find the line that includes the Razorpay SDK dependency. The version number will be alongside the SDK name in the format`x.y.z`. > > ```java build.gradle theme={null} > repositories { > mavenCentral() > } > > dependencies { > implementation 'com.razorpay:checkout:1.6.40' > } > ``` > > > [!NOTE] > > > > **Handy Tips** > > > > From version 1.6.40 onwards, the latest version is automatically updated, eliminating the need for manual updates. > [accordion] How can I update the Razorpay Android Standard SDK version? > > To update the Standard Android SDK, follow these steps: > > 1. Check the [latest SDK version](https://mvnrepository.com/artifact/com.razorpay/checkout). > > 2. In the app-level gradle build file, update the SDK version to the latest release. > dependencies \{ > // โ€ฆ other dependencies > // For Razorpay checkout SDK > implementation โ€˜com.razorpay:checkout:\โ€™ > // โ€ฆ other dependencies > > } > > 3. After updating, sync gradle and check for any compile-time errors. > > 4. Ensure all changes are correctly integrated and the application functions as expected. > > > [!NOTE] > > > > **Handy Tips** > > > > From version 1.6.40 onwards, the latest version is automatically updated, eliminating the need for manual updates. > [accordion] I am trying to integrate Razorpay SDK for Android 12. However, the following error message is displayed, **Receiver not registered " error from checkoutActivity. While trying UPI" implementation 'com.razorpay:checkout:1.6.13**. How to resolve this? > > Add the code given below in your Android Manifest.xml file: > > ```java theme={null} > android:name="com.razorpay.RzpTokenReceiver" > android:exported="false"> > > > > > > android:name="com.razorpay.CheckoutActivity" > android:configChanges="keyboard|keyboardHidden|orientation|screenSize" > android:exported="true" > android:theme="@style/CheckoutTheme"> > > > android:host="rzp.io" > android:scheme="io.rzp" /> > > > ``` > > > [!NOTE] > > > > **Handy Tips** > > > > You do not need to add this code to your integration if using SDK version 1.6.17 and above. > [accordion] Can I enable UPI Intent on my Android or iOS app? > > Yes, you can enable UPI Intent on your [Android](/docs/payments/payment-gateway/web-integration/standard/webview/upi-intent-android) or [iOS](/docs/payments/payment-gateway/web-integration/standard/webview/upi-intent-ios) app. > [accordion] How can I accept payments on my Android or iOS apps without integrating with the native SDKs? > > If you want to accept payments on your Android or iOS apps without integrating with our native SDKs, you can reuse your Standard Integration code. This approach opens the checkout form in a WebView within your mobile app. Know more about [Webview for Mobile Apps](/docs/payments/payment-gateway/web-integration/standard/webview). # Capacitor Standard SDK Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/capacitor-integration Check the prerequisites before you integrate with Razorpay Capacitor Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Capacitor Standard SDK Changelog](/docs/payments/changelog#mobile-sdks) > > Discover new features, updates and deprecations related to the Razorpay Capacitor Standard SDK (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/capacitor-integration/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about Capacitor Standard integration. You can use Razorpay Standard SDK to integrate the Razorpay Payment Gateway with your Capacitor Application to accept payments. The Razorpay Capacitor plugin acts as a wrapper around our native Android and iOS SDKs. > [!TIP] > > **Update SDK** > > Check your [current SDK version](/docs/payments/payment-gateway/capacitor-integration/troubleshooting-faqs#how-can-i-check-the-razorpay-capacitor-standard-sdk-version). If it is outdated, please [update the SDK](/docs/payments/payment-gateway/capacitor-integration/troubleshooting-faqs#how-can-i-update-the-razorpay-capacitor-standard-sdk-version) to ensure uninterrupted settlements of your funds. ## Integration Steps **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works).
Follow these integration steps: > [card] [1. Build Integration](/docs/payments/payment-gateway/capacitor-integration/integration-steps#1-build-integration) > > Integrate Capacitor Standard SDK. > [card] [2. Test Integration](/docs/payments/payment-gateway/capacitor-integration/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/capacitor-integration/integration-steps#3-go-live-checklist) > > Check the go-live checklist. > [card] [Sample Code](https://github.com/razorpay/razorpay-capacitor/tree/master/testPlugin) > > Check the sample code on GitHub to integrate. ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/capacitor-integration/integration-steps Steps to integrate the Capacitor application with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow these steps to integrate your Capacitor application: > [card] [1. Build Integration](/docs/payments/payment-gateway/capacitor-integration/integration-steps#1-build-integration) > > Integrate Capacitor Standard Checkout. > [card] [2. Test Integration](/docs/payments/payment-gateway/capacitor-integration/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/capacitor-integration/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to Integrate Razorpay Payment Gateway on Capacitor App](https://www.youtube.com/embed/fthj02JPZhs) > [!WARNING] > > **Watch Out!** > > If you use M1 MacBook, you need to make [these changes](#6-verify-payment-signature) in your `podfile`. Add the following code inside `post_install do |installer|`: > > ```javascript podfile theme={null} > installer.pods_project.build_configurations.each do |config| > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > end > ``` ## 1. Build Integration Follow the steps given below: > [accordion] 1 Create an Order in Server > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order using: > > > [tab] API Sample Code > > > > Use this endpoint to create an order using the Orders API. > > > > `POST /orders` > > > > ```bash Curl theme={null} > > curl -X POST https://api.razorpay.com/v1/orders > > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -H 'content-type:application/json' > > -d '{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "qwsaq1", > > "partial_payment": true, > > "first_payment_min_amount": 230 > > }' > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > JSONObject orderRequest = new JSONObject(); > > orderRequest.put("amount", 50000); // amount in the smallest currency unit > > orderRequest.put("currency", "INR"); > > orderRequest.put("receipt", "order_rcptid_11"); > > > > Order order = razorpay.Orders.create(orderRequest); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > DATA = { > > "amount": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "key1": "value3", > > "key2": "value2" > > } > > } > > client.order.create(data=DATA) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->create(array('receipt' => '123', 'amount' => 50000, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient(your_key_id, your_secret); > > > > Dictionary options = new Dictionary(); > > options.Add("amount", 50000); // amount in the smallest currency unit > > options.add("receipt", "order_rcptid_11"); > > options.add("currency", "INR"); > > Order order = client.Order.Create(options); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > options = amount: 50000, currency: 'INR', receipt: '' > > order = Razorpay::Order.create > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.create({ > > amount: 50000, > > currency: "INR", > > receipt: "receipt#1", > > notes: { > > key1: "value3", > > key2: "value2" > > } > > }) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > data := map[string]interface{}{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "some_receipt_id" > > } > > body, err := client.Order.Create(data) > > ``` > > > > ```json Success Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "rcptid_11", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1642662092 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Order amount less than minimum amount allowed", > > "source": "business", > > "step": "payment_initiation", > > "reason": "input_validation_failed", > > "metadata": {}, > > "field": "amount" > > } > > } > > ``` > > > [tab] Razorpay Postman Public Workspace > > > > You can use the Postman workspace below to create an order: > > > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > > > You can create an order manually by integrating the API sample codes on your server. > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit. For example, for an actual amount of , the value of this field should be `22225`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be of 3 characters. > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7,000 is to be received from the customer in two installments of #1 - โ‚น5,000, #2 - โ‚น2,000, then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > [accordion] 2 Install Razorpay Capacitor Plugin > > Run the following command on your command prompt to install the plugin: > > ```yml Install Capacitor theme={null} > npm i -S https://github.com/razorpay/razorpay-capacitor.git #installs plugin that supports Capacitor 6.0 > ``` > > > [!WARNING] > > > > **Watch Out!** > > > > We recommend you to use the latest plugin version (that works on Capacitor 6.0) as all the latest features will be made available only on this version. However, if you want to use the plugin that works on Capacitor 5.0, use the command given below: > > > > ```yml Install Capacitor theme={null} > > npm i -S https://github.com/razorpay/razorpay-capacitor.git#76fd7d6b59f631eb44e6ecebc9188b2425168beb #installs plugin that supports Capacitor 5.0 > > ``` > > > > If you want to use the plugin that works on other capacitor versions, refer to the [GitHub repository](https://github.com/razorpay/razorpay-capacitor). > > > [accordion] Proguard Rules > > > > If you are using Proguard for your builds, you must add the following lines to your `proguard-rules.pro` file. > > > > ```java theme={null} > > -keepclassmembers class * { > > @android.webkit.JavascriptInterface ; > > } > > > > -keepattributes JavascriptInterface > > -keepattributes *Annotation* > > > > -dontwarn com.razorpay.** > > -keep class com.razorpay.** {*;} > > > > -optimizations !method/inlining/* > > > > -keepclasseswithmembers class * { > > public void onPayment*(...); > > } > > ``` > [accordion] 3 Add Checkout Class in MainActivity.java (Android Only) > > Add the Checkout class to the ArrayList in the MainActivity class in `{{projectDir}}/android/src/main/MainActivity.java`. Below is the sample code: > > ```java Add Checkout Class theme={null} > import com.ionicframework.capacitor.Checkout; > > public class MainActivity extends BridgeActivity { > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > > registerPlugin(Checkout.class); > } > } > ``` > > Check the [Capacitor 6.0 Official Updates](https://capacitorjs.com/docs/updating/6-0). > [accordion] 4 Add Checkout Code > > Add the Pay button on your web page using the checkout code given below. The checkout page is displayed when the customers click the Pay button. > > > [accordion] 4.1 Code to Add Pay Button > > > > Add the Checkout code to your project. Ensure that you pass the `order_id` that you received in response to the first step. > > > > ```javascript Checkout Code theme={null} > > import { Checkout } from 'capacitor-razorpay'; > > > > @Component({ > > selector: 'app-home', > > templateUrl: 'home.page.html', > > styleUrls: ['home.page.scss'], > > }) > > export class HomePage { > > > > constructor(private alertController: AlertController) {} > > > > async payWithRazorpay(){ > > const options = { > > key: '[YOUR_KEY_ID]', > > amount: '50000', > > description: 'Great offers', > > image: 'https://i.imgur.com/3g7nmJC.jpg', > > order_id: 'order_Cp10EhSaf7wLbS',//Order ID generated in Step 1 > > currency: 'INR', > > name: 'Acme Corp', > > prefill: { > > email: '', > > contact: '' > > }, > > theme: { > > color: '#3399cc' > > } > > } > > try { > > let data = (await Checkout.open(options)); > > console.log(data.response+"AcmeCorp"); > > console.log(JSON.stringify(data)) > > } catch (error) { > > //it's paramount that you parse the data into a JSONObject > > let errorObj = JSON.parse(error['code']) > > alert(errorObj.description); > > alert(errorObj.code); > > > > alert(errorObj.reason); > > alert(errorObj.step); > > alert(errorObj.source); > > alert(errorObj.metadata.order_id); > > alert(errorObj.metadata.payment_id); > > > > } > > > > async presentAlert(response: string){ > > // let responseObj = JSON.parse(response) > > console.log("message"+ response['razorpay_payment_id']); > > const alert = await this.alertController.create({ > > message:response['razorpay_payment_id'], > > backdropDismiss: true, > > }); > > > > await alert.present(); > > } > > > > } > > ``` > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > [accordion] 4.2 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > > > > ### UPI Intent on Recurring Payments > > > > Configure and initiate a recurring payment transaction on UPI Intent: > > > > ```swift ViewController.swift theme={null} > > let options: [String:Any] = [ > > "key": "YOUR_KEY_ID", > > "order_id": "order_DBJOWzybfXXXX", > > "customer_id": "cust_BtQNqzmBlXXXX", > > "prefill": [ > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com" > > ], > > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > "amount": 10000, // Amount should match the order amount > > "currency": "INR", > > "recurring": 1 // This key value pair is mandatory for Intent Recurring Payment. > > ] > > ``` > > > > ```objectivec ViewController.m theme={null} > > NSDictionary *options = @{ > > @"key": @"YOUR_KEY_ID", > > @"order_id": @"order_DBJOWzybfXXXX", > > @"customer_id": @"cust_BtQNqzmBlXXXX", > > @"prefill": @{ > > @"contact": @"+919000090000", > > @"email": @"gaurav.kumar@example.com" > > }, > > @"image": @"https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > @"amount": @(10000), // Amount should match the order amount > > @"currency": @"INR", > > @"recurring": @(1) // This key value pair is mandatory for Intent Recurring Payment. > > }; > > ``` > [accordion] 5 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 6 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > [accordion] 7 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Capacitor integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/capacitor-integration/troubleshooting-faqs Troubleshoot common error scenarios and find answers to frequently asked questions about Capacitor integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] What is an order id and how to generate it? > > Order creation is the primary step of the Razorpay payment flow. An Order creates when a customer clicks the pay button on your app. A corresponding order\_id generates in the response. Pass this order\_id to the Razorpay Checkout options added in your Capacitor app. Know more about [Orders](/docs/api/orders). > [accordion] What is the process for raising a request for a new feature? > > To raise a request for a new feature, go to **New Issue** โ†’ **Feature Request** on our [GitHub repository](https://github.com/razorpay/razorpay-capacitor/issues/new/choose). > [accordion] How can I update the existing **'razorpay-pod'**? > > * Go to your project's **iOS** folder and run **'pod update'** to update all the pods. > * If you do not want to update all pods, run **'pod update razorpay-pod'**. > [accordion] I have integrated with the Razorpay Payment Gateway to accept payments on my mobile app. However, it gets rejected when I try to publish my app on the Apple App Store. The following message is displayed, "We noticed that your app offers a subscription with a mechanism other than the in-app purchase API." How to resolve this? > > As per Apple's policy, if you use a subscription model in your iOS app, you must use Apple's in-app purchase APIs. Apple does not redirect out of the app for digital product purchases. > [accordion] In the new M1 MacBook, why am I not able to compile the Capacitor Razorpay plugin for release mode? > > This is because of the new changes introduced in Xcode 12. > > To resolve this: > > 1. Use [Rosetta 2](https://support.apple.com/en-us/HT211861) for launching the app on your Mac. > 2. Add the following lines to Podfile within `post_install do |installer|` . > > ```javascript podfile theme={null} > installer.pods_project.build_configurations.each do |config| > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > end > ``` > > Know more about [compilation errors](https://khushwanttanwar.medium.com/xcode-12-compilation-errors-while-running-with-ios-14-simulators-5731c91326e9). > [accordion] How can I check the Razorpay Capacitor Standard SDK version? > > To check the SDK version: > > 1. Open your Capacitor project in your preferred code editor. > 2. Open the `package.json` file in the root directory of your project. > 3. In the `dependencies` section, look for the Razorpay entry. The version number is specified next to the package name in the format `x.y.z`. > [accordion] How can I update the Razorpay Capacitor Standard SDK version? > > To update the SDK version using npm, follow these steps: > > 1. Open the terminal or command prompt and navigate to your project directory where the `package.json` file resides. > 2. Use the npm update command followed by the package name to update a specific package to its latest version. For example, npm update `` (replace `` with the name of the package you want to update). > 3. If you are using a Capacitor iOS application, run `cd ios && pod repo update && pod update` to ensure the internal iOS dependencies are updated to the versions set by the Razorpay package. This is because cocoapods may not automatically update the internal trunk spec to fetch the latest versions. > 4. After running the update command, review the updates fetched by npm to ensure they do not introduce any breaking changes. > 5. Conduct thorough testing to ensure that the updated packages do not adversely affect the application functionality and commit the changes. # Cordova Standard SDK Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/cordova-integration Check the prerequisites before you integrate with Razorpay Cordova Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Cordova Standard SDK Changelog](/docs/payments/changelog#mobile-sdks) > > Discover new features, updates and deprecations related to the Razorpay Cordova Standard SDK (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/cordova-integration/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about Cordova Standard integration. You can use Razorpay Standard SDK to integrate the Razorpay Payment Gateway with your Cordova Application to accept payments. The Razorpay Cordova plugin acts as a wrapper around the Razorpay Standard SDK to build a dynamic and responsive Checkout interface for your iOS or Android application. > [!TIP] > > **Update SDK** > > Check your current [Cordova](/docs/payments/payment-gateway/cordova-integration/troubleshooting-faqs#how-can-i-check-the-razorpay-cordova-standard-sdk-version) or [Iconic](/docs/payments/payment-gateway/cordova-integration/troubleshooting-faqs#how-can-i-check-the-razorpay-ionic-standard-sdk-version) Standard SDK version. If it is outdated, please [update the SDK](/docs/payments/payment-gateway/cordova-integration/troubleshooting-faqs#how-can-i-update-the-razorpay-cordova-and-ionic-standard-sdk-version) to ensure uninterrupted settlements of your funds. ## Guidelines * Add the integration code snippet after the `deviceready` event. * On browser, change the [Content Security Policy](https://content-security-policy.com/) to whitelist the `razorpay.com` domain. ```javascript theme={null} ``` * We do not support [ionic server](https://github.com/ionic-team/ionic-cli/issues/354) at the moment because it does not support cordova browser plugins. Try using the `ionic cordova run browser` command instead. ## Integration Steps **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works).
Follow these integration steps: > [card] [1. Build Integration](/docs/payments/payment-gateway/cordova-integration/integration-steps#1-build-integration) > > Integrate Cordova Standard SDK. > [card] [2. Test Integration](/docs/payments/payment-gateway/cordova-integration/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/cordova-integration/integration-steps#3-go-live-checklist) > > Check the go-live checklist. > [card] [Sample Code](https://github.com/razorpay/razorpay-cordova-sample-app/tree/master/) > > Check the sample code on GitHub to integrate. ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/cordova-integration/integration-steps Steps to integrate the Cordova application with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow these steps to integrate your Cordova application: > [card] [1. Build Integration](/docs/payments/payment-gateway/cordova-integration/integration-steps#1-build-integration) > > Integrate Cordova Standard Checkout. > [card] [2. Test Integration](/docs/payments/payment-gateway/cordova-integration/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/cordova-integration/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to Integrate Razorpay Payment Gateway on Cordova App](https://www.youtube.com/embed/j9_q3QxNLZ8) > [!NOTE] > > **Handy Tips** > > If you use M1 MacBook, you need to make the following changes in your podfile. > > ```javascript podfile theme={null} > installer.pods_project.build_configurations.each do |config| > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > end > ``` ## 1. Build Integration Follow the steps given below: > [accordion] 1 Create an Order in Server > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order using: > > > [tab] API Sample Code > > > > Use this endpoint to create an order using the Orders API. > > > > `POST /orders` > > > > ```bash Curl theme={null} > > curl -X POST https://api.razorpay.com/v1/orders > > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -H 'content-type:application/json' > > -d '{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "qwsaq1", > > "partial_payment": true, > > "first_payment_min_amount": 230 > > }' > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > JSONObject orderRequest = new JSONObject(); > > orderRequest.put("amount", 50000); // amount in the smallest currency unit > > orderRequest.put("currency", "INR"); > > orderRequest.put("receipt", "order_rcptid_11"); > > > > Order order = razorpay.Orders.create(orderRequest); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > DATA = { > > "amount": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "key1": "value3", > > "key2": "value2" > > } > > } > > client.order.create(data=DATA) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->create(array('receipt' => '123', 'amount' => 50000, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient(your_key_id, your_secret); > > > > Dictionary options = new Dictionary(); > > options.Add("amount", 50000); // amount in the smallest currency unit > > options.add("receipt", "order_rcptid_11"); > > options.add("currency", "INR"); > > Order order = client.Order.Create(options); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > options = amount: 50000, currency: 'INR', receipt: '' > > order = Razorpay::Order.create > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.create({ > > amount: 50000, > > currency: "INR", > > receipt: "receipt#1", > > notes: { > > key1: "value3", > > key2: "value2" > > } > > }) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > data := map[string]interface{}{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "some_receipt_id" > > } > > body, err := client.Order.Create(data) > > ``` > > > > ```json Success Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "rcptid_11", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1642662092 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Order amount less than minimum amount allowed", > > "source": "business", > > "step": "payment_initiation", > > "reason": "input_validation_failed", > > "metadata": {}, > > "field": "amount" > > } > > } > > ``` > > > [tab] Razorpay Postman Public Workspace > > > > You can use the Postman workspace below to create an order: > > > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > > > You can create an order manually by integrating the API sample codes on your server. > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit. For example, for an actual amount of , the value of this field should be `22225`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be of 3 characters. > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7,000 is to be received from the customer in two installments of #1 - โ‚น5,000, #2 - โ‚น2,000, then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > [accordion] 2 Install Razorpay Cordova plugin > > > [!NOTE] > > > > **Handy Tips** > > > > Starting from 1.4.14, the cordova project is now available at [npmjs](https://www.npmjs.com/package/com.razorpay.cordova). Use the code given below to install:\ > > `ionic cordova plugin add com.razorpay.cordova`. > > In your Cordova project folder, run this command to install the plugin: > > ```html Cordova theme={null} > cd your-project-folder > cordova platform add android # optional > cordova platform add ios # make sure your ios version is ios@5 or latest. > cordova platform add browser # optional > cordova plugin add https://github.com/razorpay/razorpay-cordova.git --save > ``` > > ```html Ionic theme={null} > cd your-project-folder > ionic cordova platform add ios > ionic cordova platform add android > ionic cordova platform add browser > ionic cordova plugin add https://github.com/razorpay/razorpay-cordova.git --save > ``` > [accordion] 3 Add Checkout Code > > Add the Pay button on your web page using the checkout code given below. The checkout page is displayed when the customers click the Pay button. > > > [accordion] 3.1 Ionic Integration (For Ionic Users Only) > > > > 1. In your app's `home.page.html` file, add the following code. This code generates a button that your customer will click to open the Checkout and make the payment. > > > > ```html Add Button theme={null} > > > > Pay With Razorpay > > > > ``` > > > > 2. In your app's `home.page.ts` file, import RazorpayCheckout as shown: > > > > ```javascript Import RazorpayCheckout theme={null} > > declare var RazorpayCheckout:any; > > ``` > > > > 3. Add the [Checkout code](#3-2-code-to-add-pay-button) along with the `order_id` generated in the first step. Add the API key generated by you on the Dashboard. > > > [accordion] 3.2 Code to Add Pay Button > > > > Add the code given below: > > > > ```javascript Cordova theme={null} > > var rzpOptions = { > > key: "", > > amount: "50000", > > currency: " > name: "Acme Corp", > > description: "Get the best deals", > > image: "https://i.imgur.com/n5tjHFD.jpg", > > order_id:"order_DBJOWzybf0sJbb", > > handler: function (response){ > > alert(response.razorpay_payment_id); > > alert(response.razorpay_order_id); > > alert(response.razorpay_signature) > > }, > > prefill: { > > name: "", > > email: "" > > }, > > notes: { > > address: "Hello World" > > }, > > theme: { > > color: "#3399cc" > > } > > }; > > > > var successCallback = function(success) { > > alert('payment_id: ' + success.razorpay_payment_id) > > var orderId = success.razorpay_order_id > > var signature = success.razorpay_signature > > }; > > > > var cancelCallback = function(error) { > > alert(error.description + ' (Error '+error.code+')') > > alert(error.source); > > alert(error.step); > > alert(error.reason); > > alert(error.metadata.order_id); > > alert(error.metadata.payment_id); > > }; > > ``` > > > > ```javascript Ionic theme={null} > > payWithRazorpay(){ > > var options = { > > description: 'Credits towards consultation', > > image: 'https://i.imgur.com/3g7nmJC.jpg', > > order_id: 'order_DBJOWzybf0sJbb', > > currency: 'INR', > > key:'', > > amount:'5000', > > name: 'Acme Corp', > > theme: { > > color: '#3399cc' > > } > > } > > var successCallback = function(success) { > > alert('payment_id: ' + success.razorpay_payment_id) > > var orderId = success.razorpay_order_id > > var signature = success.razorpay_signature > > } > > var cancelCallback = function(error) { > > alert(error.description + ' (Error '+error.code+')') > > alert(error.source); > > alert(error.step); > > alert(error.reason); > > alert(error.metadata.order_id); > > alert(error.metadata.payment_id); > > } > > RazorpayCheckout.on('payment.success', successCallback) > > RazorpayCheckout.on('payment.cancel', cancelCallback) > > RazorpayCheckout.open(options) > > } > > ``` > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > [accordion] 3.3 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > > > > ### UPI Intent on Recurring Payments > > > > Configure and initiate a recurring payment transaction on UPI Intent: > > > > ```swift ViewController.swift theme={null} > > let options: [String:Any] = [ > > "key": "YOUR_KEY_ID", > > "order_id": "order_DBJOWzybfXXXX", > > "customer_id": "cust_BtQNqzmBlXXXX", > > "prefill": [ > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com" > > ], > > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > "amount": 10000, // Amount should match the order amount > > "currency": "INR", > > "recurring": 1 // This key value pair is mandatory for Intent Recurring Payment. > > ] > > ``` > > > > ```objectivec ViewController.m theme={null} > > NSDictionary *options = @{ > > @"key": @"YOUR_KEY_ID", > > @"order_id": @"order_DBJOWzybfXXXX", > > @"customer_id": @"cust_BtQNqzmBlXXXX", > > @"prefill": @{ > > @"contact": @"+919000090000", > > @"email": @"gaurav.kumar@example.com" > > }, > > @"image": @"https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > @"amount": @(10000), // Amount should match the order amount > > @"currency": @"INR", > > @"recurring": @(1) // This key value pair is mandatory for Intent Recurring Payment. > > }; > > ``` > [accordion] 4 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 5 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > [accordion] 6 Android Lifecycle Guide > > It is recommended that you read the [Android Lifecycle Guide](https://cordova.apache.org/docs/en/latest/guide/platforms/android/#lifecycle-guide) before proceeding with this section. > > Since our plugin launches a new activity on Android, the Cordova activity goes in the background and might get destroyed by the Android System. > > To make sure the payment result is delivered after the activity is recreated, use the following code: > > ```java theme={null} > // You need to register an event listener for the `resume` event > document.addEventListener('resume', onResume, false); > var onResume = function(event) { > // Re-register the payment success and cancel callbacks > RazorpayCheckout.on('payment.success', successCallback) > RazorpayCheckout.on('payment.cancel', cancelCallback) > // Pass on the event to RazorpayCheckout > RazorpayCheckout.onResume(event); > }; > ``` > [accordion] 7 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Cordova integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # Integrate Turbo UPI TPV Source: https://razorpay.com/docs/payments/payment-gateway/cordova-integration/payment-methods/integration-tpv Steps to integrate Turbo UPI TPV with your Cordova app. Know how Razorpay performs Third-Party Validation (TPV) of investor bank accounts in real-time using Razorpay Turbo UPI. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Third-party validation (TPV) of bank accounts is mandatory for businesses in the BFSI (Banking, Financial Services and Insurance) sector dealing with Securities, Broking and Mutual Funds. You can accept customer payments by integrating with the Turbo UPI - TPV SDK. > [accordion] Prerequisites > > 1. Integrate with [Razorpay Cordova Standard SDK](/docs/payments/payment-gateway/cordova-integration). > > 2. Import the following frameworks: > * Razorpay Cordova Standard SDK > * Razorpay Turbo Wrapper Plugin SDK (maven) > * Razorpay Turbo Core SDK > * Razorpay Turbo UI SDK > * Razorpay SecureComponent SDK > * Bank SDK > > 3. Enable data binding in your `app.gradle`. > > ```json Data binding theme={null} > { > "android": { > // Containing other settings > "buildFeatures": { > "dataBinding": true > } > } > } > ``` > > > [!WARNING] > > > > **Watch Out!** > > > > * API Key Usage for Different Environments: > > * Use the `rzp_test_0wFRWIZnH65uny` API key id for testing on the UAT environment. > > * Use the [Razorpay live keys](/docs/api/authentication#live-mode-api-keys) for prod testing. > > * As a compliance requirement, you should get approval from Google for **READ\_SMS** permission. Refer [to the Google article](https://support.google.com/googleplay/android-developer/answer/10208820?hl=en) for more details. ## 1. Integration Steps Given below are the steps: > [accordion] Step 1: Whitelist Customer Bank Accounts *(Optional)* > > You can whitelist (also known as allowlist) your customer's bank accounts to ensure that only those accounts are considered during customer onboarding. By whitelisting the accounts at the start, you can avoid the bank account linking during payment. Use the Customer APIs to create customers and add their bank account details. > > For example, if a customer, Gaurav, has two bank accounts ABC and XYZ, you can use the APIs to create a customer id and link the bank accounts to that id. You can then pass this customer id at the time of payment. > > Follow these steps. > > > [accordion] Step 1.1: Create a Customer > > > > Use this endpoint to create or add a customer with basic details such as name and contact details. > > > > ```bash Request theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > > -X POST https://api.razorpay.com/v1/customers \ > > -H "Content-Type: application/json" \ > > -d '{ > > "name": "Gaurav Kumar", > > "contact": "9123456780", > > "email": "gaurav.kumar@example.com", > > "fail_existing": "0", > > "notes": { > > "notes_key_1": "Tea, Earl Grey, Hot", > > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." > > } > > }' > > ``` > > > > ```json Success Response theme={null} > > { > > "id" : "cust_1Aa00000000004", > > "entity": "customer", > > "name" : "Gaurav Kumar", > > "email" : "gaurav.kumar@example.com", > > "contact" : "9123456780", > > "gstin": null, > > "notes": { > > "notes_key_1":"Tea, Earl Grey, Hot", > > "notes_key_2":"Tea, Earl Greyโ€ฆ decaf." > > }, > > "created_at ": 1234567890 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Contact number should be at least 8 digits, including country code", > > "source": "business", > > "step": "NA", > > "reason": "invalid_contact_number", > > "metadata": {}, > > "field": "contact" > > } > > } > > ``` > > > > > [accordion] Request Parameters > > > > > > `name` *optional* > > > : `string` Customer's name. Alphanumeric value with period (.), apostrophe ('), forward slash (/), at (@) and parentheses are allowed. The name must be between 3-50 characters in length. For example, `Gaurav Kumar`. > > > > > > `contact ` *optional* > > > : `string` The customer's phone number. A maximum length of 15 characters including country code. For example, `+919876543210`. > > > > > > `email ` *optional* > > > : `string` The customer's email address. A maximum length of 64 characters. For example, `gaurav.kumar@example.com`. > > > > > > `fail_existing` *optional* > > > : `string` Possible values: > > > > > > * `1` (default): If a customer with the same details already exists, throws an error. > > > * `0`: If a customer with the same details already exists, fetches details of the existing customer. > > > > > > `gstin` *optional* > > > : `string` Customer's GST number, if available. For example, `29XAbbA4369J1PA`. > > > > > > `notes` *optional* > > > : `object` This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the customer. For example, `cust_1Aa00000000004`. > > > > > > `name` > > > : `string` Customer's name. Alphanumeric, with period (.), apostrophe ('), forward slash (/), at (@) and parentheses allowed. The name must be between 3-50 characters in length. For example, `Gaurav Kumar`. > > > > > > `contact` > > > : `string` The customer's phone number. A maximum length of 15 characters including country code. For example, `+919876543210`. > > > > > > `email` > > > : `string` The customer's email address. A maximum length of 64 characters. For example, `gaurav.kumar@example.com`. > > > > > > `gstin` > > > : `string` GST number linked to the customer. For example, `29XAbbA4369J1PA`. > > > > > > `notes` > > > : `json object` This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > > > `created_at` > > > : `integer` UNIX timestamp, when the customer was created. For example, `1234567890`. > > > [accordion] Step 1.2: Add Customer's Bank Account > > > > The following endpoint adds the customer's bank accounts. > > > > ```bash Request theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > > -X POST https://api.razorpay.com/v1/customers/:customer_id/bank_account \ > > -H "Content-Type: application/json" \ > > -d '{ > > "ifsc_code": "UTIB0000194", > > "account_number": "11214311215411", > > "beneficiary_name": "Gaurav", > > "beneficiary_address1": "address 1", > > "beneficiary_address2": "address 2", > > "beneficiary_address3": "address 3", > > "beneficiary_address4": "address 4", > > "beneficiary_email": "gaurav.kumar@example.com", > > "beneficiary_mobile": "9900990099", > > "beneficiary_city": "Bangalore", > > "beneficiary_state": "KA", > > "beneficiary_country": "IN" > > }' > > ``` > > > > ```json Response theme={null} > > { > > "id": "ba_LSZht1Cm7xFTwF", > > "entity": "bank_account", > > "ifsc": "ICIC0001207", > > "bank_name": "ICICI Bank", > > "name": "Gaurav Kumar", > > "notes": [], > > "account_number": "XXXXXXXXXXXXXXX0434" > > } > > ``` > > > > > [accordion] Path Parameter > > > > > > `customer_id` *mandatory* > > > : `string` Customer id of the customer whose bank account is to be added. > > > > > [accordion] Request Parameters > > > > > > `account_number` *mandatory* > > > : `string` Customer's bank account number. For example, `11214311215411`. > > > > > > `beneficiary_name` *mandatory* > > > : `string` The name of the beneficiary associated with the bank account. > > > > > > `beneficiary_address1` *optional* > > > : `string` The virtual payment address. > > > > > > `beneficiary_email` *optional* > > > : `string` Email address of the beneficiary. For example, `gaurav.kumar@example.com`. > > > > > > `beneficiary_mobile` *optional* > > > : `string` Mobile number of the beneficiary. > > > > > > `beneficiary_city` *optional* > > > : `string` The city of the beneficiary. > > > > > > `beneficiary_state` *optional* > > > : `string` The state of the beneficiary. > > > > > > `beneficiary_country` *optional* > > > : `string` The country of the beneficiary. > > > > > > `beneficiary_pin` *optional* > > > : `integer` The pin code of the beneficiary's address. > > > > > > `ifsc_code` *mandatory* > > > : `string` The IFSC of the bank branch associated with the account. > > > > > [accordion] Response Parameters > > > > > > `bank_accounts` > > > : `array` An array containing bank account details. > > > > > > `id` > > > : `string` Unique identifier of the bank account. > > > > > > `entity` > > > : `string` The type of entity, which in this case is `bank_account`. > > > > > > `ifsc` > > > : `string` The IFSC of the bank branch associated with the account. > > > > > > `bank_name` > > > : `string` The name of the bank. > > > > > > `name` > > > : `string` The name associated with the bank account. > > > > > > `notes` > > > : `object` Set of key-value pairs that can be used to store additional information about the payment. > > > > > > `account_number` > > > : `string` Customer's bank account number. For example, `11214311215411`. > [accordion] Step 2: Create an Order *(Mandatory)* > > Pass the investor bank account details to the `bank_account` array of the Orders API. Given below is the sample code when the `method` is `upi`. > > ```bash Request theme={null} > curl -u : \ > -X POST https://api.razorpay.com/v1/orders \ > -H "Content-Type: application/json" \ > -d '{ > "amount": 500, > "method": "upi", > "receipt": "BILL13375649", > "currency": "INR", > "bank_account": { > "account_number": "765432123456789", > "name": "Gaurav Kumar", > "ifsc": "HDFC0000053" > } > }' > ``` > > ```json Response theme={null} > { > "id": "order_GAWRjlWkVcRh0V", > "entity": "order", > "amount": 500, > "amount_paid": 0, > "amount_due": 500, > "currency": "INR", > "receipt": "BILL13375649", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1573044206 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount expressed in paise (currency supported is INR). For example, for an actual amount of โ‚น1, the value of this field should be `100`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. You can create orders in **INR** only. > > > > `receipt` *optional* > > : `string` Receipt number that corresponds to this order, set for your internal reference. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `method` *mandatory* > > : `string` The payment method used to make the payment. If this parameter is not passed, investors will be able to make payments using both netbanking and UPI payment methods. Possible values: > > > > * `netbanking`: Investors can make payments only using netbanking. > > * `card`: Investors can make payments using debit card. > > * `upi`: Investors can make payments only using UPI. > > > > `bank_account` *mandatory* > > : `object` Details of the bank account that the investor has provided at the time of registration. > > > > `account_number` *mandatory* > > : `string` The bank account number from which the investor should make the payment. For example, `765432123456789` Payments will not be processed for an incorrect account number. > > > > `name` *mandatory* > > : `string` The name linked to the bank account. For example, `Gaurav Kumar`. > > > > `ifsc` *mandatory* > > : `string` The bank IFSC. For example, `HDFC0000053`. > > > [accordion] Response Parameters > > > > `id` > > : `string` Unique identifier of the order. > > > > `entity` > > : `string` Indicates the type of entity. Here, it is `order`. > > > > `amount` > > : `integer` The order amount represented in the smallest unit of the currency passed. For example, amount = 100 translates to 100 paise, that is โ‚น1 (default currency is INR). > > > > `amount_paid` > > : `integer` The amount that has been paid. > > > > `amount_due` > > : `integer` The amount that is yet to be paid. > > > > `currency` > > : `string` The 3-letter ISO currency code for the payment. Currently, we support INR only. > > > > `receipt` > > : `string` A unique identifier of the order entered by the user. For example, `BILL13375649`. > > > > `status` > > : `string` The status of the order. > > > > `notes` > > : `object` Key-value pair you can use to store additional information about the entity. Maximum of 15 key-value pairs, 256 characters each. For example, "note\_key": "Beam me up Scottyโ€. > > > > `created_at` > > : `integer` The Unix timestamp at which the order was created. > > > > `offer_id` > > : `string` Unique identifier of the offer. > > > > `attempts` > > : `integer` The number of payment attempts, successful and failed, that have been made against this order. > [accordion] Step 3: Turbo UPI SDK Action > > You need to link the customer's UPI account with your app. Use the code samples given below to [fetch the UPI account](#2-link-new-upi-account). > > > [accordion] 1 Initialise the SDK > > > > Use the code given below to initialise the SDK. > > > > ```java Initialise theme={null} > > RazorpayCheckout.initUpiTurbo("rzp_test_0wFRWIZnH65uny") > > ``` > > > [accordion] 2 Link New UPI Account > > > > Use the following code to link the newly created UPI account with your app. This function can be called from anywhere in the application, providing multiple entry points for customers to link their UPI account with your app. > > > > ```javascript Link New UPI Account theme={null} > > RazorpayCheckout.upiTurbo.linkNewUpiAccount("mobileNo", "color", function (upiAccounts) { > > // handle data > > }, function(error) { > > // handle error > > }); > > ``` > > > > > [accordion] Request Parameters > > > > > > `mobileNo` *mandatory* > > > : `string` Mobile number of the customer. > > > > > > `color` *optional* > > > : `string` Colour in HEX format. > > > > > [accordion] Response Parameters > > > > > > | Parameters | Description | > > > | - | - | > > > | `function(upiAccounts)` | This function is triggered if the list is fetched successfully. The `upiAccounts` can be empty to indicate that no accounts have been linked yet. | > > > | `function(error)` | This function is triggered in case of an error, and the error object will be received. | > > > > * Handle payment failure responses, displaying important details such as error codes, error descriptions, and metadata. This function is responsible for handling and logging information in case of a payment error. > > > > ```javascript Payment Failure Response Handling theme={null} > > var cancelCallback = function(error) { > > /** > > * error contains two values: > > * 1. Error Code > > * 2. Error Description > > **/ > > > > // handle failure > > }; > > ``` > > > > * Handle successful payment responses, displaying key information like order id, payment id, and signature. This code manages and logs details when a payment transaction is successful. > > > > ```javascript Payment Success Response Handling theme={null} > > var successCallback = function(response) { > > /** > > * response contains three values: > > * 1. Order ID > > * 2. Payment ID > > * 3. Signature > > **/ > > > > // handle success > > }; > > ``` > > > [accordion] 3 Submit Method > > > > To accept payments, call the `submit` method with the following payload: > > > > ```java Submit Payment Details theme={null} > > "key": "[YOUR_KEY_ID]", > > "currency": "INR", > > "amount": 100, > > "contact": "9000090000", > > "method": "upi", > > "email": "gaurav.kumar@example.com", > > "upi": { > > "flow": "in_app" > > } > > ``` > > > > > [accordion] Request Parameter > > > > > > `payload` *mandatory* > > > : `Map` Payload for initiating the transaction. > > > > > [accordion] Response Parameters > > > > > > | Parameter | Description | > > > | - | - | > > > | `onSuccess` | This function is triggered if the list is fetched successfully. `accList` can be empty to indicate that no accounts have been linked yet. | > > > | `onFailure` | This function is triggered in case an error is thrown during the retrieval process, either by the Razorpay SDK or the Bank SDK. | > [accordion] Step 4: Handle Payment Success and Failure > > The way you handle payment success and failure scenarios depends on the Checkout sample code you opted for in the previous step. Know how to [handle payment success and failure](/docs/payments/third-party-validation/standard-integration#4-handle-payment-success-and-failure). > [accordion] Steps 5: Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > * You need to store these fields in your server. > * You can confirm the authenticity of these details by verifying the signature in the next step. > > ```json Success Callback theme={null} > { > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > "razorpay_order_id": "order_GAWRjlWkVcRh0V", > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > } > ``` > > > [accordion] Parameters > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by the Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by the Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] Step 6: Verify Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > To verify the `razorpay_signature` returned to you by the Checkout form: > > 1. Create a signature in your server using the following attributes: > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > * `razorpay_payment_id`: Returned by Checkout. > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/api/authentication#generate-api-keys). > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC HEX digest as shown below: > > ```html HMAC HEX Digest theme={null} > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > if (generated_signature == razorpay_signature) { > payment is successful > } > ``` > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. ### Non-Transactional Flow Razorpay provides a single exposed function that allows you to manage linked UPI accounts and access all non-transactional flows seamlessly. ![View the non-transactional flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-non-transactional.jpg) > [accordion] Manage UPI Accounts > > The SDK manages the linked `UpiAccounts` on the application by triggering `manageUpiAccounts()`. The sequence of steps is as given below: > > * **Fetch balance**: Check the customer's account balance. > * **Change UPI PIN**: Provide the customer the ability to change their UPI PIN. > * **Reset UPI PIN**: Let your customers reset the PIN for their account. > * **Delete the account from the application**: Let your customers delink, that is, remove a selected UPI account from your application. > > ```javascript Java theme={null} > RazorpayCheckout.upiTurbo.manageUpiAccounts("mobileNo", "color", function(error) { > // handle error > }); > ``` > > > [accordion] Request Parameters > > > > `mobileNo` *mandatory* > > : `string` Mobile number of the customer. > > > > `color` *optional* > > : `string` Colour in HEX format. > > > [accordion] Response Parameter > > > > | Parameters | Description | > > | - | - | > > | `function(error)` | This function is triggered in case of an error, and the error object will be received. | ### Models Exposed from SDKs Given below are the models: > [accordion] Error > > | Error | Description | > | - | - | > | `errorCode` | Types of error codes
  • `BAD_REQUEST_ERROR`: Failure from the client's end (SDK).
  • `GATEWAY_ERROR`: Failure either from the Secure Component or the Bank.
  • `SERVER_ERROR`: Failure at PSP.
| > | `errorDescription` | Brief description of the error. | > | `errorReason` | Specifies the specific reason for the error. | > | `errorSource` | Indicates the origin of the error. | > | `errorStep` | Highlights the stage where the error occurred. | > > [Refer to the list of possible error reasons](/docs/payments/payment-gateway/cordova-integration/payment-methods/turbo-upi/error-codes). > [accordion] UpiAccount > > | Fields | Return Type | Description | > | - | - | - | > | `accountNumber` | String | Masked account number. | > | `ifsc` | String | IFSC of the bank. | > | `bankLogoUrl` | String | Image URL of the bank logo. | > | `bankName` | String | Name of the bank. | > | `bankPlaceholderUrl` | String | Image URL of the bank logo placeholder. | ## 2. Test Integration We recommend the following: * Complete the integration on UAT before using the prod builds. * Perform the UAT using the Razorpay-provided API keys. ## 3. Go-live Checklist Complete these steps to take your integration live: * You should get your app id whitelisted by Razorpay to test on prod. > [!NOTE] > > **Handy Tips** > > Contact our [integrations team](mailto:integrations@razorpay.com) to get your mobile number and app whitelisted. * Import the prod library from the GitHub repository โ†’ `https://github.com/upi-turbo/android-turbo-sample-app/tree/prod/app/libs` prod branch. * Add Proguard rules: * `keepclassmembers,allowobfuscation class * { @com.google.gson.annotations.SerializedName ; }` * `keepclassmembers enum * { *; }` * `keepclassmembers class * { @android.webkit.JavascriptInterface ; }` * `dontwarn com.razorpay.**` * `keep class com.razorpay.** {*;}` * `keep class com.olivelib.** {*;}` * `keep class com.olive.** {*;}` * `keep class org.apache.xml.security.** {*;}` * `keep interface org.apache.xml.security.** {*;}` * `keep class org.npci.** {*;}` * `keep interface org.npci.** {*;}` * `keep class retrofit2.** { *; }` * `keep class okhttp3.** { *; }` * Replace the UAT credential with the [Razorpay live keys](/docs/api/authentication#live-mode-api-keys) for prod testing. # Integrate with Turbo UPI Source: https://razorpay.com/docs/payments/payment-gateway/cordova-integration/payment-methods/turbo-upi Steps to integrate Razorpay Turbo UPI with your app. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Turbo UPI Cordova Standard SDK](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to Turbo UPI on Cordova Standard Checkout (since Jan 2024). With Razorpay Turbo UPI, businesses experience faster and simpler payments. It condenses the payment process from 5 steps to just 1, eliminating app redirections. Enjoy a seamless in-app payment experience, reduce dependencies on third-party UPI apps, and gain complete visibility of the payment journey. You can seamlessly integrate Turbo UPI with Razorpay Cordova Standard SDK. Explore the full potential of [Razorpay Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi) and know how it works. ![Turbo UPI Standard Checkout Flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-flow.jpg) > [accordion] Prerequisites > > 1. Integrate with [Razorpay Cordova Standard SDK](/docs/payments/payment-gateway/cordova-integration). > > 2. Import the following frameworks: > * Razorpay Cordova Standard SDK > * Razorpay Turbo Wrapper Plugin SDK (maven) > * Razorpay Turbo Core SDK > * Razorpay Turbo UI SDK > * Razorpay SecureComponent SDK > * Bank SDK > > 3. Enable data binding in your `app.gradle`. > > ```json Data binding theme={null} > { > "android": { > // Containing other settings > "buildFeatures": { > "dataBinding": true > } > } > } > ``` ## Onboarding Flow Ensure your customers [onboard with Razorpay Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi#onboarding-flow) to get started. ## Turbo UPI SDK Integration Follow these steps to integrate with Razorpay Turbo UPI: 1. Use the code given below to initialise the SDK. ```java Initialise theme={null} RazorpayCheckout.initUpiTurbo("rzp_test_0wFRWIZnH65uny") ``` 2. Use the following code to link the newly created UPI account with your app. This function can be called from anywhere in the application, providing multiple entry points for customers to link their UPI account with your app. ```javascript Link New UPI Account theme={null} RazorpayCheckout.upiTurbo.linkNewUpiAccount("mobileNo", "color", function (upiAccounts) { // handle data }, function(error) { // handle error }); ``` > [accordion] Request Parameters > > `mobileNumber` *mandatory* > : `string` Mobile number of the customer. > > `color` *optional* > : `string` Colour in HEX format. > [accordion] Response Parameters > > | Parameters | Description | > | - | - | > | `function(upiAccounts)` | This function is triggered if the list is fetched successfully. The `upiAccounts` can be empty to indicate that no accounts have been linked yet. | > | `function(error)` | This function is triggered in case of an error, and the error object will be received. | * Handle payment failure responses, displaying important details such as error codes, error descriptions, and metadata. This function is responsible for handling and logging information in the event of a payment error. ```javascript Payment Failure Response Handling theme={null} var cancelCallback = function(error) { /** * error contains two values: * 1. Error Code * 2. Error Description **/ // handle failure }; ``` * Handle successful payment responses, displaying key information like order id, payment id, and signature. This code manages and logs details when a payment transaction is successful. ```javascript Payment Success Response Handling theme={null} var successCallback = function(response) { /** * response contains three values: * 1. Order ID * 2. Payment ID * 3. Signature **/ // handle success }; ``` 3. To accept payments, call Standard Checkoutโ€™s `submit` method with the following payload: ```javascript Submit Payment Details theme={null} var rzpOptions = { amount: 2000, currency: "INR", prefill: { contact: "1234567890", email: "gaurav.kumar@example.com" }, theme: { color: "#063970" }, send_sms_hash: true, retry: { enabled: false, max_count: 4 } }; RazorpayCheckout.open(rzpOptions, successCallback, cancelCallback); ``` > [accordion] Request Parameter > > `payload` *mandatory* > : `variable` Payload for initiating transaction. > [accordion] Response Parameters > > | Parameters | Description | > | - | - | > | `successCallback` | It is triggered upon successful completion of the payment, providing access to a response object. | > | `cancelCallback` | It is invoked in the event of a failure, providing access to an error object. | ### Non-Transactional Flow Razorpay provides a single exposed function that allows you to manage linked UPI accounts and access all non-transactional flows seamlessly. ![View the non-transactional flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-non-transactional.jpg) > [accordion] Manage UPI Accounts > > The SDK manages the linked `UpiAccounts` on the application by triggering `manageUpiAccounts()`. The sequence of steps is as given below: > > * **Fetch balance**: Check the customer's account balance. > * **Change UPI PIN**: Provide the customer the ability to change their UPI PIN. > * **Reset UPI PIN**: Let your customers reset the PIN for their account. > * **Delete the account from the application**: Let your customers delink, that is, remove a selected UPI account from your application. > > ```javascript Java theme={null} > RazorpayCheckout.upiTurbo.manageUpiAccounts("mobileNo", "color", function(error) { > // handle error > }); > ``` > > > [accordion] Request Parameters > > > > `mobileNumber` *mandatory* > > : `string` Mobile number of the customer. > > > > `color` *optional* > > : `string` Colour in HEX format. > > > [accordion] Response Parameter > > > > | Parameters | Description | > > | - | - | > > | `function(error)` | This function is triggered in case of an error, and the error object will be received. | ### Models Exposed from the SDKs The SDKs given below provide access to exposed models for seamless integration. > [accordion] Error > > | Error | Description | > | - | - | > | `errorCode` | Types of error codes
  • `BAD_REQUEST_ERROR`: Failure from the client's end (SDK).
  • `GATEWAY_ERROR`: Failure either from the Secure Component or the Bank.
  • `SERVER_ERROR`: Failure at PSP.
| > | `errorDescription` | Brief description of the error. | > | `errorReason` | Specifies the specific reason for the error. | > | `errorSource` | Indicates the origin of the error. | > | `errorStep` | Highlights the stage where the error occurred. | > > [Refer to the list of possible error reasons](/docs/payments/payment-gateway/cordova-integration/payment-methods/turbo-upi/error-codes). > [accordion] UpiAccount > > | Fields | Return Type | Description | > | - | - | - | > | `accountNumber` | String | Masked account number. | > | `ifsc` | String | IFSC of the bank. | > | `bankLogoUrl` | String | Image URL of the bank logo. | > | `bankName` | String | Name of the bank. | > | `bankPlaceholderUrl` | String | Image URL of the bank logo placeholder. | > [accordion] Response > > | Fields | Return Type | Description | > | - | - | - | > | `paymentId` | String | Payment id. | > | `orderId` | String | Order id. | > | `signature` | String | Signature of the transaction. | # Turbo UPI SDK - Error Codes Source: https://razorpay.com/docs/payments/payment-gateway/cordova-integration/payment-methods/turbo-upi/error-codes List of error codes for Turbo UPI SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Given below is the list of error codes categorised by error reasons, with relevant descriptions, source and step. ### Bad Request Errors Given below is the list of Bad Request errors. > [accordion] bank\_not\_live\_on\_upi > > * **Description**: The selected bank is not enabled on UPI. Please try using another bank. > * **Source**: gateway > * **Step**: customer\_onboarding > [accordion] account\_does\_not\_exist > > > [accordion] Payment Debit Request > > > > * **Description**: No accounts found for the selected bank. Please try using another bank. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Payment Credit Request > > > > * **Description**: Payment was unsuccessful as the receiver's bank account is not valid. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_credit\_request > [accordion] transaction\_not\_allowed > > > [accordion] Payment Debit Request > > > > * **Description**: Transaction not permitted to the account as per your bank policy. Please contact your bank for more details or try with another bank account. > > * **Source**: customer > > * **Step**: payment\_debit\_request > > > [accordion] Payment Credit Request > > > > * **Description**: Payment not allowed as it got declined by the receiver's bank. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_credit\_request > [accordion] upi\_pin\_registration\_card\_expired > > * **Description**: Card used while setting UPI PIN has expired. Please use another debit card or use another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_not\_found > > * **Description**: Card details used while setting UPI PIN are incorrect. Please re-check and try again. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_restricted > > * **Description**: Card used while setting UPI PIN has been blocked by your bank. Please reach out to your bank for more information or try using another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] bank\_technical\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: beneficiary\_bank > * **Step**: payment\_status\_request > [accordion] pin\_not\_set > > * **Description**: Payment was unsuccessful as you have not set the UPI PIN on the app. Try using another method. > * **Source**: customer\_psp > * **Step**: payment\_authentication > [accordion] customer\_not\_registered > > * **Description**: No bank account is associated with this mobile number. Please try again by adding your account. > * **Source**: gateway > * **Step**: customer\_onboarding > [accordion] server\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: gateway > * **Step**: payment\_authentication > [accordion] payment\_cancelled\_by\_user > > * **Description**: Flow was aborted as you pressed back from the PIN screen. Please try again. > * **Source**: customer > * **Step**: payment\_authorization ### Gateway Errors Given below is the list of gateway errors. > [accordion] incorrect\_otp > > * **Description**: You have entered an incorrect OTP. Try again. > * **Source**: customer > * **Step**: customer\_onboarding > [accordion] otp\_expired > > * **Description**: You have entered an expired OTP. Please regenerate OTP and try again. > * **Source**: customer > * **Step**: customer\_onboarding > [accordion] insufficient\_funds > > * **Description**: Payment was unsuccessful due to insufficient funds. Kindly check your balance and try again. > * **Source**: customer > * **Step**: payment\_debit\_request > [accordion] insufficient\_funds\_mandate\_block > > * **Description**: Payment was unsuccessful as the amount in your account is blocked for another payment. Try using another account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] otp\_attempts\_exceeded > > * **Description**: You have entered an incorrect OTP too many times. Try again in some time. > * **Source**: customer\_psp > * **Step**: customer\_onboarding > [accordion] account\_dormant > > * **Description**: Payment was unsuccessful as the receiver's bank account is inactive. Any amount deducted will be refunded within 5-7 working days. > * **Source**: beneficiary\_bank > * **Step**: payment\_credit\_request > [accordion] bank\_not\_live\_on\_upi > > * **Description**: Selected bank is not available on UPI. Please try using another bank. > * **Source**: issuer\_bank > * **Step**: customer\_onboarding > [accordion] payment\_timed\_out > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_response > > > [accordion] UPI ID Not Reachable > > > > * **Description**: Payment was unsuccessful as the bank linked to this UPI ID is not reachable at this time. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > [accordion] first\_transaction\_limit\_exceeded > > * **Description**: Payment was unsuccessful as you exceeded the first-time transaction limit set by your bank. You can use another bank account or retry after 24 hours. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] transaction\_limit\_exceeded > > > [accordion] Limit Set By Bank Exceeded > > > > * **Description**: Payment was unsuccessful as you exceeded the transaction limit set by your bank. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > > > [accordion] Daily Amount Limit Exceeded > > > > * **Description**: Payment was unsuccessful as you exceeded the amount limit for the day with this bank account. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > [accordion] first\_time\_transaction\_freeze\_period > > * **Description**: Payment was unsuccessful due to the cooling period set by your bank for first-time user. Please try again after some time. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] transaction\_frequency\_limit\_exceeded > > * **Description**: Payment was unsuccessful as the number of transactions exceeds the max limit set by the bank. You can use another bank account or retry after some time. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] bank\_account\_inactive > > > [accordion] Issuer Bank Account Inactive > > > > * **Description**: Payment was unsuccessful as your account is not active. Please try using another bank account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Receiver Bank Account Inactive > > > > * **Description**: Payment was unsuccessful as the receiver's bank account is not active. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_debit\_request > [accordion] server\_error > > > [accordion] Temporary Issue - Issuer Bank > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_request > > > [accordion] Temporary Issue - Beneficiary Bank > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > > * **Source**: issuer\_bank > > * **Step**: payment\_request > [accordion] invalid\_ifsc > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > * **Source**: gateway > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_blocked > > * **Description**: Card used while setting UPI PIN has been blocked by your bank. Please reach out to your bank for more information or try using another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] bank\_technical\_error > > > [accordion] UPI ID Temporarily Unavailable > > > > * **Description**: Payment was unsuccessful as the bank linked to this UPI ID is temporarily unavailable. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: issuer\_bank > > * **Step**: payment\_credit\_response > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: issuer\_bank > > * **Step**: payment\_credit\_response > [accordion] payment\_declined > > > [accordion] Declined by Bank > > > > * **Description**: Payment was unsuccessful as it was declined by your bank. Reach out to your bank for more details. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_debit\_request > [accordion] pin\_attempts\_exceeded > > * **Description**: You have exceeded the incorrect UPI PIN attempts. You can use another bank account or retry after 24 hours. > * **Source**: customer > * **Step**: payment\_authentication > [accordion] incorrect\_pin > > * **Description**: You have entered incorrect UPI PIN. Please try again with the correct UPI PIN. > * **Source**: customer > * **Step**: payment\_authentication > [accordion] linked\_account\_removal\_failed > > * **Description**: Unable to remove the account. Please try again. > * **Source**: customer\_psp > * **Step**: account\_management > [accordion] sms\_text\_not\_received > > * **Description**: Something went wrong while sending SMS. Please try again. > * **Source**: gateway > * **Step**: customer\_onboarding ### Server Errors Given below is the list of server errors. > [accordion] server\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: issuer\_bank > * **Step**: customer\_onboarding > [accordion] server\_error > > * **Description**: We are facing some trouble completing your request at the moment. Please try again shortly. > * **Source**: internal > * **Step**: payment\_authorization # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/cordova-integration/troubleshooting-faqs Troubleshoot common error scenarios and find answers to frequently asked questions about Cordova Integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] What should I do if I see the following error? > > ```javascript Error theme={null} > dyld: Library not loaded: @rpath/libswiftCoreGraphics.dylib > Referenced from: /private/var/mobile/Containers/Bundle/Application/696F0EAD-E2A6-4C83-876F-07E3D015D167/.app/Frameworks/.framework/ > Reason: image not found > ``` > > To fix the above error message: > > * Set the `Embedded Content Contains Swift Code (EMBEDDED_CONTENT_CONTAINS_SWIFT)` build setting to `YES` in your app. To know more, refer to [this Apple document](https://developer.apple.com/library/archive/qa/qa1881/_index.html). > * Ensure that you have the framework added in `Frameworks, Libraries, and Embed Content` under `Target settings` - `General`. Ensure the `Embed status` is set to 'Embed & Sign'. > [accordion] Is Capacitor supported in Razorpay Cordova Plugin? > > No, we do not support Capacitor in our plugin as it has its own [dependencies](https://capacitorjs.com/docs/getting-started). > [accordion] What is order id and how to generate it? > > Order creation is the primary step of the Razorpay payment flow. When a customer clicks the pay button on your app, an Order is created and a corresponding order\_id is generated in the response. This order\_id must be passed to the Razorpay Checkout options added in your Capacitor app. > Know more about [Orders](/docs/api/orders). > [accordion] What is the process for raising a request for a new feature? > > To raise a request for a new feature, navigate to **New Issue** โ†’ **Feature Request** on our [GitHub repository](https://github.com/razorpay/razorpay-cordova/issues/new/choose). > [accordion] How can I update the existing **'razorpay-pod'**? > > * Go to your project's iOS folder and run **'pod update'** to update all the pods.\\ > > * If you do not want to update all pods, run **'pod update razorpay-pod'**. > [accordion] In the new M1 MacBook, why am I not able to compile the Cordova Razorpay plugin for release mode? > > This is because of the new changes introduced in Xcode 12. > > To resolve this: > > 1. Use [Rosetta 2](https://support.apple.com/en-us/HT211861) for launching the app on your Mac. > > 2. Add the following lines to Podfile: > > > [!NOTE] > > > > **Handy Tips** > > > > Add the following code inside `post_install do |installer|`. > > ```javascript podfile theme={null} > installer.pods_project.build_configurations.each do |config| > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > end > ``` > > Know more about [compilation errors](https://khushwanttanwar.medium.com/xcode-12-compilation-errors-while-running-with-ios-14-simulators-5731c91326e9). > [accordion] How can I check the Razorpay Cordova Standard SDK version? > > To check the SDK version: > > 1. Open your Cordova project in your preferred code editor. > 2. Navigate to the `config.xml` file in the root directory of your project. > 3. Look for the `` tag that includes the Razorpay SDK plugin. The version number is represented by `x.y.z`. > [accordion] How can I check the Razorpay Ionic Standard SDK version? > > To check the SDK version: > > 1. Open your Ionic project in your preferred code editor. > 2. Open the `package.json` file in the root directory of your project. > 3. In the `dependencies` section, look for the Razorpay entry. The version number is specified next to the package name in the format `x.y.z`. > [accordion] How can I update the Razorpay Cordova and Ionic Standard SDK version? > > To update the SDK version using npm, follow these steps: > > 1. Open the terminal or command prompt and navigate to your project directory where the `package.json` file resides. > 2. Use the npm update command followed by the package name to update a specific package to its latest version. For example, npm update `` (replace `` with the name of the package you want to update). > 3. If you are using a Cordova iOS application, run `cd platforms && cd ios && pod repo update && pod update` to ensure the internal iOS dependencies are updated to the versions set by the Razorpay package. This is because cocoapods may not automatically update the internal trunk spec to fetch the latest versions. > 4. After running the update command, review the updates fetched by npm to ensure they do not introduce any breaking changes. > 5. Conduct thorough testing to ensure that the updated packages do not adversely affect the application functionality and commit the changes. # About Ecommerce Plugins Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins Check the list of Razorpay Ecommerce Plugins to integrate with the plugin of your choice and accept payments from your customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Integrate seamlessly with ecommerce platforms through our robust and secure plugins. You can accept payments via a range of payment methods like debit cards, credit cards, netbanking (supports 3D Secure), UPI and so on. ## List of Ecommerce Plugins and Supported Platforms Following are the various ecommerce plugins and supported platforms: > [tab] Payment Gateway Ecommerce Plugins > > **Payment Gateway Ecommerce Plugins** provide a convenient checkout experience and expand the payment options available to businesses. > > | Plugins | Payment Gateway | Route | Subscriptions | > | - | - | - | - | > | [Arastta](/docs/payments/payment-gateway/ecommerce-plugins/arastta) | โœ“ | x | x | > | [BigCommerce](/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce) | โœ“ | x | x | > | [CS-Cart](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart) | โœ“ | x | x | > | [Drupal Commerce](/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce) | โœ“ | x | x | > | [Easy Digital Downloads](/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads) | โœ“ | x | x | > | [Gravity Forms](/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms) | โœ“ | x | x | > | [Magento](/docs/payments/payment-gateway/ecommerce-plugins/magento) | โœ“ | x | โœ“ | > | [OpenCart](/docs/payments/payment-gateway/ecommerce-plugins/open-cart) | โœ“ | x | โœ“ | > | [PrestaShop](/docs/payments/payment-gateway/ecommerce-plugins/prestashop) | โœ“ | x | x | > | [Shopify](/docs/payments/payment-gateway/ecommerce-plugins/shopify) | โœ“ | x | x | > | [WHMCS](/docs/payments/payment-gateway/ecommerce-plugins/whmcs) | โœ“ | x | x | > | [Wix](/docs/payments/payment-gateway/ecommerce-plugins/wix) | โœ“ | x | x | > | [WooCommerce](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce) | โœ“ | โœ“ | โœ“ | > | [WordPress](/docs/payments/payment-gateway/ecommerce-plugins/wordpress) | โœ“ | x | x | > [tab] Other Ecommerce Plugins > > **Other Ecommerce Plugins** are in-platform or native plugins, built-in features integrated directly into the e-commerce platform. > > | Plugins | Payment Gateway | Route | Subscriptions | > | - | - | - | - | > | [Razorpay Direct - Credit Card](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card) | x | x | x | > | [Shopify - Appmaker](/docs/payments/ecommerce-plugins/shopify-appmaker) | x | x | x | You can [build your own plugin](/docs/payments/payment-gateway/ecommerce-plugins/build-your-own) in case the plugin you are looking for is not listed above. ### Frequently Asked Questions > [accordion] Does Razorpay provide integration support for all ecommerce platforms? > > Razorpay offers official plugins for the following platforms: > > * Shopify > * WooCommerce > * Wix > * Magento > * BigCommerce > * OpenCart > * PrestaShop > * WHMCS > * WordPress > * Drupal Commerce > * CS-Cart > * Arastta > * Easy Digital Downloads > * Gravity Forms > > For platforms without an official Razorpay plugin, integration support is managed by the respective platform's support team. This ensures you receive the best assistance for platform-specific requirements and configurations. > [accordion] I am using a platform not listed in Razorpay's plugin directory. How do I integrate Razorpay? > > For platforms without an official Razorpay plugin, you have two options: contact your platform's support team to check if they offer Razorpay integration support, or use Razorpay's APIs to [build a custom integration](/docs/payments/payment-gateway/ecommerce-plugins/build-your-own). > [accordion] Why am I seeing only a "Pay with Credit/Debit Card" option instead of the full Razorpay Checkout? > > This usually indicates malicious code (malware) injected into your website that is hijacking the checkout. To verify and fix this: > > 1. Test your API keys on the Razorpay test page or set up a fresh installation of your ecommerce platform and test the integration there. If checkout loads correctly, the issue is with your current website code. > 2. Run a full malware scan on your website using security tools appropriate for your platform. > 3. Remove any suspicious or recently added plugins/extensions and check theme files for unknown JavaScript code. > 4. After cleanup, reinstall the Razorpay plugin from the official source. > > If the issue persists even after following these steps, contact our [Support team](https://razorpay.com/support/). ### Related Information * [How Payment Gateway Works](/docs/payments/payment-gateway/how-it-works) * [Features](/docs/payments/payment-gateway/features) * [Supported Payment Methods](/docs/payments/payment-methods#supported-payment-methods) # Arastta Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/arastta Check the prerequisites before you integrate your Arastta website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/arastta/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay Arastta plugin. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. [Video Tutorial](https://www.youtube.com/embed/p7gDH2h3rgg?si=71SaBoJOpNxrhUK7) Video Tutorial Watch the video before you start integrating the Arastta plugin with Payment Gateway > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/arastta/integration-steps) > > Check the steps to integrate the Arastta plugin with Payment Gateway ## Supported Products Razorpay Arastta Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | x | ## Support * Queries: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-arastta/issues/new) ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/arastta/integration-steps Steps to integrate your Arastta website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Follow the steps given below to integrate Razorpay Payment Gateway with your Arastta website.\ > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/arastta/integration-steps#1-build-integration) > > Install and configure the Arastta Commerce plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/arastta/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/arastta/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with Arastta Website](https://www.youtube.com/embed/p7gDH2h3rgg?si=71SaBoJOpNxrhUK7) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Installation > > 1. Download a ZIP of the [repository](https://github.com/razorpay/razorpay-arastta/archive/master.zip). The master branch holds the plugin for the latest Arastta version. > > ![](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-arastta-1.jpg) > 2. Copy all files and folders recursively to Arastta installation directory. > 3. Log in to [Arastta](https://arastta.org/). > 4. Navigate to the **Admin Panel** โ†’ **Marketplace** โ†’ **Payments** and enable the Razorpay extension. > 5. Click **Edit** next to Razorpay and complete the following actions: > 1. Add your Razorpay `[KEY_ID]` and `[KEY_SECRET]`. These can be generated from your Razorpay [Dashboard](/docs/api/authentication#generate-api-keys). > 2. Change plugin status to **Enabled**. > 3. Click **Save** to save the plugin settings. ## 2. Test Integration After the integration is complete, a **Pay** button will appear on your web page/app. You need to click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual payments from your customers once the test is successful. ![](https://razorpay.com/docs/build/browser/assets/images/arastta-pay-button.jpg) You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/arastta/troubleshooting-faqs Troubleshoot common errors and find answers to frequently asked questions about Arastta Ecommerce Plugin integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia > [accordion] What troubleshooting procedures should be carried out prior to initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Reinstall the Razorpay Arastta plugin and ensure that your system meets all the requirements mentioned [here](/docs/payments/payment-gateway/ecommerce-plugins/arastta/integration-steps). > 2. We recommend you to keep your Razorpay Arastta plugin up to date. You can find the latest versions [here](https://github.com/razorpay/razorpay-arastta/releases). > 3. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * Razorpay Arastta plugin version > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Staging website credentials (login URL, login id, and password) > [accordion] Does the Arastta plugin support 3 or 0 decimal unit currencies? > > The Arastta plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/bagisto/integration-steps Steps to integrate your Bagisto store with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow the steps given below to integrate Razorpay Payment Gateway with your Bagisto website.\ > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/bagisto/integration-steps#build-integration) > > Install and configure the Bagisto Commerce plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/bagisto/integration-steps#test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/bagisto/integration-steps#go-live-checklist) > > Check the go-live checklist. > [!NOTE] > > For > > * **Platform:** Bagisto (open-source e-commerce) > * **Payment method:** Razorpay (built into Bagisto) > > This guide covers **core Bagisto only** (single-store checkout). It does not cover the Bagisto Marketplace (multi-vendor) extension. ## Overview Razorpay is available in Bagisto as a **built-in payment method** โ€” it comes with Bagisto, so there is nothing extra to install. As a store owner, you have to simply enable and configure it from the admin panel. At checkout, customers pay through Razorpay (cards, UPI, netbanking, wallets) and are returned to the store once the payment is done. Payment is confirmed automatically the moment the customer returns from Razorpay and successful payments are **captured automatically**. The store owner does not need to capture them manually. ### Prerequisites | Requirement | Detail | | - | - | | Razorpay account | An active account with Test and Live API keys, available from the Razorpay Dashboard | | Bagisto store | A running Bagisto 2.x store with admin access | | Store currency | INR โ€” Razorpay in Bagisto supports INR only | | Public store URL | The storefront must be reachable on the internet so customers can return after paying | ### Supported * **Checkout:** Razorpay Standard Checkout (the Razorpay payment window). * **Currency:** INR only. If the store/cart is in any other currency, Razorpay is not offered and a `currency not supported` message is shown. * **Capture:** Automatic โ€” successful payments are captured right away; there is no manual capture step. ### Payment flow (what the customer sees) 1. The customer selects Razorpay at checkout and places the order. 2. The Razorpay payment window opens, with the amount and the customer's name, email and phone pre-filled. 3. The customer pays using a card, UPI, netbanking or a wallet. 4. On success, the customer is returned to the store and the order is confirmed. 5. On cancel or failure, the customer is returned to the cart to try again. ## Integration steps The flow has three phases: **Build โ†’ Test โ†’ Go live**. ## Build Integration Razorpay comes with Bagisto, so there is nothing to install. 1. Log in to the Bagisto admin. 2. Go to **Configuration โ†’ Sales โ†’ Payment Methods โ†’ Razorpay**. 3. Fill in the fields (see the table below) and **Save**. #### Configuration fields | Field | What it's for | | - | - | | Status | Turn Razorpay on or off at checkout | | Title | The name customers see for this method at checkout (default "Razorpay") | | Description | Short text shown under the title | | Logo | The image shown on the Razorpay payment window | | Merchant Name | Your business name, shown on the Razorpay payment window | | Merchant Description | A short description shown on the Razorpay payment window | | Client ID | Your Razorpay Live API key โ€” used when Sandbox is off | | Client Secret | Your Razorpay Live API secret โ€” used when Sandbox is off | | Sandbox (Test mode) | Switch between test and live. On = your test keys are used; Off = your live keys are used | | Test Client ID | Your Razorpay Test API key โ€” used when Sandbox is on | | Test Client Secret | Your Razorpay Test API secret โ€” used when Sandbox is on | | Sort Order | Where Razorpay appears in the list of payment methods | **Where to get your keys:** In the Razorpay Dashboard, go to [Account & Settings โ†’ API Keys โ†’ Generate Key](/docs/payments/dashboard/account-settings/api-keys). Generate separate keys for Test Mode and Live Mode. **Scope of the settings:** The Razorpay settings are saved per store (sales channel), so a multi-store merchant configures the keys separately for each store. Title and Description can also be translated per store language. Razorpay appears at checkout only when it is enabled, the correct keys are filled for the active mode (Test vs Live), and the store currency is INR. ## Test Integration 1. Turn **Sandbox (Test mode) On** and enter your Test keys. 2. Make sure the store currency is INR. 3. Place a test order and choose Razorpay. On the payment window, use Razorpay's test payment details (test UPI / test cards from the Razorpay documentation) โ€” no real money is charged. 4. In the Razorpay Dashboard (**Transactions โ†’ Payments**), the payment should appear and show as captured. 5. Confirm the order appears in the Bagisto admin under **Sales โ†’ Orders**. ## Go-Live Checklist 1. In the Razorpay Dashboard, switch to **Live Mode** and generate your Live API keys. 2. In Bagisto, turn **Sandbox (Test mode) Off** and enter your Live keys, then **Save**. 3. Real payments are now accepted. Successful payments are captured automatically. ## Troubleshooting Before contacting support, have the following ready: * Your Bagisto version. * Whether the issue is in Test or Live mode. * The affected order (and the Razorpay payment id from the dashboard). * A description or screenshots / screen recording of what happened. ## FAQs > [accordion] Which currencies are supported? > > Only INR. If the store/cart is in any other currency, checkout is blocked with a message naming the currency โ€” for example, for a USD cart: "The currency USD is not supported. Supported Currencies: INR." Set the store currency to INR. > [accordion] Why am I not able to see the Razorpay method at checkout? > > Confirm all three of the following: > > * Razorpay is enabled (Status is on). > * The correct keys are entered for the active mode (Test keys if Sandbox is on, Live keys if Sandbox is off). > * The store currency is INR. > [accordion] The Razorpay payment window does not open, or shows `Something went wrong` > > Make sure the correct keys are entered for the active mode and were saved. Re-open the payment page after saving. > [accordion] I switched to live mode but payments still behave like test mode (or the other way round). > > The Sandbox (Test mode) toggle decides which keys are used โ€” On uses your test keys, Off uses your live keys. Make sure the matching key pair is filled for the mode you want. > [accordion] Do refunds made in the Razorpay Dashboard show up in Bagisto? > > No โ€” a refund created directly in the Razorpay Dashboard does not update the order in Bagisto. Process refunds from the Bagisto admin โ†’ Sales so your store records stay in sync. > [accordion] Do I need to capture payments manually? > > No. Successful payments are captured automatically. > [accordion] The amount shown looks different from the order total. > > Razorpay displays the amount in the currency's smallest unit (paise for INR). The order total in Bagisto is the correct value โ€” only the way Razorpay shows it differs. ## Related Information * [Bagisto โ€” Payment Methods (user docs)](https://docs.bagisto.com/payment-method/payment-methods.html) * [Bagisto โ€” Installation (developer docs)](https://devdocs.bagisto.com/getting-started/installation.html) * [Bagisto โ€” GitHub repository](https://github.com/bagisto/bagisto) # BigCommerce Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce Check the prerequisites before you integrate your BigCommerce website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce/faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay BigCommerce plugin. * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. [Video Tutorial](https://www.youtube.com/embed/UCH55jCpBg4?si=FJKQi9U8AINOZelT) Video Tutorial Watch the video before you start integrating the BigCommerce plugin with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce/integration-steps) > > Check the steps to integrate the BigCommerce plugin with Payment Gateway. ## Supported Products Razorpay BigCommerce Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | x | ## Support If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce/faqs Find answers to frequently asked questions about BigCommerce plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] How can I verify if the plugin is installed successfully? > > On your BigCommerce Dashboard, navigate to **Channel Manager** โ†’ **Storefronts** section. > > ![specific and meaningful image title](https://razorpay.com/docs/build/browser/assets/images/bigcommerce-verify-installation.jpg) > > There are two ways to verify the installation: > > ### Web Pages > > 1. Click **Web pages**. > 2. Ensure the **Razorpay Order Confirmation** page appears. > > ![Verify installation through web pages](https://razorpay.com/docs/build/browser/assets/images/bigcommerce-web-page.jpg) > > ### Scripts > > 1. Click **Scripts**. > 2. Ensure the Razorpay **Header** and **Footer** scripts appear. > > ![Verify installation through scripts](https://razorpay.com/docs/build/browser/assets/images/bigcommerce-script.jpg) > [accordion] How can I verify if webhooks are auto-configured? > > To verify if webhooks are enabled: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings** section, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Select the relevant webhook **URL**. > 4. On the right panel, check if the status for `order.paid` and `refund.processed` is enabled. > [accordion] Why am I asked to approve a new Checkout Write permission for the Razorpay Payment App? > > Following a bug fix on BigCommerce's side, the Razorpay Payment App now requires an additional access permission: **Checkout Write**. If you currently use the Razorpay Payment App, you must approve this new permission to ensure the integration continues to function correctly. > > Follow these steps to reauthorise the app: > > 1. Log in to your **BigCommerce Store Control Panel**. > > 2. Navigate to **Apps** โ†’ **My Apps** (or the installed apps section). > > 3. Locate and open the **Razorpay Payment App**. > > 4. BigCommerce displays a prompt requesting approval for the updated app permissions. > > 5. Review the new **Checkout Write** permission and click **Update**, **Authorize** or **Accept**, as displayed. > > 6. Once authorisation is complete, reopen the Razorpay Payment App to confirm it loads successfully. > > > [!NOTE] > > > > **Handy Tips** > > > > * Complete this authorisation using the store owner account or an account with the required app permissions. > > * You do not need to uninstall or reinstall the app as part of the standard reauthorisation process. > > If the permission prompt does not appear or the update fails, contact [Razorpay Support](https://razorpay.com/support). > [accordion] Does the BigCommerce plugin support 3 or 0 decimal unit currencies? > > The BigCommerce plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce/integration-steps Steps to integrate your BigCommerce website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow the steps given below to integrate Razorpay Payment Gateway with your BigCommerce website. > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce/integration-steps#1-build-integration) > > Install and configure the BigCommerce plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/bigcommerce/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with BigCommerce Website](https://www.youtube.com/embed/UCH55jCpBg4) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Installation > > Follow the steps given below to install the plugin: > > 1. Log in to your [BigCommerce account](https://login.bigcommerce.com/login). > > 2. Navigate to **Apps** โ†’ **Marketplace**. > > ![Navigate to Apps](https://razorpay.com/docs/build/browser/assets/images/bigcommerce-apps.jpg) > > 3. Click **BIGCOMMERCE.COM/APPS** and search for **Razorpay**. > > ![specific and meaningful image title](https://razorpay.com/docs/build/browser/assets/images/bigcommerce-marketplace.jpg) > > 4. Click **Razorpay** and click **GET THIS APP**. > > ![Install the app](https://razorpay.com/docs/build/browser/assets/images/bigcommerce-get-app.gif) > > 5. Enter the **API Key ID** generated from the [Razorpay Dashboard](/docs/api/authentication#generate-api-keys). > > > [!NOTE] > > > > **Handy Tips** > > > > To go live with the integration and start accepting real payments, generate [Live Mode API Keys](/docs/api/authentication#live-mode-api-keys) and replace the test key with the live key in the integration. > > 6. Click **Submit**. > > ![Submit detail to install the Razorpay plugin](https://razorpay.com/docs/build/browser/assets/images/bigcommerce-install1.jpg) > > You have successfully integrated the Razorpay Payment Gateway with your BigCommerce website. > > > [!NOTE] > > > > **Handy Tips** > > > > * Webhooks are auto-configured when you enter and submit the API key ID during the installation. You can verify if webhooks are enabled on your Razorpay Dashboard. > > * The `order.paid` and `refund.processed` events are auto-configured. You do not have to configure it on the Razorpay Dashboard. ## 2. Test Integration After the integration is complete, a **RAZORPAY PAYMENTS** button will appear on your web page/app. You need to click the button and make a test transaction to ensure that the integration is working as expected. You can start accepting actual payments from your customers once the test is successful. ![Test the integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/bigcommerce-test.gif) > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > You can track the payment status from the Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After a payment is `authorized`, it is automatically captured and the amount is settled to your account as per the settlement schedule. Know more about [Auto-capture payments](/docs/payments/payments/capture-settings#auto-capture-all-payments). # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/build-your-own Build your own custom plugin to integrate Razorpay with your ecommerce website and start accepting payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/build-your-own/faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about building a custom plugin. You can build a plugin that integrates Razorpay Payment Gateway with websites created using ecommerce platforms such as Spree Commerce. ## Use Cases Following are some specific cases whose integration is handled on a case-by-case basis: > [accordion] Donations > > If the platform is used to collect donations, you cannot rely on the amount to be generated on the backend. While you will be ignoring this check, you should still be storing the Razorpay order ID and re-verifying it after payment completion. > > > [!NOTE] > > > > **Handy Tips** > > > > We won't be able to activate all non-profits and would be considering such merchants on a case-by-case basis. > [accordion] WebView > > If your website is likely to be accessed mostly in the Facebook browser or via other mobile applications in a WebView, it might face certain issues. Refer to our [Callback URL documentation](/docs/payments/payment-gateway/callback-url) for more details on how to handle this. > [accordion] Network Connectivity Issues > > If the customer has an issue with the network connectivity, you will not know of the payment completion from your website. In such cases, you can use our [Webhooks](/docs/webhooks) to get notified of all authorized payments and then you can mark them as successful at your end. ## Build Integration A to-do-list for integration is given below: > [accordion] Clone the Razorpay Sample Application in Your Language and Test the Payment Flow. > > You can clone any of the sample applications available in our [Integrations](https://razorpay.com/integrations/) page. > [accordion] Integrate with Orders API on the Server Side. > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order: > > * Using the sample code on the Razorpay Postman Public Workspace. > * By manually integrating the API sample codes on your server. > > #### Razorpay Postman Public Workspace > > You can use the Postman workspace below to create an order: > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > [!NOTE] > > > > **Handy Tips** > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > #### API Sample Code > > Use this endpoint to create an order using the Orders API. > > `POST /orders` > > ```bash Curl theme={null} > curl -X POST https://api.razorpay.com/v1/orders > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > -H 'content-type:application/json' > -d '{ > "amount": 500, > "currency": "INR", > "receipt": "qwsaq1", > "partial_payment": true, > "first_payment_min_amount": 230, > "notes": { > "key1": "value3", > "key2": "value2" > } > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount",50000); > orderRequest.put("currency","INR"); > orderRequest.put("receipt", "receipt#1"); > JSONObject notes = new JSONObject(); > notes.put("notes_key_1","Tea, Earl Grey, Hot"); > notes.put("notes_key_1","Tea, Earl Grey, Hot"); > orderRequest.put("notes",notes); > > Order order = instance.orders.create(orderRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > client.order.create({ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "partial_payment": False, > "notes": { > "key1": "value3", > "key2": "value2" > } > }) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->order->create(array('receipt' => '123', 'amount' => 100, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > ``` > > ```csharp .NET theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary orderRequest = new Dictionary(); > orderRequest.Add("amount", 50000); > orderRequest.Add("currency", "INR"); > orderRequest.Add("receipt", "receipt#1"); > Dictionary notes = new Dictionary(); > notes.Add("notes_key_1", "Tea, Earl Grey, Hot"); > notes.Add("notes_key_2", "Tea, Earl Grey, Hot"); > orderRequest.Add("notes", notes); > > Order order = client.Order.Create(orderRequest); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > para_attr = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "notes": { > "key1": "value3", > "key2": "value2" > } > } > > Razorpay::Order.create(para_attr) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > instance.orders.create({ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "partial_payment": false, > "notes": { > "key1": "value3", > "key2": "value2" > } > }) > ``` > > ```go Go theme={null} > import ( razorpay "github.com/razorpay/razorpay-go" ) > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > data := map[string]interface{}{ > "amount": 50000, > "currency": "INR", > "receipt": "some_receipt_id", > "partial_payment": false, > "notes": map[string]interface{}{ > "key1": "value1", > "key2": "value2", > }, > } > body, err := client.Order.Create(data, nil) > ``` > > ```json Success Response theme={null} > { > "id": "order_IluGWxBm9U8zJ8", > "entity": "order", > "amount": 5000, > "amount_paid": 0, > "amount_due": 5000, > "currency": "INR", > "receipt": "rcptid_11", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1642662092 > } > ``` > > ```json Failure Response theme={null} > { > "error": { > "code": "BAD_REQUEST_ERROR", > "description": "Order amount less than minimum amount allowed", > "source": "business", > "step": "payment_initiation", > "reason": "input_validation_failed", > "metadata": {}, > "field": "amount" > } > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be 3 characters. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY and three decimal currencies, such as KWD, BHD and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7000 is to be received from the customer in two installments of #1 - โ‚น5000, #2 - โ‚น2000 then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > > Know more about [Orders API](/docs/api/orders). > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > > #### Test Heading > > The `razorpay_order_id`, returned on successful creation of the order, should be sent to the Checkout form. Additionally, you need to send an extra key-value pair as shown: > > ``` > { > "amount": "1000", > // and other options > > "order_id": "order_CuEzONfnOI86Ab" // Order ID generated using Orders API > } > ``` > > A successful payment for the Order returns `razorpay_order_id`, `razorpay_payment_id` and `razorpay_signature`, which is then used for payment verification. > [accordion] Display the Checkout Form on Your Website to Your Customer. > > You can display the [Standard Checkout form](/docs/payments/payment-gateway/web-integration/standard) on your website to collect payments from customers. Ensure that the `order_id` option is passed along with the other checkout options mentioned below. > > `key` *mandatory* > : `string` API Key ID generated from the Dashboard. > > `amount` *mandatory* > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > [!WARNING] > > > > **Watch Out!** > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > `currency` *mandatory* > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > [!NOTE] > > > > **Handy Tips** > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > `name` *mandatory* > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > `description` *optional* > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > `image` *optional* > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > `order_id` *mandatory* > : `string` Order ID generated via [Orders API](/docs/api/orders). > > `prefill` > : `object` You can prefill the following details at Checkout. > > > [!NOTE] > > > > **Boost Conversions and Minimise Drop-offs** > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > `name` *optional* > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > `email` *optional* > : `string` Email address of the customer. > > `contact` *optional* > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > * +14155552671 (a valid non-Indian number) > * +919977665544 (a valid Indian number). \ > If 9977665544 is entered, `+91` is added to it as +919977665544. > > `method` *optional* > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > >
    >
  • `card`
  • >
  • `netbanking`
  • >
  • `wallet`
  • >
  • `upi`
  • >
  • `emi`
  • >
> > `notes` *optional* > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > `theme` > : `object` Thematic options to modify the appearance of Checkout. > > `color` *optional* > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > `backdrop_color` *optional* > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > `modal` > : `object` Options to handle the Checkout modal. > > `backdropclose` *optional* > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > * `true`: Closes the form when your customer clicks outside the checkout form. > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > `escape` *optional* > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > * `true` (default): Closes the form when the customer presses the **escape** key. > * `false`: Does not close the form when the customer presses the **escape** key. > > `handleback` *optional* > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > `confirm_close` *optional* > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > * `true`: Confirmation dialog box is shown. > * `false` (default): Confirmation dialog box is not shown. > > `ondismiss` *optional* > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > `animation` *optional* > : `boolean` Shows an animation before loading of Checkout. Possible values: > > * `true`(default): Animation appears. > * `false`: Animation does not appear. > > `subscription_id` *optional* > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > `subscription_card_change` *optional* > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > * `true`: Allow the customer to change the card from Checkout. > * `false` (default): Do not allow the customer to change the card from Checkout. > > `recurring` *optional* > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > * `true`: You are accepting recurring payments. > * `false` (default): You are not accepting recurring payments. > > `callback_url` *optional* > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > `redirect` *optional* > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > `customer_id` *optional* > : `string` Unique identifier of customer. Used for: > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > `remember_customer` *optional* > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > * `true`: Enables card saving feature. > * `false` (default): Disables card saving feature. > > `timeout` *optional* > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > [!WARNING] > > > > **Watch Out!** > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > `readonly` > : `object` Marks fields as read-only. > > `contact` *optional* > : `boolean` Used to set the `contact` field as readonly. Possible values: > > * `true`: Customer will not be able to edit this field. > * `false` (default): Customer will be able to edit this field. > > `email` *optional* > : `boolean` Used to set the `email` field as readonly. Possible values: > > * `true`: Customer will not be able to edit this field. > * `false` (default): Customer will be able to edit this field. > > `name` *optional* > : `boolean` Used to set the `name` field as readonly. Possible values: > > * `true`: Customer will not be able to edit this field. > * `false` (default): Customer will be able to edit this field. > > `hidden` > : `object` Hides the contact details. > > `contact` *optional* > : `boolean` Used to set the `contact` field as optional. Possible values: > > * `true`: Customer will not be able to view this field. > * `false` (default): Customer will be able to view this field. > > `email` *optional* > : `boolean` Used to set the `email` field as optional. Possible values: > > * `true`: Customer will not be able to view this field. > * `false` (default): Customer will be able to view this field. > > `send_sms_hash` *optional* > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > * `true`: OTP is auto-read. > * `false` (default): OTP is not auto-read. > > `allow_rotation` *optional* > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > * `true`: Payment page can be rotated. > * `false` (default): Payment page cannot be rotated. > > `retry` *optional* > : `object` Parameters that enable retry of payment on the checkout. > > `enabled` > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > * `true` (default): Enables customers to retry payments. > * `false`: Disables customers from retrying the payment. > > `max_count` > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > [!WARNING] > > > > **Watch Out!** > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > `config` *optional* > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > `display` > : `object` Child parameter that enables configuration of checkout display language. > > `language` > : `string` The language in which checkout should be displayed. Possible values: > > * `en`: English > * `ben`: Bengali > * `hi`: Hindi > * `mar`: Marathi > * `guj`: Gujarati > * `tam`: Tamil > * `tel`: Telugu > [accordion] Verify the Signature Post Checkout Form Submission. > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > [accordion] Display the Confirmation Message to the Customer. > > You must display a `payment successful` message to the customer. > [accordion] Mark the Platform Order as Successful. > > After verifying the signature, fetch the order in your system that corresponds to `razorpay_order_id` in your database. You can now mark this fetched order as successful and process the order. > > You can make a test payment to check whether the integration works. ## Common Issues Faced During Integration Following are some of the common issues that you must watch out for while integrating: 1. Not storing the Razorpay order ID at your end. 2. Passing the amount from the frontend to the Razorpay order creation call. 3. Passing `USD` or any other `non-SGD` currency while creating the order. 4. Passing `razorpay_order_id` from the frontend while verifying the signature. Alternatively, you can use this value to check the integrity of the signature while looking up the corresponding order at your end with this Razorpay order ID and marking only that as successful. ## Support If you have queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/). # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/build-your-own/faqs Find answers to frequently asked questions about building a custom plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] How do I sign up for a test account? > > You can sign up for a Razorpay account from the Dashboard sign up page. You don't need to submit any documents to access test mode. All to need to do is verify your email address. > Refer to the [Set up your Razorpay Account](/docs/payments/set-up) page for more details. > [accordion] How do I find SDKs for various languages? > > We provide ready-to-use SDK packages for various languages. For a complete list of all available integrations, refer to the [Razorpay Integrations Page](https://razorpay.com/integrations/). If the language you prefer is not in the list, you can continue making the requests using CURL or HTTP package of that particular language. > [accordion] How to create a Razorpay API instance? > > Refer to the the README file of that particular SDK for these details. > [accordion] How do I find my Razorpay credentials? > > The email and password is only used to log in to the Dashboard. > To authenticate APIs, you will need to generate a `Key_ID` and `Key_Secret`. You can generate these from the **Settings** section of your Dashboard. > [Generate API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. > [accordion] How do I find the base URL for Razorpay API? > > The current Razorpay API is versioned at v1, so all requests should be made to `https://api.razorpay.com/v1/`. > [accordion] How do I find sample code for my language? > > We have sample applications for many languages all of which can be found on the [Razorpay Integrations Page](https://razorpay.com/integrations/). # CS-Cart Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/cs-cart Check the prerequisites before you integrate your CS-Cart website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay CS-Cart plugin. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. [Video Tutorial](https://www.youtube.com/embed/voiOPS2av6I?si=o1kO0mbb-xDy7Xhe) Video Tutorial Watch the video before you start integrating the CS-Cart plugin with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart/integration-steps) > > Check the steps to integrate the CS-Cart plugin with Payment Gateway. ## Supported Products Razorpay CS-Cart Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | x | ## Support * Queries: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-cscart/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/cs-cart/integration-steps Steps to integrate your CS-Cart website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow the steps given below to integrate Razorpay Payment Gateway with your CS-Cart website.\ > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart/integration-steps#1-build-integration) > > Install and configure the CS-Cart plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with your CS-Cart based website using our payment extension.](https://www.youtube.com/embed/voiOPS2av6I) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Installation > > 1. Ensure you have the latest version of CS-Cart installed. > 2. Download the latest [Source code zip file](https://github.com/razorpay/razorpay-cscart/releases) from the releases section. Unzip the repository. > 3. Run the `install.razorpay.sql` file, which can be found inside the unzipped package, against your CS-Cart database. To do this, you can either: > * Use phpMyAdmin to import the file into your CS-Cart database. > * Copy and paste the content and run it directly in your MySQL shell. > 4. Upload the rest of the plugin's contents to your CS-Cart Installation directory. > 1. The app folder's content goes into your CS-Cart Installation directory. > 2. The content of the design folder goes into the design folder in your CS-Cart Installation directory. > [accordion] 2 Configuration > > 1. Log in to CS-Cart as administrator. > 2. Navigate to **Administration** โ†’ **Payment Methods**. > 3. Add a new payment method. > 4. Select **Razorpay** from the list and then click **Save**. Select `cc_outside.tpl` for the template. > 5. Navigate to the **Configure** tab. > 6. Add your \[KEY\_ID] and \[KEY\_SECRET] generated from the Razorpay Dashboard. > [!NOTE] > > **Handy Tips** > > Webhook is auto-configured when you enter and save the API key ID and secret on the plugin settings page. You need to verify that webhooks are enabled on your Razorpay [Dashboard](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart/troubleshooting-faqs#how-can-i-verify-if-webhooks-are-enabled). However, for versions lower than 1.4.0, you need to [manually configure webhooks](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart/troubleshooting-faqs#my-webhooks-are-not-auto-configured-since-i-am-not-using-the-upgraded-version-of-cs-cart-how-do-i-manually-configure-webhooks). ## 2. Test Integration After the integration, Razorpay is added as a payment option on your web page/app. You need to click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual customer payments once the test is successful. ![](https://razorpay.com/docs/build/browser/assets/images/pg-cs-cart-plugin.jpg) You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > You can track the payment status from the Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/cs-cart/troubleshooting-faqs Troubleshoot common errors and find answers to frequently asked questions about CS-Cart Ecommerce Plugin integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] My Webhooks are not auto-configured since I am not using the upgraded version of CS-Cart. How do I manually configure webhooks? > > To set up webhooks: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > > 2. In the **Website and app settings** section, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > > 3. Click **+ Add New Webhook**. > > ![](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-1.jpg) > > 4. In the **Webhook Setup** pop-up page: > > 5. Enter the **URL** where you want to receive the webhook payload when an event is triggered. We recommended using an HTTPS URL. > > > [!NOTE] > > > > **Handy Tips** > > > > You can set up to **10 URLs** to receive Webhook notifications. Webhooks can only be delivered to public URLs. If you attempt to save a localhost endpoint as part of a webhook setup, you will notice an error. Know more about [testing Webhooks on an application running on localhost](/docs/webhooks/validate-test#application-running-on-localhost). > > 6. Enter a **Secret** for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about [how to validate webhooks](/docs/webhooks/validate-test). > > > [!NOTE] > > > > **Handy Tips** > > > > * When setting up the webhook, you will be asked to specify a secret. Using this secret, you can validate that the webhook is from Razorpay. Entering the secret is optional but recommended. The secret should never be exposed publicly. > > * The webhook secret does not need to be the merchant secret key provided by Razorpay. > > 7. In the **Alert Email** field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook deactivation notifications to this email address. > 8. Select the required events from the list of **Active Events**. > > ![](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-2.jpg) > 9. Click **Create Webhook**. > 10. After you set up a webhook, it appears on the list of webhooks. > [accordion] How can I verify if webhooks are enabled? > > To verify if webhooks are enabled: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings**, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Select the relevant webhook **URL**. > 4. On the right panel, check if the status for `payment.authorized`, `refund.created` and `virtual_account.credited` is enabled. > > ![List of webhooks created](https://razorpay.com/docs/build/browser/assets/images/plugin-webhook-faq.jpg) > [accordion] What troubleshooting procedures should be carried out prior to initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Reinstall the Razorpay CS-Cart plugin and ensure that your system meets all the requirements mentioned [here](/docs/payments/payment-gateway/ecommerce-plugins/cs-cart/integration-steps). > 2. We recommend you to keep your Razorpay CS-Cart plugin up to date. You can find the latest versions [here](https://github.com/razorpay/razorpay-cscart/releases). > 3. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * Razorpay CS-Cart plugin version > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Staging website credentials (login URL, login id, and password) > [accordion] Does the CS-Cart plugin support 3 or 0 decimal unit currencies? > > The CS-Cart plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). # Drupal Commerce Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce Check the prerequisites before you integrate your Drupal Commerce website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay Drupal Commerce plugin. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. ## Supported Versions * Drupal v10 or higher. * Drupal commerce v2.33 or higher. * PHP v8.10 or higher. [Video Tutorial](https://www.youtube.com/embed/37CjF-XNT70?si=e5cWAGO70V49zRHA) Video Tutorial Watch the video before you start integrating the Drupal Commerce plugin with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce/integration-steps) > > Check the steps to integrate the Drupal Commerce plugin with Payment Gateway. ## Supported Products Razorpay Drupal Commerce Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | x | ## Support If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce/integration-steps Steps to integrate your Drupal Commerce website with the Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow the steps given below to integrate Razorpay Payment Gateway with your Drupal Commerce website.\ > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce/integration-steps#1-build-integration) > > Install and configure the Drupal Commerce plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with Drupal Commerce Website](https://www.youtube.com/embed/37CjF-XNT70?si=e5cWAGO70V49zRHA) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Download and Upload Plugin > > To upload the plugin: > > 1. [Download](https://github.com/razorpay/drupal_commerce_razorpay/releases) the `drupal_commerce_razorpay.zip`. > 2. Log in to your [Drupal Commerce account](https://drupal.plugin.razorpay.in/) and navigate to **Extend**. > > ![Navigate to Extend on Drupal](https://razorpay.com/docs/build/browser/assets/images/drupal-extend.jpg) > 3. Click **+ Add new module**. > 4. Add the module from **URL** or click **Choose file** and select the .zip file downloaded previously. > 5. Click **Continue**. > > ![Add/upload drupal .zip file/URL](https://razorpay.com/docs/build/browser/assets/images/add-drupal-plugin1.gif) > > You have successfully uploaded the plugin. > > > [!NOTE] > > > > **Handy Tips** > > > > Alternatively, you can skip this step and simply run `composer require 'drupal/drupal_commerce_razorpay:^1.0'` in your drupal directory to download the plugin. You can view the downloaded file in the `contrib` folder. > [accordion] 2 Install Plugin > > To install the plugin: > > 1. On your Drupal Commerce Dashboard, navigate to **Extend**. > 2. Search for **Razorpay** in the **Filter** section. > 3. Select **Commerce Razorpay** and click **Install**. > > ![Install drupal plugin](https://razorpay.com/docs/build/browser/assets/images/drupal-install-plugin.jpg) > [accordion] 3 Configure Plugin > > To configure the plugin: > > 1. On your Drupal Commerce Dashboard, navigate to **Commerce**. > > 2. Click **Configuration**. > > ![Navigate to commerce to configure the plugin](https://razorpay.com/docs/build/browser/assets/images/drupal-commerce-config.jpg) > > 3. In the **Payment** section, select **Payment gateways**. > > ![Configure the payment gateway](https://razorpay.com/docs/build/browser/assets/images/drupal-config-pg.jpg) > > 4. Click **+ Add payment gateway**. > > ![Add the payment gateway](https://razorpay.com/docs/build/browser/assets/images/drupal-config-add-pg.jpg) > > 5. In the **Name** section, enter **Razorpay** and select **Razorpay** as the **Plugin**. > > 6. Select **Test** Mode to test the integration and enter the test **Key ID** and **Secret** generated from the Razorpay [Dashboard](/docs/api/authentication#generate-api-keys). > > > [!NOTE] > > > > **Handy Tips** > > > > To go live with the integration and start accepting real payments: > > > > * Select **Live** Mode. > > * Generate [Live Mode API Keys](/docs/api/authentication#live-mode-api-keys) and replace the test keys with the live keys in the integration. Click **Save**. > > > > ![Switch to live mode](https://razorpay.com/docs/build/browser/assets/images/drupal-live-mode.jpg) > > 7. Select the **Payment Action** based on your requirement. Set the Payment Action to **Authorize and Capture** to auto-capture payments. If you want to capture payments manually, set the Payment Method to **Authorize**. > > 8. Select **Enabled** in the **Status** section. > > 9. Click **Save**. > > ![Configure the Razorpay payment gateway](https://razorpay.com/docs/build/browser/assets/images/drupal-config.gif) > > > [!NOTE] > > > > **Handy Tips** > > > > If you want to edit any fields, navigate to **Commerce** โ†’ **Configuration**. Select **Payment Gateway** and click **Edit**. > > You have successfully integrated the Razorpay Payment Gateway with your Drupal Commerce website. > > > [!NOTE] > > > > **Handy Tips** > > > > * Webhooks are auto-configured when you enter and submit the API key ID during the installation. You can verify if webhooks are enabled on your Razorpay Dashboard. > > * The `payment.authorized`, `payment.failed` and `refund.created` events are auto-configured. You do not have to configure it on the Razorpay Dashboard. ## 2. Test Integration After the integration is complete, a payment button will appear on your web page/app. You need to click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual payments from your customers once the test is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/api/authentication#generate-api-keys) in the **Configuration** section of the Drupal Commerce Dashboard. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. ![Test the integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/drupal-test2.gif) > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > You can track the payment status from the Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > You can perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. On your [Drupal Commerce Dashboard](https://drupal.plugin.razorpay.in/), navigate to **Commerce**. > 5. Click **Configuration**. > > ![Navigate to commerce to configure the plugin](https://razorpay.com/docs/build/browser/assets/images/drupal-commerce-config.jpg) > 6. In the **Payment** section, select **Payment gateways**. > > ![Configure the payment gateway](https://razorpay.com/docs/build/browser/assets/images/drupal-config-pg.jpg) > 7. Click **Edit**. > > ![Edit the payment gateway configurations](https://razorpay.com/docs/build/browser/assets/images/drupal-edit-config.jpg) > 8. In the **Mode** section, select **Live**. > 9. Replace the Test Key ID and Secret with the Live Keys and accept actual payments. > > ![Replace test keys with live ones](https://razorpay.com/docs/build/browser/assets/images/drupal-live-keys.jpg) > [accordion] 2 Payment Capture > > After a payment is `authorized`, you must capture it to settle the amount to your bank account as per the settlement schedule. > > Follow the steps given below to set a payment action: > > 1. On the [Drupal Commerce Dashboard](https://drupal.plugin.razorpay.in/), navigate to **Commerce**. > 2. Click **Configuration**. > > ![Navigate to commerce to configure the plugin](https://razorpay.com/docs/build/browser/assets/images/drupal-commerce-config.jpg) > 3. In the **Payment** section, select **Payment gateways**. > > ![Configure the payment gateway](https://razorpay.com/docs/build/browser/assets/images/drupal-config-pg.jpg) > 4. Click **Edit**. > > ![Edit the payment gateway configurations](https://razorpay.com/docs/build/browser/assets/images/drupal-edit-config.jpg) > 5. In the **Payment Action** section, you can choose to: > > ![Edit the payment capture settings](https://razorpay.com/docs/build/browser/assets/images/drupal-payment-capture.jpg) > > 1. **Authorize and Capture**: This setting captures all authorized payments automatically. This eliminates the time and effort spent manually capturing payments. > 2. **Authorize**: Each authorized payment can also be captured individually. > 1. Once a payment is completed, navigate to **Commerce** โ†’ **Orders**. > 2. Identify the order you want to capture the payment and click **View**. > > ![Identify the order](https://razorpay.com/docs/build/browser/assets/images/drupal-order.jpg) > 3. Navigate to **Payments**. > 4. In the **Operations** section, click **Capture**. > > ![Manually capture the payment](https://razorpay.com/docs/build/browser/assets/images/drupal-manual-capture.jpg) #### Refunds To initiate refunds using the Drupal Commerce Dashboard: 1. Log in to the [Drupal Commerce Dashboard](https://drupal.plugin.razorpay.in/). 2. After a payment is completed, navigate to **Commerce** โ†’ **Orders**. 3. Identify the order you want to initiate a refund and click **View**. ![Identify the order](https://razorpay.com/docs/build/browser/assets/images/drupal-order.jpg) 4. Navigate to **Payments**. 5. In the **Operations** section, click **Refund**. ![Issue a Refund](https://razorpay.com/docs/build/browser/assets/images/drupal-refund.jpg) 6. You can either issue a full refund or a partial refund. * For a **full refund**, enter the entire payment amount. * For a **partial refund**, enter a value lesser than the payment amount. 7. Click **Refund**. # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/drupal-commerce/troubleshooting-faqs Find answers to frequently asked questions about Drupal Commerce plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] How can I verify if webhooks are auto-configured? > > To verify if webhooks are enabled: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings** section, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Select the relevant webhook **URL**. > 4. On the right panel, check if the status for `payment.authorized`, `payment.failed` and `refund.created` is enabled. > [accordion] What is the difference between an Order Id and Order Number? > > **Order Id**: When a customer clicks the pay button on your app, an Order is created and a corresponding "order\_id" is generated in the response. \\ > > **Order Number**: It simply acts like a serial number. You can search a particular order with the help of the Order Number. > > > [!NOTE] > > > > **Handy Tips** > > > > To reconcile the payments, you can verify the Order Id from the Drupal Commerce Dashboard with **Order Id** mentioned on the Razorpay Dashboard. Navigate to **Transactions** โ†’ **Orders** or **Payments** on the Razorpay Dashboard to view the **Order Id**. > [accordion] How can I uninstall the plugin? > > Follow the step given below to uninstall the plugin: > > 1. Log in to your [Drupal Commerce Dashboard](https://drupal.plugin.razorpay.in/). > 2. Navigate to **Extend** โ†’ **Uninstall**. > 3. Search for **Razorpay** in the **Filter** section. > 4. Select the check box and click **Uninstall**. > > ![Uninstall Drupal plugin](https://razorpay.com/docs/build/browser/assets/images/drupal-uninstall.jpg) > [accordion] Does the Drupal Commerce plugin support 3 or 0 decimal unit currencies? > > The Drupal Commerce plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). # Easy Digital Downloads Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads Check the prerequisites before you integrate your Easy Digital Downloads website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay Easy Digital Downloads plugin. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. [Video Tutorial](https://www.youtube.com/embed/lsvPOgbHiV8?si=c57FAnd0OzgjKlfJ) Video Tutorial Watch the video before you start integrating the Easy Digital Downloads website with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads/integration-steps) > > Check the steps to integrate the Easy Digital Downloads website with Payment Gateway. ## Supported Products Razorpay Easy Digital Downloads Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | x | ## Support * Queries: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-edd). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads/integration-steps Steps to integrate your Easy Digital Downloads website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow the steps given below to integrate Razorpay Payment Gateway with your Easy Digital Downloads website.\ > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads/integration-steps#1-build-integration) > > Install and configure the Easy Digital Downloads plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with your Easy Digital Downloads based website using our payment extension.](https://www.youtube.com/embed/lsvPOgbHiV8) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Installation and Configuration > > 1. Download and install the latest version of the Easy Digital Downloads extension from the [WordPress plugin page](https://wordpress.org/plugins/easy-digital-downloads/). > > 2. Download the latest [razorpay-edd zip file](https://github.com/razorpay/razorpay-edd/releases) from the Releases section in GitHub. > > 3. Unzip and upload the extension contents to your `/wp-content/plugins/` directory. > > 4. Activate the extension via the WordPress **Plugins** menu. > > > [!NOTE] > > > > **Handy Tips** > > > > If you have downloaded the extension from GitHub or elsewhere, ensure that the directory is named `edd-razorpay`. > > 5. Log in to your [WordPress account](https://wordpress.com/log-in) and activate the extension in the **WordPress Plugin Manager**. > 6. Log in to your [Easy Digital Downloads account](https://easydigitaldownloads.com). > 7. Navigate to the **Settings** page and click the **Checkout/Payment Gateways** tab. > 8. Click **Razorpay** to edit the settings. > 9. Enable the Payment Method and name it Credit Card/Debit Card/Internet Banking (this will show up on the payment page your customer sees). > 10. Enter your `[KEY_ID]` and `[KEY_SECRET]`. Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Razorpay Dashboard. > 11. Click **Save** to save the changes. ## 2. Test Integration After the integration, a **Pay** button will appear on your web page/app. You need to click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual customer payments once the test is successful. ![](https://razorpay.com/docs/build/browser/assets/images/easy-digital-pay.jpg) You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > You can track the payment status from the Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/easy-digital-downloads/troubleshooting-faqs Troubleshoot common errors and find answers to frequently asked questions about Easy Digital Downloads Plugin integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] What troubleshooting procedures should be carried out prior to initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Reinstall the Razorpay for Easy Digital Downloads plugin. > > 2. We recommend you to keep your WordPress and Razorpay for Easy Digital Downloads plugins up to date. You can find the latest versions [here](https://github.com/razorpay/razorpay-edd/releases). > > 3. Ensure your current theme is compatible with the Razorpay for Easy Digital Downloads plugin. If not, switch to the default WordPress theme and provide us with the name of your current theme. > > 4. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * WordPress version > * Easy Digital Downloads version > * Razorpay for Easy Digital Downloads plugin version > * PHP version > * WordPress theme > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Staging website credentials (login URL, login id, and password) > [accordion] Does the Easy Digital Downloads plugin support 3 or 0 decimal unit currencies? > > The Easy Digital Downloads plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). # Gravity Forms Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms Check the prerequisites before you integrate your Gravity Forms website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Gravity Forms Changelog](/docs/payments/changelog#gravity-forms) > > Discover new features, updates and deprecations related to the Razorpay Gravity Forms plugin (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay Gravity Forms plugin. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Download and install the base Gravity Forms Plugin. * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. [Video Tutorial](https://www.youtube.com/embed/89GKc3z2JEc?si=o1kO0mbb-xDy7Xhe) Video Tutorial Watch the video before you start integrating the Gravity Forms plugin with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms/integration-steps) > > Check the steps to integrate the Gravity Forms plugin with Payment Gateway. ## Supported Products Razorpay Gravity Forms Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | x | ## Support * Queries: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-gravity-forms/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms/integration-steps Steps to integrate your WordPress website using the Gravity Forms plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow the steps given below to integrate Razorpay Payment Gateway with your Gravity Forms website.\ > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms/integration-steps#1-build-integration) > > Install and configure the WordPress plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway on your WordPress website using our Gravity Form plugin.](https://www.youtube.com/embed/89GKc3z2JEc) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Download Razorpay Gravity Forms Plugin and Configure Settings > > Follow the steps given below: > > 1. Download and install the Razorpay Gravity Forms Plugin. You can do this using either of these methods: > * [Download the latest version of the plugin from the WordPress Plugin Directory](https://github.com/razorpay/razorpay-gravity-forms/releases/latest) and add the zip file to your WordPress website's **Plugins** folder. > * Add the plugin directly on your WordPress website from the **Plugin** page. > > ![add wordpress plugin on website](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-gravity-forms-add-plugin-wordpress.jpg) > 2. On your WordPress site, activate the plugin in the **WordPress Plugin Manager**. \\ > > ![activate plugin](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-gravity-forms-activate-plugin.jpg) > 3. Click **Settings**. \\ > > ![open plugin settings](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-gravity-forms-plugin-settings.jpg) > 4. Configure the following information and click **Update Settings**: > * Add in your \[KEY\_ID] and \[KEY\_SECRET] generated from the Razorpay Dashboard. > * **Payment Action**: Set this to **Authorize and Capture**. > 5. Select the currency in which the payment must be accepted. > 1. Navigate to **Forms** โ†’ **Settings**. > 2. Under **General Settings**, go to the **Currency** field and choose the relevant currency. For this example, we will select **Indian Rupee**. > ![change currency](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-gravity-forms-change-currency.jpg) > [accordion] 2 Create a Gravity Form > > To create a Gravity Form: > > 1. Navigate to **Forms** โ†’ **New Form** and click **Add New**. > 2. Enter the form title and description in the **Create a New Form** dialog box. > 3. Click **Create Form**. > 4. Before entering the product details, you must select whether you are selling a subscription or a product/service. Navigate to **Settings** โ†’ **Razorpay** and configure the **Razorpay Feed**. > 1. In the **Razorpay Feed** settings, click **Add New**. > 2. Add a name for the feed. For example, `Ooty Green Tea`. > 3. Select `Products and Services` as the **Transaction Type**. > 4. Click **Update Settings**. > > ![select products and services](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-gravity-forms-feed-settings.jpg) > 5. Click **Edit** to start adding product details: > > ![](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-gravity-forms-edit-form.jpg) > > 1. Click **Pricing Fields** and select **Product**. > > ![configure gravity form](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-gravity-forms-configure-form.jpg) > 2. Click the form to enter the product details and click **Update**. > 1. **Field Label**: Enter the product name. For example, `Ooty Green Tea`. > 2. **Description**: Enter a description for the product. > 3. **Field Type**: Select the field type as required. > 4. **Price**: Enter the product price in INR. For example, `399.99`. > 5. **Disable Quantity Field**: Do not select this option if your customer wants to choose a quantity. > 6. **Rules**: Enable the **Required** check box to make the quantity field mandatory. > ![add product details](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-gravity-forms-product-details.jpg) > > The form is now ready to be added to your web pages. > [accordion] 3 Add the Form to a Webpage > > To add the form on a webpage: > > 1. Click **Pages** to navigate to the relevant page. > 2. Add a block and click the form icon. > > ![click form icon](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-gravity-forms-form-icon.jpg) > 3. Select the form to be added to the page. > > ![select form](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-gravity-forms-select-form.jpg) > 4. Once the form is added, you can choose to hide the form title and description. > 5. Click **Publish** or **Update**. > [!NOTE] > > **Handy Tips** > > Webhook is auto-configured when you enter and save the API key ID and secret on the plugin settings page. You need to [verify if webhooks are enabled](/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms/troubleshooting-faqs#how-can-i-verify-if-webhooks-are-enabled) on your Razorpay Dashboard. However, for versions lower than 1.3.2, you need to [configure webhooks manually](/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms/troubleshooting-faqs#my-webhooks-are-not-auto-configured-since-i-am-not-using-the-upgraded-version-of-gravity-forms-how-do-i-manually-configure-webhooks). ## 2. Test Integration After the integration, Razorpay will appear as a payment option on your web page/app. You need to click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual payments from your customers once the test is successful. ![Gravity Forms](https://razorpay.com/docs/build/browser/assets/images/pg-gravity-forms-plugin.jpg) You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > You can track the payment status from the Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/gravity-forms/troubleshooting-faqs Troubleshoot common errors and find answers to frequently asked questions about Gravity Forms Ecommerce Plugin integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] My Webhooks are not auto-configured since I am not using the upgraded version of Gravity Forms. How do I manually configure webhooks? > > To set up webhooks: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings** section, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Click **+ Add New Webhook**. > > ![](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-1.jpg) > 4. In the **Webhook Setup** pop-up page: > 1. Enter the **URL** where you want to receive the webhook payload when an event is triggered. We recommended using an HTTPS URL. > > > [!NOTE] > > > > **Handy Tips** > > > > You can set up to **10 URLs** to receive Webhook notifications. Webhooks can only be delivered to public URLs. If you attempt to save a localhost endpoint as part of a webhook setup, you will notice an error. Know more about [testing Webhooks on an application running on localhost](/docs/webhooks/validate-test#application-running-on-localhost). > > 1. Enter a **Secret** for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about [how to validate webhooks](/docs/webhooks/validate-test). > > > [!NOTE] > > > > **Handy Tips** > > > > * When setting up the webhook, you will be asked to specify a secret. Using this secret, you can validate that the webhook is from Razorpay. Entering the secret is optional but recommended. The secret should never be exposed publicly. > > * The webhook secret does not need to be the merchant secret key provided by Razorpay. > > 1. In the **Alert Email** field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook deactivation notifications to this email address. > 2. Select the required events from the list of **Active Events**. > > ![](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-2.jpg) > 3. Click **Create Webhook**. > 4. After you set up a webhook, it appears on the list of webhooks. \\ > [accordion] How can I verify if webhooks are enabled? > > To verify if webhooks are enabled: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings**, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Select the relevant webhook **URL**. > 4. On the right panel, check if the status for `payment.authorized`, `refund.created` and `virtual_account.credited` is enabled. > > ![List of webhooks created](https://razorpay.com/docs/build/browser/assets/images/plugin-webhook-faq.jpg) > [accordion] What troubleshooting procedures should be carried out prior to initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Reinstall the Razorpay for Gravity Forms plugin. > 2. We recommend you to keep your WordPress and Razorpay for Gravity Forms plugins up to date. You can find the latest versions [here](https://github.com/razorpay/razorpay-gravity-forms/releases). > 3. Ensure your current theme is compatible with the Razorpay for Gravity Forms plugin. If not, switch to the default WordPress theme and provide us with the name of your current theme. > 4. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * WordPress version > * Gravity Forms version > * Razorpay for Gravity Forms plugin version > * PHP version > * WordPress theme > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Staging website credentials (login URL, login id, and password) > [accordion] Does the Gravity Forms plugin support 3 or 0 decimal unit currencies? > > The Gravity Forms plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). # Magento Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/magento Check the prerequisites before you integrate your Magento website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Magento Changelog](/docs/payments/changelog#magento) > > Discover new features, updates and deprecations related to the Razorpay Magento plugin (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/magento/troubleshooting) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay Magento plugin. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. We support the following versions of Magento: * [Magento 1.x extension](/docs/payments/payment-gateway/ecommerce-plugins/magento/integration-steps#integration-steps-for-magento-1-x-extension) * [Magento 2.x extension](/docs/payments/payment-gateway/ecommerce-plugins/magento/integration-steps#integration-steps-for-magento-2-x-extension) Our extensions are supported on all operating systems, such as Windows, Mac OS, and Linux. > [!NOTE] > > **Handy Tips** > > As Magento 1.x is a legacy plugin, it is recommended that you use the Magento 2.x plugin. ### Upgrade Magento Extension If you are an existing user, you can upgrade the Magento extension using the composer. Enter the command given below: ```bash Upgrade theme={null} composer update razorpay/magento bin/magento setup:upgrade ``` > [!WARNING] > > **Watch Out!** > > If you have installed the plugin using the `code.zip` steps, you must install the [latest code.zip](https://github.com/razorpay/razorpay-magento/releases/latest) file again. [Video Tutorial](https://www.youtube.com/embed/22bvT3z1_98?si=d77Zzohb2ULRowVc) Video Tutorial Watch the video before you start integrating the Magento plugin with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/magento/integration-steps) > > Check the steps to integrate the Magento plugin with Payment Gateway. ## Supported Products Razorpay Magento Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | โœ“ | ## Support * Queries: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-magento/issues). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/magento/integration-steps Steps to integrate your Magento Extensions with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow the steps given below to integrate Razorpay Payment Gateway with your Magento website.\ > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/magento/integration-steps#1-build-integration) > > Install the Magento plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/magento/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/magento/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with Magento Website](https://www.youtube.com/embed/22bvT3z1_98?si=e5cWAGO70V49zRHA) ## 1. Build Integration Follow the steps given below to integrate Razorpay Payment Gateway with your Magento 1.x and 2.x Extensions. > [accordion] Integration Steps for Magento 1.x Extension > > > [accordion] Step 1: Download and Install via Repository > > > > Follow the steps given below to download and install Magento 1.x Extension. > > > > #### Download Repository > > > > 1. [Download](https://github.com/razorpay/razorpay-magento-v1/releases/latest) the `Razorpay-1.2.1.tgz` file from the latest release. > > 2. If you have **Onepage Checkout (IWD or Fire Checkout)**, [download](https://github.com/razorpay/razorpay-magento-v1/releases/latest) the Source Code zip from the latest release. With Onepage Checkout you can gather the required information from the shopper and complete the checkout process quickly. When Onepage Checkout is enabled, the entire checkout process takes place on a single page. > > > > ### Install Repository > > > > You can install the repository in two ways: > > > > > [tab] Install via Magento Connect > > > > > > 1. Go to Magento Connect Manager. > > > 2. Go to `Direct package file upload`. > > > 3. Click `Choose File` and select the TGZ file from Step 1. > > > 4. Click `upload`. > > > > > [tab] Install Without Magento Connect > > > > > > 1. Unzip and open the downloaded folder. > > > 2. Copy the **app** folder. > > > 3. Paste and merge it into the Magento root folder. > > > 4. Copy the **js** folder. > > > 5. Paste and merge it into the Magento root folder. > > > > Once installed, navigate to **Configuration** and then to **Payment Gateways** and [configure the extension](#step-2-configure-magento-store-1-x) to suit your needs. > > > [accordion] Step 2: Configure Magento Store 1.x > > > > To configure your Magento store for Razorpay: > > > > 1. Log in to your [Magento store](https://business.adobe.com/products/magento/magento-commerce.html/). > > > > 2. Click on the **System** tab and then select **Configuration** option from the drop-down list. > > > > ![](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-magento1.x-3.jpg) > > > > 3. Click **Payment Methods** in the menu panel. > > > > 4. Scroll down. Click **Razorpay** and enter your test mode `[KEY_ID]` and `[KEY_SECRET]`. > > > > ![](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-magento1.x-4.jpg) > > > > 5. Select **Yes** for the **Enabled** option. > > > > 6. Click **Save Config** button. This activates your account in the Test Mode. You can use this account to make a few test payments to ensure a successful workflow. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > In test mode, no real money is deducted from your account. > [accordion] Integration Steps for Magento 2.x Extension > > > [accordion] Step 1: Download and Install Extension > > > > You can install the extension through two ways: > > > > > [tab] Install Using Composer > > > > > > 1. Install the extension on your Magento store using the Composer Package Manager. Composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries. > > > 2. Go to your installation root directory of Magento and execute the following command: > > > > > > ```bash Command theme={null} > > > composer require razorpay/magento > > > bin/magento module:enable Razorpay_Magento > > > ``` > > > > > > 3. You can check if the installation was successful by executing the following command in the Magento root directory. > > > > > > ```bash Command theme={null} > > > bin/magento module:status > > > ``` > > > > > > > [!NOTE] > > > > > > > > **Handy Tips** > > > > > > > > You should see `Razorpay_Magento` in the status. It might appear on the disabled modules list. > > > > > > 4. Enable and deploy the Razorpay module using commands: > > > > > > ```bash Command theme={null} > > > bin/magento module:enable Razorpay_Magento > > > bin/magento setup:di:compile > > > bin/magento setup:upgrade > > > bin/magento cache:flush > > > bin/magento setup:static-content:deploy > > > ``` > > > > > > > [!NOTE] > > > > > > > > **Upgrade Magento Extension** > > > > > > > > If you are an existing extension user, you can [upgrade](/docs/payments/payment-gateway/ecommerce-plugins/magento#upgrade-magento-extension) to the latest version using the composer. > > > > > [tab] Install Without Composer > > > > > > 1. Download the `code.zip` file from the [latest release](https://github.com/razorpay/razorpay-magento/releases/latest). Extract the zip. > > > 2. Place the `code` folder from Step 1 in your `app` folder. If you're performing an update, replace/overwrite the existing `code` folder. > > > 3. Enable and deploy the Razorpay module using commands: > > > > > > ```bash Command theme={null} > > > bin/magento module:enable Razorpay_Magento > > > bin/magento setup:upgrade > > > ``` > > > > > > 4. Install Magento cron jobs using the command: > > > > > > ```bash Command theme={null} > > > bin/magento cron:install > > > ``` > > > > > > 5. Enter the following command to compile the dependency code: > > > > > > ```bash Command theme={null} > > > bin/magento setup:di:compile > > > ``` > > > > > > 6. Enter the following command to upgrade the Razorpay Magento module from the Magento installation folder: > > > > > > ```bash Command theme={null} > > > bin/magento setup:di:upgrade > > > ``` > > > > > > 7. On the Magento Admin Dashboard, open Razorpay payment method settings and click **Save Config**. > > > > > > > [!WARNING] > > > > > > > > **Watch Out!** > > > > > > > > If you see the message `One or more of the Cache Types are invalidated: Page Cache.` highlighted in yellow on the Admin page, go to **Cache Management** and refresh cache types. > > > > > > 8. Run the following command: > > > > > > ```bash Command theme={null} > > > bin/magento cache:flush > > > ``` > > > [accordion] Step 2: Configure Magento Store 2.x > > > > To configure your Magento store for Razorpay: > > > > 1. Log in to your [Magento store](https://business.adobe.com/products/magento/magento-commerce.html/). > > > > 2. Choose **Stores** on the Admin sidebar to the left. Now go to **Settings** โ†’ **Configuration**. > > > > ![](https://razorpay.com/docs/build/browser/assets/images/plugins-magento-magento-2.x-1.jpg) > > > > 3. In the **Configuration** page, click on **Sales** on the left and choose **Payment Methods**. > > > > ![](https://razorpay.com/docs/build/browser/assets/images/plugins-magento-magento-2.x-2.jpg) > > > > 4. In the **Payment Methods** page, navigate to Razorpay. > > > > ![](https://razorpay.com/docs/build/browser/assets/images/plugins-magento-magento-2.x-1.jpg) > > > > 5. Enter your test mode \[KEY\_ID] and \[KEY\_SECRET]. These can be [generated from the Razorpay Dashboard](/docs/api/authentication#generate-api-keys). > > > > 6. Select **Yes** for the option **Enabled**. > > > > 7. Click **Save Config**. This activates your account in the test mode. You can use this account to make a few test payments and ensure a successful workflow. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > In test mode, no real money is deducted from your account. > > > [accordion] Step 3: Set Up Webhooks > > > > Webhooks are triggered when certain events occur. Subscribe to webhook events to receive notification (in the form of a webhook payload) when these events occur. > > > > Setting up webhooks makes your integration more robust, and guards against issues arising from poor connectivity. The webhook URL is available on the plugin's settings page. You must copy it from there and use it to set up webhook on the Razorpay Dashboard. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > * If you are using Magento plugin version 3.4.1, ensure the webhook delay is set to a minimum of 300 seconds. > > > * Webhook is auto-configured on Magento plugin version 3.8.1-beta and above. For versions lower than 3.8.1-beta, you should [configure webhooks manually](/docs/payments/payment-gateway/ecommerce-plugins/magento/integration-steps#step-3-set-up-webhooks). > > > > To set up webhooks in the Razorpay Dashboard: > > > > 1. Log in to the Razorpay Dashboard. > > 2. Navigate to **Accounts & Settings** โ†’ **Webhooks**. > > 3. Click + Add New Webhook. > > 4. In the Webhook Setup modal: > > * Paste the URL copied from the Magento site. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Webhooks can only be delivered to public URLs. If you attempt to save a localhost endpoint as part of a webhook set-up, you will notice an error. Please refer to the [test webhooks](/docs/webhooks/validate-test) section for alternatives to localhost. > > > > * Enter the Secret you had provided on the Magento site. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about [webhooks validation](/docs/webhooks/validate-test#validate-webhooks). > > > > * In the **Alert Email field**, enter the email address to which notifications must be sent in case of webhook failure. > > > > * Select only the `order.paid` event from the list of **Active Events**. > > > > 5. Click **Create Webhook**. > > > > Know more about [webhooks](/docs/webhooks). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If the notification says Razorpay table is not set up correctly, please contact our [Support team](https://razorpay.com/support/). > > > [accordion] Step 4: Set Up Cron With Magento > > > > Setup cron with Magento to execute Razorpay cronjobs for the following actions: > > > > **Cancel Pending Orders** \\ > > > > It will cancel the order created by Razorpay according to the timeout saved in the configuration if Cancel Pending Order is enabled. > > > > **Update Order to Processing** \\ > > > > Accepts response from Razorpay Webhook for events `payment.authorized` and `order.paid` and updates pending order to processing. > > > > Install Magento cron jobs using the command: > > > > ```bash Command theme={null} > > bin/magento cron:install > > ``` ## 2. Test Integration After the integration, a **Pay** button will appear on your web page/app. You need to click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual payments from your customers once the test is successful. ![](https://razorpay.com/docs/build/browser/assets/images/magento-pay.jpg) You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > You can track the payment status from the Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/magento/troubleshooting Know how to troubleshoot some of the common error messages and find answers to frequently asked questions for Magento extensions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Know how to troubleshoot some of the common error messages for Magento 1.x and 2.x extensions. ## Troubleshooting for Magento 1.x Extension Below are some common error messages and the possible reasons and fixes: | Error | Cause | Fix | | - | - | - | | Bad request error | The API keys (\[KEY\_ID] and \[KEY\_SECRET]) are not configured correctly. | Make sure that the API Keys are active and entered correctly on the Magento Settings page. | | Bad request error | You might be using a custom checkout theme like IWD and Firecheckout. | Make sure that you are using the GitHub/master branch. | | cURL error | You do not have PHP-cURL installed on your server. | Ensure that you have PHP-cURL installed on your server. | | cURL error | Port 443 is blocked. | Contact your hosting service to unblock the port. | ## Troubleshooting for Magento 2.x Extension Below are some common error messages and the possible reasons and fixes: | Error | Cause | Fix | | - | - | - | | Bad request error | The API Keys (\[KEY\_ID] and \[KEY\_SECRET]) are not configured correctly. | Make sure that the API Keys are active and entered correctly on the Magento Settings page. | | Bad request error | You may be using a custom checkout theme like IWD and Firecheckout. | Make sure that you are using the GitHub/master branch. | | cURL error | You do not have PHP-cURL installed on your server. | Ensure that you have PHP-cURL installed on your server. | | cURL error | Port 443 is blocked. | Contact your hosting service to unblock the port. | | Undefined index: Razorpay in /app/code/Razorpay/Magento/ Observer/AfterConfigSaveObserver.php | This issue is due to an error in module compilation. | Run `run bin/magento setup:di:compile` to recompile. | | The following modules are outdated: โ€ข Razorpay\_Magento schema: Current Version - None, Required Version - 3.6.2 โ€ข Razorpay\_Magento data: Current Version - None, Required Version - 3.6.2 | The Razorpay Magento plugin version is outdated. | [Download](https://github.com/razorpay/razorpay-magento) and install the latest Razorpay Magento Plugin. | | Column not found: 1054 Unknown column "'main\_table.rzp\_webhook\_notified\_at' in 'field list', query was: SELECT main\_table.entity\_id, main\_table.rzp\_webhook\_notified\_at FROM sales\_order AS main\_table." | The Razorpay Magento plugin version is outdated. | Make sure that you update the plugin to the latest version. | ## FAQs > [accordion] What troubleshooting procedures should be carried out prior to initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Ensure that your system meets all the requirements mentioned [here](/docs/payments/payment-gateway/ecommerce-plugins/magento). > 2. We recommend you to keep your Magento and Razorpay plugins up to date. You can find the latest versions [here](https://github.com/razorpay/razorpay-magento/releases). > 3. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * Magento version (1.x/2.x) > * Razorpay Magento plugin version > * PHP version > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Magento staging website credentials (login URL, login id, and password) > * SSH/FTP access to the staging server > [accordion] Is PWA (Progressive Web Apps) supported for Magento Plugin? > > Yes, Magento Plugin supports Progressive Web Apps (PWA) through GraphQL. > [accordion] If you initiate a refund on the AxisHDFC VAS Dashboard, will the same status reflect on the Magento Dashboard? > > Initiating a refund on the Razorpay Dashboard does not automatically update the status on Magento. The refund process is typically managed through the Magento Dashboard. The status changes made on the Magento Dashboard are then reflected on the Razorpay Dashboard. > [accordion] How can I create a Custom Order Status in Magento? > > Below are the steps to create a Custom Order Status in Razorpay Magento: > > **Step 1: Create a customer order status.** > > 1. Go to **Stores** โ†’ **Order Status** (under Settings) on the Magento Admin Dashboard. > > ![Magento Admin Dashboard order status](https://razorpay.com/docs/build/browser/assets/images/magento-order-status-new.jpg) > 2. On **Order Status** page, click **Create New Status**. > > ![Magento Create new status on Admin Dashboard](https://razorpay.com/docs/build/browser/assets/images/magento-create-new-status-new.jpg) > 3. On the **Create New Order Status** page: > * Insert a **Status Code** under the **Order Status Information** section for internal reference. > > > [!NOTE] > > > > **Handy Tips** > > > > This field must contain letters (a-z), numbers (0-9), and the underscore. You must use letters at the first character. The rest can be a combination of letters and numbers. > > * Set the **Status Label** for Admin and storefront. > * Set the **Default Store View** under **Store View Specific Labels** for each store view. > > ![Magento order status information](https://razorpay.com/docs/build/browser/assets/images/magento-order-status-information-new.jpg) > > 4. Click **Save Status** to complete. > > ![Magento order status information save](https://razorpay.com/docs/build/browser/assets/images/magento-order-status-save-new.jpg) > > **Step 2: Un-assign existing status.**\\ > > 1. Un-assign the existing status code that is in use. > * If State Code and Title is `processing[Processing]`, the `processing` status is already in use for state `processing`. > > * Un-assign this status from the existing state code `processing`, so the state will be available for your custom status code. > > > [!WARNING] > > > > **Watch Out!** > > > > If you get the following error "The status can't be unassigned because the status is currently used by an order.", directly move to step 3. > > **Step 3: Assign an order status to a state.** > > 1. Go to the **Order Status** page, and click **Assign Status to State**. > > ![Magento assign status to state](https://razorpay.com/docs/build/browser/assets/images/magento-assign-status-to-state-new.jpg) > 2. On the **Assign Order Status to State** page: > * Select the **Order Status** to assign from the existing order status list. > * Select the **Order State** as `processing` to include the order status you have just assigned. > * Select the **Use Order Status As Default** checkbox to accept the Order Status as a default. > * Select the **Visible On Storefront** checkbox to enable the order status on the storefront. > > ![Magento assignment information](https://razorpay.com/docs/build/browser/assets/images/magento-assignment-information-new.jpg) > > 3. Click **Save Status Assignment** to complete. > > ![Magento save status information](https://razorpay.com/docs/build/browser/assets/images/magento-save-status-assignment-new.jpg) > > **Step 4: Using custom order status for Razorpay Magento.** > > 1. On the Magento Admin Dashboard, open Razorpay payment method settings. > 2. On the **Configuration** page: > * At **Enable Custom Paid Order Status** field, select **Yes** to enable custom order status, and select **No** to disable custom order status. > * Insert **Custom Paid Order Status** value in the input field, providing the same value as the Status Code while creating custom status. > > ![Magento configuration](https://razorpay.com/docs/build/browser/assets/images/magento-configuration-new.jpg) > > 3. Click **Save Config** and refresh the cache. > > ![Magento save configuration](https://razorpay.com/docs/build/browser/assets/images/magento-save-confi-new.jpg) > [accordion] I am getting the following error message "Column not found: 1054 Unknown column 'main\_table.rzp\_webhook\_notified\_at' in 'field list', query was: SELECT main\_table.entity\_id, main\_table.rzp\_webhook\_notified\_at FROM sales\_order AS main\_table." > > If you encounter this error message, [update](/docs/payments/payment-gateway/ecommerce-plugins/magento/integration-steps#step-1-download-and-install-extension) the plugin to the latest version to resolve the issue. > [accordion] Does the Magento plugin support 3 or 0 decimal unit currencies? > > The Magento plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). # OpenCart Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/open-cart Check the prerequisites before you integrate your OpenCart website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [OpenCart Changelog](/docs/payments/changelog#opencart) > > Discover new features, updates and deprecations related to the Razorpay OpenCart plugin (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/open-cart/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay OpenCart plugin. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. ## Supported Versions We support the following versions of OpenCart with separate extensions: OpenCart 4, OpenCart 3, OpenCart 2 and OpenCart 1.5. [Video Tutorial](https://www.youtube.com/embed/lVzskQnl170?si=8oFLvYKsLJY8vZSN) Video Tutorial Watch the video before you start integrating the OpenCart plugin with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/open-cart/integration-steps) > > Check the steps to integrate the OpenCart plugin with Payment Gateway. ## Supported Products Razorpay OpenCart Plugin is only supported on Web Standard Checkout and the following products: | Plugin | Payment Gateway | Route | Subscriptions | | - | - | - | - | | OpenCart 1.5 | โœ“ | x | x | | OpenCart 2 | โœ“ | x | x | | OpenCart 3 | โœ“ | x | โœ“ | | OpenCart 4 | โœ“ | x | โœ“ | ## Support * Queries: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-opencart/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/open-cart/integration-steps Steps to integrate your OpenCart Extension with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow the steps given below to integrate Razorpay Payment Gateway with your OpenCart Extension. > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/open-cart/integration-steps#1-build-integration) > > Install and configure the OpenCart plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/open-cart/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/open-cart/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with OpenCart Website](https://www.youtube.com/embed/lVzskQnl170) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Install Plugin > > 1. Download the latest Source code zip file of the required version of the plugin. > > 2. Download the latest release of the OpenCart 4 plugin from the [Releases section](https://github.com/razorpay/razorpay-opencart/releases) in GitHub. Tags for OpenCart 4 are opencart4-6.x.y. > > > [!WARNING] > > > > **Watch Out!** > > > > When installing the Razorpay plugin for Opencart 4, ensure that your zip folder only contains the following folders and file, with no hidden files: > > > > * `admin/` > > * `catalog/` > > * `system/` > > * `install.json` > > 1. Download the latest release of the OpenCart 3 plugin from the [Releases section](https://github.com/razorpay/razorpay-opencart/releases) in GitHub. Tags for OpenCart 3 are opencart3-1.x.y. > 2. For OpenCart 2, [download this release](https://github.com/razorpay/razorpay-opencart/releases/tag/opencart2-3.0.0) from GitHub. Tags for OpenCart 2 are opencart2-3.x.y. > 3. For OpenCart 1.5, [download this release](https://github.com/razorpay/razorpay-opencart/releases/tag/opencart1.5-1.0.0) from GitHub. Tags for OpenCart 1.5 are opencart1.5-1.x.y. > 4. Navigate to **Extensions** โ†’ **Installer** and click **Upload**. Choose the zip file. > [accordion] 2 Configure OpenCart > > Configure OpenCart as given below: > > 1. Log in to [OpenCart](https://www.opencart.com/). > 2. Navigate to the **Admin Panel** โ†’ **Extensions** โ†’ **Payments** to install the Razorpay Payment Gateway extension. > 3. Click **Edit**. Complete the following steps: > 1. Add in your Key\_ID and Key\_Secret generated from the Razorpay Dashboard. > > 2. Change extension status to **Enabled**. > > 3. Click **Save** to save the extension settings. > > > [!NOTE] > > > > **Handy Tips** > > > > Webhook is auto-configured on OpenCart 3 (versions 5.0.0 and above) and OpenCart 4 when you enter and save the API key ID and secret on the plugin settings page. You need to verify if webhooks are enabled on your Razorpay [Dashboard](/docs/payments/payment-gateway/ecommerce-plugins/open-cart/troubleshooting-faqs#how-can-i-verify-if-webhooks-are-enabled). \\ > > > > However, for versions lower than 5.0.0, you must [configure webhooks manually](/docs/payments/payment-gateway/ecommerce-plugins/open-cart/troubleshooting-faqs#my-webhooks-are-not-auto-configured-since-i-am-not-using-the-upgraded-version-of-opencart-how-do-i-manually-configure-webhooks). > > #### Create Cron for OpenCart 3 > > Create a Cron for Webhook using cpanel, follow the steps given below: > > 1. Log on to your cPanel Interface. > 2. Go to **Advanced** section. > 3. Click **Cron Jobs**. > 4. Select the specific time from the lists provided (every 5 minutes). > 5. Enter `https:///index.php?route=extension/payment/razorpay/rzpWebhookCron/` in the **Command** field. > > For more information about Cron, refer to [OpenCart Crons](https://docs.opencart.com/developer-guide/cron-jobs). ## 2. Test Integration After the integration, Razorpay will appear as a payment option on your webpage/app. You need to click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual payments from your customers once the test is successful. ![Open Cart](https://razorpay.com/docs/build/browser/assets/images/pg-opencart-plugin-test.jpg) You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > You can track the payment status from the Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). # Shopify Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/shopify Know how to integrate Razorpay Payment Gateway with your Shopify store. Complete guide for Shopify payment integration with Razorpay Secure app. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [!WARNING] > > **Plugin Renamed** > > In your Shopify admin, the Razorpay plugin is listed as **01 Cards, UPI, NB, Wallets by Razorpay**. To install it, go to **Settings** โ†’ **Payments** โ†’ **Add payment method**, click **Search by provider** and search for **01 Cards, UPI, NB, Wallets by Razorpay**. Your customers see it at checkout as **Razorpay Secure (UPI, Card, Int'l Card, Apple Pay)**. The plugin was earlier listed as **1Razorpay - UPI, Cards, Wallets, NB** and **All-in-one Razorpay Payment Gateway**. > [card] [Shopify Changelog](/docs/payments/changelog#shopify) > > Discover new features, updates and deprecations related to the Razorpay Shopify integration (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/shopify/faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay Shopify integration. Razorpay Shopify integration allows you to accept payments on your Shopify store using the Razorpay Secure app. This guide covers how to integrate Razorpay with Shopify, enabling UPI, Cards, Wallets and Netbanking payments. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Sign up for a [Shopify account](https://www.shopify.in). * [Ensure that your website](/docs/payments/dashboard/account-settings/business-website-details#add-and-edit-website/app/additional-websites) is reviewed before initiating integration with Shopify. * A Razorpay Account with access to the account ownerโ€™s credentials. (Only owners can connect Razorpay with Shopify, and API keys are not required for integration.) [Video Tutorial](https://www.youtube.com/embed/eFVzIr1lsdA?si=PovdZ0Xi8jWyj0EJ) Video Tutorial Watch the video before you start integrating Razorpay Payment Gateway with your Shopify website using the Razorpay Secure app. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps) > > Check the steps to integrate your Shopify website with the Razorpay Payment Gateway. > [!WARNING] > > **Watch Out!** > > Follow the [migration steps](/docs/payments/payment-gateway/ecommerce-plugins/shopify/migration-steps#migration-steps) and upgrade to the **Razorpay Secure** App if you integrated with the Shopify store before 28th April 2022. This is to prevent payment failures. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps) > > Check the steps to integrate your Shopify website with the Razorpay Payment Gateway. > [!WARNING] > > **Watch Out!** > > Only Razorpay account owners can connect their Shopify account with Razorpay. ## Supported Products Razorpay Shopify Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | x | ### Demo Link * To experience the Shopify integration with Razorpay Payment Gateway, you can make a payment on our [Shopify Test Store](https://razorpay-live-store.myshopify.com/). * To test the international currency support on the Razorpay-Shopify integration, you can make test purchases (without paying) on our [Shopify International Test Store](https://razorpay-test-store-international.myshopify.com/). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/shopify/faqs Troubleshoot common errors and find answers to frequently asked questions about Shopify. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ## Integration & Setup > [accordion] Why can't I find the Razorpay plugin on the Shopify App Store? > > In your Shopify admin, the Razorpay plugin is listed as **01 Cards, UPI, NB, Wallets by Razorpay**. Your customers see it at checkout as **Razorpay Secure (UPI, Card, Int'l Card, Apple Pay)**. The plugin was earlier listed as **1Razorpay - UPI, Cards, Wallets, NB** and **All-in-one Razorpay Payment Gateway**. If you are unable to find the plugin, search for **01 Cards, UPI, NB, Wallets by Razorpay** under **Search by provider** in your Shopify payment settings or use the [direct link](https://accounts.shopify.com/store-login?redirect=settings%2Fpayments%2Falternative-providers%2F1058839) to access the app on your Shopify store. > [accordion] How do I integrate Razorpay Secure with my Shopify store? > > Follow the [build integration](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps#1-build-integration) steps to integrate Razorpay Secure with your Shopify store. > [accordion] Do I need API keys to integrate a payment app with Shopify? > > No, API keys are not required to integrate a payment app with Shopify. OAuth is used to handle the authentication process. > [accordion] I tried connecting Razorpay Secure to my AxisRazorpay account but was unsuccessful. When I try to reconnect, the screen appears different. How should I proceed? > > Follow the steps given below to connect Razorpay Secure with your Razorpay account: > > 1. When you try to reconnect, you will get the following screen. Click **Manage**. > > ![reconnect Razorpay Secure](https://razorpay.com/docs/build/browser/assets/images/razorpay-secure-reconnect.jpg) > > 2. You will be redirected to a landing page. Click **I am an existing user**. > > ![Existing Merchant Shopify](https://razorpay.com/docs/build/browser/assets/images/shopify-existing-merchant.jpg) > > 3. Scroll down and click **Login**. > > > [!NOTE] > > > > **Handy Tips** > > > > Make sure you log in with **owner** credentials to connect Razorpay with Shopify successfully. > > ![Razorpay login](https://razorpay.com/docs/build/browser/assets/images/shopify-login-v2.gif) > > 4. Click **Activate** on the activation screen on your Shopify Dashboard. \\ > > ![Shopify Authorize](https://razorpay.com/docs/build/browser/assets/images/shopify-1razorpay-activate.jpg) > > **Razorpay Secure (UPI, Card, Int'l Card, Apple Pay)** now appears as a Payment Gateway on your Shopify Store checkout.\\ > > ![Shopify Checkout](https://razorpay.com/docs/build/browser/assets/images/shopify-v2-checkout.jpg) > > This completes your integration. > [accordion] Why is the Activate button disabled? > > The Activate button may be disabled due to the plugin being integrated into another account or keyless authentication not being enabled. To enable the Activate button:\\ > > * **Check for Integration with Another Account:** Verify if you have integrated your Shopify Store with a different Razorpay MID. If yes, revoke access under applications and retry the Razorpay Secure [integration steps](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps#1-build-integration). \\ > > * **Enable Keyless Authentication:** Ensure keyless authentication is enabled from Razorpay's end. To enable keyless authentication contact our [Support team](https://razorpay.com/support/). > [accordion] I am getting the following error message, "Email ID Mismatch." Why? > > This error occurs when there is a discrepancy between the email IDs used in Shopify and Razorpay.\\ > > You can [update the email ID](/docs/payments/dashboard/account-settings/account-details#update-login-email) on Razorpay to match the one used in Shopify. Verify that the email ID associated with owner access on Razorpay matches the one used in Shopify. > [accordion] I get a blank screen when I try to log in to the account while integrating/migrating Razorpay Secure, and I am unable to proceed further. How to proceed further? > > A blank screen appears when the email id used to log in to Razorpay doesn't match the email ID registered with owner access on Razorpay. Make sure that you log in using the correct email ID. > [accordion] How do I uninstall Razorpay payment apps from Shopify? > > To uninstall any Razorpay payment app from your Shopify store, follow these steps: > > 1. Log in to your Shopify admin panel and navigate to **Settings**โ†’**Payments**. > 2. Click **Add payment methods**. > 3. Click Search by provider and type **Razorpay**. This will show all the Razorpay payment apps installed on your Shopify store. Click the Razorpay app that you wish to uninstall. > > ![Search Razorpay in Payment Providers](https://razorpay.com/docs/build/browser/assets/images/search-razorpay-payment-provider.jpg) > 4. Scroll down to the bottom and click the **Uninstall** button to remove the app from your Shopify store. > > ![Uninstall the app](https://razorpay.com/docs/build/browser/assets/images/uninstall-app.jpg) > > This will successfully uninstall the selected Razorpay payment app from your Shopify store. > [accordion] What should I do if I am confused between legacy and current plugin versions? > > To avoid confusion, uninstall the legacy version of the plugin and [re-install](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps#1-build-integration) the current plugin version (Razorpay Secure). > [accordion] Our Payment Gateway stopped displaying after migrating to Shopify. How can we reactivate it? > > After migrating your website to Shopify, you need to integrate with the official Shopify Razorpay Secure plugin, as your previous Payment Gateway integration from the old platform will not be carried over. Follow the [integration steps](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps) and once activated, your payment gateway will be displayed at checkout, allowing you to accept payments. ## Migration to Razorpay Secure > [accordion] Why do I need to upgrade to Razorpay Secure? > > Shopify has launched a new payment platform, which requires existing and new payment apps to meet a new set of secure guidelines. Razorpay has built a new app, Razorpay Secure, that complies with these new rules. > > > [!WARNING] > > > > **Watch Out!** > > > > Your customers' payments will fail if you do not upgrade to the Razorpay Secure app at the earliest. So, you must upgrade to Razorpay Secure to provide an uninterrupted payment experience to your customers. > [accordion] How do I upgrade to Razorpay Secure? > > You can upgrade to Razorpay Secure by following a simple migration process. Know more about [how to migrate to Razorpay Secure](/docs/payments/payment-gateway/ecommerce-plugins/shopify/migration-steps). > [accordion] Who all need to migrate to Razorpay Secure app? > > All Shopify and Shopify Plus merchants must migrate to the Razorpay Secure payments app to continue accepting payments without service disruptions. > [accordion] Who can perform the migration process for Razorpay Secure app? > > Only a Shopify Store Owner or Administrator can complete the migration for a Shopify account. They will need Razorpay account credentials to connect the two applications. > [accordion] What changes for me as a merchant after I upgrade to Razorpay Secure? > > Nothing will change for you or your customers if you upgrade to the Razorpay Secure app. If you do not migrate, Razorpay will not appear as a payment option for your customers once the old Razorpay app is deprecated. > [accordion] What if I do not deactivate the older Razorpay plugin? > > If you do not deactivate the older Razorpay plugin, two Razorpay payment gateways will be visible to your customers on your store checkout, which may lead to confusion. ## Checkout and Payment Issues > [accordion] My customer is getting the following error when they make payments on my Shopify store, "There was an issue processing your payment. Try again or use a different payment method." What should I do? > > Your customers may get the following error when making payments. > > ![Shopify page payment error](https://razorpay.com/docs/build/browser/assets/images/econ-shopify-payment-error.jpg) > > Uninstall and reinstall the Razorpay Secure app from your Shopify store to resolve the error. > > To uninstall the app: > > 1. Open your Shopify store in incognito mode. > 2. Navigate to **Settings** โ†’ **Payments**. Click **Manage** on **01 Cards, UPI, NB, Wallets by Razorpay**. > 3. Go to **Deactivate 01 Cards, UPI, NB, Wallets by Razorpay** and click **Uninstall 01 Cards, UPI, NB, Wallets by Razorpay**. This uninstalls the app. > > Follow the [build integration](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps#1-build-integration) steps to install the plugin again. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you uninstall and reinstall the app instead of only deactivating it. > > If your plugin still does not accept payments, contact [Support team](https://razorpay.com/support/). > [accordion] Why is my Shopify checkout showing only Razorpay Direct (cards) instead of all payment methods? > > You might have only integrated with Razorpay Direct - Credit Card Plugin, which supports card payments only. To accept UPI, Netbanking, Wallets and Cards at checkout, you need to [integrate with Razorpay Secure](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps), which is Razorpay's full payment gateway app for Shopify. > [accordion] The Razorpay payment option has disappeared from my Shopify checkout after I added another payment provider. Even after removing it, Razorpay does not show up and I see the error "This store can't accept payments right now." What should I do? > > Active payment method customisations typically cause this issue in your Shopify admin. When adding multiple payment providers, these customisations may conflict and prevent Razorpay from appearing at checkout. > > To fix this, follow the steps below: > > 1. Navigate to **Shopify Admin** โ†’ **Settings** โ†’ **Payments** โ†’ **Payment Method Customizations**. > 2. **Disable or remove all customizations** listed under this section. > 3. Save the changes and refresh the checkout page. > > Once the payment customizations are removed, the Razorpay payment option should reappear at checkout. > > If the issue persists, contact our [Support team](https://razorpay.com/support/). > [accordion] How can I test a payment for Razorpay Secure on the Shopify store? > > You can test a payment for Razorpay Secure on the Shopify store by switching to test mode. Know more about [how to test a transaction in test mode.](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps#1-make-a-test-transaction-in-test-mode) > > > [!NOTE] > > > > **Handy Tips** > > > > Once you successfully make a test transaction, ensure you uncheck the **Enable test mode** option to accept live payments. > [accordion] After migrating to Razorpay Secure, the checkout option for Razorpay Secure appears at the bottom of the list of gateways. Is it possible to move the checkout option to the top of the list of gateways? > > No. It is not possible to rearrange the order payment options via the store settings of the Shopify Dashboard as it is a limitation from Shopify's end. > [accordion] How can I enable automated payment receipts with GST split? > > Razorpay facilitates only payment collection. The partner is solely responsible for sending invoices or payment receipts with GST details to customers. To provide GST-compliant receipts, partners can use [Razorpay Invoice](/docs/payments/invoices) product when collecting payments. ## Account Management > [accordion] Can I connect two merchant ids (MIDs) to the same Shopify Store? > > No, currently you can connect only one MID to your Shopify Store. > > > [!NOTE] > > > > **Handy Tips** > > > > Make sure you log in using the correct Razorpay merchant id (MID) credentials via the Shopify Dashboard. > [accordion] Can I integrate a second Razorpay account with my Shopify store? > > A Shopify store can be linked to only one Razorpay account (MID) at a time. You cannot run two Razorpay accounts on the same store simultaneously, but you can switch the store to a different account. See [how to relink your Shopify store to a different Razorpay account (MID)](#how-do-i-relink-my-shopify-store-to-a-different-razorpay-account-mid). > [accordion] How do I relink my Shopify store to a different Razorpay account (MID)? > > You can relink your Shopify store to a different Razorpay account (MID) yourself; you do not need to contact Razorpay to delink the old MID. Follow the same steps you used for your first-time installation: > > 1. On the **old** Razorpay account, navigate to **Account & Settings** โ†’ **Applications** and revoke Shopify access. > 2. [Uninstall](#how-do-i-uninstall-razorpay-payment-apps-from-shopify) the **01 Cards, UPI, NB, Wallets by Razorpay** app from your Shopify store. > 3. Reinstall the app and activate it by logging in with your **new** Razorpay account, following the [integration steps](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps#1-build-integration). > > Once you activate the app with the new account, your Shopify store is linked to the new MID. > > > [!NOTE] > > > > **Handy Tips** > > > > Make sure you log in with **store owner** credentials and the correct Razorpay merchant id (MID) to connect the new account successfully. > [accordion] I have two ecommerce websites owned by my company. If I connect both websites to my Razorpay account, will the customers be redirected to the correct webpage after payment? > > Yes, when customers pay through Razorpay on either of your connected websites, they will be redirected to the website they purchased from. ## Pricing and Settlements > [accordion] Will I be charged extra for integrating/migrating to Razorpay Secure app? > > No, there will be no additional charges. Your pricing plan will remain the same as earlier. > [accordion] When will my funds be settled? > > Funds will be settled as per the existing settlement schedule. There will be no change to it. ## Verification and Order Processing > [accordion] Should I verify a payment on Razorpay before processing an order on Shopify? > > Yes. The Razorpay Shopify integration works on payment auto-capture mode, so most Razorpay authorised payments get auto-captured. However, there is a 0.5% chance that an authorised payment encounters a gateway capture failure and gets auto-refunded. Before processing an order, verify the payment status on the [Razorpay Dashboard](/docs/payments/dashboard) or reconcile it from the [reports](/docs/payments/dashboard/reports). ## Features and Limitations > [accordion] Can I enable Subscriptions on my Shopify store? > > No, Shopify does not support Subscriptions. The Ecommerce platforms that support Subscriptions are Woocommerce, Magento, and Open Cart. > [accordion] Does the Shopify Razorpay Secure plugin support 3 or 0 decimal unit currencies? > > The Shopify Razorpay Secure plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). > [accordion] How do I integrate Meta Pixel to accept payments through Meta Ads? > > Razorpay does not provide a direct plugin integration for accepting payments through Meta Ads. However, you can use Razorpay Payment Pages with [Facebook Pixel and Google Tracking ID](/docs/payments/payment-pages/plugins-add-ons) to track payments and conversions from your Ad campaigns. > [accordion] Can I use Razorpay Route API with my Shopify store? > > No, Razorpay Route API is not supported for Shopify integration. Only the [Razorpay Secure plugin](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps) is supported for Shopify stores. # Initiate Refunds Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/shopify/initiate-refunds Know how to initiate refunds from the Shopify Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can initiate refunds to customers from the Shopify Dashboard. Follow these steps: 1. Log in to the Shopify Dashboard. 2. Navigate to Orders and select the order for which you want to refund. 3. Click **Refund**. ![](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-shopify-refund-order.jpg) 4. Enter the amount to be refunded. You can initiate: * **Full Refund**: Enter the full order amount. * **Partial Refund**: Enter an amount less than the full amount. 5. Enter a reason for the refund. 6. Click **Refund**. ![](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-shopify-initiate-refund.jpg) ## Refund a Discounted Payment If the customer has selected an offer during checkout, ensure you refund only the discounted cost (Actual Cost minus Discount Amount) of the product/service. > [!WARNING] > > **Watch Out!** > > Do not refund the actual cost of the product/service received from the customer. | Particulars | Amount | | - | - | | Actual Cost | โ‚น4.72 | | Discount Amount | โ‚น0.28 | | Discounted Cost (Actual Cost minus Discount Amount) | โ‚น4.44 | | Amount Refundable to Customer | โ‚น4.44 | The Order displays the refund details: ![](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-shopify-refund-complete.jpg) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps Step-by-step guide to integrate Razorpay Payment Gateway with Shopify. Install Razorpay Secure app and start accepting payments on your Shopify store. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [!WARNING] > > **Plugin Renamed** > > In your Shopify admin, the Razorpay plugin is listed as **01 Cards, UPI, NB, Wallets by Razorpay**. To install it, go to **Settings** โ†’ **Payments** โ†’ **Add payment method**, click **Search by provider** and search for **01 Cards, UPI, NB, Wallets by Razorpay**. Your customers see it at checkout as **Razorpay Secure (UPI, Card, Int'l Card, Apple Pay)**. The plugin was earlier listed as **1Razorpay - UPI, Cards, Wallets, NB** and **All-in-one Razorpay Payment Gateway**. Follow the steps given below to integrate the Razorpay Secure App on your Shopify store. > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps#1-build-integration) > > Install the Razorpay Secure app. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/shopify/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with your Shopify website using the Razorpay Secure app.](https://www.youtube.com/embed/eFVzIr1lsdA) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Installation > > **Step 1: Sign up for a Razorpay account**. > > 1. [Sign up](https://dashboard.razorpay.com/signup?) for a Razorpay account. If you already have an account, skip to Step 2. > 2. Submit your KYC, and if we need any further clarification, we will reach out to you on WhatsApp, SMS and email. > 3. Once our team completes KYC verification and you are enabled to accept payments, we will send a confirmation on WhatsApp, SMS and email. > > **Step 2: Access the Razorpay Secure App on Shopify**. > > Once your Razorpay account is activated, you can install the app using either of these methods: > > > [tab] Method A: Direct Link Installation > > > > Click on [this link](https://accounts.shopify.com/store-login?redirect=settings%2Fpayments%2Falternative-providers%2F1058839) to access the **01 Cards, UPI, NB, Wallets by Razorpay** app directly on your Shopify store. > > > [tab] Method B: Manual Installation > > > > 1. Login to your Shopify store. > > 2. Navigate to **Settings** โ†’ **Payments**. > > 3. Click **Add payment method** under Additional payment methods. > > > > ![Click Add payment method](https://razorpay.com/docs/build/browser/assets/images/shopify-additional-payment-methods.jpg) > > 4. Click **Search by provider**, search for **01 Cards, UPI, NB, Wallets by Razorpay** and select it from the results. > > > > ![Search for 01 Cards, UPI, NB, Wallets by Razorpay under Search by provider](https://mintcdn.com/razorpay-881012b3/QEEEpLwWzZAyEC07/static/docs-home/assets/shopify-search-by-provider-01-cards.png?fit=max\&auto=format\&n=QEEEpLwWzZAyEC07\&q=85\&s=0236b81a706a4a036f7e1abcbadb8c7a) > > **Step 3: Install and Activate the App**. > > 1. Click **Install** on the app installation page. > > ![Click Install on the 01 Cards, UPI, NB, Wallets by Razorpay app installation page](https://mintcdn.com/razorpay-881012b3/Z8GTiU-_u_NPHB4p/static/docs-home/assets/shopify-razorpay-install-app.png?fit=max\&auto=format\&n=Z8GTiU-_u_NPHB4p\&q=85\&s=ab3229503707b0ce6e89e5210ccb4fe8) > 2. Review the data access permissions and click **Install** in the Install app dialog. > > ![Review the data access permissions and click Install in the Install app dialog](https://mintcdn.com/razorpay-881012b3/Z8GTiU-_u_NPHB4p/static/docs-home/assets/shopify-razorpay-install-app-permissions.png?fit=max\&auto=format\&n=Z8GTiU-_u_NPHB4p\&q=85\&s=d32a27697fe3cc869afb3a636cdeb5e6) > 3. You will be redirected to a landing page. Click **I am an existing user**. > > ![Click I am an existing user on the Razorpay landing page](https://mintcdn.com/razorpay-881012b3/Z8GTiU-_u_NPHB4p/static/docs-home/assets/shopify-razorpay-existing-user.png?fit=max\&auto=format\&n=Z8GTiU-_u_NPHB4p\&q=85\&s=f7414d553c0f5cceaf173190a38b7305) > 4. Scroll down and click **Login**. > > > [!NOTE] > > > > **Handy Tips** > > > > Make sure you log in with **store owner** credentials to connect Razorpay with Shopify successfully. > 5. Click **Activate** on the activation screen on your Shopify Dashboard. > > ![Click Activate on the activation screen on your Shopify Dashboard](https://mintcdn.com/razorpay-881012b3/Z8GTiU-_u_NPHB4p/static/docs-home/assets/shopify-razorpay-activate.png?fit=max\&auto=format\&n=Z8GTiU-_u_NPHB4p\&q=85\&s=b8fa4710fc466bcf34fedafb9fe23f4e) > > **Razorpay Secure (UPI, Card, Int'l Card, Apple Pay)** now appears as a Payment Gateway on your Shopify Store checkout. > > ![Shopify Checkout](https://razorpay.com/docs/build/browser/assets/images/shopify-v2-checkout.jpg) > > This completes your integration. For more information, see [Shopify FAQs](/docs/payments/payment-gateway/ecommerce-plugins/shopify/faqs). ## 2. Test Integration After the integration of **Shopify - Razorpay Secure** on your Shopify store is complete, follow the steps given below: > [accordion] 1 Make a Test Transaction in Test Mode > > After completing the integration, you must ensure it is working as expected. You can start accepting actual payments from your customers once the test mode transaction is successful.\\ > > Follow the steps given below to test a transaction in test mode: > > 1. Log in to your [Shopify store](https://accounts.shopify.com/lookup?rid=f19e1541-cd24-4856-a398-156d2ed5d56f). > 2. Navigate to **Settings** โ†’ **Payments**. > 3. Under **Additional payment methods** section, click **01 Cards, UPI, NB, Wallets by Razorpay** app. > > ![Shopify go live v2](https://razorpay.com/docs/build/browser/assets/images/shopify-go-live-v2.jpg) > 4. At the bottom of the page, toggle the **Test mode** option and click **Save**. > > ![Shopify go live v2 save test](https://razorpay.com/docs/build/browser/assets/images/shopify-go-live-test.jpg) > 5. On your Shopify store, add an item to your cart and click **Buy it now**. > > ![Shopify checkout](https://razorpay.com/docs/build/browser/assets/images/buy-now-shopify.jpg) > 6. Fill in your **contact** and **shipping** details and click **Continue to shipping**. > > ![Shopify contact details](https://razorpay.com/docs/build/browser/assets/images/shipping-contact-details.jpg) > 7. Select **Razorpay Secure (UPI, Card, Int'l Card, Apple Pay)** and click **Complete order**. > > ![Shopify complete order](https://razorpay.com/docs/build/browser/assets/images/complete-order.jpg) > 8. On the checkout screen, enter your **phone number**, click **PROCEED**, and complete the payment. > > You can make test payments using one of the payment methods configured at the Checkout. > > * No money is deducted from the customer's account as this is a simulated transaction. > > * Ensure you have entered the API keys generated in the test mode in the Checkout code. > > > [accordion] Supported Payment Methods > > > > After the integration is complete, a **Pay** button appears on your webpage/app. > > > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > > > | Payment Method | Code | Availability | > > | - | - | - | > > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > > > You can make test payments using one of the payment methods configured at the Checkout. > > > > > [accordion] Netbanking > > > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > > > [accordion] UPI > > > > > > You can enter one of the following UPI IDs: > > > > > > * `success@razorpay`: To make the payment successful. > > > * `failure@razorpay`: To fail the payment. > > > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > > > [!NOTE] > > > > > > > > **Handy Tips** > > > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > > > [accordion] Cards > > > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > > > ### Domestic Cards > > > > > > Use the following test cards for Indian payments: > > > > > > | Network | Card Number | CVV & Expiry Date | > > > | - | - | - | > > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > > | Mastercard | 5500 6700 0000 1002 | | > > > | RuPay | 6527 6589 0000 1005 | | > > > | Diners | 3608 280009 1007 | | > > > | Amex | 3402 560004 01007 | | > > > > > > #### Error Scenarios > > > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > > Check the following lists: > > > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > > > ### International Cards > > > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > > > | Card Network | Card Number | CVV & Expiry Date | > > > | - | - | - | > > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > > | Visa | 4012 8888 8888 1881 | | > > > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > > > [accordion] Wallet > > > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] 2 Update Checkout Settings > > Follow the steps given below for a smooth checkout experience: > > 1. Log in to your [Shopify store](https://accounts.shopify.com/lookup?rid=f19e1541-cd24-4856-a398-156d2ed5d56f). > > 2. Navigate to **Settings** โ†’ **Checkout**. > > 3. On the **Customer contact method** section, click **Phone number or email** and click **Save**. > > ![Shopify Checkout v2](https://razorpay.com/docs/build/browser/assets/images/shopify-checkout-v2.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > Your customer's email ID is prefilled during checkout, but the `phone number` must be entered manually. > [accordion] 3 Verify Payment Status > > You can track the payment status from the Razorpay Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment status on dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Switch from Test mode to Live mode > > You can perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the installation and integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > Watch this short animation to know how to switch from **Test Mode** to **Live Mode** on your Shopify store. > > ![Shopify Go Live](https://razorpay.com/docs/build/browser/assets/images/shopify-go-live-v2.gif) > > To switch from **Test Mode** to **Live Mode**: > > 1. Log in to your [Shopify store](https://accounts.shopify.com/lookup?rid=f19e1541-cd24-4856-a398-156d2ed5d56f). > 2. Navigate to **Settings** โ†’ **Payments**. > 3. On the **Supported payment methods** section, click **Manage** on the **01 Cards, UPI, NB, Wallets by Razorpay** app. > > ![Shopify go live v2](https://razorpay.com/docs/build/browser/assets/images/shopify-go-live-v2.jpg) > 4. At the bottom of the page, select the **Enable test mode** option and click **Save**. > > ![Shopify go live v2 save](https://razorpay.com/docs/build/browser/assets/images/shopify-go-live-save.jpg) > > You can now start accepting actual payments on your Shopify store. # Accept International Payments Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/shopify/international-payments Accept payments in international currency on your Shopify store. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay helps businesses to accept payments in international currencies. You can accept payments in any of the [supported international currencies](https://razorpay.com/docs/payments/international-payments/#supported-currencies) natively. To accept payments in international currencies: * Raise a request with [Razorpay Support](https://razorpay.com/support/#request) to enable support for international currency on your account. * Set your shop's base currency to any of the [supported international currencies](/docs/payments/international-payments#supported-currencies). * Ensure all your products are priced correctly in the currency of your choice. # Migration Steps for Existing Users Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/shopify/migration-steps Follow the step-by-step guide on migrating from the existing Razorpay App to Razorpay Secure on your Shopify store. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India If you are using Razorpay to accept payments, you can now upgrade to the **Razorpay Secure** app on your Shopify store. Watch the [video tutorial](#video-tutorial) or follow the [migration steps](#migration-steps) to migrate to Razorpay Secure. Know more about why you need to [upgrade to Razorpay Secure](/docs/payments/payment-gateway/ecommerce-plugins/shopify/faqs#why-do-i-need-to-upgrade-to-razorpay-secure). ## Video Tutorial Watch this video to know how to migrate from the existing Razorpay App to Razorpay Secure on your Shopify store. [How to migrate from existing Razorpay App to Razorpay Secure App on Shopify Store](https://www.youtube.com/embed/3mUfBE9WkCo) ## Migration Steps Follow the steps given below to migrate from the existing Razorpay App to Razorpay Secure. > [accordion] Migration > > 1. Click on [this link](https://accounts.shopify.com/store-login?redirect=settings%2Fpayments%2Falternative-providers%2F1058839) to access the **01 Cards, UPI, NB, Wallets by Razorpay** app on your Shopify store. > > 2. Click **Install**. > > ![Shopify Install](https://razorpay.com/docs/build/browser/assets/images/shopify-1-razorpay-install-new.jpg) > > 3. You will be redirected to a landing page. Click **I am an existing user**. > > ![Existing Merchant Shopify](https://razorpay.com/docs/build/browser/assets/images/shopify-existing-merchant.jpg) > > 4. Scroll down and click **Login**. > > > [!NOTE] > > > > **Handy Tips** > > > > Make sure you log in with **owner** credentials to connect Razorpay with Shopify successfully. > > ![Shopify login](https://razorpay.com/docs/build/browser/assets/images/shopify-login-v2.gif) > > 5. Click **Activate** on the activation screen on your Shopify Dashboard. \\ > > ![Shopify Activate](https://razorpay.com/docs/build/browser/assets/images/shopify-1razorpay-activate.jpg) > > **Razorpay Secure (UPI, Card, Int'l Card, Apple Pay)** now appears as a Payment Gateway on your Shopify Store checkout.\\ > > ![Shopify Checkout](https://razorpay.com/docs/build/browser/assets/images/shopify-v2-checkout.jpg) > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you deactivate the existing Razorpay App after activating the new **Razorpay Secure** App. > [accordion] Deactivation > > To deactivate the existing Razorpay App: > > 1. Click on [this link](https://accounts.shopify.com/store-login?redirect=settings/payments/alternative-providers/1030400) to access the existing Razorpay App on your Shopify store. > 2. Click **Deactivate Razorpay** to deactivate the existing Razorpay App on your Shopify store. > > ![Deactivate Shopify v1](https://razorpay.com/docs/build/browser/assets/images/shopify-deactivate-v1-final.jpg) > > For more information, see [Shopify FAQs](/docs/payments/payment-gateway/ecommerce-plugins/shopify/faqs). ## Reconcile Payments on Razorpay Secure You can reconcile payments for Razorpay Secure using the **Payment Id** provided at the Shopify checkout. Know more about how to [reconcile Shopify orders on the Dashboard](/docs/payments/payment-gateway/ecommerce-plugins/shopify/reconcile-payments). ## Difference in Order Information Between Old Razorpay App and Razorpay Secure Check the table below to understand the difference in data about the gateway provided by the Old Razorpay App and Razorpay Secure. | **Old Razorpay App** | **Razorpay Secure** | | - | - | |
  • Razorpay account details.
  • Razorpay reference number.
  • Currency
  • Amount
  • Gateway reference Id
  • Timestamp
  • Signature
|
  • Payment Id
| The image below shows the difference in data provided by the old Razorpay App and Razorpay Secure. ![Old New difference](https://razorpay.com/docs/build/browser/assets/images/old-new-plugin.jpg) > [!NOTE] > > **Handy Tips** > > In the case of the old Razorpay app, multiple data were available to track payments, whereas, in the case of the Razorpay Secure app, only a single piece of data, the `Payment Id`, is provided by Shopify. Know more about [how to process a payment](https://shopify.dev/apps/payments/processing-a-payment#resolve-a-payment) on Shopify. # Reconcile Shopify Orders on Dashboard Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/shopify/reconcile-payments Reconcile payments made on your Shopify store via Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Reconciling payments made on your Shopify store with the data available on your Dashboard is a simple process. ![Reconciliation Process Flow](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-shopify-reconciliation-process-flow.jpg) > [accordion] Reconcile a Payment > > Follow the steps below to reconcile a payment: > > 1. Log in to the [Shopify Dashboard](https://accounts.shopify.com/) and open the **Orders** tab. Click the drop-down to view the Razorpay Secure payment details. > > ![View Razorpay Secure details](https://razorpay.com/docs/build/browser/assets/images/shopify-rzp-secure-details.jpg) > 2. Make a note of the payment id. > > ![Shopify payment details](https://razorpay.com/docs/build/browser/assets/images/shopify-payment-details.jpg) > 3. Log in to the Dashboard and navigate to **Transactions** โ†’ **Payments**. The payment appears on the list of payments. The payment id appears under the **Order Id** column. > > ![View payments on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/shopify-rzp-payment-track.jpg) > 4. Match the payment id (on the Shopify Dashboard) with the Order id (on the Razorpay Dashboard) to map the payments. > [accordion] Reconcile Multiple Payments > > Follow the steps below to reconcile multiple payments: > > 1. Log in to the [Shopify Dashboard](https://accounts.shopify.com/) and open the **Orders** tab. > 2. Select the required orders or time period. > 3. Click **Export** to export the data. The **Payment References** column in the file contains the payment ids. > > ![Export Shopify order data](https://razorpay.com/docs/build/browser/assets/images/shopify-select-orders.jpg) > 4. Log in to the Dashboard and navigate to **Reports**. > 5. Select **Shopify Payments Report** in the **Select Report Type** drop-down. > 6. Select the period and format. > 7. Click **Generate Report**. > > ![Download the Shopify Payments Report from Dashboard](https://razorpay.com/docs/build/browser/assets/images/shopify-payments-report.jpg) > 8. Once the report is generated, click **Download**. The **Order ID** column in the file contains the payment ids. > 9. Match the **Payment References** column in the Shopify export with the **Order ID** column in the **Shopify Payments Report** to map the payments. ### Related Information * [Integrate with Shopify Plugin](/docs/payments/payment-gateway/ecommerce-plugins/shopify) * [Shopify FAQs](/docs/payments/payment-gateway/ecommerce-plugins/shopify/faqs) # Wix Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/wix Check the prerequisites before you integrate your Wix website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/wix/faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay Wix Extension. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. [Video Tutorial](https://www.youtube.com/embed/4v6gBuOJQgI?si=o1kO0mbb-xDy7Xhe) Video Tutorial Watch the video before you start integrating the Wix extension with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/wix/integration-steps) > > Check the steps to integrate the Wix extension with Payment Gateway. ## Supported Products Razorpay Wix Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | x | ## Support If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/wix/faqs Find answers to frequently asked questions about Wix plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia > [accordion] I am unable to connect to my account even after providing the API key and the secret on the Wix Dashboard. What could be the reason? > > **Cause**: Before connecting your account with the Wix platform, you need to set up Webhooks on the Dashboard. If you do not set up Webhooks, there may be connection errors. > > **Resolution**: Set up webhooks. > > To set up Webhooks: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings** section, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Click **+ Add New Webhook**. > > ![](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-1.jpg) > 4. In the **Webhook Setup** pop-up page: > 1. Enter the **Website URL** as `https://express.razorpay.com/wix/v1/webhook-handler`. > > 2. Enter a **Secret** for the Webhook endpoint. The secret is used for validation purposes. > > > [!NOTE] > > > > **Handy Tips** > > > > The secret that you enter here can validate that the Webhooks are from Razorpay. Do not expose the secret publicly. > > 3. Select the following events from the list of **Active Events**: > > * `order.paid` > > * `refund.processed` > > * `payment.failed` > > > [!NOTE] > > > > **Handy Tips** > > > > If you use this Razorpay account to accept payments on your Wix site, **you can set up only one Webhook** on the Dashboard. > > 5. Click **Save** to enable Webhooks. > [accordion] I am getting the following error during Wix plugin integration, "We are not able to connect your account. Please try again later." > > **Cause**: This error message is displayed if the Webhook is not configured correctly on the Dashboard. > > **Resolution**: To fix this error, check the reasons and their solutions as mentioned below: > > | Issue | Solution | > | - | - | > | You have provided your own Webhook URL. | You must provide `"https://express.razorpay.com/wix/v1/webhook-handler"` as the Webhook URL. | > | You have provided the correct URL but have subscribed to all the Webhook events. | You must subscribe to only the `order.paid`, `refund.processed` and `payment.failed` events. | > | You have provided the correct URL and subscribed to the correct events but have not entered the secret. | You must enter the secret for the Webhook. | > [accordion] Does Wix support Subscriptions? > > No. Wix does not support Subscriptions. The plugins that support subscriptions are Woocommerce, Magento and OpenCart. > [accordion] What troubleshooting procedures should be carried out prior to initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Reinstall the Razorpay Wix plugin and ensure that your system meets all the requirements mentioned [here](/docs/payments/payment-gateway/ecommerce-plugins/wix/integration-steps). > 2. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * Wix version > * Razorpay for Wix plugin version > * PHP version > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Staging website credentials (login URL, login id, and password) > [accordion] Does the Wix plugin support 3 or 0 decimal unit currencies? > > The Wix plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). > [accordion] How can I verify if webhooks are auto-configured? > > To verify if webhooks are enabled: > > 1. Log in to the Razorpay Dashboard and navigate to **Accounts and Settings**. > 2. Go to **Webhooks** (Under Website and app settings). > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Select the relevant webhook **URL**. > 4. On the right panel, check if the status for `order.paid`, `refund.processed` and `payment.failed` is enabled. > > ![List of webhooks created](https://razorpay.com/docs/build/browser/assets/images/plugin-webhook-faq.jpg) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/wix/integration-steps Steps to integrate your Wix website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Follow the steps given below to integrate Razorpay Payment Gateway with your Wix website.\ > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/wix/integration-steps#1-build-integration) > > Install the Wix plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/wix/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/wix/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with your Wix website using our payment extension.](https://www.youtube.com/embed/4v6gBuOJQgI) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Add as a Payment Gateway > > 1. Log in to your [Wix website](https://users.wix.com/signin). > 2. Navigate to **Settings** โ†’ **Accept payments**. > > ![Settings and Accept Payments](https://razorpay.com/docs/build/browser/assets/images/wix-settings-accept.jpg) > 3. Click **Connect** beside **Razorpay**. > > ![add razorpay](https://razorpay.com/docs/build/browser/assets/images/wix-rzp-connect.jpg) > 4. Enter your **API Key Id**, **Key Secret** and **Site URL**. Click **Connect**. > > ![account activation](https://razorpay.com/docs/build/browser/assets/images/wix-api.jpg) > 5. You have successfully connected your Wix website with Razorpay. > > ![dialog box](https://razorpay.com/docs/build/browser/assets/images/wix-final.jpg) ## 2. Test Integration After the integration, a **Pay** button will appear on your webpage. Click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual payments from your customers once the test is successful. ![](https://razorpay.com/docs/build/browser/assets/images/arastta-pay-button.jpg) You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > You can track the payment status from the Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). # WooCommerce Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/woocommerce Integrate Razorpay Payment Gateway with WooCommerce. Complete prerequisites, setup guide and installation steps for WooCommerce Razorpay plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [card] [WooCommerce Changelog](/docs/payments/changelog#woocommerce) > > Discover new features, updates and deprecations related to the Razorpay WooCommerce plugin (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay WooCommerce plugin. Razorpay WooCommerce integration allows you to accept payments on your WordPress WooCommerce store using the Razorpay Payment Gateway plugin. This guide covers the prerequisites and setup steps to integrate Razorpay with WooCommerce, enabling UPI, Cards, Netbanking and Wallets payments. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. * Before installing the Razorpay WooCommerce subscription plugin, it is essential to have WooCommerce for subscriptions already installed. > [!NOTE] > > **Handy Tips** > > * If you are not using WooCommerce, you can use our [native plugin for WordPress](/docs/payments/payment-gateway/ecommerce-plugins/wordpress). > * Razorpay WooCommerce subscription plugin is available only in the paid versions of WooCommerce. > * For Subscriptions on a WooCommerce-based website, you can use our [Subscriptions plugin for WooCommerce](/docs/payments/subscriptions/plugins/woocommerce). ## Supported Versions * Wordpress v3.9.2 or higher * WooCommerce v4.0 or higher * PHP v7.0 or higher * php-cURL > [!NOTE] > > **Handy Tips** > > * Ensure you have the php-cURL extension installed to make the network calls required to use this plugin. > * The plugin is tested using WooCommerce v8.6.1 [Video Tutorial](https://www.youtube.com/embed/p2YMdxZMyxQ?si=o1kO0mbb-xDy7Xhe) Video Tutorial Watch the video before you start integrating the WooCommerce plugin with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/integration-steps) > > Check the steps to integrate the WooCommerce plugin with Payment Gateway. ## Supported Products Razorpay WooCommerce Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | [Razorpay Trusted Business](/docs/payments/widgets/trusted-business/rtb-widget-woocommerce) | | - | - | - | - | | โœ“ | โœ“ | โœ“ | โœ“ | ## Support * Queries: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-woocommerce). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/integration-steps Step-by-step guide to integrate Razorpay Payment Gateway with WooCommerce. Install Razorpay WooCommerce plugin and start accepting payments on WordPress. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Integrate Razorpay Payment Gateway with your WooCommerce website using our official WooCommerce plugin. This step-by-step guide covers installation, configuration, testing and going live with Razorpay on WordPress WooCommerce stores. Follow the steps given below to integrate Razorpay Payment Gateway with your WooCommerce website. > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/integration-steps#1-build-integration) > > Install and configure the WordPress plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with WooCommerce Website](https://www.youtube.com/embed/p2YMdxZMyxQ) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Install Plugin > > There are two methods to install our WooCommerce plugin: > > > [tab] Using WordPress Plugin Directory > > > > 1. [Download the plugin](https://wordpress.org/plugins/woo-razorpay/). > > 2. Install it from the WordPress Plugin Directory. > > > [tab] Manual Installation > > > > 1. Download the [latest Source code zip file](https://github.com/razorpay/razorpay-woocommerce/releases/latest) from the Releases section in GitHub. > > 2. Unzip and upload the contents of the extension to your `/wp-content/plugins/` directory. > [accordion] 2 Configure WooCommerce > > Before you start: > > * Ensure you have created a Razorpay account and your KYC is approved. > * You must have activated your business after the business activation email from Razorpay. > * You have [generated the API keys](/docs/api/authentication#generate-api-keys) from the Dashboard (Under Account & Settings โ†’ API Keys). > > To configure WooCommerce: > > 1. Log in to your [WordPress account](https://wordpress.com/log-in) and activate the Razorpay plugin in the **WordPress Plugin Manager**. > > 2. Log in to your [WooCommerce account](https://woocommerce.com/), navigate to **Settings** and click the **Checkout/Payment Gateways** tab. > > 3. Click **Razorpay** to edit the settings. > > 4. Enable the Payment Method, name it Credit Card/Debit Card/Internet Banking. This is shown on the Payment page your customer sees. > > > [!NOTE] > > > > **Handy Tips** > > > > If you cannot see the Razorpay payment option during WooCommerce checkout, update the plugin to the [latest](https://github.com/razorpay/razorpay-woocommerce/releases/latest) version. > > > > ![Payments option error](https://razorpay.com/docs/build/browser/assets/images/Woocommerce-payment-error.jpg) > > 5. Add in your \[KEY\_ID] and \[KEY\_SECRET] generated from the Razorpay Dashboard. > > 6. Set the **Payment Action** to **Authorize and Capture** to auto-capture payments. If you want to capture payments manually from the Dashboard after manual verification, set the Payment Method to **Authorize**. > > > [!WARNING] > > > > **Watch Out: Uncaptured payments are automatically refunded after 5 days** > > > > If you set **Payment Action** to `Authorize`, payments are held but not settled. Any payment that is not captured within **5 days** of authorisation is automatically refunded to the customer โ€” the merchant receives nothing. > > > > To prevent this, set **Payment Action** to **Authorize and Capture** for automatic capture, or manually capture payments from the Dashboard before the 5-day window closes. Review your capture settings in Dashboard โ†’ **Account & Settings** โ†’ **Payment Capture**. > [!NOTE] > > **Configure Webhooks** > > Webhook is [auto-configured](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/troubleshooting-faqs#how-are-webhooks-auto-configured) when you enter and save the API key ID and secret on the plugin settings page. You need to verify if webhooks are enabled on your Razorpay [Dashboard](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/troubleshooting-faqs#how-can-i-verify-if-webhooks-are-auto-configured). However, for versions lower than 3.5.0, you need to [configure webhooks manually](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/troubleshooting-faqs#my-webhooks-are-not-auto-configured-since-i-am-not-using-the-upgraded-version-of-the-woocommerce-plugin-how-do-i-manually-configure-webhooks). > > If you regenerate your API keys, re-enter and save the new keys in the plugin settings page to re-trigger webhook auto-configuration. The following webhook events are auto-configured when you save your API keys: * `payment.authorized` * `payment.captured` * `payment.failed` * `order.paid` Verify these are enabled in your Razorpay Dashboard under **Account & Settings** โ†’ **Webhooks**. ## 2. Test Integration After the integration is complete, a **Pay** button will appear on your web page/app. You need to click the button and make a test transaction to ensure that the integration is working as expected. You can start accepting actual payments from your customers once the test is successful. You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > You can track the payment status from the Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. You can also test your **WooCommerce** Integration in the Test Mode using your Test Mode API keys: 1. Go to WooCommerce โ†’ Settings โ†’ Payments โ†’ Razorpay. 2. Replace your Live API keys with Test Mode keys from the Razorpay Dashboard (Test Mode). 3. Complete a test transaction. 4. Switch back to Live keys before going live. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/troubleshooting-faqs Troubleshoot common errors and find answers to frequently asked questions about WooCommerce Ecommerce Plugin integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [accordion] How are webhooks auto-configured? > > * Auto-webhook support is available for Razorpay Woocommerce Plugin from v3.5.0 onwards. > * Once you save the changes on the Woocommerce Dashboard, webhooks are auto configured for events: `payment.authorized` and `refund.created`. You do not have to configure it on the Dashboard. > > To set up webhooks: > > 1. In the WordPress Dashboard, click **WooCommerce** and navigate to **Settings**. > 2. In the **Payments** tab, enter the **Key ID** and **Key Secret**. > > ![Enter key id and secret](https://razorpay.com/docs/build/browser/assets/images/plugin-wooc-key-id-secret.jpg) > 3. Click **Save Changes**. > > ![Save changes for auto webhook generation](https://razorpay.com/docs/build/browser/assets/images/plugin-wooc-save.jpg) > [accordion] My webhooks are not auto-configured since I am not using the upgraded version of the WooCommerce plugin. How do I manually configure webhooks? > > If you are not using the upgraded version of Razorpay WooCommerce plugin, you can manually configure the following events: > > * `payment.authorized` > * `payment.pending` > * `refund.created` > * `virtual_account.credited` > * `subscription.cancelled` > * `subscription.paused` > * `subscription.resumed` > > To set up webhooks manually: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings** section, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Click **+ Add New Webhook**. > > ![Add a new webhooks button on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-1.jpg) > 4. In the **Webhook Setup** pop-up page: > 1. Enter the **URL** where you want to receive the webhook payload when an event is triggered. We recommend using an HTTPS URL. > > > [!NOTE] > > > > **Handy Tips** > > > > You can set up to **30 URLs** to receive Webhook notifications. Webhooks can only be delivered to public URLs. If you attempt to save a localhost endpoint as part of a webhook setup, you will notice an error. Know more about [testing Webhooks on an application running on localhost](/docs/webhooks/validate-test#application-running-on-localhost). > > 2. Enter a **Secret** for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about [how to validate webhooks](/docs/webhooks/validate-test). > > > [!NOTE] > > > > **Handy Tips** > > > > * When setting up the webhook, you will be asked to specify a secret. Using this secret, you can validate that the webhook is from Razorpay. Entering the secret is optional but recommended. The secret should never be exposed publicly. > > * The webhook secret does not need to be the merchant secret key provided by Razorpay. > > 3. In the **Alert Email** field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook deactivation notifications to this email address. > 4. Select the required events from the list of **Active Events**. > > ![List of active webhook events on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-2.jpg) > 5. Click **Create Webhook**. After you set a webhook, it appears on the list of webhooks. > > ![List of webhooks on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/plugin-webhook-faq.jpg) > 6. You can select the webhook and click **Edit** to make more changes. > [accordion] How can I verify if webhooks are auto-configured? > > To verify if webhooks are enabled: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings** section, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Select the relevant webhook **URL**. > 4. On the right panel, check if the status for `payment.authorized` and `refund.created` is enabled. > > ![List of webhooks created](https://razorpay.com/docs/build/browser/assets/images/plugin-webhook-faq.jpg) > [accordion] Can I make partial payments using WooCommerce? > > No, partial payments are not supported on WooCommerce. You can either choose to deduct the full amount or make two separate orders and the customer will have to pay twice for it. > [accordion] I am getting the following error message "RAZORPAY ERROR: Order creation failed with the message: The API key provided is invalid". Why? > > Verify and confirm that the API keys you have provided within WordPress are accurate. If the issue persists, contact our [Support team](https://razorpay.com/support/). > [accordion] I am getting the following php error in the plugin:"PHP message: ORDER NUMBER 57999:webhook conflict over for razorpay order: order\_LWVB71vGYh7nEr". Why? > > The message in the logs is not an error, it is a logged message. This message appears only when a webhook callback takes longer than 5 minutes to process. Our webhook mechanism includes a 5-minute waiting period to prevent the occurrence of duplicate orders. > [accordion] Why am I getting the error message: "RAZORPAY ERROR: Order creation failed with the message "Authentication failed"."? > > "Authentication failed" error occurs when there is a discrepancy between the API keys. Verify the API key provided for your website and ensure that it matches with the key generated via Dashboard. > [accordion] I am getting the following error in WordPress: "Required parameter $razorpayPaymentId follows optional parameter $amount in /home/xxxcustom/public\_html/wp-content/plugins/woo-razorpay/woo-razorpay.php on line 1353". Why? > > Follow the steps given below to resolve the issue: > > 1. Deactivate and delete the Razorpay WooCommerce plugin from your [WordPress Dashboard](https://wordpress.com/log-in). > 2. Reinstall the [Razorpay WooCommerce plugin](https://wordpress.org/plugins/woo-razorpay/). > 3. For easy integration journey, watch the [Razorpay WooCommerce Integration tutorial](https://www.youtube.com/watch?v=p2YMdxZMyxQ). > [accordion] I am getting the following error: "Plugin could not be activated because it triggered a fatal error. > Parse error: syntax error, unexpected 'int' (T\_STRING), expecting function (T\_FUNCTION) or const (T\_CONST) in /home4/yutihbjy/public\_html/wp-content/plugins/woo-razorpay/includes/cron/one-click-checkout/one-cc-address-sync.php on line 12" > > If you encounter this error message while trying to activate the Razorpay for WooCommerce plugin, follow the steps given below to resolve the issue: > > 1. Uninstall the Razorpay for WooCommerce plugin from your WordPress Dashboard. Ensure you delete the plugin entirely, not just deactivate it. > 2. Remove the WooCommerce webhook associated with Razorpay from the Dashboard. Know how to [delete a webhook](/docs/webhooks/setup-edit-payments#delete-a-webhook). > 3. After removing both the plugin and the webhook, install the latest version of the [Razorpay for WooCommerce plugin](https://wordpress.org/plugins/woo-razorpay/). > > If the issue persists even after following these steps, contact our [Support team](https://razorpay.com/support/) with the following information: > > * WooCommerce version > * WordPress version > * Razorpay for WooCommerce plugin version > * A screen recording of the checkout flow (if possible) > * Staging site credentials (if applicable) > * Test Key and Secret from your Razorpay account > [accordion] Why am I getting a "404 Page Not Found" error on the checkout when I select Razorpay as a payment option? > > If you encounter this error, follow the steps given below to resolve the issue: > > 1. Log in to WordPress Dashboard, click **WooCommerce** and navigate to **Settings**. > > 2. In the **Advanced** tab, look for the **Page Setup** section. Ensure that you have correctly linked the **Cart page** and **Checkout page**. > > ![Enter Cart page and checkout page](https://razorpay.com/docs/build/browser/assets/images/plugin-wooc-faq-pagesetup.jpg) > > 3. Validate the **Checkout Endpoints** settings: > > * For the **Pay** endpoint, set it to **order-pay**. > * For the **Order Received** endpoint, set it to **order-received**. > > ![Enter pay endpoint and order endpoint](https://razorpay.com/docs/build/browser/assets/images/plugin-wooc-faq-checkout-endpoint.jpg) > > If the issue persists even after following these steps, contact our [Support team](https://razorpay.com/support/). > [accordion] What troubleshooting procedures should be carried out before initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Ensure that your system meets all the requirements mentioned [here](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce#supported-versions). > 2. We recommend you to keep your WordPress, WooCommerce, and Razorpay for WooCommerce plugins up to date. You can find the latest versions [here](https://github.com/razorpay/razorpay-woocommerce/releases). > 3. You can perform initial debugging. Follow the steps given below to debug: > 1. Deactivate all plugins except for Razorpay and WooCommerce. > 2. If you are using a paid theme, switch to a default WordPress theme and check if the issue persists. > 3. Verify if the Razorpay checkout is rendering correctly. If not, try reinstalling the Razorpay for WooCommerce plugin. > 4. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * WordPress version > * WooCommerce version > * Razorpay for WooCommerce plugin version > * PHP version > * WordPress theme > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Staging website credentials (login URL, login id, and password) > [accordion] How do I reconfigure webhooks for in WooCommerce? > > To reconfigure webhooks for Razorpay in WooCommerce, follow the steps given below: > > 1. Deactivate and delete the Razorpay WooCommerce plugin from your [WordPress Dashboard](https://wordpress.com/log-in). > 2. Remove the WooCommerce webhook associated with Razorpay from the Dashboard. Know how to [delete a webhook](/docs/webhooks/setup-edit-payments#delete-a-webhook). > 3. After removing both the plugin and the webhook, install the latest version of the [Razorpay for WooCommerce plugin](https://wordpress.org/plugins/woo-razorpay/). > [accordion] How can I revert to the legacy order confirmation page on WooCommerce? > > Follow the steps given below to revert to the legacy order confirmation page: > > 1. Open the Order Confirmation template in theย Site Editorย by navigating toย **Appearance** โ†’ **Editor** โ†’ **Templates** โ†’ **Order Confirmation**. > > 2. Open the **List View** and delete all the special Order Confirmation blocks. > > > [!NOTE] > > > > **Handy Tips** > > > > Hold shift to select multiple blocks between the current selection and the block you click. > > 3. Open the **Block Inserter**, search for **Order Confirmation Block** and add it. > > ![woocommerce add order confirmation](https://razorpay.com/docs/build/browser/assets/images/woocommerce-order-confirmation.jpg) > 4. Click **Save**. > [accordion] Does WooCommerce support High-Performance Order Storage(HPOS)? > > Yes, Razorpay WooCommerce supports High-Performance Order Storage(HPOS). It is recommended to enable this feature when there is minimal traffic in the store. > [accordion] I am getting the error: "Invalid signature passed" when I trigger the webhook. What should I do? > > If you encounter this error message, follow the below steps to troubleshoot this issue: > > 1. Uninstall the Razorpay for WooCommerce plugin from your WordPress Dashboard. Ensure you delete the plugin entirely, not just deactivate it. > 2. Remove the WooCommerce webhook associated with Razorpay from the Dashboard. Know how to [delete a webhook](/docs/webhooks/setup-edit-payments#delete-a-webhook). > 3. After removing both the plugin and the webhook, install the latest version of the [Razorpay for WooCommerce plugin](https://wordpress.org/plugins/woo-razorpay/). > > If the issue persists even after following these steps, contact our [Support team](https://razorpay.com/support/). > [accordion] Does WooCommerce support Checkout Blocks? > > Yes, Razorpay WooCommerce supports Checkout Blocks. > [accordion] Is the WooCommerce subscription plugin free? > > No, the WooCommerce subscription plugin is only available in the paid version of WooCommerce. > [accordion] Is it mandatory to set an expiry date for a subscription? > > Yes, it is mandatory. We do not support subscriptions with no expiry date on the WooCommerce plugin. > [accordion] Does the WooCommerce plugin support 3 or 0 decimal unit currencies? > > The WooCommerce plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). > [accordion] How and where can I check the logs in WooCommerce? > > To check the Razorpay logs on WooCommerce, follow these steps: > > 1. Go to WordPress Admin and navigate to **WooCommerce**. Click **Status**. > > ![Woocommerce Dashboard status](https://razorpay.com/docs/build/browser/assets/images/woocommerce-status-logs.jpg) > > 2. Select **Logs**. Locate and open **razorpay-logs** to view the logs. > > ![Razorpay logs on logs](https://razorpay.com/docs/build/browser/assets/images/razorpay-logs.jpg) > > > [!WARNING] > > > > **Watch Out!** > > > > A new log file is created every day, so be sure to check the most recent file for the latest logs. > [accordion] Why is the payment captured on but not updated on WooCommerce for some orders? > > This issue may arise due to incorrect webhook configuration or domain allowlisting. To resolve this: > > 1. Ensure that the [webhook is configured correctly](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/troubleshooting-faqs#my-webhooks-are-not-auto-configured-since-i-am-not-using-the-upgraded-version-of-the-woocommerce-plugin-how-do-i-manually-configure-webhooks) in your Razorpay Dashboard. > 2. After placing an order, check the [WooCommerce site logs](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/troubleshooting-faqs#how-and-where-can-i-check-the-logs-in-woocommerce) for entries such as: > * `Webhook conflict due to early execution for razorpay order` > > * `Webhook conflict over for razorpay order` > > * `Webhook process finished the updateOrder function` \\ > > If these logs are missing, the issue might occur due to domain allowlisting. To resolve this, list [Razorpay's IPs](/docs/security/whitelists#webhook-ips) in your server settings. > [accordion] My Razorpay Payment Gateway is not working properly on WooCommerce. How do I fix integration issues? > > Follow the steps given below to resolve the issue: > > 1. Deactivate and delete the Razorpay WooCommerce plugin from your [WordPress Dashboard](https://wordpress.com/log-in). > 2. Reinstall the [Razorpay WooCommerce plugin](https://wordpress.org/plugins/woo-razorpay/). > 3. For easy integration journey, watch the [Razorpay WooCommerce Integration video tutorial](https://www.youtube.com/watch?v=p2YMdxZMyxQ). # Flutter Standard Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/flutter-integration/standard Check the prerequisites before you integrate Razorpay Flutter Standard plugin with our native Android and iOS SDKs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Flutter Standard SDK Changelog](/docs/payments/changelog#mobile-sdks) > > Discover new features, updates and deprecations related to the Razorpay Flutter Standard SDK (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/flutter-integration/standard/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about Flutter Standard integration. The Razorpay Flutter plugin acts as a wrapper around our native Android and iOS SDKs. > [!TIP] > > **Update SDK** > > Check your [current SDK version](/docs/payments/payment-gateway/flutter-integration/standard/troubleshooting-faqs#how-can-i-check-the-razorpay-flutter-standard-sdk-version). If it is outdated, please [update the SDK](/docs/payments/payment-gateway/flutter-integration/standard/troubleshooting-faqs#how-can-i-update-the-razorpay-flutter-standard-sdk-version) to ensure uninterrupted settlements of your funds. ## Integration Steps **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works).
Follow these integration steps: > [card] [1. Build Integration](/docs/payments/payment-gateway/flutter-integration/standard/integration-steps#1-build-integration) > > Integrate Flutter Standard SDK. > [card] [2. Test Integration](/docs/payments/payment-gateway/flutter-integration/standard/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/flutter-integration/standard/integration-steps#3-go-live-checklist) > > Check the go-live checklist. > [card] [Sample App](https://github.com/razorpay/razorpay-flutter/blob/master/example/lib/main.dart) > > Check the sample app to integrate on GitHub. ### Related Information * [Troubleshooting and FAQs](/docs/payments/payment-gateway/flutter-integration/standard/troubleshooting-faqs) * [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/flutter-integration/standard/integration-steps Steps to integrate the Flutter application with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow these steps to integrate your Flutter application: > [card] [1. Build Integration](/docs/payments/payment-gateway/flutter-integration/standard/integration-steps#1-build-integration) > > Integrate Flutter Standard Checkout. > [card] [2. Test Integration](/docs/payments/payment-gateway/flutter-integration/standard/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/flutter-integration/standard/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to Integrate Razorpay Payment Gateway on Flutter App](https://www.youtube.com/embed/pakLL37M6KI) > [!NOTE] > > **Handy Tips** > > After you complete the integration: > > * Set up webhooks > * Make test payments > * Replace Test API keys with Live API keys > * Integrate with other APIs\\ > > Refer to the [post-integration steps](/docs/payments/payment-gateway/flutter-integration/standard/integration-steps#2-test-integration). > [!WARNING] > > **Watch Out!** > > If you use M1 MacBook, you need to make [these changes](#m1-macbook-changes) in your `podfile`. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Install Razorpay Flutter Plugin > > [Download the plugin](https://pub.dev/packages/razorpay_flutter) from Pub.dev. > > Add the below code to `dependencies` in your app's `pubspec.yaml` > > ```yml Add Dependencies theme={null} > razorpay_flutter: 1.4.0 > ``` > > > [accordion] Add Proguard Rules (Android Only) > > > > If you are using Proguard for your builds, you need to add the following lines to the Proguard files: > > > > ```java Add Proguard Rules theme={null} > > -keepattributes *Annotation* > > -dontwarn com.razorpay.** > > -keep class com.razorpay.** {*;} > > -optimizations !method/inlining/ > > -keepclasseswithmembers class * { > > public void onPayment*(...); > > } > > ``` > > > > Know more about [Proguard rules](https://github.com/razorpay/razorpay-flutter/issues/42#issuecomment-550161626). > > > [accordion] Get Packages > > > > Run `flutter packages get` in the root directory of your app. > > > > > [!NOTE] > > > > > > **Minimum Version Requirement** > > > > > > * For **Android**, ensure that the minimum API level for your app is 19 or higher. > > > * For **iOS**, ensure that the minimum deployment target for your app is iOS 10.0 or higher. Also, do not forget to enable bitcode for your project. > [accordion] 2 Import Package and Create Razorpay Instance > > Use the below code to import the `razorpay_flutter.dart` file to your project. > > ```yml Import Package theme={null} > import 'package:razorpay_flutter/razorpay_flutter.dart'; > ``` > > Use the below code to create a Razorpay instance. > > ```yml Instantiate theme={null} > _razorpay = Razorpay(); > ``` > [accordion] 3 Attach Event Listeners > > The plugin uses event-based communication and emits events when payments fail or succeed. > > The event names are exposed via the constants `EVENT_PAYMENT_SUCCESS`, `EVENT_PAYMENT_ERROR` and `EVENT_EXTERNAL_WALLET` from the `Razorpay` class. > > Use the `on(String event, Function handler)` method on the `Razorpay` instance to attach event listeners. > > ```yml Attach Event Listeners theme={null} > _razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, _handlePaymentSuccess); > _razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, _handlePaymentError); > _razorpay.on(Razorpay.EVENT_EXTERNAL_WALLET, _handleExternalWallet); > ``` > > The handlers would be defined in the class as: > > ```yml Handlers theme={null} > void _handlePaymentSuccess(PaymentSuccessResponse response) { > // Do something when payment succeeds > } > > void _handlePaymentError(PaymentFailureResponse response) { > // Do something when payment fails > } > > void _handleExternalWallet(ExternalWalletResponse response) { > // Do something when an external wallet is selected > } > ``` > > To clear event listeners, use the `clear` method on the `Razorpay` instance. > > ```yml Clear Event Listeners theme={null} > _razorpay.clear(); // Removes all listeners > ``` > [accordion] 4 Create an Order in Server > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order using: > > > [tab] API Sample Code > > > > Use this endpoint to create an order using the Orders API. > > > > `POST /orders` > > > > ```bash Curl theme={null} > > curl -X POST https://api.razorpay.com/v1/orders > > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -H 'content-type:application/json' > > -d '{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "qwsaq1", > > "partial_payment": true, > > "first_payment_min_amount": 230 > > }' > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > JSONObject orderRequest = new JSONObject(); > > orderRequest.put("amount", 50000); // amount in the smallest currency unit > > orderRequest.put("currency", "INR"); > > orderRequest.put("receipt", "order_rcptid_11"); > > > > Order order = razorpay.Orders.create(orderRequest); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > DATA = { > > "amount": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "key1": "value3", > > "key2": "value2" > > } > > } > > client.order.create(data=DATA) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->create(array('receipt' => '123', 'amount' => 50000, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient(your_key_id, your_secret); > > > > Dictionary options = new Dictionary(); > > options.Add("amount", 50000); // amount in the smallest currency unit > > options.add("receipt", "order_rcptid_11"); > > options.add("currency", "INR"); > > Order order = client.Order.Create(options); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > options = amount: 50000, currency: 'INR', receipt: '' > > order = Razorpay::Order.create > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.create({ > > amount: 50000, > > currency: "INR", > > receipt: "receipt#1", > > notes: { > > key1: "value3", > > key2: "value2" > > } > > }) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > data := map[string]interface{}{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "some_receipt_id" > > } > > body, err := client.Order.Create(data) > > ``` > > > > ```json Success Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "rcptid_11", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1642662092 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Order amount less than minimum amount allowed", > > "source": "business", > > "step": "payment_initiation", > > "reason": "input_validation_failed", > > "metadata": {}, > > "field": "amount" > > } > > } > > ``` > > > [tab] Razorpay Postman Public Workspace > > > > You can use the Postman workspace below to create an order: > > > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > > > You can create an order manually by integrating the API sample codes on your server. > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit. For example, for an actual amount of , the value of this field should be `22225`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be of 3 characters. > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7,000 is to be received from the customer in two installments of #1 - โ‚น5,000, #2 - โ‚น2,000, then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > [accordion] 5 Add Checkout Options > > Pass the Checkout options. Ensure that you pass the `order_id` that you received in the response of the previous step. > > ```yml Checkout Options theme={null} > var options = { > 'key': '', > 'amount': 50000, > 'currency': 'INR', > 'name': 'Acme Corp.', > 'order_id': 'order_EMBFqjDHEEn80l', // Generate order_id using Orders API > 'description': 'Fine T-Shirt', > 'timeout': 60, // in seconds > 'prefill': { > 'contact': '', > 'email': '' > } > }; > ``` > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > [accordion] 5.1 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > > > > ### UPI Intent on Recurring Payments > > > > Configure and initiate a recurring payment transaction on UPI Intent: > > > > ```swift ViewController.swift theme={null} > > let options: [String:Any] = [ > > "key": "YOUR_KEY_ID", > > "order_id": "order_DBJOWzybfXXXX", > > "customer_id": "cust_BtQNqzmBlXXXX", > > "prefill": [ > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com" > > ], > > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > "amount": 10000, // Amount should match the order amount > > "currency": "INR", > > "recurring": 1 // This key value pair is mandatory for Intent Recurring Payment. > > ] > > ``` > > > > ```objectivec ViewController.m theme={null} > > NSDictionary *options = @{ > > @"key": @"YOUR_KEY_ID", > > @"order_id": @"order_DBJOWzybfXXXX", > > @"customer_id": @"cust_BtQNqzmBlXXXX", > > @"prefill": @{ > > @"contact": @"+919000090000", > > @"email": @"gaurav.kumar@example.com" > > }, > > @"image": @"https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > @"amount": @(10000), // Amount should match the order amount > > @"currency": @"INR", > > @"recurring": @(1) // This key value pair is mandatory for Intent Recurring Payment. > > }; > > ``` > [accordion] 6 Open Checkout > > Use the below code to open the Razorpay checkout. > > ```yml Open Razorpay Checkout theme={null} > _razorpay.open(options); > ``` > [accordion] 7 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 8 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > > > [accordion] M1 MacBook Changes > > > > If you use M1 MacBook, you need to make the following changes in your podfile. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Add the following code inside `post_install do |installer|`. > > > > ```javascript podfile theme={null} > > installer.pods_project.build_configurations.each do |config| > > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > > end > > ``` > [accordion] 9 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Flutter integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # API Classes and Methods Source: https://razorpay.com/docs/payments/payment-gateway/flutter-integration/standard/payment-methods/api API classes and methods available for the Flutter plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Documented below is the API package for the plugin. ## Razorpay Class ### Method `open(map options)` : Opens the checkout. `on(String eventName, Function listener)` : Registers event listeners for payment events.
  • `eventName`: The name of the event.
  • `listener`: The function to be called. The listener should accept a single argument of the following type:
    • [PaymentSuccessResponse](#paymentsuccessresponse) for EVENT\_PAYMENT\_SUCCESS.
    • [PaymentFailureResponse](#paymentfailureresponse) for EVENT\_PAYMENT\_FAILURE.
    • [ExternalWalletResponse](#externalwalletresponse) for EVENT\_EXTERNAL\_WALLET.
`clear()` : Clears all listeners. > [!NOTE] > > **Handy Tips** > > The `options` map has `key` as a required property in the open checkout method. All other properties are optional. Know about all the [options available on checkout form](/docs/payments/payment-gateway/flutter-integration/standard/integration-steps#5-add-checkout-options). ### Event Names The event names have been exposed as `strings` by the `Razorpay` class. | Event Name | Description | | - | - | | EVENT\_PAYMENT\_SUCCESS | The payment was successful. | | EVENT\_PAYMENT\_ERROR | The payment was not successful. | | EVENT\_EXTERNAL\_WALLET | An external wallet was selected. | #### PaymentSuccessResponse | Field Name | Data Type | Description | | - | - | - | | `paymentId` | `string` | The ID for the payment. | | `orderId` | `string` | The order ID if the payment was for an order, otherwise `null`. | | `signature` | `string` | The signature to be used for payment verification. Only valid for orders, otherwise `null`. | #### PaymentFailureResponse | Field Name | Data Type | Description | | - | - | - | | `code` | `integer` | The [error code](#error-codes). | | `message` | `string` | The [error message](#error-codes). | #### ExternalWalletResponse | Field Name | Data Type | Description | | - | - | - | | `walletName` | `string` | The name of the external wallet selected. | ## Error Codes The error codes are exposed as integers by the `Razorpay` class. The error code is available as the code field of the `PaymentFailureResponse` instance passed to the callback. | Error Code | Description | | - | - | | NETWORK\_ERROR | There was a network error. For example, loss of internet connectivity. | | INVALID\_OPTIONS | An issue with options passed in `Razorpay.open`. | | PAYMENT\_CANCELLED | User cancelled the payment. | | TLS\_ERROR | Device does not support TLS v1.1 or TLS v1.2. | | UNKNOWN\_ERROR | An unknown error occurred. | # Integrate Turbo UPI TPV Source: https://razorpay.com/docs/payments/payment-gateway/flutter-integration/standard/payment-methods/integration-tpv Know how Razorpay performs Third-Party Validation (TPV) of investor bank accounts in real-time using Razorpay Turbo UPI. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Third-party validation (TPV) of bank accounts is mandatory for businesses in the BFSI (Banking, Financial Services and Insurance) sector dealing with Securities, Broking and Mutual Funds. You can accept customer payments by integrating with the Turbo UPI - TPV SDK. > [!WARNING] > > **Watch Out!** > > Currently, Flutter SDK is supported only for Android. > [accordion] Prerequisites > > 1. Contact our [integrations team](mailto:integrations@razorpay.com) to get your mobile number, app, and GitHub account whitelisted to get access to the `https://github.com/upi-turbo/android-turbo-sample-app` - sample app repository. You will find the AAR files (libraries for Turbo) in this repository. The AARs on the main branch are for the UAT environment, and the ones on the prod branch are for the production environment.\\ > > These are the important files in the sample app repo: > > * `android/app/libs`: All libraries (Bank, SecureComponent and Turbo) common for headless SDK. Know more about [Library Dependencies](#library-dependencies). > * `android/app/uiLibrary`: Library for Turbo UI SDK. > * `android/app/build.gradle`: All transitive dependencies needed to integrate the Turbo SDK. > > 2. Integrate with [Razorpay Flutter Standard Integration](/docs/payments/payment-gateway/flutter-integration/standard/integration-steps). > > 3. Import the following frameworks: > * Razorpay Android Standard SDK > * Razorpay Turbo Wrapper Plugin SDK (maven) > * Razorpay Turbo Core SDK > * Razorpay Turbo UI SDK > * Razorpay SecureComponent SDK > * Bank SDK > > 4. Add the following lines to your Android project's `gradle.properties` file: > * `android.enableJetifier=true` > > * `android.useAndroidX=true` > > > [!WARNING] > > > > **Watch Out!** > > > > * `minSDKversion` for using Turbo UPI is currently 19 and cannot be overwritten. > > * Use the `rzp_test_0wFRWIZnH65uny` API key id for testing on the UAT environment and the [Razorpay live keys](/docs/api/authentication#live-mode-api-keys) for prod testing. > > * As a compliance requirement, you should get approval from Google for **READ\_SMS** permission. Refer [to the Google article](https://support.google.com/googleplay/android-developer/answer/10208820?hl=en) for more details. > [accordion] Library Dependencies > > Integrating library files is necessary to proceed with Turbo integration. Follow these steps to integrate library dependencies: > > 1. Navigate to your Flutter project's directory and locate the `android` folder. Find the `src` folder inside `android` and create a new `libs` folder. > > 2. Copy all your library files into the newly created `libs` folder. > > 3. Open the `build.gradle` file in the **app** directory of your Flutter project. Add an implementation reference to the library files you added in the `libs` folder. > > ```java Java theme={null} > implementation fileTree(include: ['*.aar'], dir: 'libs') > ``` > > 4. Update the dependencies section in your project's `pubspec.yaml` file to include the libraries you added. Ensure the references point to the correct location, usually `master`. > > ```yml theme={null} > razorpay_flutter: > git: > url: https://github.com/razorpay/razorpay-flutter.git > ref: master # branch name > ``` > > 5. Run `flutter pub get` in your terminal to ensure the dependencies are properly resolved and downloaded. > > 6. Navigate to the `build.gradle` file in the `android` directory of the `razorpay-flutter` plugin module. Add a `compile only` statement to include the necessary libraries for compilation. > > ```yml theme={null} > compileOnly fileTree(include: ['*.aar'], dir: '/.../razorpay-turbo-flutter/android/app/libs') // Add absolute path of libs folder > ``` ## 1. Integration Steps Given below are the steps: > [accordion] Step 1: Whitelist Customer Bank Accounts *(Optional)* > > You can whitelist (also known as allowlist) your customer's bank accounts to ensure that only those accounts are considered during customer onboarding. By whitelisting the accounts at the start, you can avoid the bank account linking during payment. Use the Customer APIs to create customers and add their bank account details. > > For example, if a customer, Gaurav, has two bank accounts ABC and XYZ, you can use the APIs to create a customer id and link the bank accounts to that id. You can then pass this customer id at the time of payment. > > Follow these steps. > > > [accordion] Step 1.1: Create a Customer > > > > Use this endpoint to create or add a customer with basic details such as name and contact details. > > > > ```bash Request theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > > -X POST https://api.razorpay.com/v1/customers \ > > -H "Content-Type: application/json" \ > > -d '{ > > "name": "Gaurav Kumar", > > "contact": "9123456780", > > "email": "gaurav.kumar@example.com", > > "fail_existing": "0", > > "notes": { > > "notes_key_1": "Tea, Earl Grey, Hot", > > "notes_key_2": "Tea, Earl Greyโ€ฆ decaf." > > } > > }' > > ``` > > > > ```json Success Response theme={null} > > { > > "id" : "cust_1Aa00000000004", > > "entity": "customer", > > "name" : "Gaurav Kumar", > > "email" : "gaurav.kumar@example.com", > > "contact" : "9123456780", > > "gstin": null, > > "notes": { > > "notes_key_1":"Tea, Earl Grey, Hot", > > "notes_key_2":"Tea, Earl Greyโ€ฆ decaf." > > }, > > "created_at ": 1234567890 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Contact number should be at least 8 digits, including country code", > > "source": "business", > > "step": "NA", > > "reason": "invalid_contact_number", > > "metadata": {}, > > "field": "contact" > > } > > } > > ``` > > > > > [accordion] Request Parameters > > > > > > `name` *optional* > > > : `string` Customer's name. Alphanumeric value with period (.), apostrophe ('), forward slash (/), at (@) and parentheses are allowed. The name must be between 3-50 characters in length. For example, `Gaurav Kumar`. > > > > > > `contact ` *optional* > > > : `string` The customer's phone number. A maximum length of 15 characters including country code. For example, `+919876543210`. > > > > > > `email ` *optional* > > > : `string` The customer's email address. A maximum length of 64 characters. For example, `gaurav.kumar@example.com`. > > > > > > `fail_existing` *optional* > > > : `string` Possible values: > > > > > > * `1` (default): If a customer with the same details already exists, throws an error. > > > * `0`: If a customer with the same details already exists, fetches details of the existing customer. > > > > > > `gstin` *optional* > > > : `string` Customer's GST number, if available. For example, `29XAbbA4369J1PA`. > > > > > > `notes` *optional* > > > : `object` This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the customer. For example, `cust_1Aa00000000004`. > > > > > > `name` > > > : `string` Customer's name. Alphanumeric, with period (.), apostrophe ('), forward slash (/), at (@) and parentheses allowed. The name must be between 3-50 characters in length. For example, `Gaurav Kumar`. > > > > > > `contact` > > > : `string` The customer's phone number. A maximum length of 15 characters including country code. For example, `+919876543210`. > > > > > > `email` > > > : `string` The customer's email address. A maximum length of 64 characters. For example, `gaurav.kumar@example.com`. > > > > > > `gstin` > > > : `string` GST number linked to the customer. For example, `29XAbbA4369J1PA`. > > > > > > `notes` > > > : `json object` This is a key-value pair that can be used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > > > `created_at` > > > : `integer` UNIX timestamp, when the customer was created. For example, `1234567890`. > > > [accordion] Step 1.2: Add Customer's Bank Account > > > > The following endpoint adds the customer's bank accounts. > > > > ```bash Request theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > > -X POST https://api.razorpay.com/v1/customers/:customer_id/bank_account \ > > -H "Content-Type: application/json" \ > > -d '{ > > "ifsc_code": "UTIB0000194", > > "account_number": "11214311215411", > > "beneficiary_name": "Gaurav", > > "beneficiary_address1": "address 1", > > "beneficiary_address2": "address 2", > > "beneficiary_address3": "address 3", > > "beneficiary_address4": "address 4", > > "beneficiary_email": "gaurav.kumar@example.com", > > "beneficiary_mobile": "9900990099", > > "beneficiary_city": "Bangalore", > > "beneficiary_state": "KA", > > "beneficiary_country": "IN" > > }' > > ``` > > > > ```json Response theme={null} > > { > > "id": "ba_LSZht1Cm7xFTwF", > > "entity": "bank_account", > > "ifsc": "ICIC0001207", > > "bank_name": "ICICI Bank", > > "name": "Gaurav Kumar", > > "notes": [], > > "account_number": "XXXXXXXXXXXXXXX0434" > > } > > ``` > > > > > [accordion] Path Parameter > > > > > > `customer_id` *mandatory* > > > : `string` Customer id of the customer whose bank account is to be added. > > > > > [accordion] Request Parameters > > > > > > `account_number` *mandatory* > > > : `string` Customer's bank account number. For example, `11214311215411`. > > > > > > `beneficiary_name` *mandatory* > > > : `string` The name of the beneficiary associated with the bank account. > > > > > > `beneficiary_address1` *optional* > > > : `string` The virtual payment address. > > > > > > `beneficiary_email` *optional* > > > : `string` Email address of the beneficiary. For example, `gaurav.kumar@example.com`. > > > > > > `beneficiary_mobile` *optional* > > > : `string` Mobile number of the beneficiary. > > > > > > `beneficiary_city` *optional* > > > : `string` The city of the beneficiary. > > > > > > `beneficiary_state` *optional* > > > : `string` The state of the beneficiary. > > > > > > `beneficiary_country` *optional* > > > : `string` The country of the beneficiary. > > > > > > `beneficiary_pin` *optional* > > > : `integer` The pin code of the beneficiary's address. > > > > > > `ifsc_code` *mandatory* > > > : `string` The IFSC of the bank branch associated with the account. > > > > > [accordion] Response Parameters > > > > > > `bank_accounts` > > > : `array` An array containing bank account details. > > > > > > `id` > > > : `string` Unique identifier of the bank account. > > > > > > `entity` > > > : `string` The type of entity, which in this case is `bank_account`. > > > > > > `ifsc` > > > : `string` The IFSC of the bank branch associated with the account. > > > > > > `bank_name` > > > : `string` The name of the bank. > > > > > > `name` > > > : `string` The name associated with the bank account. > > > > > > `notes` > > > : `object` Set of key-value pairs that can be used to store additional information about the payment. > > > > > > `account_number` > > > : `integer` Customer's bank account number. For example, `11214311215411`. > [accordion] Step 2: Create an Order *(Mandatory)* > > Pass the investor bank account details to the `bank_account` array of the Orders API. Given below is the sample code when the `method` is `upi`. > > ```bash Request theme={null} > curl -u : \ > -X POST https://api.razorpay.com/v1/orders \ > -H "Content-Type: application/json" \ > -d '{ > "amount": 500, > "method": "upi", > "receipt": "BILL13375649", > "currency": "INR", > "bank_account": { > "account_number": "765432123456789", > "name": "Gaurav Kumar", > "ifsc": "HDFC0000053" > } > }' > ``` > > ```json Response theme={null} > { > "id": "order_GAWRjlWkVcRh0V", > "entity": "order", > "amount": 500, > "amount_paid": 0, > "amount_due": 500, > "currency": "INR", > "receipt": "BILL13375649", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1573044206 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount expressed in paise (currency supported is INR). For example, for an actual amount of โ‚น1, the value of this field should be `100`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. You can create orders in **INR** only. > > > > `receipt` *optional* > > : `string` Receipt number that corresponds to this order, set for your internal reference. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `method` *mandatory* > > : `string` The payment method used to make the payment. If this parameter is not passed, investors will be able to make payments using both netbanking and UPI payment methods. Possible values: > > > > * `netbanking`: Investors can make payments only using netbanking. > > * `card`: Investors can make payments using debit card. > > * `upi`: Investors can make payments only using UPI. > > > > `bank_account` *mandatory* > > : `object` Details of the bank account that the investor has provided at the time of registration. > > > > `account_number` *mandatory* > > : `string` The bank account number from which the investor should make the payment. For example, `765432123456789` Payments will not be processed for an incorrect account number. > > > > `name` *mandatory* > > : `string` The name linked to the bank account. For example, `Gaurav Kumar`. > > > > `ifsc` *mandatory* > > : `string` The bank IFSC. For example, `HDFC0000053`. > > > [accordion] Response Parameters > > > > `id` > > : `string` Unique identifier of the order. > > > > `entity` > > : `string` Indicates the type of entity. Here, it is `order`. > > > > `amount` > > : `integer` The order amount represented in the smallest unit of the currency passed. For example, amount = 100 translates to 100 paise, that is โ‚น1 (default currency is INR). > > > > `amount_paid` > > : `integer` The amount that has been paid. > > > > `amount_due` > > : `integer` The amount that is yet to be paid. > > > > `currency` > > : `string` The 3-letter ISO currency code for the payment. Currently, we support INR only. > > > > `receipt` > > : `string` A unique identifier of the order entered by the user. For example, `BILL13375649`. > > > > `status` > > : `string` The status of the order. > > > > `notes` > > : `object` Key-value pair you can use to store additional information about the entity. Maximum of 15 key-value pairs, 256 characters each. For example, "note\_key": "Beam me up Scottyโ€. > > > > `created_at` > > : `integer` The Unix timestamp at which the order was created. > > > > `offer_id` > > : `string` Unique identifier of the offer. > > > > `attempts` > > : `integer` The number of payment attempts, successful and failed, that have been made against this order. > [accordion] Step 3: Turbo UPI SDK Action > > You need to link the customer's UPI account with your app. Use the code samples given below to [fetch the UPI account](#2-link-new-upi-account). > > > [accordion] 1 Initialise the SDK > > > > Use the code given below to initialise the SDK. > > > > ```yml Import Package theme={null} > > import 'package:razorpay_flutter/razorpay_flutter.dart'; > > // Create a Razorpay instance > > razorpay = Razorpay("YOUR_KEY_ID").initUpiTurbo(); > > ``` > > > [accordion] 2 Link New UPI Account > > > > Use the following code to link the newly created UPI account with your app. This function can be called from anywhere in the application, providing multiple entry points for customers to link their UPI account with your app. > > > > ```java Link New UPI Account theme={null} > > razorpay.upiTurbo.linkNewUpiAccount( > > customerMobile: mobileNumber, > > color: "#ffffff", > > onSuccess: (List upiAccounts) { > > // Success callback body > > }, > > onFailure: (Error error) { > > // Failure callback body > > }, > > ); > > ``` > > > > > [accordion] Request Parameters > > > > > > `mobileNumber` *mandatory* > > > : `string` Mobile number of the customer. > > > > > > `color` *optional* > > > : `string` Colour in hex format > > > > * Initialise the instance to handle the event using the code given below: > > > > ```java Instantiate theme={null} > > razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, handlePaymentErrorResponse); > > razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, handlePaymentSuccessResponse); > > ``` > > > > * Handle payment failure responses, displaying important details such as error codes, error descriptions, and metadata. This function is responsible for handling and logging information in the event of a payment error. > > > > ```yml Payment Failure Response Handling theme={null} > > void handlePaymentErrorResponse(PaymentFailureResponse response) { > > > > /** > > * PaymentFailureResponse contains three values: > > * 1. Error Code > > * 2. Error Description > > * 3. Metadata > > **/ > > print('Payment Error Response : $response'); > > } > > ``` > > > > * Handle successful payment responses, displaying key information like order ID, payment ID, and signature. This code manages and logs details when a payment transaction is successful. > > > > ```yml Payment Success Response Handling theme={null} > > void handlePaymentSuccessResponse(PaymentSuccessResponse response) { > > > > /** > > * Payment Success Response contains three values: > > * 1. Order ID > > * 2. Payment ID > > * 3. Signature > > **/ > > print('Payment Success Response : $response'); > > } > > ``` > > > [accordion] 3 Submit Method > > > > To accept payments, call Custom Checkoutโ€™s `submit` method with the following payload: > > > > ```java Submit Payment Details theme={null} > > Map payload = { > > 'amount': 100, > > 'currency': 'INR', > > 'prefill': { > > 'contact': '8888888888', > > 'email': 'test@razorpay.com', > > }, > > 'theme': { > > 'color': '#0CA72F', > > }, > > 'send_sms_hash': true, > > 'retry': { > > 'enabled': false, > > 'max_count': 4, > > }, > > 'key': '$merchantKey', > > 'order_id': 'order_GAWRjlWkVcRh0V', > > 'disable_redesign_v15': false, > > 'experiments.upi_turbo': true, > > }; > > > > razorpay.open(payload); > > ``` > > > > > [accordion] Request Parameter > > > > > > `payload` *mandatory* > > > : `Map` Payload for initiating the transaction. > > > > > [accordion] Response Parameters > > > > > > | Parameter | Description | > > > | - | - | > > > | `onSuccess` | This function is triggered if the list is fetched successfully. `accList` can be empty to indicate that no accounts have been linked yet. | > > > | `onFailure` | This function is triggered in case an error is thrown during the retrieval process, either by the Razorpay SDK or the Bank SDK. | > [accordion] Step 4: Handle Payment Success and Failure > > The way you handle payment success and failure scenarios depends on the Checkout sample code you opted for in the previous step. Know how to [handle payment success and failure](/docs/payments/third-party-validation/standard-integration#4-handle-payment-success-and-failure). > [accordion] Steps 5: Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > * You need to store these fields in your server. > * You can confirm the authenticity of these details by verifying the signature in the next step. > > ```json Success Callback theme={null} > { > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > "razorpay_order_id": "order_GAWRjlWkVcRh0V", > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > } > ``` > > > [accordion] Parameters > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by the Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by the Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] Step 6: Verify Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > To verify the `razorpay_signature` returned to you by the Checkout form: > > 1. Create a signature in your server using the following attributes: > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > * `razorpay_payment_id`: Returned by Checkout. > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/api/authentication#generate-api-keys). > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > ```html HMAC Hex Digest theme={null} > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > if (generated_signature == razorpay_signature) { > payment is successful > } > ``` > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. ### Non-Transactional Flow Razorpay provides a single exposed function that allows you to manage linked UPI accounts and access all non-transactional flows seamlessly. ![View the non-transactional flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-non-transactional.jpg) > [accordion] Manage UPI Accounts > > The SDK manages the linked `UpiAccounts` on the application by triggering `manageUpiAccounts()`. The sequence of steps is as given below: > > * **Fetch balance**: Check the customer's account balance. > * **Change UPI PIN**: Provide the customer the ability to change their UPI PIN. > * **Reset UPI PIN**: Let your customers reset the PIN for their account. > * **Delete the account from the application**: Let your customers delink, that is, remove a selected UPI account from your application. > > ```java Java theme={null} > razorpay.upiTurbo.manageUpiAccounts(customerMobile: mobileNumberValue, > color: "#ffffff", > onFailure:(Error error) { > } > ); > ``` > > > [accordion] Request Parameters > > > > `customerMobile` *mandatory* > > : `string` Mobile number of the customer. > > > > `color` *optional* > > : `string` Colour in hex format. > > > [accordion] Response Parameter > > > > | Parameters | Description | > > | - | - | > > | `onFailure` | This function is triggered in case of an error, and the error object will be received. | ### Models Exposed from the SDKs The SDKs given below provide access to exposed models for seamless integration. > [accordion] Error > > | Error | Description | > | - | - | > | `errorCode` | Types of error codes
  • `BAD_REQUEST_ERROR`: Failure from the client's end (SDK).
  • `GATEWAY_ERROR`: Failure either from the Secure Component or the Bank.
  • `SERVER_ERROR`: Failure at PSP.
| > | `errorDescription` | Brief description of the error. | > | `errorReason` | Specifies the specific reason for the error. | > | `errorSource` | Indicates the origin of the error. | > | `errorStep` | Highlights the stage where the error occurred. | > > [Refer to the list of possible error reasons](/docs/payments/payment-gateway/flutter-integration/standard/payment-methods/turbo-upi/error-codes). > [accordion] UpiAccount > > | Fields | Return Type | Description | > | - | - | - | > | `accountNumber` | String | Masked account number. | > | `ifsc` | String | IFSC of the bank. | > | `bankLogoUrl` | String | Image URL of the bank logo. | > | `bankName` | String | Name of the bank. | > | `bankPlaceholderUrl` | String | Image URL of the bank logo placeholder. | ## 2. Test Integration We recommend the following: * Complete the integration on UAT before using the prod builds. * Perform the UAT using the Razorpay-provided API keys. ## 3. Go-live Checklist Complete these steps to take your integration live: * You should get your app id whitelisted by Razorpay to test on prod. > [!NOTE] > > **Handy Tips** > > Contact our [integrations team](mailto:integrations@razorpay.com) to get your mobile number and app whitelisted. * Import the prod library from the GitHub repository โ†’ `https://github.com/upi-turbo/android-turbo-sample-app/tree/prod/app/libs` prod branch. * Add Proguard rules: * `keepclassmembers,allowobfuscation class * { @com.google.gson.annotations.SerializedName ; }` * `keepclassmembers enum * { *; }` * `keepclassmembers class * { @android.webkit.JavascriptInterface ; }` * `dontwarn com.razorpay.**` * `keep class com.razorpay.** {*;}` * `keep class com.olivelib.** {*;}` * `keep class com.olive.** {*;}` * `keep class org.apache.xml.security.** {*;}` * `keep interface org.apache.xml.security.** {*;}` * `keep class org.npci.** {*;}` * `keep interface org.npci.** {*;}` * `keep class retrofit2.** { *; }` * `keep class okhttp3.** { *; }` * Replace the UAT credential with the [Razorpay live keys](/docs/api/authentication#live-mode-api-keys) for prod testing. # Integrate with Turbo UPI Source: https://razorpay.com/docs/payments/payment-gateway/flutter-integration/standard/payment-methods/turbo-upi Steps to integrate Razorpay Turbo UPI with your app. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Turbo UPI Flutter Standard SDK](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to Turbo UPI on Flutter Standard Checkout (since Jan 2024). Razorpay Turbo UPI enables businesses to offer faster and simpler payments by reducing the payment process from 5 steps to just 1, eliminating app redirections. This provides a seamless in-app payment experience, reduce dependencies on third-party UPI apps, and offers complete visibility into the payment journey. You can easily integrate Turbo UPI with the Razorpay Flutter Standard SDK. Explore the full potential of [Razorpay Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi) and learn how it works. ![Turbo UPI Standard Checkout Flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-flow.jpg) > [accordion] Prerequisites > > 1. Contact our [integrations team](mailto:integrations@razorpay.com) to get your mobile number, app, and GitHub account whitelisted for access to the `https://github.com/upi-turbo/razorpay-turbo-flutter` sample app repository. > > 2. Review the [Razorpay Flutter Standard SDK](/docs/payments/payment-gateway/flutter-integration/standard) documentation for integration guidelines. > > 3. Add Location Dependency: The SDK requires location permission to complete device onboarding. Ensure you have added the necessary location dependencies as described below. > > * For iOS:\ > Update your `Info.plist` file with the following keys to request location permissions: > > ```yml plist theme={null} > NSLocationWhenInUseUsageDescription > > Your app needs access to your location while using the app. > ``` > > Make sure these permissions are clearly communicated to your users to ensure a smooth onboarding experience. > > 4. For Android-specific integrations, add the following dependencies to your `build.gradle` file: > > **Getting the Turbo Dependencies:** > > ```java gradle theme={null} > implementation("com.razorpay:checkout:") > implementation("com.razorpay:razorpay-turbo:") > implementation("com.razorpay:turbo-ui:") > ``` > > Replace ``, ``, and `` with the latest versions available. > > You can find the latest versions here: > > * [Razorpay Checkout](https://central.sonatype.com/artifact/com.razorpay/checkout) > * [Razorpay Turbo](https://central.sonatype.com/artifact/com.razorpay/razorpay-turbo) > * [Turbo UI](https://central.sonatype.com/artifact/com.razorpay/turbo-ui) > > **Enable `viewBinding` and `dataBinding`:** > > ```java gradle theme={null} > buildFeatures { > viewBinding = true > dataBinding = true > } > ``` > > Ensure you sync your project after adding these dependencies. > [accordion] Library Dependencies > > To integrate Turbo UPI, you must add the required library dependencies to your Flutter project: > > 1. Add the following entry to the `dependencies` section of your `pubspec.yaml` file: > > ```yaml theme={null} > razorpay_turbo_standard: 1.0.0 > ``` > > 2. Run the following command in your terminal to fetch and install the new dependency: > > ``` > ``` ## Onboarding Flow Ensure your customers [onboard with Razorpay Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi#onboarding-flow) to get started. ## 1. Integration Steps Follow these steps to integrate with Razorpay Turbo UPI: ### 1.1 Import Razorpay Package To integrate Turbo UPI with your Flutter app, start by importing the required packages. This sets up the SDK and enables your app to handle UPI payments. Use the code snippet below to import the package: ```yml dart theme={null} import 'package:razorpay_flutter/razorpay_flutter.dart'; ``` ### 1.2 Initialise Razorpay and Register Event Listeners Set up the Razorpay instance and register event listeners to handle payment success, failure, and session token refresh. This ensures your app can respond appropriately to payment outcomes and keep session tokens up to date for a smooth user experience. Add the following method during initialisation: ```java dart theme={null} void initializeRazorpayWithEvents() { // Create a Razorpay instance razorpay = Razorpay("YOUR_KEY_ID"); //Session token event razorpay.on(Razorpay.EVENT_FETCH_SESSION_TOKEN, _handleRefreshToken); //Payment Events razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, handlePaymentErrorResponse); razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, handlePaymentSuccessResponse); } ``` ### 1.3. Create a Session Token To enhance security, you must create a session token via a server-to-server (S2S) call between your backend and Razorpay's backend. This session token ensures secure communication between the Turbo SDK and Razorpay's systems. #### How to Create a Session Token 1. Trigger the S2S API from your Backend. Use the following API to generate a session token: ```bash Curl theme={null} curl -X POST 'https://api.razorpay.com/v1/upi/turbo/customer/session' \ -u [YOUR_KEY_ID]:[YOUR_SECRET] \ -H "Content-type: application/json" \ -d '{ "customer_reference": "9000090000" }' ``` ```bash Success theme={null} { "token": "session_token", "expire_at": 1730097636 } ``` ```bash Failure theme={null} { "error": { "code": "BAD_REQUEST_ERROR", "description": "customer_reference is required", "source": "customer", "step": "CreateSession", "reason": "customer_reference_field_is_missing", "metadata": {} } } ``` > [accordion] Request Parameter > > `customer_reference` *mandatory* > : `string` A unique identifier for the customer provided by the business. The recommended value is mobile number. For example, `9000090000`. > [accordion] Response Parameters > > `token` > : `string` A session token to be used in subsequent session-protected APIs. > > `expire_at` > : `long` Expiry time (in seconds) for the session token, used to optimise session handling and reduce unnecessary reinitialisations. > > `error` > : `object` The request failure due to business or technical failure. > [accordion] Errors > > Given below is a list of errors you may face during session token. > > | Error | Description | > | - | - | > | `code` | Types of error codes
  • `BAD_REQUEST_ERROR`: Failure from the client's end (SDK).
  • `GATEWAY_ERROR`: Failure either from the Secure Component or the Bank.
  • `SERVER_ERROR`: Failure at PSP.
| > | `description` | Brief description of the error. | > | `field` | Indicates which field is missing. | > | `reason` | Specifies the specific reason for the error. | > | `source` | Highlights the source where the error occurred. | > | `step` | Highlights the stage where the error occurred. | 2. Create/Retry Session Token Mechanism To ensure a smooth experience during token expiry, the Turbo SDK provides the `updateSessionToken` method. This method dynamically fetches and updates the session token without reinitialising the session. This allows you to seamlessly refresh the session by retrieving a new token via a server-to-server (S2S) call. Below is an example of using `updateSessionToken`. * Handle the event using the code given below: ```java dart theme={null} void _handleRefreshToken(dynamic response) async { // API Call to generate token razorpay.upiTurbo.updateSessionToken(token: โ€˜โ€™); }; ``` ### 1.4. Handle UPI Account Linking and Payment Flow You can link a customer's UPI account and initiate payments using the methods described below. #### 1.4.1 Link Customer's UPI Account To link a customer's UPI account with your app, use the following code sample. This will prompt the customer to add and link their UPI account. ```java dart theme={null} razorpay.upiTurbo.linkNewUpiAccount( customerMobile: mobileNumber, color: "#ffffff", onSuccess: (List upiAccounts) { // Handle successful linking. upiAccounts may be empty if no accounts are linked yet. }, onFailure: (Error error) { // Handle error during linking. } ); ``` > [accordion] Request Parameters > > `customerMobile` *mandatory* > : `string` Mobile number of the customer. > > `color` *optional* > : `string` Colour in HEX format. > [accordion] Response Parameters > > | Parameters | Description | > | - | - | > | `onSuccess` | Triggered if the UPI accounts are fetched successfully. The `upiAccounts` list may be empty if no accounts are linked. | > | `onFailure` | Triggered in case of an error. The error object will be received. | #### 1.4.2 Initiate Payment Using Standard Checkout To initiate a payment, call the Standard Checkoutโ€™s `open` method with the required payload: ```java dart theme={null} Map payload = { 'amount': 100, // Amount in the smallest currency unit (e.g., paise) 'currency': 'INR', 'prefill': { 'contact': 'YOUR_MOBILE_NUMBER', 'email': 'YOUR_EMAIL' }, 'theme': {'color': '#0CA72F'}, 'key': 'YOUR_KEY_ID', 'image': 'https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg' }; razorpay.open(payload); ``` > [accordion] Request Parameters > > `payload` *mandatory* > : `Map` Payload for initiating the transaction. #### 1.4.3 Handle Payment Events Handle payment success and failure responses: * **Handle Payment Failure:** Log and display error details such as error code, description, and metadata. ```java dart theme={null} void handlePaymentErrorResponse(PaymentFailureResponse response) { /** * PaymentFailureResponse contains: * 1. Error Code * 2. Error Description * 3. Metadata **/ print('Payment Error Response: $response'); } ``` * **Handle Payment Success:** Log and display key information like order ID, payment ID, and signature. ```java dart theme={null} void handlePaymentSuccessResponse(PaymentSuccessResponse response) { /** * PaymentSuccessResponse contains: * 1. Order ID * 2. Payment ID * 3. Signature **/ print('Payment Success Response: $response'); } ``` By following these steps, you can seamlessly link customer UPI accounts and handle payments using Razorpay Turbo UPI in your Flutter app. ### Non-Transactional Flow Razorpay provides a single exposed function that allows you to manage linked UPI accounts and access all non-transactional flows seamlessly. ![View the non-transactional flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-non-transactional.jpg) > [accordion] Manage UPI Accounts > > The SDK manages the linked `UpiAccounts` on the application by triggering `manageUpiAccounts()`. The sequence of steps is as given below: > > * **Fetch balance**: Check the customer's account balance. > * **Change UPI PIN**: Provide the customer the ability to change their UPI PIN. > * **Reset UPI PIN**: Let your customers reset the PIN for their account. > * **Delete the account from the application**: Let your customers delink, that is, remove a selected UPI account from your application. > > ```java dart theme={null} > razorpay.upiTurbo.manageUpiAccounts( > customerMobile: "MOBILE_NUMBER", > color: "#ffffff", > onFailure:(Error error) { > > } > ); > ``` > > > [accordion] Request Parameters > > > > `customerMobile` *mandatory* > > : `string` Mobile number of the customer. > > > > `color` *optional* > > : `string` Colour in HEX format. > > > [accordion] Response Parameter > > > > | Parameters | Description | > > | - | - | > > | `onFailure` | This function is triggered in case of an error, and the error object will be received. | ### Models Exposed from the SDKs The SDKs given below provide access to exposed models for seamless integration. > [accordion] Error > > | Error | Description | > | - | - | > | `errorCode` | Types of error codes
  • `BAD_REQUEST_ERROR`: Failure from the client's end (SDK).
  • `GATEWAY_ERROR`: Failure either from the Secure Component or the Bank.
  • `SERVER_ERROR`: Failure at PSP.
| > | `errorDescription` | Brief description of the error. | > | `errorReason` | Specifies the specific reason for the error. | > | `errorSource` | Indicates the origin of the error. | > | `errorStep` | Highlights the stage where the error occurred. | > > [Refer to the list of possible error reasons](/docs/payments/payment-gateway/flutter-integration/standard/payment-methods/turbo-upi/error-codes). > [accordion] UpiAccount > > | Fields | Return Type | Description | > | - | - | - | > | `accountNumber` | String | Masked account number. | > | `ifsc` | String | IFSC of the bank. | > | `bankLogoUrl` | String | Image URL of the bank logo. | > | `bankName` | String | Name of the bank. | > | `bankPlaceholderUrl` | String | Image URL of the bank logo placeholder. | # Turbo UPI SDK - Error Codes Source: https://razorpay.com/docs/payments/payment-gateway/flutter-integration/standard/payment-methods/turbo-upi/error-codes List of error codes for Turbo UPI SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Given below is the list of error codes categorised by error reasons, with relevant descriptions, source and step. ### Bad Request Errors Given below is the list of Bad Request errors. > [accordion] bank\_not\_live\_on\_upi > > * **Description**: The selected bank is not enabled on UPI. Please try using another bank. > * **Source**: gateway > * **Step**: customer\_onboarding > [accordion] account\_does\_not\_exist > > > [accordion] Payment Debit Request > > > > * **Description**: No accounts found for the selected bank. Please try using another bank. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Payment Credit Request > > > > * **Description**: Payment was unsuccessful as the receiver's bank account is not valid. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_credit\_request > [accordion] transaction\_not\_allowed > > > [accordion] Payment Debit Request > > > > * **Description**: Transaction not permitted to the account as per your bank policy. Please contact your bank for more details or try with another bank account. > > * **Source**: customer > > * **Step**: payment\_debit\_request > > > [accordion] Payment Credit Request > > > > * **Description**: Payment not allowed as it got declined by the receiver's bank. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_credit\_request > [accordion] upi\_pin\_registration\_card\_expired > > * **Description**: Card used while setting UPI PIN has expired. Please use another debit card or use another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_not\_found > > * **Description**: Card details used while setting UPI PIN are incorrect. Please re-check and try again. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_restricted > > * **Description**: Card used while setting UPI PIN has been blocked by your bank. Please reach out to your bank for more information or try using another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] bank\_technical\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: beneficiary\_bank > * **Step**: payment\_status\_request > [accordion] pin\_not\_set > > * **Description**: Payment was unsuccessful as you have not set the UPI PIN on the app. Try using another method. > * **Source**: customer\_psp > * **Step**: payment\_authentication > [accordion] customer\_not\_registered > > * **Description**: No bank account is associated with this mobile number. Please try again by adding your account. > * **Source**: gateway > * **Step**: customer\_onboarding > [accordion] server\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: gateway > * **Step**: payment\_authentication > [accordion] payment\_cancelled\_by\_user > > * **Description**: Flow was aborted as you pressed back from the PIN screen. Please try again. > * **Source**: customer > * **Step**: payment\_authorization ### Gateway Errors Given below is the list of gateway errors. > [accordion] incorrect\_otp > > * **Description**: You have entered an incorrect OTP. Try again. > * **Source**: customer > * **Step**: customer\_onboarding > [accordion] otp\_expired > > * **Description**: You have entered an expired OTP. Please regenerate OTP and try again. > * **Source**: customer > * **Step**: customer\_onboarding > [accordion] insufficient\_funds > > * **Description**: Payment was unsuccessful due to insufficient funds. Kindly check your balance and try again. > * **Source**: customer > * **Step**: payment\_debit\_request > [accordion] insufficient\_funds\_mandate\_block > > * **Description**: Payment was unsuccessful as the amount in your account is blocked for another payment. Try using another account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] otp\_attempts\_exceeded > > * **Description**: You have entered an incorrect OTP too many times. Try again in some time. > * **Source**: customer\_psp > * **Step**: customer\_onboarding > [accordion] account\_dormant > > * **Description**: Payment was unsuccessful as the receiver's bank account is inactive. Any amount deducted will be refunded within 5-7 working days. > * **Source**: beneficiary\_bank > * **Step**: payment\_credit\_request > [accordion] bank\_not\_live\_on\_upi > > * **Description**: Selected bank is not available on UPI. Please try using another bank. > * **Source**: issuer\_bank > * **Step**: customer\_onboarding > [accordion] payment\_timed\_out > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_response > > > [accordion] UPI ID Not Reachable > > > > * **Description**: Payment was unsuccessful as the bank linked to this UPI ID is not reachable at this time. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > [accordion] first\_transaction\_limit\_exceeded > > * **Description**: Payment was unsuccessful as you exceeded the first-time transaction limit set by your bank. You can use another bank account or retry after 24 hours. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] transaction\_limit\_exceeded > > > [accordion] Limit Set By Bank Exceeded > > > > * **Description**: Payment was unsuccessful as you exceeded the transaction limit set by your bank. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > > > [accordion] Daily Amount Limit Exceeded > > > > * **Description**: Payment was unsuccessful as you exceeded the amount limit for the day with this bank account. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > [accordion] first\_time\_transaction\_freeze\_period > > * **Description**: Payment was unsuccessful due to the cooling period set by your bank for first-time user. Please try again after some time. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] transaction\_frequency\_limit\_exceeded > > * **Description**: Payment was unsuccessful as the number of transactions exceeds the max limit set by the bank. You can use another bank account or retry after some time. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] bank\_account\_inactive > > > [accordion] Issuer Bank Account Inactive > > > > * **Description**: Payment was unsuccessful as your account is not active. Please try using another bank account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Receiver Bank Account Inactive > > > > * **Description**: Payment was unsuccessful as the receiver's bank account is not active. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_debit\_request > [accordion] server\_error > > > [accordion] Temporary Issue - Issuer Bank > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_request > > > [accordion] Temporary Issue - Beneficiary Bank > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > > * **Source**: issuer\_bank > > * **Step**: payment\_request > [accordion] invalid\_ifsc > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > * **Source**: gateway > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_blocked > > * **Description**: Card used while setting UPI PIN has been blocked by your bank. Please reach out to your bank for more information or try using another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] bank\_technical\_error > > > [accordion] UPI ID Temporarily Unavailable > > > > * **Description**: Payment was unsuccessful as the bank linked to this UPI ID is temporarily unavailable. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: issuer\_bank > > * **Step**: payment\_credit\_response > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: issuer\_bank > > * **Step**: payment\_credit\_response > [accordion] payment\_declined > > > [accordion] Declined by Bank > > > > * **Description**: Payment was unsuccessful as it was declined by your bank. Reach out to your bank for more details. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_debit\_request > [accordion] pin\_attempts\_exceeded > > * **Description**: You have exceeded the incorrect UPI PIN attempts. You can use another bank account or retry after 24 hours. > * **Source**: customer > * **Step**: payment\_authentication > [accordion] incorrect\_pin > > * **Description**: You have entered incorrect UPI PIN. Please try again with the correct UPI PIN. > * **Source**: customer > * **Step**: payment\_authentication > [accordion] linked\_account\_removal\_failed > > * **Description**: Unable to remove the account. Please try again. > * **Source**: customer\_psp > * **Step**: account\_management > [accordion] sms\_text\_not\_received > > * **Description**: Something went wrong while sending SMS. Please try again. > * **Source**: gateway > * **Step**: customer\_onboarding ### Server Errors Given below is the list of server errors. > [accordion] server\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: issuer\_bank > * **Step**: customer\_onboarding > [accordion] server\_error > > * **Description**: We are facing some trouble completing your request at the moment. Please try again shortly. > * **Source**: internal > * **Step**: payment\_authorization # Troubleshooting and FAQs Source: https://razorpay.com/docs/payments/payment-gateway/flutter-integration/standard/troubleshooting-faqs Troubleshoot common error scenarios and find answers to frequently asked questions about Standard Flutter integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] What is order id and how to generate it? > > Order creation is the primary step of the Razorpay payment flow. When customer clicks the pay button on your app, an Order is created and a corresponding order\_id is generated in the response. This order\_id must be passed to the Razorpay Checkout options added in your Flutter app. Know more about [Orders](/docs/api/orders). > [accordion] What is the process for raising a request for a new feature? > > To raise a request for a new feature, go to **New Issue** โ†’ **Feature Request** on our [GitHub repository](https://github.com/razorpay/razorpay-cordova/issues/new/choose). > [accordion] How can I update the existing 'razorpay-pod'? > > * Go to **iOS** folder in your project and run **'pod update'** to update all the pods. > * If you do not want to update all pods, run **'pod update razorpay-pod'**. > [accordion] I have integrated with the Payment Gateway to accept payments on my mobile app. However, when I try to publish my app on the Apple App Store, it is getting rejected. The following message is displayed, "We noticed that your app offers a subscription with a mechanism other than the in-app purchase API." How to resolve this? > > * **Cause**: As per Apple's policy, if you use a subscription model in your iOS app, you must use Apple's in-app purchase APIs. Apple does not redirect out of the app for digital product purchases. > > * **Resolution**: Use Apple's in-app purchase APIs. > [accordion] In the new M1 MacBook, why am I not able to compile the Flutter Razorpay plugin for release mode? > > This issue is caused by the new changes introduced in Xcode 12. > > To resolve this: > > 1. Use [Rosetta 2](https://support.apple.com/en-us/HT211861) for launching the app on your Mac. > 2. Add the following lines to Podfile within `post_install do |installer|`. > > ```javascript podfile theme={null} > installer.pods_project.build_configurations.each do |config| > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > end > ``` > > Know more about [compilation errors](https://khushwanttanwar.medium.com/xcode-12-compilation-errors-while-running-with-ios-14-simulators-5731c91326e9). > [accordion] How can I check the Razorpay Flutter Standard SDK version? > > To check the SDK version: > > 1. Open your Flutter project in your preferred code editor. > 2. Open the `pubspec.yaml` file in the root directory of your project. > 3. In the `dependencies` section, look for the Razorpay entry. The version number is specified next to the package name in the format `x.y.z`. > [accordion] How can I update the Razorpay Flutter Standard SDK version? > > To update the SDK version, follow these steps: > > 1. Open the terminal or command prompt and navigate to your project directory where the `package.json` file resides. > 2. Use the following command to update the dependencies listed in your pubspec.yaml file to their latest compatible versions. > > ```java Update SDK theme={null} > dart pub upgrade > ``` > > 3. If you are using a Flutter iOS application, run `cd ios && pod repo update && pod update` to ensure the internal iOS dependencies are updated to the versions set by the Razorpay package. This is because cocoapods may not automatically update the internal trunk spec to fetch the latest versions. > 4. After running the update command, review the updates fetched by npm to ensure they do not introduce any breaking changes. > 5. Conduct thorough testing to ensure that the updated packages do not adversely affect the application functionality and commit the changes. # iOS Standard Checkout Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ios-integration/standard Check the prerequisites before you integrate with Razorpay iOS Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [card] [iOS Standard SDK Changelog](/docs/payments/changelog#mobile-sdks) > > Discover new features, updates and deprecations related to the Razorpay iOS Standard SDK (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ios-integration/standard/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about iOS Standard integration. Integrate the Razorpay Payment Gateway with your iOS app and start accepting payments from your customers. > [!WARNING] > > **Watch Out!** > > You cannot use an external payment gateway to accept payments by selling digital products or content. You must use Appleโ€™s In-App Purchase to avoid app rejection. Know more about the [list of restricted payment modes](/docs/payments/payment-gateway/ios-integration/standard/troubleshooting-faqs#list-of-restricted-payment-modes). > [!TIP] > > **Update SDK** > > Check your [current SDK version](/docs/payments/payment-gateway/ios-integration/standard/troubleshooting-faqs#how-can-i-check-the-razorpay-ios-standard-sdk-version). If it is outdated, please [update the SDK](/docs/payments/payment-gateway/ios-integration/standard/troubleshooting-faqs#how-can-i-update-the-razorpay-ios-standard-sdk-version) to ensure uninterrupted settlements of your funds. ## Integration Steps **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works).
Follow these integration steps: > [card] [1. Build Integration](/docs/payments/payment-gateway/ios-integration/standard/integration-steps#1-build-integration) > > Integrate iOS Standard SDK. > [card] [2. Test Integration](/docs/payments/payment-gateway/ios-integration/standard/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/ios-integration/standard/integration-steps#3-go-live-checklist) > > Check the go-live checklist. > [card] [Sample App](https://github.com/razorpay/razorpay-ios-sample-app) > > Check the sample app to integrate on GitHub. ### Related Information [Troubleshooting and FAQs](/docs/payments/payment-gateway/ios-integration/standard/troubleshooting-faqs) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ios-integration/standard/integration-steps Steps to integrate your iOS application with Razorpay iOS Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Follow these steps to integrate your iOS application: > [card] [1. Build Integration](/docs/payments/payment-gateway/ios-integration/standard/integration-steps#1-build-integration) > > Integrate iOS Standard Checkout. > [card] [2. Test Integration](/docs/payments/payment-gateway/ios-integration/standard/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/ios-integration/standard/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to Integrate Razorpay Payment Gateway on iOS Apps](https://www.youtube.com/embed/5HTQX-AokIk) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Import Razorpay iOS Standard SDK Library > > You can import the Razorpay iOS Standard SDK library using any of these ways: > > > [tab] Cocoapod > > > > Refer to our [Cocoapod](https://cocoapods.org/pods/razorpay-pod) (bitcode enabled) pod. > > > [tab] Manual > > > > 1. Download the SDK and unzip it. > > 2. Open your project in XCode and go to **file** under **Menu**. Select **Add files to "yourproject"**. > > 3. Select **Razorpay.xcframework** in the directory you just unzipped. > > 4. Select the **Copy items if needed** checkbox. > > 5. Click **Add**. > > 6. Navigate to **Target settings โ†’ General** and add the **Razorpay.xcframework** in both **Embedded Binaries** and **Linked Frameworks and Libraries**. > > > [tab] Objective-C > > > > If you are building an **Objective-C** project, follow the steps given for Swift and the additional steps given below: > > > > 1. Go to **Project Settings** and select **Build Settings - All and Combined**. > > 2. Set the **Always Embed Swift Standard Libraries** option to **TRUE**. > > > > Ensure that you have the framework added in both **Embedded Binaries** and **Linked Frameworks and Libraries** under **Target settings - General**. > > > [accordion] Xcode 11 > > > > Ensure that you have the framework added in **Frameworks, Libraries, and Embed Content** under **Target settings - General**. Change `Embed status` from - `Do not Embed` to `Embed & Sign`. \\ > > > > Watch the GIF to see how to add Frameworks, Libraries and Embed Content. > > > > ![add Frameworks, Libraries and Embed Content](https://razorpay.com/docs/build/browser/assets/images/ios-embed-framework.gif) > [accordion] 2 Initialize Razorpay iOS Standard SDK > > To initialize Razorpay iOS Standard SDK, you need the following: > > * API keys. You can generate this from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > > [!WARNING] > > > > **Watch Out!** > > > > API keys should not be hardcoded in the app. Must be sent from your backend as app-related metadata fetch. > > * A delegate that implements `RazorpayPaymentCompletionProtocol` or `RazorpayPaymentCompletionProtocolWithData`. > > > [!WARNING] > > > > **Watch Out!** > > > > * For Swift version 5.1+, ensure that you declare `var razorpay: RazorpayCheckout!`. > > > > * For versions lower than 5.1, use `var razorpay: Razorpay!`. > > > > * Alternatively, you can use the following alias and retain the variable as Razorpay. \\ > > > > `typealias Razorpay = RazorpayCheckout` > > ```swift ViewController.swift theme={null} > import Razorpay > > class ViewController: UIViewController, RazorpayPaymentCompletionProtocol { > > // typealias Razorpay = RazorpayCheckout > > var razorpay: RazorpayCheckout! > override func viewDidLoad() { > super.viewDidLoad() > razorpay = RazorpayCheckout.initWithKey(razorpayTestKey, andDelegate: self) > } > override func viewWillAppear(_ animated: Bool) { > super.viewWillAppear(animated) > self.showPaymentForm() > } > } > ``` > > ```objectivec ViewController.m theme={null} > #import > //- typedef RazorpayCheckout Razorpay; > > @interface ViewController () { > RazorpayCheckout *razorpay; > . > . > - (void)viewDidLoad { > [super viewDidLoad]; > . > . > razorpay = [RazorpayCheckout initWithKey:@"YOUR_PUBLIC_KEY" andDelegate:self]; > } > } > ``` > [accordion] 3 Create an Order in Server > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order using: > > > [tab] API Sample Code > > > > Use this endpoint to create an order using the Orders API. > > > > `POST /orders` > > > > ```bash Curl theme={null} > > curl -X POST https://api.razorpay.com/v1/orders > > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -H 'content-type:application/json' > > -d '{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "qwsaq1", > > "partial_payment": true, > > "first_payment_min_amount": 230 > > }' > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > JSONObject orderRequest = new JSONObject(); > > orderRequest.put("amount", 50000); // amount in the smallest currency unit > > orderRequest.put("currency", "INR"); > > orderRequest.put("receipt", "order_rcptid_11"); > > > > Order order = razorpay.Orders.create(orderRequest); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > DATA = { > > "amount": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "key1": "value3", > > "key2": "value2" > > } > > } > > client.order.create(data=DATA) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->create(array('receipt' => '123', 'amount' => 50000, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient(your_key_id, your_secret); > > > > Dictionary options = new Dictionary(); > > options.Add("amount", 50000); // amount in the smallest currency unit > > options.add("receipt", "order_rcptid_11"); > > options.add("currency", "INR"); > > Order order = client.Order.Create(options); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > options = amount: 50000, currency: 'INR', receipt: '' > > order = Razorpay::Order.create > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.create({ > > amount: 50000, > > currency: "INR", > > receipt: "receipt#1", > > notes: { > > key1: "value3", > > key2: "value2" > > } > > }) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > data := map[string]interface{}{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "some_receipt_id" > > } > > body, err := client.Order.Create(data) > > ``` > > > > ```json Success Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "rcptid_11", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1642662092 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Order amount less than minimum amount allowed", > > "source": "business", > > "step": "payment_initiation", > > "reason": "input_validation_failed", > > "metadata": {}, > > "field": "amount" > > } > > } > > ``` > > > [tab] Razorpay Postman Public Workspace > > > > You can use the Postman workspace below to create an order: > > > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > > > You can create an order manually by integrating the API sample codes on your server. > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit. For example, for an actual amount of , the value of this field should be `22225`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be of 3 characters. > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7,000 is to be received from the customer in two installments of #1 - โ‚น5,000, #2 - โ‚น2,000, then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > [accordion] 4 Pass Payment Options and Display Checkout Form > > Call `RazorpayCheckout.checkIntegration(withMerchantKey: )` to check the health of integration. This will also let you know if the SDK version is outdated. The opinionated alerting is displayed only when it is running on simulators. Add the following code to your `ViewController` or wherever you want to initialize payments: > > ```swift ViewController.swift theme={null} > internal func showPaymentForm(){ > let options: [String:Any] = [ > "key": "YOUR_KEY_ID", > "amount": "100", // This is in currency subunits. > "currency": "INR",// We support more that 92 international currencies. > "description": "purchase description", > "order_id": "order_DBJOWzybf0sJbb", > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > "name": "business or product name", > "prefill": [ > "contact": "", > "email": "" > ], > "theme": [ > "color": "#F37254" > ] > ] > razorpay.open(options) > } > ``` > > ```objectivec ViewController.m theme={null} > - (void)showPaymentForm { // called by your app > NSDictionary *options = @{ > @"key": @"YOUR_KEY_ID", > @"amount": @"1000", // This is in currency subunits. > // all optional other than amount. > @"currency": @"INR", // We support more that 92 international currencies. > @"image": @"https://url-to-image.jpg", > @"name": @"business or product name", > @"description": @"purchase description", > @"order_id": @"order_4xbQrmEoA5WJ0G", > @"prefill" : @{ > @"email": @"", > @"contact": @"" > }, > @"theme": @{ > @"color": @"#F37254" > } > }; > [razorpay open:options]; > } > ``` > > > [!NOTE] > > > > **Optional Parameter - displayController** > > > > When the optional parameter- displayController, is specified, the Razorpay controller is pushed onto this controller's navigation controller if present or presented on this controller if absent. > > > > ``` > > razorpay.open(options, displayController: self) > > ``` > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To support theme colour in the progress bar, please pass HEX colour values only. > > > [accordion] 4.1 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > > > > ### UPI Intent on Recurring Payments > > > > Configure and initiate a recurring payment transaction on UPI Intent: > > > > ```swift ViewController.swift theme={null} > > let options: [String:Any] = [ > > "key": "YOUR_KEY_ID", > > "order_id": "order_DBJOWzybfXXXX", > > "customer_id": "cust_BtQNqzmBlXXXX", > > "prefill": [ > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com" > > ], > > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > "amount": 10000, // Amount should match the order amount > > "currency": "INR", > > "recurring": 1 // This key value pair is mandatory for Intent Recurring Payment. > > ] > > ``` > > > > ```objectivec ViewController.m theme={null} > > NSDictionary *options = @{ > > @"key": @"YOUR_KEY_ID", > > @"order_id": @"order_DBJOWzybfXXXX", > > @"customer_id": @"cust_BtQNqzmBlXXXX", > > @"prefill": @{ > > @"contact": @"+919000090000", > > @"email": @"gaurav.kumar@example.com" > > }, > > @"image": @"https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > @"amount": @(10000), // Amount should match the order amount > > @"currency": @"INR", > > @"recurring": @(1) // This key value pair is mandatory for Intent Recurring Payment. > > }; > > ``` > [accordion] 5 Handle Success and Errors Events > > After completing payment, you can handle success or error events by implementing `onPaymentSuccess` and `onPaymentError` methods of the `RazorpayPaymentCompletionProtocol`. > > Alternatively, you can implement `onPaymentSuccess` and `onPaymentError` methods of `RazorpayPaymentCompletionProtocolWithData`. > > > [tab] RazorpayPaymentCompletionProtocol > > > > ```swift ViewController.swift theme={null} > > extension CheckoutViewController : RazorpayPaymentCompletionProtocol { > > > > func onPaymentError(_ code: Int32, description str: String) { > > print("error: ", code, str) > > self.presentAlert(withTitle: "Alert", message: str) > > } > > > > func onPaymentSuccess(_ payment_id: String) { > > print("success: ", payment_id) > > self.presentAlert(withTitle: "Success", message: "Payment Succeeded") > > } > > } > > ``` > > > > ```objectivec ViewController.m theme={null} > > - (void)onPaymentSuccess:(NSString *)payment_id { > > [self showAlertWithTitle:SUCCESS_TITLE > > andMessage:[NSString > > stringWithFormat:SUCCESS_MESSAGE, payment_id]]; > > } > > > > - (void)onPaymentError:(int)code description:(NSString *)str { > > [self showAlertWithTitle:FAILURE_TITLE > > andMessage:[NSString > > stringWithFormat:FAILURE_MESSAGE, code, str]]; > > } > > ``` > > > [tab] RazorpayPaymentCompletionProtocolWithData > > > > ```swift ViewController.swift theme={null} > > extension CheckoutViewController: RazorpayPaymentCompletionProtocolWithData { > > > > func onPaymentError(_ code: Int32, description str: String, andData response: [AnyHashable : Any]?) { > > print("error: ", code) > > self.presentAlert(withTitle: "Alert", message: str) > > } > > > > func onPaymentSuccess(_ payment_id: String, andData response: [AnyHashable : Any]?) { > > print("success: ", payment_id) > > self.presentAlert(withTitle: "Success", message: "Payment Succeeded") > > } > > } > > ``` > > > > ```objectivec ViewController.m theme={null} > > - (void)onPaymentError:(int32_t)code description:(NSString * _Nonnull)str andData:(NSDictionary * _Nullable)response { > > NSLog(@"%@ %@",str, response); > > } > > - (void)onPaymentSuccess:(NSString * _Nonnull)payment_id andData:(NSDictionary * _Nullable)response { > > NSLog(@"%@ %@",payment_id, response); > > } > > ``` > > > > After completing the payment, add necessary actions based on success or error events. > > > [accordion] Failure Codes > > > > * 0: Network error > > * 1: Initialization failure / Unexpected behaviour > > * 2: Payment cancelled by the user > > > > Success handler receives `payment_id` that you can use later for capturing the payment. > [accordion] 6 Store the Fields in Database > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 7 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > [accordion] 8 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay iOS integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # Integrate with Turbo UPI Source: https://razorpay.com/docs/payments/payment-gateway/ios-integration/standard/payment-methods/turbo-upi Steps to integrate Razorpay Turbo UPI with your app. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India With Razorpay Turbo UPI, businesses experience faster and simpler payments. It condenses the payment process from 5 steps to just 1, eliminating app redirections. Enjoy a seamless in-app payment experience, reduce dependencies on third-party UPI apps, and gain complete visibility of the payment journey. You can seamlessly integrate Turbo UPI with Razorpay iOS Standard SDK. Explore the full potential of [Razorpay Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi) and know How it Works. ![Turbo UPI Standard Checkout Flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-flow.jpg) ## Prerequisites * Integrate with [Razorpay iOS Standard SDK](/docs/payments/payment-gateway/ios-integration/standard/integration-steps). Ensure that you integrate with SDK version 1.0.0 or higher. * Import the following frameworks: * Common library/NPCI framework * Axis olive framework * Razorpay Turbo UPI framework > [!WARNING] > > **Watch Out!** > > The minimum supported iOS version for Turbo UPI is 11 and above. ## Onboarding Flow Ensure your customers [onboard with Razorpay Turbo UPI](/docs/payments/payment-methods/upi/turbo-upi#onboarding-flow) to get started. ## Installation Turbo UPI wrapper plugin is available as a cocoapod, which can be integrated with any iOS application with a minimum deployment target of iOS 11 later. Add the code given below in the projectโ€™s `podfile` to get this cocoapod: ```json theme={null} pod razorpay-turbo-pod ``` ## Turbo UI SDK Integration Follow these steps to integrate with Razorpay Turbo UPI: 1. Initialise the Checkout object to enable the Turbo UPI functionality. ```swift Swift theme={null} // The `razorpay` variable can be declared a Global Variable in the ViewController. var razorpay: RazorpayCheckout? self.razorpay = RazorpayCheckout.initWithKey(checkoutKey ?? "", andDelegateWithData: self, plugin: RazorpayTurboUPI.turboUIPlugin()) ``` ```objectivec Objective C theme={null} razorpay = [RazorpayCheckout initWithKey:@"Your_Key_ID" andDelegate: self withPaymentWebView: webView plugin: [RazorpayTurboUPI turboUIPlugin]]; ``` 2. Use the following code to link the newly created UPI account with your app. This function can be called from any application section, offering multiple entry points for customers to link their UPI account with your app. Linking it in advance allows customers to pay directly with the linked `UpiAccount` without repeating the linking process. ```swift Swift theme={null} self.razorpay?.upiTurbo?.linkNewUpiAccount(mobileNumber: , color: , completionHandler: { response, error in // Handle the onboarded accounts Response }) ``` ```objectivec Objective C theme={null} [razorpay.upiTurbo linkNewUpiAccountWithMobileNumber:@"919000000000" color:@"0xFF1234" completionHandler:^(id _Nullable upiAccounts, NSError * _Nullable error) { }]; ``` > [!NOTE] > > **Payment Flow** > > Razorpay SDK will handle all the changes related to `UpiTurbo` internally. To integrate with the payment flow, [pass payment option and display the checkout form](/docs/payments/payment-gateway/ios-integration/standard/integration-steps#4-pass-payment-options-and-display-checkout-form). ## Non-Transactional Flow Razorpay provides a single exposed function that allows you to manage linked UPI accounts and access all non-transactional flows seamlessly. ![View the non-transactional flow](https://razorpay.com/docs/build/browser/assets/images/turbo-upi-non-transactional.jpg) > [accordion] Manage UPI Accounts > > The SDK manages the linked `UpiAccounts` on the application by triggering `manageUpiAccounts()`, which follows the following internal non-transaction flows for `UpiAccounts`: > > * **Fetch balance**: Check the customer's account balance. > * **Change UPI pin**: Provide the customer the ability to change their UPI PIN. > * **Reset UPI pin**: Let your customers reset the pin for their account. > * **Delete the account from the application**: Let your customers delink, that is, remove a selected UPI account from your application. > > ```swift Swift theme={null} > self.razorpay?.upiTurbo?.manageUpiAccount(mobileNumber: , color: "") > ``` > > ```objectivec Objective C theme={null} > [razorpay.upiTurbo manageUpiAccountWithMobileNumber:@"919000000000" color:@"0xFF1234"]; > ``` ## Models Exposed from the SDKs The SDKs given below provide access to exposed models for seamless integration. > [accordion] TurboError > > | Error | Description | > | - | - | > | `errorCode` | Types of error codes
  • `BAD_REQUEST_ERROR`: Failure from the client's end (SDK).
  • `GATEWAY_ERROR`: Failure either from the Secure Component or the Bank.
  • `SERVER_ERROR`: Failure at PSP.
| > | `errorDescription` | Brief description of the error. | > | `errorReason` | Specifies the specific reason for the error. | > | `errorSource` | Indicates the origin of the error. Possible values:
  • `gateway`
  • `issuer_bank`
  • `beneficiary_bank`
  • `customer_psp`
  • `customer`
  • `internal`
| > | `errorStep` | Highlights the stage where the error occurred. | > > [Refer to the list of possible error reasons](/docs/payments/payment-gateway/ios-integration/standard/payment-methods/turbo-upi/error-codes). ## Go-Live Checklist For iOS users, outgoing device binding SMS is editable by default. To ensure these SMS messages are non-editable, you must complete the following steps: ### Requesting UPI Device Validation Entitlement > [accordion] Submit a Request on the Apple Developer Portal > > * Log in to the [Apple Developer Portal](https://developer.apple.com/contact/request/upi-device-validation). > * Fill out the necessary details to request permission for the `setUPIVerificationCodeSendCompletion` API, which allows secure, non-editable content for device registration SMS. > * Await approval from Apple. > [accordion] Submit Details to NPCI > > Once Apple approves the entitlement, share the request details with NPCI for their approval. Use the format given below for submitting the details: > > * Name of the App: > * Functionality (UPI or CBDC App): UPI > * App ID: > * Team ID: > * Request ID: > * Bundle ID: > [accordion] Follow the Guidelines for Implementation > > * Ensure your app supports iOS 17 and above. > * Use the `setUPIVerificationCodeSendCompletion` API to comply with NPCI requirements. # Turbo UPI SDK - Error Codes Source: https://razorpay.com/docs/payments/payment-gateway/ios-integration/standard/payment-methods/turbo-upi/error-codes List of error codes for Turbo UPI SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Given below is the list of error codes categorised by error reasons, with relevant descriptions, source and step. ### Bad Request Errors Given below is the list of Bad Request errors. > [accordion] bank\_not\_live\_on\_upi > > * **Description**: The selected bank is not enabled on UPI. Please try using another bank. > * **Source**: gateway > * **Step**: customer\_onboarding > [accordion] account\_does\_not\_exist > > > [accordion] Payment Debit Request > > > > * **Description**: No accounts found for the selected bank. Please try using another bank. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Payment Credit Request > > > > * **Description**: Payment was unsuccessful as the receiver's bank account is not valid. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_credit\_request > [accordion] transaction\_not\_allowed > > > [accordion] Payment Debit Request > > > > * **Description**: Transaction not permitted to the account as per your bank policy. Please contact your bank for more details or try with another bank account. > > * **Source**: customer > > * **Step**: payment\_debit\_request > > > [accordion] Payment Credit Request > > > > * **Description**: Payment not allowed as it got declined by the receiver's bank. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_credit\_request > [accordion] upi\_pin\_registration\_card\_expired > > * **Description**: Card used while setting UPI PIN has expired. Please use another debit card or use another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_not\_found > > * **Description**: Card details used while setting UPI PIN are incorrect. Please re-check and try again. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_restricted > > * **Description**: Card used while setting UPI PIN has been blocked by your bank. Please reach out to your bank for more information or try using another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] bank\_technical\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: beneficiary\_bank > * **Step**: payment\_status\_request > [accordion] pin\_not\_set > > * **Description**: Payment was unsuccessful as you have not set the UPI PIN on the app. Try using another method. > * **Source**: customer\_psp > * **Step**: payment\_authentication > [accordion] customer\_not\_registered > > * **Description**: No bank account is associated with this mobile number. Please try again by adding your account. > * **Source**: gateway > * **Step**: customer\_onboarding > [accordion] server\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: gateway > * **Step**: payment\_authentication > [accordion] payment\_cancelled\_by\_user > > * **Description**: Flow was aborted as you pressed back from the PIN screen. Please try again. > * **Source**: customer > * **Step**: payment\_authorization ### Gateway Errors Given below is the list of gateway errors. > [accordion] incorrect\_otp > > * **Description**: You have entered an incorrect OTP. Try again. > * **Source**: customer > * **Step**: customer\_onboarding > [accordion] otp\_expired > > * **Description**: You have entered an expired OTP. Please regenerate OTP and try again. > * **Source**: customer > * **Step**: customer\_onboarding > [accordion] insufficient\_funds > > * **Description**: Payment was unsuccessful due to insufficient funds. Kindly check your balance and try again. > * **Source**: customer > * **Step**: payment\_debit\_request > [accordion] insufficient\_funds\_mandate\_block > > * **Description**: Payment was unsuccessful as the amount in your account is blocked for another payment. Try using another account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] otp\_attempts\_exceeded > > * **Description**: You have entered an incorrect OTP too many times. Try again in some time. > * **Source**: customer\_psp > * **Step**: customer\_onboarding > [accordion] account\_dormant > > * **Description**: Payment was unsuccessful as the receiver's bank account is inactive. Any amount deducted will be refunded within 5-7 working days. > * **Source**: beneficiary\_bank > * **Step**: payment\_credit\_request > [accordion] bank\_not\_live\_on\_upi > > * **Description**: Selected bank is not available on UPI. Please try using another bank. > * **Source**: issuer\_bank > * **Step**: customer\_onboarding > [accordion] payment\_timed\_out > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_response > > > [accordion] UPI ID Not Reachable > > > > * **Description**: Payment was unsuccessful as the bank linked to this UPI ID is not reachable at this time. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > [accordion] first\_transaction\_limit\_exceeded > > * **Description**: Payment was unsuccessful as you exceeded the first-time transaction limit set by your bank. You can use another bank account or retry after 24 hours. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] transaction\_limit\_exceeded > > > [accordion] Limit Set By Bank Exceeded > > > > * **Description**: Payment was unsuccessful as you exceeded the transaction limit set by your bank. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > > > [accordion] Daily Amount Limit Exceeded > > > > * **Description**: Payment was unsuccessful as you exceeded the amount limit for the day with this bank account. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_response > [accordion] first\_time\_transaction\_freeze\_period > > * **Description**: Payment was unsuccessful due to the cooling period set by your bank for first-time user. Please try again after some time. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] transaction\_frequency\_limit\_exceeded > > * **Description**: Payment was unsuccessful as the number of transactions exceeds the max limit set by the bank. You can use another bank account or retry after some time. > * **Source**: issuer\_bank > * **Step**: payment\_debit\_response > [accordion] bank\_account\_inactive > > > [accordion] Issuer Bank Account Inactive > > > > * **Description**: Payment was unsuccessful as your account is not active. Please try using another bank account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Receiver Bank Account Inactive > > > > * **Description**: Payment was unsuccessful as the receiver's bank account is not active. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_debit\_request > [accordion] server\_error > > > [accordion] Temporary Issue - Issuer Bank > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_request > > > [accordion] Temporary Issue - Beneficiary Bank > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > > * **Source**: issuer\_bank > > * **Step**: payment\_request > [accordion] invalid\_ifsc > > * **Description**: Payment was unsuccessful due to a temporary issue. Please retry in some time. > * **Source**: gateway > * **Step**: payment\_authentication > [accordion] upi\_pin\_registration\_card\_blocked > > * **Description**: Card used while setting UPI PIN has been blocked by your bank. Please reach out to your bank for more information or try using another bank account. > * **Source**: issuer\_bank > * **Step**: payment\_authentication > [accordion] bank\_technical\_error > > > [accordion] UPI ID Temporarily Unavailable > > > > * **Description**: Payment was unsuccessful as the bank linked to this UPI ID is temporarily unavailable. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: issuer\_bank > > * **Step**: payment\_credit\_response > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: issuer\_bank > > * **Step**: payment\_credit\_response > [accordion] payment\_declined > > > [accordion] Declined by Bank > > > > * **Description**: Payment was unsuccessful as it was declined by your bank. Reach out to your bank for more details. Try using another account. > > * **Source**: issuer\_bank > > * **Step**: payment\_debit\_request > > > [accordion] Temporary Issue > > > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > > * **Source**: beneficiary\_bank > > * **Step**: payment\_debit\_request > [accordion] pin\_attempts\_exceeded > > * **Description**: You have exceeded the incorrect UPI PIN attempts. You can use another bank account or retry after 24 hours. > * **Source**: customer > * **Step**: payment\_authentication > [accordion] incorrect\_pin > > * **Description**: You have entered incorrect UPI PIN. Please try again with the correct UPI PIN. > * **Source**: customer > * **Step**: payment\_authentication > [accordion] linked\_account\_removal\_failed > > * **Description**: Unable to remove the account. Please try again. > * **Source**: customer\_psp > * **Step**: account\_management > [accordion] sms\_text\_not\_received > > * **Description**: Something went wrong while sending SMS. Please try again. > * **Source**: gateway > * **Step**: customer\_onboarding ### Server Errors Given below is the list of server errors. > [accordion] server\_error > > * **Description**: Payment was unsuccessful due to a temporary issue. Any amount deducted will be refunded within 5-7 working days. > * **Source**: issuer\_bank > * **Step**: customer\_onboarding > [accordion] server\_error > > * **Description**: We are facing some trouble completing your request at the moment. Please try again shortly. > * **Source**: internal > * **Step**: payment\_authorization # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ios-integration/standard/troubleshooting-faqs Troubleshoot common error scenarios and find answers to frequently asked questions about standard iOS integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [accordion] I am getting an error " contains unsupported Architecture x86\_64" while submitting the archive to the app store. What should I do? > > When a framework is distributed, it contains architectures of the simulators so that the consumer of the framework can build it on a simulator. However, when uploading the archive on iTunes, you have to strip these architectures. If you use Cocoapods, it strips the simulator architectures on its own. > > Since you are not using it, please follow the below-mentioned steps: > > 1. Download the [script](https://s3.ap-south-1.amazonaws.com/rzp-1415-prod-mobile/ios/CustomLinks/StripInvalidArchitectures.sh). > 2. Locate the directory in which Razorpay.framework is present in the archive that you are trying to upload. > 3. Move the attached script to the above directory and run it. > 4. Remove the script file. > [accordion] I see a message on the screen to update my SDK. Will my customers also see the message? > > No. You see the update SDK alert because a newer version of our SDK is available. We recommend you use the latest SDK. This message shows up only when running the app on a simulator or using a test key to initialise the SDK. > [accordion] I am getting an error `Image not loaded: .dyld`. What should I do? > > * Ensure that Razorpay.framework is present in your project settings in both the Embedded Binaries and Linked Frameworks. > * Set Always Embed Swift Libraries to "yes" in the project settings. It can happen because of the incompatibility between the developed Swift version with Razorpay.framework and the Swift version of your project. > * We recommend using the framework compiled with the required Swift language from our iOS documentation. > [accordion] Razorpay's framework is bitcode enabled. Do I also have to enable bitcode in my project? > > Razorpay's bitcode enabled framework works even if you do not enable bitcode in your project. > [accordion] I am getting an error "Module compiled with Swift X version cannot be imported in the Swift Y version." What should I do? > > There are multiple Swift versions available, but unfortunately, Apple does not make all the versions compatible, so we release frameworks compiled in multiple Swift versions. > > * Download the framework that is compatible with your project. > * If you run into a compatibility issue, ensure that you try both frameworks. > [accordion] I am getting an error saying "Could not find module RazorpayCommonCrypto." What should I do? > > A module map is used to define the header files that should be converted into modules and used by your project. Razorpay handles this internally. > > * **Cause**: By default, the Xcode's name is assumed to be Xcode.app. For example, your default Xcode appears as Xcode9.3. > * **Resolution**: Insert [this](https://s3.ap-south-1.amazonaws.com/rzp-1415-prod-mobile/ios/CustomLinks/StripInvalidArchitectures.sh) script in the directory that contains `Razorpay.framework` file and run it from your terminal. > [accordion] My builds are failing and I am getting an error "Cannot find protocol declaration for RazorpayPaymentCompletionProtocol." What should I do? > > Add the following code in the `ViewController.m` file: > > ```objectivec Add code theme={null} > include instead of in your ViewController.m file > ``` > > This will improve the iOS sample app experience and reduce the build failure. > [accordion] Does support Xamarin for SDK integration? > > No, we do not support Xamarin. However, since Xamarin is essentially a wrapper around Android and iOS, you can create your own Xamarin wrapper using our [Android](/docs/payments/payment-gateway/android-integration/standard) and [iOS](/docs/payments/payment-gateway/ios-integration/standard) SDKs. > > You can refer to Xamarin for integrating native [Android](https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/) and [iOS](https://docs.microsoft.com/en-us/xamarin/ios/platform/binding-objective-c/) libraries. Alternatively, you can use web integration to open the checkout form in a web view. > [accordion] How can I check the Razorpay iOS Standard SDK version? > > To check the SDK version: > > 1. Open your iOS project in Xcode. > 2. In the project navigator, locate the `Podfile` in the root directory of your project. > 3. Open the `Podfile` and look for the line that specifies the Razorpay SDK pod. The version number is represented by `x.y.z`. > [accordion] How can I update the Razorpay iOS Standard SDK version? > > To update the iOS Standard SDK, follow these steps: > > 1. In your projectโ€™s Podfile, specify the [latest SDK version](https://github.com/razorpay/razorpay-pod/releases/). If you do not mention any version, it automatically picks the latest version from Cocoapods. > 2. Run `pod repo update` to fetch the latest release versions of the pods. > 3. After updating, ensure that the integration is successful and there are no issues with the updated SDK. > [accordion] How to generate privacy report with Razorpay's SDKs PrivacyManifest file? > > After installing the `razorpay-pod` cocoapod in the project, once the application is archived, privacy report can be generated from the context menu for the created archive. > The data used by the Razorpay SDK will be listed under Razorpay.framework along with the reasons for the usage of the data. > For more information, you can refer to [Apple's documentation for generating the privacy report](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_data_use_in_privacy_manifests#4239187). > For more information about PrivacyManifests and Required Reason API please refer to [Apple's documentation](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_data_use_in_privacy_manifests). > [accordion] How can I verify the signature used for razorpay-pod's xcframework? > > After the installation of the `razorpay-pod` cocoapod, inside the pods folder, expand the folder Development `Pods/razorpay-pod/Frameworks`. Inside this folder, you will find the Razorpay.xcframework file. On selecting this file, XCode's File inspector shows you the XCFrameworkโ€™s code signing status. If the framework is signed with an Apple Developer certificate, the inspector also shows which Apple Developer team signed the framework. > > You can find more about verification of the signature [here](https://developer.apple.com/documentation/xcode/verifying-the-origin-of-your-xcframeworks). > [accordion] How can I accept payments on my Android or iOS apps without integrating with the native SDKs? > > If you want to accept payments on your Android or iOS apps without integrating with our native SDKs, you can reuse your Standard Integration code. This approach opens the checkout form in a WebView within your mobile app. Know more about [Webview for Mobile Apps](/docs/payments/payment-gateway/web-integration/standard/webview). > [accordion] I have integrated with the Razorpay Payment Gateway to accept payments on my mobile app. However, it gets rejected when I try to publish my app on the Apple App Store. The following message is displayed, "We noticed that your app offers a subscription with a mechanism other than the in-app purchase API." How to resolve this? > > * **Cause**: As per Apple's policy, if you use a subscription model in your iOS app, you must use Apple's in-app purchase APIs. Apple does not redirect out of the app for digital product purchases. > * **Resolution**: Use Apple's in-app purchase APIs. > [accordion] Why did my App get rejected by the iOS team as per the guideline 3.1.1? > > An application involving a subscription model could be rejected because of the guideline **3.1.1 - Business - Payments - In-App Purchase**. This is due to the fact that subscription comes under the **Auto-renewable subscriptions to a service** section of the [Apple guidelines.](https://developer.apple.com/design/human-interface-guidelines/in-app-purchase)\\ > > You cannot use an external payment gateway to accept payments by selling digital products or content. You must use Appleโ€™s In-App Purchase to avoid app rejection. > > ### List of Restricted Payment Modes > > * **Consumable content** like lives or gems in a game. > * **Non-consumable content** like premium features in an app. > * **Auto-renewable subscriptions** to a service, like cloud storage or a magazine. > * **Non-renewing subscriptions** to a service or content that lasts for a limited time, like access to an in-game battle pass. > [accordion] Can I enable UPI Intent on my Android or iOS app? > > Yes, you can enable UPI Intent on your [Android](/docs/payments/payment-gateway/web-integration/standard/webview/upi-intent-android) or [iOS](/docs/payments/payment-gateway/web-integration/standard/webview/upi-intent-ios) app. # Quick Integration Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/quick-integration Check the prerequisites before you integrate with Razorpay Quick Integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/quick-integration/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about Quick Integration. Quick integration is the fastest way to integrate Razorpay Checkout on your website and accept domestic and international payments from customers. ## Quick Integration vs Standard Integration > [!NOTE] > > **Handy Tips** > > The Quick Integration (previously known as Automatic integration method) is simple and fast. However, in case you would like more control over your integration and checkout, we recommend the [Standard Integration](/docs/payments/payment-gateway/web-integration/standard). Given below is a comparison between the Standard and Quick integrations: | Particulars | Quick Integration | Standard Integration | | - | - | - | | **Pay Button** | The pay button is auto-created and cannot be customised. For example, you cannot change its font or background colour. | You can create and customise the pay button as per your business requirements. | | **Checkout Functions** | This is an HTML-based form action method, which does not support any JavaScript customisations. | This is a JavaScript method, allowing you to use additional functions to automatically open and close Checkout as required. | ## Integration Steps **Before you proceed:** * Create a [Razorpay Account](https://dashboard.razorpay.com/signup) * Generate [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. * Know about the [Razorpay Payment Flow](/docs/payments/payment-gateway/how-it-works). Follow these integration steps: > [card] [1. Build Integration](/docs/payments/payment-gateway/quick-integration/integration-steps#1-build-integration) > > Integrate Standard Checkout form on website. > [card] [2. Test Integration](/docs/payments/payment-gateway/quick-integration/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/quick-integration/integration-steps#3-go-live-checklist) > > Check the go-live checklist. > [!NOTE] > > **Other Solutions** > > Looking to integrate Razorpay with your mobile app or at a server-level? Check the list of [integration types](/docs/payments/payment-gateway#integrate-payment-gateway-web-mobile-ecommerce-plugins). ### Related Information * [Webhooks](/docs/webhooks) (Recommended) * [Error Codes](/docs/errors) (Recommended) * [How Payment Gateway Works](/docs/payments/payment-gateway/how-it-works) * [Payment States](/docs/payments/payments) * [Settlements](/docs/payments/settlements) * [Refunds](/docs/payments/refunds) * [Address Verification System](/docs/payments/international-payments/address-verification-system) * [Troubleshooting and FAQs](/docs/payments/payment-gateway/quick-integration/troubleshooting-faqs) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/quick-integration/integration-steps Steps to integrate with Razorpay Quick Integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the standard checkout form on your website: > [card] [1. Build Integration](/docs/payments/payment-gateway/quick-integration/integration-steps#1-build-integration) > > Integrate Standard Checkout form on website. > [card] [2. Test Integration](/docs/payments/payment-gateway/quick-integration/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/quick-integration/integration-steps#3-go-live-checklist) > > Check the go-live checklist. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Create an Order in Server > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order using: > > > [tab] API Sample Code > > > > Use this endpoint to create an order using the Orders API. > > > > `POST /orders` > > > > ```bash Curl theme={null} > > curl -X POST https://api.razorpay.com/v1/orders > > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -H 'content-type:application/json' > > -d '{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "qwsaq1", > > "partial_payment": true, > > "first_payment_min_amount": 230 > > }' > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > JSONObject orderRequest = new JSONObject(); > > orderRequest.put("amount", 50000); // amount in the smallest currency unit > > orderRequest.put("currency", "INR"); > > orderRequest.put("receipt", "order_rcptid_11"); > > > > Order order = razorpay.Orders.create(orderRequest); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > DATA = { > > "amount": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "key1": "value3", > > "key2": "value2" > > } > > } > > client.order.create(data=DATA) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->create(array('receipt' => '123', 'amount' => 50000, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient(your_key_id, your_secret); > > > > Dictionary options = new Dictionary(); > > options.Add("amount", 50000); // amount in the smallest currency unit > > options.add("receipt", "order_rcptid_11"); > > options.add("currency", "INR"); > > Order order = client.Order.Create(options); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > options = amount: 50000, currency: 'INR', receipt: '' > > order = Razorpay::Order.create > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.create({ > > amount: 50000, > > currency: "INR", > > receipt: "receipt#1", > > notes: { > > key1: "value3", > > key2: "value2" > > } > > }) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > data := map[string]interface{}{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "some_receipt_id" > > } > > body, err := client.Order.Create(data) > > ``` > > > > ```json Success Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "rcptid_11", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1642662092 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Order amount less than minimum amount allowed", > > "source": "business", > > "step": "payment_initiation", > > "reason": "input_validation_failed", > > "metadata": {}, > > "field": "amount" > > } > > } > > ``` > > > [tab] Razorpay Postman Public Workspace > > > > You can use the Postman workspace below to create an order: > > > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > > > You can create an order manually by integrating the API sample codes on your server. > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit. For example, for an actual amount of , the value of this field should be `22225`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be of 3 characters. > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7,000 is to be received from the customer in two installments of #1 - โ‚น5,000, #2 - โ‚น2,000, then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > [accordion] 2 Pass Order ID and Other Options to Checkout > > * This integration method provides a default **Pay with Razorpay** button that invokes the Checkout form. > > * Pass Checkout form options as data attributes inside a ` > > > > > > ``` > > > [accordion] 2.2 Handle Payment Success and Failure > > > > The way the payment success and failure scenarios are handled depends on the [Checkout Sample Code](#2-1-code-to-add-pay-button) you used in the previous step. > > > > > [tab] Payment Success > > > > > > #### On Payment Success > > > > > > Razorpay makes a POST call to the callback URL with the **razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature** in the response object of the successful payment. Only successful authorisations are auto-submitted. > > > > > [tab] Payment Failure > > > > > > #### On Payment Failure > > > > > > In case of failed payments, the checkout is displayed again to facilitate payment retry. > > > [accordion] 2.3 Checkout Options > > > > `data-key` *mandatory* > > : `string` API Key ID generated from the Razorpay Dashboard. > > > > `data-amount` *mandatory* > > : `integer` The amount to be paid by the customer in cents. For example, if the amount is โ‚น500, enter `50000`. > > > > `data-currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies) > > > > `data-order_id` *mandatory* > > : `string` Unique identifier of the Order generated in [Step 1: Create an Order in your Server](#1-create-an-order-in-server). > > > > `data-buttontext` *mandatory* > > : `string` The text you want to display on the button. For example, `Buy Now!`. > > > > `data-name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `data-description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `data-image` *mandatory* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `data-prefill.name` *optional* > > : `string` Cardholder's name to be pre-filled when the Checkout opens. > > > > `data-prefill.email` *optional* > > : `string` Customer's email to be pre-filled when the Checkout opens. > > > > `data-prefill.contact` *optional* > > : `string` Customer's phone number to be pre-filled when the Checkout opens. > > > > `data-theme.color` *optional* > > : `string` Brand color to alter the appearance of Checkout form. For example, `#F37254`. > > > > Know more about the complete [list of available Checkout options](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-3-checkout-options). > [accordion] 3 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 4 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > > Here are the links to our [SDKs](/docs/payments/payment-gateway/web-integration/standard#client-libraries) for the supported platforms. > [accordion] 6 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Web Standard Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/quick-integration/troubleshooting-faqs Troubleshoot common errors and find answers to frequently asked questions related to Razorpay Quick Integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] What is Razorpay Quick Integration? > > Razorpay Quick integration is the fastest way to integrate Razorpay Checkout on your website and accept domestic and international payments from customers. > [accordion] What is the difference between Quick Integration and Standard Integration? > > The main difference lies in the customisation options and the methods used. Quick Integration features an auto-created pay button that cannot be customised (like font or background color) and uses an HTML-based form action method, making customisation via JavaScript functions impossible. > > In contrast, Standard Integration allows you to create and customise the pay button to fit your business requirements and utilises a JavaScript method, enabling the use of additional functions to automatically open and close checkout as needed. > [accordion] Can I use Quick Integration to integrate Razorpay Checkout on a mobile app or at a server level? > > No, Quick Integration is not supported for mobile apps or server-level integration. If you want to integrate Razorpay with your mobile app or at a server level, check the list of [other integration methods](/docs/payments/payment-gateway#integrate-payment-gateway-web-mobile-ecommerce-plugins) available. > [accordion] What payment methods are supported by Razorpay Quick Integration? > > Razorpay Quick Integration supports a wide range of payment methods including netbanking, credit and debit cards, wallets, UPI and more. Check the list of [support payment methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/supported-methods). # React Native Standard Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/react-native-integration/standard Check the prerequisites before you integrate Razorpay React Native Standard plugin with our native Android and iOS SDKs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [React Native Standard SDK Changelog](/docs/payments/changelog#mobile-sdks) > > Discover new features, updates and deprecations related to the Razorpay React Native Standard SDK (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/react-native-integration/standard/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about React Native Standard integration. Integrate with Razorpay React Native Standard SDK to accept payments from customers on your app built using React Native. The React Native Standard SDK acts as a wrapper around the Razorpay Standard SDK to build a dynamic and responsive Checkout interface for your iOS or Android application. > [!TIP] > > **Update SDK** > > Check your current SDK version. If it is outdated, please [update the SDK](/docs/payments/payment-gateway/react-native-integration/standard/troubleshooting-faqs#how-can-i-update-the-razorpay-react-native-standard-sdk-version) to ensure uninterrupted settlements of your funds. > [!NOTE] > > **Handy Tips** > > This document elaborates the SDK integration steps for apps running on React Native version 0.60+. You can find the SDK integration steps for apps with [React Native version 0.59 and lower on GitHub](https://github.com/razorpay/react-native-razorpay#for-react-native-059-and-lower). ## Integration Steps **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works).
Choose your platform to begin integration: > [card] [React Native Android Integration](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-android) > > Integrate React Native Android Standard SDK. > [card] [React Native iOS Integration](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-ios) > > Integrate React Native iOS Standard SDK. > [card] [Sample App](https://github.com/razorpay/react-native-razorpay/tree/master/sampleApps) > > Check the sample app to integrate on GitHub. ### Related Information [Troubleshooting and FAQs](/docs/payments/payment-gateway/ios-integration/standard/troubleshooting-faqs) # Integration Steps (Android) Source: https://razorpay.com/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-android Steps to integrate your React Native Android application with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow these steps to integrate your React Native Android application: > [card] [1. Build Integration](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-android#1-build-integration) > > Integrate React Android Standard Checkout. > [card] [2. Test Integration](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-android#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-android#3-go-live-checklist) > > Check the go-live checklist. [How to Integrate Razorpay Payment Gateway on React Native Android App](https://www.youtube.com/embed/TCRHqz4Hh5Q) > [!NOTE] > > **Handy Tips** > > The **compileSdkVersion** is the version of Android. Increase the value of **minSdkVersion** to at least 19 in the build.gradle file in the Android folder to work with the latest Android SDK Build Tools version. Using it with a lower **minSdkVersion** version will lead to errors. > [!WARNING] > > **Watch Out!** > > If you use M1 MacBook, you need to make [these changes](#m1-macbook-changes) in your `podfile`. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Install Razorpay React Native SDK > > Install the SDK using the following `npm` command in the **Terminal** window. If you are using Windows, please use **Git Bash** instead of the **Command Prompt** window. Ensure that you run this code within your React Native project folder in the **Terminal** window. > > ```javascript Installation Code theme={null} > //using npm > $ npm install react-native-razorpay --save > ``` > > Additionally, run the code given below if you are using `yarn` or `expo`: > > ```javascript Installation Code using yarn theme={null} > // using yarn > $ yarn add react-native-razorpay > ``` > > ```javascript Installation Code using expo theme={null} > // for expo > $ npx expo install react-native-razorpay > ``` > [accordion] 2 Run React Native App > > Run the React Native app.\\ > > ```javascript Run theme={null} > npx react-native run-android > ``` > > This links the SDK with your React Native project. > > > [accordion] Expo Application > > > > After adding the `react-native-razorpay` package, use the option to prebuild the app. This generates the **android** platform folders in the project to use native-modules. > > > > ```javascript Run theme={null} > > npx expo prebuild > > ``` > > > > The application is installed on the device/emulator. > > > > ```javascript theme={null} > > npx expo run:[android] --device > > ``` > [accordion] 3 Create an Order in Server > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order using: > > > [tab] API Sample Code > > > > Use this endpoint to create an order using the Orders API. > > > > `POST /orders` > > > > ```bash Curl theme={null} > > curl -X POST https://api.razorpay.com/v1/orders > > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -H 'content-type:application/json' > > -d '{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "qwsaq1", > > "partial_payment": true, > > "first_payment_min_amount": 230 > > }' > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > JSONObject orderRequest = new JSONObject(); > > orderRequest.put("amount", 50000); // amount in the smallest currency unit > > orderRequest.put("currency", "INR"); > > orderRequest.put("receipt", "order_rcptid_11"); > > > > Order order = razorpay.Orders.create(orderRequest); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > DATA = { > > "amount": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "key1": "value3", > > "key2": "value2" > > } > > } > > client.order.create(data=DATA) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->create(array('receipt' => '123', 'amount' => 50000, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient(your_key_id, your_secret); > > > > Dictionary options = new Dictionary(); > > options.Add("amount", 50000); // amount in the smallest currency unit > > options.add("receipt", "order_rcptid_11"); > > options.add("currency", "INR"); > > Order order = client.Order.Create(options); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > options = amount: 50000, currency: 'INR', receipt: '' > > order = Razorpay::Order.create > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.create({ > > amount: 50000, > > currency: "INR", > > receipt: "receipt#1", > > notes: { > > key1: "value3", > > key2: "value2" > > } > > }) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > data := map[string]interface{}{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "some_receipt_id" > > } > > body, err := client.Order.Create(data) > > ``` > > > > ```json Success Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "rcptid_11", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1642662092 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Order amount less than minimum amount allowed", > > "source": "business", > > "step": "payment_initiation", > > "reason": "input_validation_failed", > > "metadata": {}, > > "field": "amount" > > } > > } > > ``` > > > [tab] Razorpay Postman Public Workspace > > > > You can use the Postman workspace below to create an order: > > > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > > > You can create an order manually by integrating the API sample codes on your server. > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit. For example, for an actual amount of , the value of this field should be `22225`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be of 3 characters. > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7,000 is to be received from the customer in two installments of #1 - โ‚น5,000, #2 - โ‚น2,000, then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > [accordion] 4 Add Razorpay Checkout Options to .js File > > To integrate the Razorpay Checkout with your React Native app, you must add the Checkout Display Options in the **.js** file. > > Open the **.js** file in your project folder and perform the following: > > 1. Import the `RazorpayCheckout` module to your component. > > ```javascript Import Razorpay Checkout Module theme={null} > import RazorpayCheckout from 'react-native-razorpay'; > ``` > > 2. Call the `RazorpayCheckout.open` method with the payment options. The method returns a JS Promise where the `then` part corresponds to a successful payment and the `catch` part corresponds to payment failure. > > ```javascript Checkout Options theme={null} > { > var options = { > description: 'Credits towards consultation', > image: 'https://i.imgur.com/3g7nmJC.jpg', > currency: 'INR', > key: '', > amount: '50000', > name: 'Acme Corp', > order_id: 'order_DslnoIgkIDL8Zt',//Replace this with an order_id created using Orders API. > prefill: { > email: '', > contact: '', > name: '' > }, > theme: {color: '#53a20e'} > } > RazorpayCheckout.open(options).then((data) => { > // handle success > alert(`Success: ${data.razorpay_payment_id}`); > }).catch((error) => { > // handle failure > alert(`Error: ${error.code} | ${error.description}`); > }); > }}> > ``` > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > [accordion] 5 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 6 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > > > [accordion] M1 MacBook Changes > > > > If you use M1 MacBook, you need to make the following changes in your podfile. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Add the following code inside `post_install do |installer|`. > > > > ```javascript podfile theme={null} > > installer.pods_project.build_configurations.each do |config| > > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > > end > > ``` > [accordion] 7 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay React Native Android integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # Integration Steps (iOS) Source: https://razorpay.com/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-ios Steps to integrate your React Native iOS application with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow these steps to integrate your React Native iOS application: > [card] [1. Build Integration](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-ios#1-build-integration) > > Integrate React iOS Standard Checkout. > [card] [2. Test Integration](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-ios#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-ios#3-go-live-checklist) > > Check the go-live checklist. [How to Integrate Razorpay Payment Gateway on React Native iOS App](https://www.youtube.com/embed/cSkZo6Mzm1I) > [!WARNING] > > **Watch Out!** > > If you use M1 MacBook, you need to make [these changes](#m1-macbook-changes) in your `podfile`. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Install Razorpay React Native SDK > > Install the SDK using the following `npm` command in the **Terminal** window. If you are using Windows, please use **Git Bash** instead of the **Command Prompt** window. Ensure that you run this code within your React Native project folder in **Terminal** window. > > ```javascript Installation Code theme={null} > //using npm > $ npm install react-native-razorpay --save > ``` > > Additionally, run the code given below if you are using `yarn` or `expo`: > > ```javascript Installation Code using yarn theme={null} > // using yarn > $ yarn add react-native-razorpay > ``` > > ```javascript Installation Code using expo theme={null} > // for expo > $ npx expo install react-native-razorpay > ``` > [accordion] 2 Open Podfile and Update Platform Version > > Install pods after updating the iOS platform. This will install all pods in the Podfile at the exact versions.\\ > > ```javascript Cocoapod Step theme={null} > pod install && cd .. > ``` > [accordion] 3 Install Pods Using Cocoapods > > Navigate to the **ios** folder and open **Podfile**. You can do this using the following code. > > ```javascript Open Podfile theme={null} > $ cd ios && open podfile > ``` > > Change the platform version from `9.0` to `10.0` in the Podfile.\ > \\ > > ![](https://razorpay.com/docs/build/browser/assets/images/react-native-change_platform_version_podfile.jpg) > [accordion] 4 Run React Native App > > Run the React Native app. > > ```javascript Run App theme={null} > npx react-native run-ios > ``` > > The SDK has automatically linked with React Native project. You do not need to perform any additional manual steps. > > > [accordion] Expo Application > > > > After adding the `react-native-razorpay` package, use the option to prebuild the app. This generates the **iOS** platform folders in the project to use native-modules. > > > > ```javascript Run theme={null} > > npx expo prebuild > > ``` > > > > The application is installed on the device/emulator. > > > > ```javascript theme={null} > > npx expo run:[ios] --device > > ``` > [accordion] 5 Create an Order in Server > > **Order is an important step in the payment process.** > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#api-sample-code). It is a server-side API call. Know how to [authenticate](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > You can create an order using: > > > [tab] API Sample Code > > > > Use this endpoint to create an order using the Orders API. > > > > `POST /orders` > > > > ```bash Curl theme={null} > > curl -X POST https://api.razorpay.com/v1/orders > > -U [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -H 'content-type:application/json' > > -d '{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "qwsaq1", > > "partial_payment": true, > > "first_payment_min_amount": 230 > > }' > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > JSONObject orderRequest = new JSONObject(); > > orderRequest.put("amount", 50000); // amount in the smallest currency unit > > orderRequest.put("currency", "INR"); > > orderRequest.put("receipt", "order_rcptid_11"); > > > > Order order = razorpay.Orders.create(orderRequest); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > DATA = { > > "amount": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "key1": "value3", > > "key2": "value2" > > } > > } > > client.order.create(data=DATA) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->create(array('receipt' => '123', 'amount' => 50000, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient(your_key_id, your_secret); > > > > Dictionary options = new Dictionary(); > > options.Add("amount", 50000); // amount in the smallest currency unit > > options.add("receipt", "order_rcptid_11"); > > options.add("currency", "INR"); > > Order order = client.Order.Create(options); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > options = amount: 50000, currency: 'INR', receipt: '' > > order = Razorpay::Order.create > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.create({ > > amount: 50000, > > currency: "INR", > > receipt: "receipt#1", > > notes: { > > key1: "value3", > > key2: "value2" > > } > > }) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > data := map[string]interface{}{ > > "amount": 50000, > > "currency": "INR", > > "receipt": "some_receipt_id" > > } > > body, err := client.Order.Create(data) > > ``` > > > > ```json Success Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "rcptid_11", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1642662092 > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "error": { > > "code": "BAD_REQUEST_ERROR", > > "description": "Order amount less than minimum amount allowed", > > "source": "business", > > "step": "payment_initiation", > > "reason": "input_validation_failed", > > "metadata": {}, > > "field": "amount" > > } > > } > > ``` > > > [tab] Razorpay Postman Public Workspace > > > > You can use the Postman workspace below to create an order: > > > > [![Run in Postman](https://run.pstmn.io/button.svg)](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/request/12492020-6f15a901-06ea-4224-b396-15cd94c6148d) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Under the **Authorization** section in Postman, select **Basic Auth** and add the Key Id and secret as the Username and Password, respectively. > > > > You can create an order manually by integrating the API sample codes on your server. > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit. For example, for an actual amount of , the value of this field should be `22225`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be of 3 characters. > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7,000 is to be received from the customer in two installments of #1 - โ‚น5,000, #2 - โ‚น2,000, then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > [accordion] Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) parameters table. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > [accordion] 6 Add Razorpay Checkout Options to .js File > > To integrate the Razorpay Checkout with your React Native app, you must add the Checkout Display Options in the **.js** file. > > Open the **.js** file in your project folder and perform the following: > > 1. Import the `RazorpayCheckout` module to your component. > > ```javascript Import Razorpay Checkout Module theme={null} > import RazorpayCheckout from 'react-native-razorpay'; > ``` > > 2. Call the `RazorpayCheckout.open` method with the payment options. The method returns a JS Promise where the `then` part corresponds to a successful payment and the `catch` part corresponds to payment failure. > > ```javascript Checkout Options theme={null} > { > var options = { > description: 'Credits towards consultation', > image: 'https://i.imgur.com/3g7nmJC.jpg', > currency: 'INR', > key: '', > amount: '50000', > name: 'Acme Corp', > order_id: 'order_DslnoIgkIDL8Zt',//Replace this with an order_id created using Orders API. > prefill: { > email: '', > contact: '', > name: '' > }, > theme: {color: '#53a20e'} > } > RazorpayCheckout.open(options).then((data) => { > // handle success > alert(`Success: ${data.razorpay_payment_id}`); > }).catch((error) => { > // handle failure > alert(`Error: ${error.code} | ${error.description}`); > }); > }}> > ``` > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > [accordion] 6.1 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > > > > ### UPI Intent on Recurring Payments > > > > Configure and initiate a recurring payment transaction on UPI Intent: > > > > ```swift ViewController.swift theme={null} > > let options: [String:Any] = [ > > "key": "YOUR_KEY_ID", > > "order_id": "order_DBJOWzybfXXXX", > > "customer_id": "cust_BtQNqzmBlXXXX", > > "prefill": [ > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com" > > ], > > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > "amount": 10000, // Amount should match the order amount > > "currency": "INR", > > "recurring": 1 // This key value pair is mandatory for Intent Recurring Payment. > > ] > > ``` > > > > ```objectivec ViewController.m theme={null} > > NSDictionary *options = @{ > > @"key": @"YOUR_KEY_ID", > > @"order_id": @"order_DBJOWzybfXXXX", > > @"customer_id": @"cust_BtQNqzmBlXXXX", > > @"prefill": @{ > > @"contact": @"+919000090000", > > @"email": @"gaurav.kumar@example.com" > > }, > > @"image": @"https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > @"amount": @(10000), // Amount should match the order amount > > @"currency": @"INR", > > @"recurring": @(1) // This key value pair is mandatory for Intent Recurring Payment. > > }; > > ``` > [accordion] 7 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 8 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > > > [accordion] M1 MacBook Changes > > > > If you use M1 MacBook, you need to make the following changes in your podfile. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Add the following code inside `post_install do |installer|`. > > > > ```javascript podfile theme={null} > > installer.pods_project.build_configurations.each do |config| > > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > > end > > ``` ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay React Native iOS integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # Troubleshooting and FAQs Source: https://razorpay.com/docs/payments/payment-gateway/react-native-integration/standard/troubleshooting-faqs Troubleshoot common error scenarios and find answers to frequently asked questions about Standard React Native integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] How do I resolve the following error? > > ``` > dyld: Library not loaded: @rpath/libswiftCoreGraphics.dylib > Referenced from: /private/var/mobile/Containers/Bundle/Application/696F0EAD-E2A6-4C83-876F-07E3D015D167/.app/Frameworks/.framework/ > Reason: image not found > ``` > > To work around this issue, in your Xcode project: > > 1. Set the `Embedded Content Contains Swift Code (EMBEDDED_CONTENT_CONTAINS_SWIFT)` build setting to `YES` in your app. Know more [here](https://developer.apple.com/library/archive/qa/qa1881/_index.html). > > 2. Navigate to **Target Settings** โ†’ **General** and ensure that: > 1. The framework is added in **Frameworks, Libraries, and Embed Content**. > 2. Change **Embed status** from - **'Do not Embed'** to **'Embed & Sign'**. > > 3. Verify that you have installed CocoaPods. > > For Android, if you are using proguard for your builds, you need to add the following lines to proguard files. > > ``` > -keepattributes *Annotation* > -dontwarn com.razorpay.** > -keep class com.razorpay.** {*;} > -optimizations !method/inlining/ > -keepclasseswithmembers class * { > public void onPayment*(...); > } > ``` > [accordion] How do I auto-link the Razorpay React Native SDK with my app? > > Auto linking is possible only if you are using React Native version 0.60+. Use the code given below to install and run the SDK: \\ > > ```javascript Install theme={null} > npm install react-native-razorpay --save > cd ios && open podfile # Change the platform from iOS 9.0 to 10.0 > pod install && cd .. # CocoaPods on iOS needs this extra step > ``` > > ```javascript Run the app theme={null} > yarn react-native run-ios > ``` > [accordion] How do I integrate the Razorpay SDK if my React Native app version is 0.59 and lower? > > If you are using React Native version 0.59 and lower, follow the steps given below to install, link and run the SDK: > > 1. Install the SDK. > > ```javascript Install theme={null} > $ npm install react-native-razorpay --save // Install the Razorpay React Native Standard SDK using the npm command. > ``` > > 2. Link the SDK. > > ```javascript Link the SDK theme={null} > react-native link react-native-razorpay // Link the SDK with React Native Project using Xcode. > ``` > > 3. Configure the SDK. > 1. Drag the Razorpay.framework file from the **Libraries** folder and drop it under the root folder. > 2. Set the `Embedded Content Contains Swift Code (EMBEDDED_CONTENT_CONTAINS_SWIFT)` build setting to `YES` in your app. Know more [here](https://developer.apple.com/library/archive/qa/qa1881/_index.html). > 3. Navigate to **Target Settings** โ†’ **General** and ensure that: > 1. The framework is added in **Frameworks, Libraries, and Embed Content**. > 2. Change **Embed status** from - **'Do not Embed'** to **'Embed & Sign'**. > [accordion] How do I install the Razorpay React Native SDK through manual linking? > > To manually link the SDK, the steps differ for iOS and Android platforms. > > #### For iOS (via CocoaPods) > > Add the following line to your build targets in your Podfile. > > ```javascript Podfile theme={null} > pod 'react-native-razorpay', :path => '../node_modules/react-native-razorpay' > ``` > > Run the following command: > > ```javascript Podfile theme={null} > pod install > ``` > > #### For iOS (without CocoaPods) > > 1. In XCode, go to the project navigator: > 1. Right-click **Libraries**. > 2. Add files to \[your project's name]. > 3. Go to `node_modules/react-native-razorpay`. > 4. Add the `.xcodeproj` file. > 2. In the project navigator, select your project: > 1. `Add the libRNDeviceInfo.a` from the deviceinfo project to your project's **Build Phases** โžœ **Link Binary With Libraries**. > 2. Click `.xcodeproj` file you added before in the project navigator and go to the **Build Settings** tab. Make sure **All** is selected (instead of Basic). > 3. Look for **Header Search Paths** and make sure it contains both `$(SRCROOT)/../react-native/React` and `$(SRCROOT)/../../React`. Mark both as recursive (should be OK by default). > 3. Run your project using the **Cmd+R** keys. > > #### For Android > > Follow the steps to perform manual linking: > > 1. `Open android/app/src/main/java/[...]/MainApplication.java`. > * Add `import com.razorpay.rn.RazorpayPackage;` to the imports. > * Add `new RazorpayPackage()` to the list returned by the `getPackages()` method. > > 2. Append the following lines to `android/settings.gradle`:\\ > > ```java Settings Gradle theme={null} > include ':react-native-razorpay' > project(':react-native-razorpay').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-razorpay/android') > ``` > > 3. Insert the following lines inside the dependencies block in android/app/build.gradle: > > ```java Add Dependencies theme={null} > implementation project(':react-native-razorpay') > ``` > [accordion] How can I update the existing **'razorpay-pod'**? > > * Go to **iOS** folder in your project and run **'pod update'** to update all the pods. > > * If you do not want to update all pods, run **'pod update razorpay-pod'** > [accordion] What is the process for raising a request for a new feature? > > To raise a request for a new feature, go to **New Issue** โ†’ **Feature Request** on our [GitHub repository](https://github.com/razorpay/razorpay-capacitor/issues/new/choose). > [accordion] I am facing issues integrating the Razorpay React Native Plugin with my React Native Expo app. How do I resolve this? > > Expo does not support native code, so you cannot integrate with the Razorpay React Native Plugin. As a workaround, you can load the Razorpay page in a web view and use the callback URL logic to accept payments in your React Native Expo app. Check the [limitations](https://docs.expo.dev/faq/#limitations?redirected). > [accordion] In the new M1 MacBook, why am I not able to compile the React Native Razorpay plugin for release mode? > > New changes introduced in Xcode 12 might cause the issue. > > To resolve this: > > 1. Use [Rosetta 2](https://support.apple.com/en-us/HT211861) for launching the app on your Mac. > 2. Add the following lines to Podfile within `post_install do |installer|` . > > ```javascript podfile theme={null} > installer.pods_project.build_configurations.each do |config| > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > end > ``` > > Know more about [compilation errors](https://khushwanttanwar.medium.com/xcode-12-compilation-errors-while-running-with-ios-14-simulators-5731c91326e9). > [accordion] How can I update the Razorpay React Native Standard SDK version? > > To update the SDK version using npm, follow these steps: > > 1. Open the terminal or command prompt and navigate to your project directory where the `package.json` file resides. > 2. Use the npm update command followed by the package name to update a specific package to its latest version. For example, npm update `` (replace `` with the name of the package you want to update). > 3. If you are using a React Native iOS application, run `cd ios && pod repo update && pod update` to ensure the internal iOS dependencies are updated to the versions set by the Razorpay package. This is because cocoapods may not automatically update the internal trunk spec to fetch the latest versions. > 4. After running the update command, review the updates fetched by npm to ensure they do not introduce any breaking changes. > 5. Conduct thorough testing to ensure that the updated packages do not adversely affect the application functionality and commit the changes. # Unsupported Platforms and Integrations Source: https://razorpay.com/docs/payments/payment-gateway/unsupported-platforms Learn how to integrate Razorpay Payment Gateway with platforms that don't have an official plugin. Explore alternate integration options and workarounds. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [!WARNING] > > **Razorpay does not have an official plugin for every platform** > > If the platform you are looking for is not in [Razorpay's official plugin directory](/docs/payments/payment-gateway/ecommerce-plugins), there is no officially supported integration for it. You can still integrate Razorpay using the API directly โ€” see the Alternate Options below. Razorpay has official plugins and SDKs for a specific set of platforms. If your platform is not listed in [Razorpay's official plugin directory](/docs/payments/payment-gateway/ecommerce-plugins), Razorpay does not have an official integration for it. The list below shows examples of commonly requested platforms that do not have an official integration. It is not exhaustive โ€” the absence of a platform from this list does not mean an official integration exists for it. * Shiprocket * WhatsApp API/WhatsApp Pay * Typof * Google Ads Enhanced Conversion * Notion * Webflow * Framer ## Alternate Options * **Custom Payment Gateways**: If your platform supports custom payment gateways, use our [Web Integration (Standard Checkout)](/docs/payments/payment-gateway/web-integration/standard/integration-steps) directly. No other plugin is needed. * **Custom Integration**: Check Razorpay's [Official Plugin list](/docs/payments/payment-gateway/ecommerce-plugins). If yours isn't there, you can build a [custom integration using the Standard Checkout API](/docs/payments/payment-gateway/web-integration/standard). * To request an official integration: [Contact support](https://razorpay.com/support/#request) with your platform details. ### Related Information * [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard) * [Razorpay Custom Checkout](/docs/payments/payment-gateway/web-integration/custom) # Best Practices for Standard Checkout Integration Source: https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/best-practices Best practices for a smoother Standard Checkout web integration and payment experience. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Follow the best practices for a smooth Standard Checkout web integration. 1. **Capture Payment Using Payment Capture Settings** You **must capture** the authorised payments for the **settlement of the payments** in your bank account. Use the [Payment Capture Setting](/docs/payments/payments/capture-settings) to configure the capture settings at an account level via the Dashboard. 2. **Integrate Orders API** Orders bind multiple payment attempts for a single order. This helps to **prevent multiple payments**. [Integrate with Orders API](/docs/payments/payment-gateway/web-integration/standard/integration-steps#1-create-an-order-in-server) on your server-side and pass the `order_id` to Checkout. 3. **Verify Signature to Avoid Data Tampering** This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. Know how to [verify payment signature](/docs/payments/payment-gateway/web-integration/standard/integration-steps#5-verify-payment-signature). 4. **Check Payment/Order Status before Providing Services** Check the payment/order status, that is if the payment's status is `captured` and the order's status is `paid` before proving the services to the customers. * [Fetch All Payments for an Order API](/docs/api/orders/fetch-payments) * [Fetch Status of a Payment using Payment id API](/docs/api/payments/fetch-with-id) * [Fetch Status of an Order using Order id API](/docs/api/orders/fetch-with-id) 5. **Implement Webhooks** Implement webhooks or the query API to avoid callback failure (drop-offs could be due to connectivity or network failure) and to verify the payment details via an S2S call. Know more about [Webhooks](/docs/webhooks/setup-edit-payments). You should enable the following webhooks: * `payment.captured` * `payment.failed` * `order.paid` 6. **Implement Callback URL** Sites like Instagram, Facebook Messenger, Opera and UC browser do not support i-frame. You should implement [callback URL](/docs/payments/payment-gateway/callback-url) if your customers use any of these for making payments. # Cash on Delivery Source: https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/cod Offer Cash on Delivery (COD) as a payment method on Razorpay Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Standard Checkout offers prepaid payment methods such as UPI, cards, netbanking, wallets and EMI. With Cash on Delivery (COD) activated on your account, **Cash on Delivery appears as an additional payment method inside the same checkout**. You do not need to build and maintain a separate COD flow outside Razorpay Checkout. You get one integration, one checkout surface and one set of order events. ## What Happens When a Customer Chooses COD 1. The customer selects **Cash on Delivery** on the Checkout page. 2. Checkout displays the COD convenience fee you configured and the total payable on delivery. 3. Razorpay records the selection and marks the order as placed with COD. 4. Razorpay notifies you with the `payment.pending` webhook, with `method=cod`. 5. You begin fulfilment. Your delivery partner collects cash at the doorstep. > [!WARNING] > > **Watch Out!** > > A COD order is *placed* through Razorpay Checkout, but the amount is *collected by you* (or your logistics partner) in cash at delivery. No payment is processed through Razorpay for a COD order, so **no settlement is generated for it**. Use the COD webhook and the Dashboard order view to reconcile. ## COD Capabilities COD comes in three layers. The first is the foundation. The other two recover orders that would otherwise be lost when a prepaid payment fails. | **#** | **Capability** | **What It Does** | **Activation** | | - | - | - | - | | **1** | **COD as a payment method** | **Cash on Delivery** appears in the Checkout payment method list, with the convenience fee you configured. | Activated with COD on your account. | | **2** | **COD on the retry screen** | When a prepaid payment fails, COD is surfaced at the top of the retry screen, alongside the option to try the failed method again. | Included with capability 1. No separate request needed. | | **3** | **Automatic COD placement** | Instead of waiting for the customer to pick COD from the retry screen, Checkout moves them straight into the COD flow after a failure. | **Requires separate activation.** See [Automatic COD Placement on Payment Failure](#automatic-cod-placement-on-payment-failure). | > [!NOTE] > > **Handy Tips** > > Run capabilities 1 and 2 in production for at least a week before enabling capability 3. Automatic placement changes customer behaviour on failures and should only be introduced once your COD fulfilment and reconciliation are proven. Given below is how **Cash on Delivery** appears in the payment method list when no `cod_fee` is passed on the order: ![Checkout payment method list showing Cash on Delivery with no convenience fee](https://razorpay.com/docs/build/browser/assets/images/cod-std-checkout-method-list.png) When you pass a `cod_fee`, the fee appears against the method: ![Checkout payment method list showing Cash on Delivery with a 50 rupee extra charge](https://razorpay.com/docs/build/browser/assets/images/cod-std-checkout-method-list-fee.png) ## Responsibilities COD splits cleanly between you and Razorpay. | **Area** | **Owner** | **Details** | | - | - | - | | **COD eligibility** | **You** | You decide which orders and which customers get COD, based on your own logic such as pincode serviceability, order value, customer history or risk rules. Razorpay does not apply eligibility intelligence on Standard Checkout. It renders what you configure per order. | | **COD convenience fee** | **You** | You set the fee per order. Razorpay displays it. | | **Rendering COD in Checkout** | Razorpay | COD appears in the payment method list and on the retry screen, with the fee and total payable on delivery. | | **COD order placement signal** | Razorpay | Delivered as the `payment.pending` webhook with `method=cod`. | | **Collecting cash at delivery** | **You** | Directly or through your logistics partner. | | **Reconciliation** | **You** | Razorpay does not settle COD amounts. | | **Fulfilment lifecycle** | **You** | Packing, shipping, delivery and returns. | | **Return-to-origin (RTO) risk and cost** | **You** | Razorpay does not absorb RTO losses on COD orders. | ## Prerequisites | **Requirement** | **Details** | | - | - | | **Checkout product** | Razorpay **Standard Checkout**. COD on [Custom Checkout](/docs/payments/payment-gateway/web-integration/custom) and [Magic Checkout](/docs/payments/magic-checkout) is handled separately. Contact your Account Manager if you use either. | | **Business type** | Physical goods sold and delivered to the customer. For example, ecommerce, D2C, grocery, food and beverage. | | **Currency** | **INR only.** Orders in any other currency cannot use COD. | | **Account activation** | COD is **off by default** and must be activated on your merchant account. See [Activate COD](#activate-cod). | | **Technical readiness** | Server-side ability to set the COD fee when creating an order, and a [webhook](/docs/webhooks) endpoint that can receive and verify COD order events. | ## Activate COD Write to your Razorpay Account Manager or Partner Manager to request activation. If you do not have an Account Manager, [raise a request](https://razorpay.com/support/) with our support team. Share the following details in your request: | **Detail** | **Example** | **Why It Is Needed** | | - | - | - | | Merchant ID (MID) | `ABC123xyz456` | The account COD will be activated on. List all MIDs if you operate several. | | Business category | Fashion / D2C apparel | What you sell and how it is delivered. | | Checkout product | Standard Checkout | Confirms the integration you use today. | | Expected COD share | \~30% of monthly orders | A rough estimate of the volume you expect on COD. | | Automatic COD placement | Yes / No | Capability 3. Request it explicitly if you want it. | ### What Happens Next | **Stage** | **What Happens** | **Typical Duration** | | - | - | - | | 1. Request received | Razorpay acknowledges and reviews your details. | 1-2 business days | | 2. Test activation | COD is activated on your test MID so you can integrate and run the [testing checklist](#test-your-integration). | 2-3 business days | | 3. Verification | Joint verification of order creation, Checkout rendering, fee display and webhooks. | Depends on your integration | | 4. Live activation | COD is activated on your live MID. Automatic COD placement is enabled after this runs cleanly. | 1-2 business days after verification | End to end, expect roughly **7-10 business days** from a complete request to live activation, assuming your integration is ready. If any details are missing, our team reaches out before activating. ## Integration at a Glance If COD is already active on your account, integration is four steps and touches only your order creation call and your webhook handler. **No change is needed to your Checkout initialisation code.** | **Step** | **What You Do** | **Where** | | - | - | - | | 1 | Decide whether COD should appear for this customer, and hide it if not. | Client-side Checkout options | | 2 | Create the Razorpay order, passing `cod_fee` if a fee applies. | Server-side [Orders API](/docs/api/orders/create) | | 3 | Open Checkout exactly as you do today. | No change | | 4 | Handle the `payment.pending` webhook and start fulfilment. | Your webhook endpoint | ## 1. Control Where COD Appears **Once COD is active on your account, it is shown on every Checkout session by default.** Razorpay does not filter it for you. If an order is not COD-eligible under your own rules, such as an unserviceable pincode, an order value above your COD cap or a customer with prior RTOs, **you must hide it explicitly**. Run your eligibility checks before you open Checkout, then pass `cod` in the `hide` array of the [display configuration](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/display-configuration): ```javascript Checkout options theme={null} let options = { // ...your existing Checkout options config: { display: { hide: [ { method: "cod" } ] } } }; ``` The `hide` array sits alongside the other display controls, `blocks`, `sequence` and `preferences`, described in [Understand the Configuration](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/understand-configuration). You only need the `hide` entry to suppress COD. > [!WARNING] > > **Watch Out!** > > Hiding always wins. If you hide COD, it does not render even if you passed a `cod_fee` on the order. ## 2. Create the Order With a COD Fee Pass `cod_fee` in the [Orders API](/docs/api/orders/create) when a convenience fee applies to the order. Omit it entirely when no fee applies. Do not pass `0` explicitly. All amounts are in paise. ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/orders \ -H "content-type: application/json" \ -d '{ "amount": 129900, "currency": "INR", "receipt": "rcpt_00123", "cod_fee": 4900 }' ``` ```python Python theme={null} import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.order.create({ "amount": 129900, "currency": "INR", "receipt": "rcpt_00123", "cod_fee": 4900 }) ``` ```php PHP theme={null} $api = new Api($key_id, $secret); $api->order->create(array( 'amount' => 129900, 'currency' => 'INR', 'receipt' => 'rcpt_00123', 'cod_fee' => 4900 )); ``` In this example, the customer sees an item total of โ‚น1,299, a COD fee of โ‚น49 and โ‚น1,348 payable on delivery. ### cod\_fee Attribute `cod_fee` : `integer` The convenience fee added when the customer pays by COD, in paise. Optional. Pass a value of `0` or more. It must not exceed `amount`. If you pass a negative value and COD is active on your account, COD is offered with no convenience fee. ### What the Customer Sees | **`cod_fee` in Orders API** | **COD hidden in Checkout options** | **Customer sees** | | - | - | - | | Absent | No | COD offered, no fee | | Absent | Yes | COD not offered | | Present (> 0) | No | COD offered, with the fee and total payable on delivery | | Present (> 0) | Yes | COD not offered | | Negative | No | COD offered, no fee | | Negative | Yes | COD not offered | ## 3. Open Checkout No change to your Checkout initialisation code. When COD is active on your account and is not hidden for the order, Standard Checkout renders **Cash on Delivery** alongside the other payment methods, with the fee passed in `cod_fee`. ## 4. Receive the COD Webhook and Start Fulfilment **A COD order does not generate a payment.** There is no `payment.captured` event and no settlement. Treat the [`payment.pending`](/docs/webhooks/payments#payment-pending) webhook with `method=cod` as your signal to begin fulfilment. [Verify the signature](/docs/webhooks/validate-test) exactly as you do for your existing Razorpay webhooks. > [!NOTE] > > **Handy Tips** > > Your existing webhooks are unaffected. Current subscriptions continue to fire exactly as before. You will see the option to subscribe to `payment.pending` on the Dashboard once COD is activated on your MID. Given below is a sample `payment.pending` payload for a COD order: ```json payment.pending theme={null} { "entity": "event", "account_id": "acc_94tLpgbojcR85O", "event": "payment.pending", "contains": ["payment"], "payload": { "payment": { "entity": { "id": "pay_TFiPwbovHgmKM0", "entity": "payment", "amount": 50100, "currency": "INR", "status": "pending", "order_id": "order_TFiIUNpKRvnZo7", "international": false, "method": "cod", "captured": false, "amount_refunded": 0, "email": "gaurav.kumar@example.com", "contact": "+919000090000", "created_at": 1784541436 } } }, "created_at": 1784541436 } ``` ### Fields to Key Your Logic On | **Field** | **Value for a COD order** | **Use It To** | | - | - | - | | `event` | `payment.pending` | Route the event. | | `payload.payment.entity.method` | `cod` | Distinguish COD from other pending-payment methods. | | `payload.payment.entity.status` | `pending` | Confirm the order is placed but uncollected. | | `payload.payment.entity.order_id` | `order_...` | Match the event to the order in your system. | | `payload.payment.entity.amount` | `integer` (paise) | Read the total amount payable, including `cod_fee`. | > [!WARNING] > > **Watch Out!** > > The `amount` field in the webhook is the total amount payable, **including** the `cod_fee`. The `cod_fee` is not sent separately in the webhook, because you set it yourself for every order. ## 5. Reconcile Razorpay does not settle COD amounts. Track each COD order in your system with three values: * The order amount. * The COD fee. * The total payable on delivery. Reconcile the cash collected by your delivery partner against the total payable. The Dashboard order view and the `payment.pending` webhook are your two sources of truth for what was placed. ## Automatic COD Placement on Payment Failure > [!WARNING] > > **Watch Out!** > > This requires separate activation on your MID. Ask your Account Manager explicitly. Without automatic placement, a failed prepaid payment lands the customer on the retry screen with COD surfaced at the top. With it, Checkout moves the customer directly into the COD flow. ### Behaviour on the Retry Screen This is capability 2 and is included by default with COD. | **Scenario** | **Customer experience** | | - | - | | Payment fails, COD is active on the MID and not hidden in Checkout options | The retry screen shows the available methods with COD surfaced at the top, using the same fee breakdown you sent in `cod_fee`. | | Payment fails, COD is not active on the MID | Standard retry screen. COD is not offered. | | Payment fails, COD is active on the MID but hidden in Checkout options | Standard retry screen. COD is not offered. | | Customer selects COD from the retry screen | The order is placed with COD. | ![Retry screen after a failed payment, with Cash on Delivery listed above the other retry options](https://razorpay.com/docs/build/browser/assets/images/cod-std-checkout-retry-screen.png) ### Behaviour With Automatic Placement This is capability 3. What the customer sees depends on whether a COD fee applies to the order. In both cases, a sheet replaces the retry screen offering **Pay Online** and **Pay on Delivery**. What differs is whether the COD order is placed on its own. | **Condition** | **Customer experience** | **Action required from customer** | | - | - | - | | **No COD fee on the order** | The **Pay on Delivery** button fills over 15 seconds and is labelled **Pay on Delivery - Click to Stop**. | None. If the customer does not stop it within 15 seconds, the order is placed with COD. | | **COD fee greater than 0** | The sheet names the extra charge and waits. Nothing is placed automatically. | Explicit confirmation. The order is placed only after the customer taps **Pay on Delivery**. | #### Flow A: No COD Fee on the Order The sheet tells the customer the order can still be placed with Cash on Delivery at no extra charge. The **Pay on Delivery** button fills over 15 seconds, and the customer can stop it by tapping it. | **What the customer does** | **Outcome** | | - | - | | Taps **Pay on Delivery - Click to Stop** within 15 seconds | Automatic placement stops. No order is placed. | | Taps **Pay Online** | The customer returns to the payment methods to try a prepaid method again. | | Does nothing for 15 seconds | The order is placed with COD. | ![Automatic COD placement with no fee, showing the Pay on Delivery button filling with a Click to Stop label](https://razorpay.com/docs/build/browser/assets/images/cod-std-checkout-auto-placement-no-fee.png) #### Flow B: COD Fee Applies The sheet names the extra charge the customer pays if they continue with COD. Nothing is placed automatically. The customer must tap **Pay on Delivery**. | **What the customer does** | **Outcome** | | - | - | | Taps **Pay on Delivery** | The order is placed with COD, including the fee. | | Taps **Pay Online** | The customer returns to the payment methods to try a prepaid method again. | ![Automatic COD placement with a fee, showing the extra charge and a Pay on Delivery button that requires an explicit tap](https://razorpay.com/docs/build/browser/assets/images/cod-std-checkout-auto-placement-fee.png) ### Guardrails * Automatic placement fires **only on a genuine, confirmed payment failure** returned by the payment processor. It does not fire when the customer abandons Checkout, cancels the payment themselves, or the session times out. * If the customer refreshes during the automatic placement screen, they see the same screen. **The order is never placed twice.** * RTO risk on automatically placed COD orders sits with you, as it does for all COD orders. ## Validation and Errors How the Orders API handles each `cod_fee` and currency condition is given below: | **Condition** | **Result** | | - | - | | `cod_fee` exceeds `amount` | Rejected with `400 Bad Request` | | Order currency is not INR | Rejected with `400 Bad Request` | | `cod_fee` is negative | Accepted. COD is offered with no convenience fee. | > [!WARNING] > > **Watch Out!** > > A negative `cod_fee` is not rejected. The order is created and COD is offered with no convenience fee, which means you collect only the order amount at delivery. Validate the fee on your side before you create the order so a calculation error does not silently drop your COD fee. ## Test Your Integration Run the checks below on your test MID with your test credentials before you go live. Ask our team to activate COD on your test account first. > [accordion] Order creation > > * An order created **with** `cod_fee` succeeds. > * An order created **without** `cod_fee`, with COD active, succeeds. > * A negative `cod_fee` succeeds, and COD is offered with no convenience fee. > * A `cod_fee` greater than `amount` is rejected with `400`. > * A non-INR currency is rejected with `400`. > [accordion] Checkout rendering > > * COD appears in the payment method list, labelled **Cash on Delivery**. > * When `cod_fee` was passed, the fee and total payable on delivery display against COD. > * When COD is hidden using the display configuration, it does not render. > * A COD order can be placed successfully. > [accordion] Failure handling > > * After a prepaid failure with COD active, COD is surfaced on the retry screen. > * If automatic placement is active, the no-fee flow shows the 15-second loader and **Cancel** works. > * If automatic placement is active, the with-fee flow shows the consent sheet and requires confirmation. > [accordion] Webhooks > > * `payment.pending` is received with `method=cod` when a COD order is placed. > * Signature verification passes. > * Your fulfilment trigger fires exactly once per COD order. ### Related Information * [Cash on Delivery Payment Method](/docs/payments/payment-methods/cod) * [Display the Configuration](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods/display-configuration) * [Create an Order](/docs/api/orders/create) * [Payments Webhooks](/docs/webhooks/payments) # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/web-integration/standard/troubleshooting-faqs Troubleshoot common errors and find answers to frequently asked questions related to Razorpay Web Standard Checkout Integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [accordion] Why are my customer payments being automatically refunded? > > Payments made without an `order_id` cannot be captured and are automatically refunded. Create an order using the [Orders API](/docs/payments/payment-gateway/web-integration/standard/integration-steps#1-create-an-order-in-server) before initiating payments. > [accordion] What can cause an overflow issue on an HTML page, and how can I resolve it? > > Overflow issue can occur if the viewport meta tag is not present in your code. Check if the meta tag is added. If not, add the following line. > > ```html View Port Meta Tag theme={null} > > ``` > [accordion] Is a timeout applicable on transactions? > > Transaction timeout is applicable only when your customer attempts the payment. It times outs between 3 to 15 minutes. > > The customer is redirected to the checkout if a payment fails due to timeout. > [accordion] Can I track the status of the checkout modal? > > Yes, you can track the status of the checkout modal. You can do this by passing a modal object with `ondismiss: function(){}` as `options`. The `ondismiss` function is called when the modal is closed by the user. > > ```javascript Javascript theme={null} > var options = { > "key": "", // Enter the Key ID generated from the Dashboard > "amount": "29935", > "name": "Acme Corp", > "description": "A Wild Sheep Chase is the third novel by Japanese author Haruki Murakami", > "image": "http://example.com/your_logo.jpg", > "handler": function (response){ > alert(response.razorpay_payment_id); > }, > /** > * You can track the modal lifecycle by * adding the below code in your options > */ > "modal": { > "ondismiss": function(){ > console.log('Checkout form closed'); > } > } > }; > var rzp1 = new Razorpay(options); > ``` > > You can utilise the `handler` function called on every successful transaction for tracking payment completion. > [accordion] What is the difference between webhooks and callback URL? > > You can use Callback URL and webhook to get the status of the transaction for a payment source. > > | Particulars | Webhooks | Callback URL | > | - | - | - | > | About | Webhooks allow you to build or set up integrations that subscribe to certain events on Razorpay APIs. When one of those events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know more about [webhooks](/docs/webhooks). | A callback URL is an address that a server provides, and any computer in the Internet/private network can POST data to it. For Razorpay integrations, callback URL is the address at which Razorpay should send the transaction response. You can pass the URL in the `https://` format in the `callback_url` request parameter. Know more about [callback URL](/docs/payments/payment-gateway/callback-url). | > | When to use | Use webhooks to receive real-time notifications when specific events occur. For example, receive notifications upon payment failure. | Use callback URL to redirect your customers to a particular page. For example:
  • You can send customers to a payment success page after successful payment. This page will receive payment details such as the payment id.
  • The Razorpay Checkout pop-up page does not appear in certain browsers, for example, on Facebook and Instagram browsers. In such cases, you can use the callback URL to redirect customers from your Facebook/Instagram page to another page where the Razorpay Checkout appears. Customers can complete the payments on this redirected page.
| > [accordion] How do I resolve a 500 internal server error? > > Multiple factors can cause a 500 internal server error. Ensure that the required features are enabled on your account. Additionally, verify that you are calling the API correctly. If the issue is still not resolved, contact our [Support team](https://razorpay.com/support/#request). > [accordion] Is Razorpay Checkout supported on Internet Explorer? > > No, Razorpay Checkout is not supported on the Internet Explorer browser. > [accordion] How can I enable customer information autofill at checkout? > > Customer information autofill is enabled by default for all businesses using Razorpay Standard Checkout. It prefills details like contact information, addresses and more, making the checkout process faster and smoother for your customers. > [accordion] Can customers edit pre-filled information on checkout? > > Yes, customers can edit all pre-filled information based on their requirement. > [accordion] Is the autofill feature supported on all platforms? > > No, autofill is supported only on Instagram, Facebook and iOS browsers. > [accordion] Can I accept payments through my Instagram page even if I do not have a website? > > Yes, you can accept payments without a website using Razorpay's no-code products such as [Payment Links](/docs/payments/payment-links), [Payment Pages](/docs/payments/payment-pages) or [Payment Button](/docs/payments/payment-button), as Razorpay does not offer a direct Instagram integration. > [accordion] Are language-based SDKs available? > > Yes, language-based SDKs are available [here](/docs/payments/server-integration). > [accordion] The netbanking PayNow FPX bank page is not opening on the Firefox browser. How to resolve this? > > Mozilla Firefox users may not be able to open the bank page while making a netbanking payment on your checkout. This issue may be due to a browser setting that blocks the webpage from opening a pop-up page. > > Your customers can follow these steps to unblock the pop-up page: > > * At **page level**: Modify settings on the bank page. > * At **browser level**: Modify Firefox browser's settings. > > ### Page Level > > Modify the settings on your bank page. Follow these steps: > > 1. Open Mozilla Firefox. > 2. Navigate to **Tools** โ†’ **Page Info** โ†’ **Permissions** > 3. Set **Open Pop-up Windows** to Allow. > > ### Browser Level > > Modify the settings of your Firefox browser. Follow these steps: > > 1. Open Mozilla Firefox. > 2. Navigate to **Preferences** โ†’ **Privacy & Security** โ†’ **Permissions**. > 3. Disable the **Block pop-up windows** option. > [accordion] Which payment methods appear on Instagram/Facebook browsers? > > Payment methods like [UPI Intent](/docs/payments/payment-methods/upi/upi-intent) and [Cards](/docs/payments/payment-methods/cards) will appear on Instagram/Facebook browsers. These browsers do not support any other payment method that opens on a pop-up page. > [accordion] Can I enable UPI Intent in WebView on my app? > > Yes, you can enable UPI Intent in WebView on your: > > * [Android app](/docs/payments/payment-gateway/web-integration/standard/webview/upi-intent-android) > * [iOS app](/docs/payments/payment-gateway/web-integration/standard/webview/upi-intent-ios) > [accordion] While using Razorpay UPI Intent, my customers are encountering this error, "Safari cannot open the page because the address is invalid." How can I resolve this? > > To resolve the error, request your customers to refresh the page and clear the browser cache. > [accordion] How can I accept payments on my Android or iOS apps without integrating with the native SDKs? > > If you want to accept payments on your Android or iOS apps without integrating with our native SDKs, you can reuse your Standard Integration code. This approach opens the checkout form in a WebView within your mobile app. Know more about [Webview for Mobile Apps](/docs/payments/payment-gateway/web-integration/standard/webview). > [accordion] How do I accept international payments on checkout? > > You need to enable the international payments feature on your Razorpay account. Refer to [international payments](/docs/payments/international-payments). > [accordion] What languages are supported on Razorpay checkout? > > Razorpay checkout fields support multiple languages, with English as the default. Customers can also choose Hindi, Marathi, Gujarati, Telugu, Tamil, Bengali and Kannada. Know more about [checkout in local languages](/docs/payments/payment-gateway/features). > [accordion] Can I switch between Standard Integration and Quick Integration? > > Yes, it is possible to easily switch from one integration method to another. If you were earlier using Standard Integration, you can switch to using [Quick Integration](/docs/payments/payment-gateway/quick-integration). > > * This is possible because the Standard Integration searches for the `data-key` field inside the ` > > > > > > > > ``` > > > > ```html Callback URL Checkout Code theme={null} > > > > > > > > > > > > Razorpay .Net Sample App > >
> > > > > > > >
> > > > > > > > > > > > > > > > > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > * Ensure you do the following while using the sample app: > > > > > > 1. Edit the \[KEY\_ID] inside **Payment.aspx**. Use the test keys while testing your application. Know how to [Generate API keys](/docs/api/authentication#generate-api-keys). > > > > > > 2. Edit the `[key_id]` and `[key_secret]` in **charge.aspx**. > > > > > > 3. Enforce the appropriate TLS version in the app, as shown: \\ > > > > > > ```csharp Enforce TLS theme={null} > > > System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; > > > ``` > > > > > > * Test your integration using these [test cards](/docs/payments/server-integration/dot-net/integration-steps#2-test-integration). > > > [accordion] 2.3 Checkout Options > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > The open method of the Razorpay object (`rzp1.open()`) must be invoked by your site's JavaScript, which may or may not be a user-driven action such as a click. > > > [accordion] 2.4 Handle Payment Success and Failure > > > > The way the Payment Success and Failure scenarios are handled depends on the [Checkout Sample Code](#2-2-code-to-add-pay-button) you used in the last step. > > > > > [accordion] Checkout with Callback URL > > > > > > If you used the sample code with the callback URL: > > > > > > > [tab] On Payment Success > > > > > > > > Razorpay makes a POST call to the callback URL with the **razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature** in the response object of the successful payment. Only successful authorisations are auto-submitted. > > > > > > > [tab] On Payment Failure > > > > > > > > In case of failed payments, the checkout is displayed again to facilitate payment retry. > > > > > [accordion] Checkout with Handler Function > > > > > > If you used the sample code with the handler function: > > > > > > > [tab] On Payment Success > > > > > > > > The customer sees your website page. The checkout returns the response object of the successful payment (**razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature**). Collect these and send them to your server. > > > > > > > [tab] On Payment Failure > > > > > > > > The customer is notified about payment failure and asked to retry the payment. > > > > > > Use the Success/Failure Handling code given below: > > > > > > ```javascript Success Handling Code theme={null} > > > "handler": function (response){ > > > alert(response.razorpay_payment_id); > > > alert(response.razorpay_order_id); > > > alert(response.razorpay_signature)} > > > ``` > > > > > > ```javascript Failure Handling Code theme={null} > > > rzp1.on('payment.failed', function (response){ > > > alert(response.error.code); > > > alert(response.error.description); > > > alert(response.error.source); > > > alert(response.error.step); > > > alert(response.error.reason); > > > alert(response.error.metadata.order_id); > > > alert(response.error.metadata.payment_id); > > > } > > > ``` > > > [accordion] 2.5 Configure Payment Methods *(Optional)* > > > > Multiple payment methods are available on Razorpay Standard Checkout. > > > > * The payment methods are **fixed** and cannot be changed. > > * You can configure the order or make certain payment methods prominent. Know more about configuring payment methods. Know more about [configuring payment methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > [accordion] 3 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 4 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. In the sample app, the **Charge.cs** file contains the code for verifying the payment signature. > > To verify the `razorpay_signature` returned to you by the Checkout form: > > 1. Create a signature in your server using the following attributes: > > | Attribute | Description | > | - | - | > | `order_id` | Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by checkout. | > | `razorpay_payment_id` | Returned during checkout. | > | `key_secret` | Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/api/authentication#generate-api-keys). [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). | > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct an HMAC hex digest as shown below: > > ``` > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > if (generated_signature == razorpay_signature) { > payment is successful > } > ``` > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > #### Generate Signature on Your Server > > Use the code given below to generate signature on your server: > > ```csharp Verify Payment Signature theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary options = new Dictionary(); > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > Utils.verifyPaymentSignature(options); > ``` > [accordion] 5 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > You can track the payment status in three ways: > > > [tab] Verify Status from Dashboard > > > > To verify the payment status from the Dashboard: > > > > 1. Log in to the Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > ![Check if the payment id is generated and the status is captured](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Subscribe to Webhook Events > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > #### Example > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > Given below is the webhook signature verification sample code. > > > > ```csharp .NET theme={null} > > /* Dot Net SDK: https://github.com/razorpay/razorpay-dot-net */ > > > > Utils.verifyWebhookSignature(webhookBody, webhookSignature, webhookSecret); > > #webhookBody should be raw webhook request body > > ``` > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ### 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ### 3. Go-live Checklist Check the go-live checklist for Razorpay Web Standard Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ### Related Information [Troubleshooting and FAQs](/docs/payments/server-integration/dot-net/troubleshooting-faqs) # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/server-integration/dot-net/troubleshooting-faqs Troubleshoot common error scenarios and find answers to frequently asked questions about Razorpay .NET SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] How to resolve the following error displayed during Orders API integration? > > Following are the solutions for two possible errors: > > ### Server Response: Array > > | Error | Cause | > | - | - | > | The server did not send back a well-formed response. Server Response: Array. | This error appears if you are using TLS v1 on your client-side. | > > **Resolution** > > * **Fix 1**: Verify if client supports TLS v1.1 using this website: [How's My SSL?](https://www.howsmyssl.com/s/api.html). If yes, upgrade the client to `TLS v1.1+`. > * **Fix 2**: Use the code given below to force TLS v1.2: > > ```c Force TLS v1.2 theme={null} > System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; > ``` > > ### Exception User-Unhandled > > | Error | Cause | > | - | - | > | Exception User-Unhandled | This error appears if you are using TLS v1 on your client-side | > > **Resolution** > > Use the code given below to force TLS v1.2. > > ```c Force TLS v1.2 theme={null} > System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; > ``` > [accordion] Does Razorpay support ASP.NET? > > We only have the .NET framework on which ASP.NET works; we do not support it for .NET core. # Go Server SDK Prerequisites Source: https://razorpay.com/docs/payments/server-integration/go Check the prerequisites before you integrate with Razorpay Go server-side SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Go Changelog](/docs/payments/changelog#server-sdks) > > Discover new features, updates and deprecations related to the Razorpay Go SDK (since Jan 2024). Install the Razorpay Go SDK and integrate it with your Go-based website to accept payments, initiate refunds and do much more. ## Go Client API The API follows the following practices: * This will require a GitHub Package. * The Go client throws exceptions instead of returning errors. * Options are passed as an `array` instead of multiple arguments, wherever possible. * All requests and responses are mapped to a `string`. ## Dependencies You must use Go v1.22 or higher. Know more about the [latest Go versions](https://go.dev/doc/devel/release). > [card] [Payment Gateway](/docs/payments/server-integration/go/integration-steps) > > Integrate with Razorpay Payment Gateway. > [card] [API Sample Codes](https://github.com/razorpay/razorpay-go/tree/master/documents) > > Integrate using API sample codes. ## Support * **Queries**: If you have queries, [contact support](https://razorpay.com/support/). * **Feature Request:** If you have a feature request, raise an issue on [GitHub](https://github.com/razorpay/razorpay-go/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/server-integration/go/integration-steps Integrate your Go-based website with our SDK to start accepting payments using the Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Start accepting domestic and international payments from customers on your website using the Razorpay Payment Gateway. Razorpay has developed the Standard Checkout method and manages it. You can configure **payment methods, orders, company logo** and also select **custom colour** based on your convenience. Razorpay supports these [payment methods](/docs/payments/payment-methods) and [international currencies](/docs/payments/international-payments#supported-currencies). ![Configure Go integrated payment gateway checkout based on your requirement](https://razorpay.com/docs/build/browser/assets/images/web-integration-checkout-new.jpg) Watch this video to know how to integrate Razorpay Payment Gateway on your Go-based website. [How to Integrate Razorpay Payment Gateway with Go-based Website](https://www.youtube.com/embed/BXr6dGjbGrA) > [card] Sample App > > We recommend you check the [Go Sample App](https://razorpay.com/docs/build/browser/assets/images/razorpay-go-sample-project.zip), created using the video tutorial. > [card] GitHub Repository > > Download the latest [razorpay-go.zip](https://github.com/razorpay/razorpay-go/releases) file from GitHub. It is pre-compiled to include all dependencies. ### Project Structure Before you begin, we recommend you check the [Go Sample App](https://razorpay.com/docs/build/browser/assets/images/razorpay-go-sample-project.zip), created using the video tutorial, and verify that your project contains the following files: | File | Description | | - | - | | main.go | Main class, starts the Gin application. | | go.mod | Manages project dependencies (adds Razorpay Go SDK). | | .env | Configures the application. | | config.go | Loads configuration from environment variables. | | order.go | Handles server-side order logic (create order, get API key). | | checkout.go | Handles checkout page rendering. | | payment.go | Handles server-side payment logic (verify callback). | | models/order.go | Defines order data structures. | | index.html | Frontend payment page; initiates Razorpay Checkout via JS. | | success.html | Displays payment success message to user post-verification. | | failure.html | Displays payment failure message to user post-verification. | **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works) and follow these integration steps:
> [card] [1. Build Integration](/docs/payments/server-integration/go/integration-steps#1-build-integration) > > Integrate with your Go-based website. > [card] [2. Test Integration](/docs/payments/server-integration/go/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/server-integration/go/integration-steps#3-go-live-checklist) > > Check the go-live checklist. ### 1. Build Integration > [accordion] 1 Create an Order in Server > > Order is an important step in the payment process. > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#1-1-sample-code) in the **app.js** file. It is a server-side API call. Know how to [authenticate](/docs/api/authentication#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to checkout in the **index.html** file. This ties the Order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > > [!NOTE] > > > > **Handy Tips** > > > > You can capture payments automatically with one-time [Payment Capture setting configuration](/docs/payments/server-integration/go/integration-steps#3-go-live-checklist) on the Dashboard. > > > [accordion] 1.1 Sample Code > > > > Create a file, for example, `main.go` and add the API code given below: > > > > ```go Request theme={null} > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > data := map[string]interface{}{ > > "amount": 50000, // Amount is in currency subunits. > > "currency": "INR", > > "receipt": "some_receipt_id", > > } > > body, err := client.Order.Create(data, nil) > > ``` > > > > ```json Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1582628071 > > } > > ``` > > > [accordion] 1.2 Request Parameters > > > > Here is the list of parameters for creating an order: > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be 3 characters. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7000 is to be received from the customer in two installments of #1 - โ‚น5000, #2 - โ‚น2000 then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > > Know more about [Orders API](/docs/api/orders). > > > [accordion] 1.3 Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) table. > > > [accordion] 1.4 Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create#errors). > [accordion] 2 Add Checkout Options > > Add the Razorpay Checkout options in your project. For example, if you are using HTML for your frontend, create a page called **app.html** and add the Pay button on your web page using the checkout code and either the callback URL or handler function. > > > [accordion] 2.1 Callback URL or Handler Function > > > > | **Callback URL** | **Handler Function** | > > | - | - | > > | When you use this:
  • On successful payment, the customer is redirected to the specified URL, for example, a payment success page.
  • On failure, the customer is asked to retry the payment.
| When you use this:
  • On successful payment, the customer is shown your web page.
  • On failure, the customer is notified of the failure and asked to retry the payment.
| > > > [accordion] 2.2 Code to Add Pay Button > > > > Copy-paste the parameters as `options` in your code: > > > > ```html Handler Function (JS) Checkout Code theme={null} > > > > > > > > ``` > > > > ```html Callback URL (JS) Checkout Code theme={null} > > > > > > > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Test your integration using these [test cards](/docs/payments/server-integration/go/integration-steps#2-test-integration). > > > [accordion] 2.3 Checkout Options > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > The open method of the Razorpay object (`rzp1.open()`) must be invoked by your site's JavaScript, which may or may not be a user-driven action such as a click. > > > [accordion] 2.4 Handle Payment Success and Failure > > > > The way the Payment Success and Failure scenarios are handled depends on the [Checkout Sample Code](#2-2-code-to-add-pay-button) you used in the last step. > > > > > [accordion] Checkout with Callback URL > > > > > > If you used the sample code with the callback URL: > > > > > > > [tab] On Payment Success > > > > > > > > Razorpay makes a POST call to the callback URL with the **razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature** in the response object of the successful payment. Only successful authorisations are auto-submitted. > > > > > > > [tab] On Payment Failure > > > > > > > > In case of failed payments, the checkout is displayed again to facilitate payment retry. > > > > > [accordion] Checkout with Handler Function > > > > > > If you used the sample code with the handler function: > > > > > > > [tab] On Payment Success > > > > > > > > The customer sees your website page. The checkout returns the response object of the successful payment (**razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature**). Collect these and send them to your server. > > > > > > > [tab] On Payment Failure > > > > > > > > The customer is notified about payment failure and asked to retry the payment. > > > > > > Use the Success/Failure Handling code given below: > > > > > > ```javascript Success Handling Code theme={null} > > > "handler": function (response){ > > > alert(response.razorpay_payment_id); > > > alert(response.razorpay_order_id); > > > alert(response.razorpay_signature)} > > > ``` > > > > > > ```javascript Failure Handling Code theme={null} > > > rzp1.on('payment.failed', function (response){ > > > alert(response.error.code); > > > alert(response.error.description); > > > alert(response.error.source); > > > alert(response.error.step); > > > alert(response.error.reason); > > > alert(response.error.metadata.order_id); > > > alert(response.error.metadata.payment_id); > > > } > > > ``` > > > [accordion] 2.5 Configure Payment Methods *(Optional)* > > > > Multiple payment methods are available on Razorpay Standard Checkout. > > > > * The payment methods are **fixed** and cannot be changed. > > * You can configure the order or make certain payment methods prominent. Know more about configuring payment methods. Know more about [configuring payment methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > [accordion] 3 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 4 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > To verify the `razorpay_signature` returned to you by the Checkout form: > > 1. Create a signature in your server using the following attributes: > > | Attribute | Description | > | - | - | > | `order_id` | Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by checkout. | > | `razorpay_payment_id` | Returned during checkout. | > | `key_secret` | Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/api/authentication#generate-api-keys). [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). | > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct an HMAC hex digest as shown below: > > ``` > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > if (generated_signature == razorpay_signature) { > payment is successful > } > ``` > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > #### Generate Signature on Your Server > > Use the code given below to generate signature on your server: > > ```go Verify Payment Signature theme={null} > import ( razorpay "github.com/razorpay/razorpay-go" ) > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > params := map[string]interface{}{ > "razorpay_order_id": "order_IEIaMR65cu6nz3", > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > } > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > secret := "EnLs21M47BllR3X8PSFtjtbd"; > utils.VerifyPaymentSignature(params, signature, secret) > ``` > [accordion] 5 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > You can track the payment status in three ways: > > > [tab] Verify Status from Dashboard > > > > To verify the payment status from the Dashboard: > > > > 1. Log in to the Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > ![Check if the payment id is generated and the status is captured](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Subscribe to Webhook Events > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > #### Example > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > Given below is the webhook signature verification sample code. > > > > ```go Go theme={null} > > /* Go SDK: https://github.com/razorpay/razorpay-go */ > > > > webhookbody := `{"entity":"event","account_id":"acc_HVFD0PFnHPAzKj","event":"payment.authorized","contains":["payment"],"payload":{"payment":{"entity":{"id":"pay_JUEM4c0pSLpFEW","entity":"payment","amount":12300,"currency":"INR","status":"authorized","order_id":"order_JUELuT6cFaHkvd","invoice_id":null,"international":false,"method":"netbanking","amount_refunded":0,"refund_status":null,"captured":false,"description":"#JUELZ1z1EC0pwi","card_id":null,"bank":"SBIN","wallet":null,"vpa":null,"email":"","contact":"+919999999999","notes":[],"fee":null,"tax":null,"error_code":null,"error_description":null,"error_source":null,"error_step":null,"error_reason":null,"acquirer_data":{"bank_transaction_id":"6416615"},"created_at":1652339804}}},"created_at":1652339806}`; > > > > signature := "56df260ab4647b07b729b0b48d2a95b71de42f109884949e5ec387a2bb8b6919"; > > webhook_secret := "123456"; > > body := utils.VerifyWebhookSignature(webhookbody, signature, webhook_secret) > > ``` > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ### 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ### 3. Go-live Checklist Check the go-live checklist for Razorpay Web Standard Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # Java Server SDK Prerequisites Source: https://razorpay.com/docs/payments/server-integration/java Check the prerequisites before you integrate with Razorpay Java server-side SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Java Changelog](/docs/payments/changelog#server-sdks) > > Discover new features, updates and deprecations related to the Razorpay Java SDK (since Jan 2024). Install the Razorpay Java SDK and integrate it with your Java-based website to accept payments, initiate refunds and much more. ## Dependencies * You must use Java v15 or higher. Know more about the [latest java versions](https://www.java.com/releases/). * Import the following packages before your get started: ```json Import Package theme={null} import org.json.JSONObject; import com.razorpay.*; ``` ## Installation You can install Razorpay using Maven or Gradle. > [tab] Maven > > 1. Download and install [Maven](https://maven.apache.org/download.cgi) on your system. > 2. Download the [latest Source code](https://github.com/razorpay/razorpay-java/releases) zip file from the Releases section of GitHub. > 3. Unzip the file and add this dependency to the project object model (POM) of your project. > > ```java Java theme={null} > > com.razorpay > razorpay-java > x.y.z //x.y.z = the version you want to install > > ``` > [tab] Gradle > > 1. [Download](https://gradle.org/releases) and [install](https://docs.gradle.org/current/userguide/installation.html) Gradle on your system. > 2. Download the [latest Source code](https://github.com/razorpay/razorpay-java/releases) zip file from the Releases section of GitHub. > 3. Unzip the file and add this dependency to the build file of the project: > > ```java Java theme={null} > implementation 'com.razorpay:razorpay-java:x.y.z" //x.y.z = the version you want to install > ``` > [card] [Payment Gateway](/docs/payments/server-integration/java/integration-steps) > > Integrate with Razorpay Payment Gateway. > [card] [API Sample Codes](https://github.com/razorpay/razorpay-java/tree/master/documents) > > Integrate using API sample codes. > [card] [Other Razorpay Products](/docs/payments/server-integration/java/integration-steps#integrate-with-other-razorpay-products) > > Integrate with other Razorpay products. ## Support * **Queries**: If you have queries, [contact support](https://razorpay.com/support/). * **Feature Request:** If you have a feature request, raise an issue on [GitHub](https://github.com/razorpay/razorpay-java/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/server-integration/java/integration-steps Integrate your Java-based website with our SDK to start accepting payments using the Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Payment Gateway](/docs/payments/server-integration/java/integration-steps#integrate-with-razorpay-payment-gateway) > > Integrate with Razorpay Payment Gateway. > [card] [Other Razorpay Products](/docs/payments/server-integration/java/integration-steps#integrate-with-other-razorpay-products) > > Integrate with other Razorpay products using API sample codes. ## Integrate With Razorpay Payment Gateway Start accepting domestic and international payments from customers on your website using the Razorpay Payment Gateway. Razorpay has developed the Standard Checkout method and manages it. You can configure **payment methods, orders, company logo** and also select **custom colour** based on your convenience. Razorpay supports these [payment methods](/docs/payments/payment-methods) and [international currencies](/docs/payments/international-payments#supported-currencies). ![Configure .NET integrated payment gateway checkout based on your requirement](https://razorpay.com/docs/build/browser/assets/images/web-integration-checkout-new.jpg) Watch this video to know how to integrate Razorpay Payment Gateway on your Java-based website. [How to Integrate Razorpay Payment Gateway with Java-based Website](https://www.youtube.com/embed/Qph08VLmPhc) > [card] Sample App > > We recommend you check the [Java Sample App](https://razorpay.com/docs/build/browser/assets/images/razorpay-java-sample-project.zip), created using the video tutorial. > [card] GitHub Repository > > Download the latest [razorpay-java.zip](https://github.com/razorpay/razorpay-java/releases/) file from GitHub. It is pre-compiled to include all dependencies. ### Project Structure Before you begin, we recommend you check the [Java Sample App](https://razorpay.com/docs/build/browser/assets/images/razorpay-java-sample-project.zip), created using the video tutorial and verify that your project contains the following files: | File Name | Purpose | | - | - | | PaymentController.java | Contains the Orders API and verify callback. | | index.html | Contains the checkout code. | | succes.html | Displays payment success message to user. | | failure.html | Displays payment failure message to user. | **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works) and follow these integration steps:
> [card] [1. Build Integration](/docs/payments/server-integration/java/integration-steps#1-build-integration) > > Integrate with your Java-based website. > [card] [2. Test Integration](/docs/payments/server-integration/java/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/server-integration/java/integration-steps#3-go-live-checklist) > > Check the go-live checklist. ### 1. Build Integration > [accordion] 1 Create an Order in Server > > Order is an important step in the payment process. > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#1-1-sample-code). It is a server-side API call. Know how to [authenticate](/docs/api/authentication#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the Order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > > [!NOTE] > > > > **Handy Tips** > > > > You can capture payments automatically with one-time [Payment Capture setting configuration](/docs/payments/server-integration/java/integration-steps#3-go-live-checklist) on the Dashboard. > > > [accordion] 1.1 Sample Code > > > > In the sample app, the **PaymentController.java** file contains the code for order creation using Orders API. > > > > ```java Request theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > JSONObject orderRequest = new JSONObject(); > > orderRequest.put("amount",50000); // Amount is in currency subunits. > > orderRequest.put("currency","INR"); > > orderRequest.put("receipt", "receipt#1"); > > JSONObject notes = new JSONObject(); > > notes.put("notes_key_1","Tea, Earl Grey, Hot"); > > orderRequest.put("notes",notes); > > > > Order order = instance.orders.create(orderRequest); > > ``` > > > > ```json Response theme={null} > > { > > "id": "order_GAWN9beXgaXXXX", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "receipt#1", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": "Tea, Earl Grey, Hot", > > "created_at": 1573044247 > > } > > ``` > > > [accordion] 1.2 Request Parameters > > > > Here is the list of parameters for creating an order: > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be 3 characters. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7000 is to be received from the customer in two installments of #1 - โ‚น5000, #2 - โ‚น2000 then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > > Know more about [Orders API](/docs/api/orders). > > > [accordion] 1.3 Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) table. > > > [accordion] 1.4 Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create#errors). > [accordion] 2 Add Checkout Options > > Add the Razorpay Checkout options to your project. For example, if you are using HTML for your frontend, create a page called **index.html** and add the Pay button on your web page using the checkout code and either the callback URL or handler function. > > > [accordion] 2.1 Callback URL or Handler Function > > > > | **Callback URL** | **Handler Function** | > > | - | - | > > | When you use this:
  • On successful payment, the customer is redirected to the specified URL, for example, a payment success page.
  • On failure, the customer is asked to retry the payment.
| When you use this:
  • On successful payment, the customer is shown your web page.
  • On failure, the customer is notified of the failure and asked to retry the payment.
| > > > [accordion] 2.2 Code to Add Pay Button > > > > Copy-paste the parameters as `options` in your code: > > > > ```html Handler Function (JavaScript) Checkout Code theme={null} > > > > > > > > ``` > > > > ```html Callback URL (JavaScript) Checkout Code theme={null} > > > > > > > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Test your integration using these [test cards](/docs/payments/server-integration/java/integration-steps#2-test-integration). > > > [accordion] 2.3 Checkout Options > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > The open method of Razorpay object (`rzp1.open()`) must be invoked by your site's JavaScript, which may or may not be a user-driven action such as a click. > > > [accordion] 2.4 Handle Payment Success and Failure > > > > The way the Payment Success and Failure scenarios are handled depends on the [Checkout Sample Code](#2-2-code-to-add-pay-button) you used in the last step. > > > > > [accordion] Checkout with Callback URL > > > > > > If you used the sample code with the callback URL: > > > > > > > [tab] On Payment Success > > > > > > > > Razorpay makes a POST call to the callback URL with the **razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature** in the response object of the successful payment. Only successful authorisations are auto-submitted. > > > > > > > [tab] On Payment Failure > > > > > > > > In case of failed payments, the checkout is displayed again to facilitate payment retry. > > > > > [accordion] Checkout with Handler Function > > > > > > If you used the sample code with the handler function: > > > > > > > [tab] On Payment Success > > > > > > > > The customer sees your website page. The checkout returns the response object of the successful payment (**razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature**). Collect these and send them to your server. > > > > > > > [tab] On Payment Failure > > > > > > > > The customer is notified about payment failure and asked to retry the payment. > > > > > > Use the Success/Failure Handling code given below: > > > > > > ```javascript Success Handling Code theme={null} > > > "handler": function (response){ > > > alert(response.razorpay_payment_id); > > > alert(response.razorpay_order_id); > > > alert(response.razorpay_signature)} > > > ``` > > > > > > ```javascript Failure Handling Code theme={null} > > > rzp1.on('payment.failed', function (response){ > > > alert(response.error.code); > > > alert(response.error.description); > > > alert(response.error.source); > > > alert(response.error.step); > > > alert(response.error.reason); > > > alert(response.error.metadata.order_id); > > > alert(response.error.metadata.payment_id); > > > } > > > ``` > > > [accordion] 2.5 Configure Payment Methods *(Optional)* > > > > Multiple payment methods are available on Razorpay Standard Checkout. > > > > * The payment methods are **fixed** and cannot be changed. > > * You can configure the order or make certain payment methods prominent. Know more about configuring payment methods. Know more about [configuring payment methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > [accordion] 3 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 4 Verify Payment Signature > > This is a mandatory step that allows you to confirm the authenticity of the details returned to the checkout for successful payments. > > To verify the `razorpay_signature` returned to you by the checkout: > > 1. Create a signature in your server using the following attributes: > > | Attribute | Description | > | - | - | > | `order_id` | Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by checkout. | > | `razorpay_payment_id` | Returned during checkout. | > | `key_secret` | Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/api/authentication#generate-api-keys). [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). | > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct an HMAC hex digest as shown below: > > ``` > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > if (generated_signature == razorpay_signature) { > payment is successful > } > ``` > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the checkout, the payment received is from an authentic source. > > Use the code given below to generate signature on your server: > > ```java Verify Payment Signature theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > JSONObject options = new JSONObject(); > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > boolean status = Utils.verifyPaymentSignature(options, secret); > ``` > [accordion] 5 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > You can track the payment status in three ways: > > > [tab] Verify Status from Dashboard > > > > To verify the payment status from the Dashboard: > > > > 1. Log in to the Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > ![Check if the payment id is generated and the status is captured](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Subscribe to Webhook Events > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > #### Example > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > Given below is the webhook signature verification sample code. > > > > ```java Java theme={null} > > /* Java SDK: https://github.com/razorpay/razorpay-java */ > > > > Utils.verifyWebhookSignature("", "", ""); > > ``` > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ### 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ### 3. Go-live Checklist Check the go-live checklist for Razorpay Web Standard Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ## Integrate With Other Razorpay Products Razorpay offers a range of [payment products](/docs/payments) to meet your business requirements. Visit our [GitHub repository](https://github.com/razorpay/razorpay-java) for sample codes. # Node.js Server SDK Prerequisites Source: https://razorpay.com/docs/payments/server-integration/nodejs Check the prerequisites before you integrate with Razorpay Node.js server-side SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Node.js Changelog](/docs/payments/changelog#server-sdks) > > Discover new features, updates and deprecations related to the Razorpay Node.js SDK (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/server-integration/nodejs/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about Razorpay Node.js SDK. Install the Razorpay Node.js SDK before you start integrating with your Node.js-based application. ## Dependencies You must use Node.js v22.2 or higher. Know more about the [latest Node.js versions](https://nodejs.org/en/about/previous-releases). ## Installation Open your project folder and run the following command on your command prompt to install the Razorpay Node.js SDK: ```javascript Install the SDK theme={null} npm i razorpay ``` > [card] [Payment Gateway](/docs/payments/server-integration/nodejs/integration-steps#integrate-with-razorpay-payment-gateway) > > Integrate with Razorpay Payment Gateway. > [card] [API Sample Codes](https://github.com/razorpay/razorpay-node/tree/master/documents) > > Integrate using API sample codes. > [card] [Other Razorpay Products](/docs/payments/server-integration/nodejs/integration-steps#integrate-with-other-razorpay-products) > > Integrate with other Razorpay products. ## Support * **Queries**: If you have queries, [contact support](https://razorpay.com/support/). * **Feature Request:** If you have a feature request, raise an issue on [GitHub](https://github.com/razorpay/razorpay-node/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/server-integration/nodejs/integration-steps Integrate your Node.js-based website with our SDK to start accepting payments using the Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Payment Gateway](/docs/payments/server-integration/nodejs/integration-steps#integrate-with-razorpay-payment-gateway) > > Integrate with Razorpay Payment Gateway. > [card] [Other Razorpay Products](/docs/payments/server-integration/nodejs/integration-steps#integrate-with-other-razorpay-products) > > Integrate with other Razorpay products using API sample codes. ## Integrate With Razorpay Payment Gateway Start accepting domestic and international payments from customers on your website using the Razorpay Payment Gateway. Razorpay has developed the Standard Checkout method and manages it. You can configure **payment methods, orders, company logo** and also select **custom colour** based on your convenience. Razorpay supports these [payment methods](/docs/payments/payment-methods) and [international currencies](/docs/payments/international-payments#supported-currencies). ![Configure node.js integrated payment gateway checkout based on your requirement](https://razorpay.com/docs/build/browser/assets/images/web-integration-checkout-new.jpg) Watch this video to know how to integrate Razorpay Payment Gateway on your Node.js app. [YouTube video player](https://www.youtube.com/embed/6OyFk8Snb9g) > [card] Sample App > > We recommend you check the [Node.js Sample App](https://razorpay.com/docs/build/browser/assets/images/razorpay-node-sample-project.zip), created using the video tutorial. > [card] GitHub Repository > > Download the latest [razorpay-node.zip](https://github.com/razorpay/razorpay-node/releases/) file from GitHub. It is pre-compiled to include all dependencies. ### Project Structure Before you begin, we recommend you check the [Node.js Sample App](https://razorpay.com/docs/build/browser/assets/images/razorpay-node-sample-project.zip), created using the video tutorial, and verify that your project contains the following files: | File Name | Purpose | | - | - | | index.html | Contains Checkout code. | | app.js | Contains Orders API and payment verification code. | | success.html | A page to redirect users once the payment is successful. | **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works) and follow these integration steps:
> [card] [1. Build Integration](/docs/payments/server-integration/nodejs/integration-steps#1-build-integration) > > Integrate with your Node.js-based website. > [card] [2. Test Integration](/docs/payments/server-integration/nodejs/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/server-integration/nodejs/integration-steps#3-go-live-checklist) > > Check the go-live checklist. ### 1. Build Integration > [accordion] 1 Instantiate Razorpay > > In your server file, instantiate the Razorpay instance with your `key_id` and `key_secret`. You should generate the API keys on the Dashboard and add them here. > > Given below is the command: > > ```javascript Instantiate the Razorpay Instance theme={null} > var instance = new Razorpay({ > key_id: 'YOUR_KEY_ID', > key_secret: 'YOUR_KEY_SECRET', > }); > ``` > > The resources can be accessed using the instance. All the methods invocations follow the namespaced signature: > > ```javascript Resource theme={null} > // API signature > // {razorpayInstance}.{resourceName}.{methodName}(resourceId [, params]) > // example > > instance.payments.fetch(paymentId) > ``` > > Every resource method returns a promise. > > ```javascript Promise theme={null} > instance.payments.all({ > from: '2016-08-01', > to: '2016-08-20' > }).then((response) => { > // handle success > }).catch((error) => { > // handle error > }) > ``` > > If you want to use callbacks instead of promises, every resource method accepts a callback function as the last parameter. The callback function acts as **Error First Callbacks**. > > ```javascript Callbacks theme={null} > instance.payments.all({ > from: '2016-08-01', > to: '2016-08-20' > }, (error, response) => { > if (error) { > // handle error > } else { > // handle success > } > }) > ``` > [accordion] 2 Create an Order in Server > > Order is an important step in the payment process. > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#2-1-sample-code) in the **app.js** file. It is a server-side API call. Know how to [authenticate](/docs/api/authentication#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to checkout in the **index.html** file. This ties the Order with the payment and secures the request from being tampered. > > > [!NOTE] > > > > **Handy Tips** > > > > You can capture payments automatically with one-time [Payment Capture setting configuration](/docs/payments/server-integration/nodejs/integration-steps#3-go-live-checklist) on the Dashboard. > > > [accordion] 2.1 Sample Code > > > > In the sample app, the **app.js** file contains the code for order creation using Orders API. > > > > ```javascript Request theme={null} > > const Razorpay = require('razorpay'); > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var options = { > > amount: 50000, // Amount is in currency subunits. > > currency: "INR", > > receipt: "order_rcptid_11" > > }; > > instance.orders.create(options, function(err, order) { > > console.log(order); > > }); > > ``` > > > > ```json Response theme={null} > > { > > "id": "order_DBJOWzybf0sJbb", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "order_rcptid_11", > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1566986570 > > } > > ``` > > > [accordion] 2.2 Request Parameters > > > > Here is the list of parameters for creating an order: > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be 3 characters. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7000 is to be received from the customer in two installments of #1 - โ‚น5000, #2 - โ‚น2000 then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > > Know more about [Orders API](/docs/api/orders). > > > [accordion] 2.3 Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) table. > > > [accordion] 2.4 Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create#errors). > [accordion] 3 Add Checkout Options > > Add the Razorpay Checkout options to your project. For example, if you are using HTML for your frontend, create a page called **index.html** and add the Pay button on your web page using the checkout code and either the callback URL or handler function. > > > [accordion] 3.1 Callback URL or Handler Function > > > > | **Callback URL** | **Handler Function** | > > | - | - | > > | When you use this:
  • On successful payment, the customer is redirected to the specified URL, for example, a payment success page.
  • On failure, the customer is asked to retry the payment.
| When you use this:
  • On successful payment, the customer is shown your web page.
  • On failure, the customer is notified of the failure and asked to retry the payment.
| > > > [accordion] 3.2 Code to Add Pay Button > > > > Copy-paste the parameters as options in your code: > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can also integrate the Razorpay Checkout with [React.js](/docs/payments/server-integration/nodejs/troubleshooting-faqs#can-i-integrate-razorpay-checkout-with-react-js) using the sample code. > > > > ```html Node.js Checkout Code theme={null} > > > > > > > > > > > > Razorpay Payment > > > > > >

Razorpay Payment Gateway Integration

> >
> > > > > > > >
> > > > > > > > > > > > ``` > > > > ```html Callback URL (JS) Checkout Code theme={null} > > > > > > > > ``` > > > > ```html Handler Function (JS) Checkout Code theme={null} > > > > > > > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Test the integration using these [test cards](/docs/payments/server-integration/nodejs/integration-steps#2-test-integration). > > > [accordion] 3.3 Checkout Options > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > [accordion] 3.4 Handle Payment Success and Failure > > > > The way the Payment Success and Failure scenarios are handled depends on the [Checkout Sample Code](#3-2-code-to-add-pay-button) you used in the last step. > > > > > [accordion] Checkout with Callback URL > > > > > > If you used the sample code with the callback URL: > > > > > > > [tab] On Payment Success > > > > > > > > Razorpay makes a POST call to the callback URL with the **razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature** in the response object of the successful payment. Only successful authorisations are auto-submitted. > > > > > > > [tab] On Payment Failure > > > > > > > > In case of failed payments, the checkout is displayed again to facilitate payment retry. > > > > > [accordion] Checkout with Handler Function > > > > > > If you used the sample code with the handler function: > > > > > > > [tab] On Payment Success > > > > > > > > The customer sees your website page. The checkout returns the response object of the successful payment (**razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature**). Collect these and send them to your server. > > > > > > > [tab] On Payment Failure > > > > > > > > The customer is notified about payment failure and asked to retry the payment. > > > > > > Use the Success/Failure Handling code given below: > > > > > > ```javascript Success Handling Code theme={null} > > > "handler": function (response){ > > > alert(response.razorpay_payment_id); > > > alert(response.razorpay_order_id); > > > alert(response.razorpay_signature)} > > > ``` > > > > > > ```javascript Failure Handling Code theme={null} > > > rzp1.on('payment.failed', function (response){ > > > alert(response.error.code); > > > alert(response.error.description); > > > alert(response.error.source); > > > alert(response.error.step); > > > alert(response.error.reason); > > > alert(response.error.metadata.order_id); > > > alert(response.error.metadata.payment_id); > > > } > > > ``` > > > [accordion] 3.5 Configure Payment Methods *(Optional)* > > > > Multiple payment methods are available on Razorpay Standard Checkout. > > > > * The payment methods are **fixed** and cannot be changed. > > * You can configure the order or make certain payment methods prominent. Know more about configuring payment methods. Know more about [configuring payment methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > [accordion] 4 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 5 Verify Payment Signature > > This is a mandatory step that allows you to confirm the authenticity of the details returned to the checkout for successful payments. > > To verify the `razorpay_signature` returned to you by the checkout: > > 1. Create a signature in your server using the following attributes: > > | Attribute | Description | > | - | - | > | `order_id` | Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by checkout. | > | `razorpay_payment_id` | Returned during checkout. | > | `key_secret` | Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/api/authentication#generate-api-keys). [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). | > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct an HMAC hex digest as shown below: > > ``` > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > if (generated_signature == razorpay_signature) { > payment is successful > } > ``` > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the checkout, the payment received is from an authentic source. > > Use the code given below to generate signature on your server: > > ```javascript Verify Payment Signature theme={null} > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > ``` > > Add the following code in the front-end: > > ```javascript Call Signature Validate Method theme={null} > var settings = { > "url": "/api/payment/verify", > "method": "POST", > "timeout": 0, > "headers": { > "Content-Type": "application/json" > }, > "data": JSON.stringify({response}), > } > ``` > [accordion] 6 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > You can track the payment status in three ways: > > > [tab] Verify Status from Dashboard > > > > To verify the payment status from the Dashboard: > > > > 1. Log in to the Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > ![Check if the payment id is generated and the status is captured](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Subscribe to Webhook Events > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > #### Example > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > Given below is the webhook signature verification sample code. > > > > ```javascript Node.js theme={null} > > /* NODE SDK: https://github.com/razorpay/razorpay-node */ > > const {validateWebhookSignature} = require('razorpay/dist/utils/razorpay-utils') > > > > validateWebhookSignature(JSON.stringify(webhookBody), webhookSignature, webhookSecret) > > #webhook_body should be raw webhook request body > > ``` > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ### 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ### 3. Go-live Checklist Check the go-live checklist for Razorpay Web Standard Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ## Integrate With Other Razorpay Products Razorpay offers a range of [payment products](/docs/payments) to meet your business requirements. Visit our [GitHub repository](https://github.com/razorpay/razorpay-node) for the sample codes. #### Partner Authentication If you are a partner and want to use the API as a particular merchant, you must authenticate your account by passing an additional header `X-Razorpay-Account` with the merchant `account_id` as the value. #### Example ``` var instance = new Razorpay({ key_id: '', key_secret: '', headers: { "X-Razorpay-Account": "" } }); instance.orders.all().then(console.log).catch(console.error); ``` ### Related Information [Troubleshooting and FAQs](/docs/payments/server-integration/nodejs/troubleshooting-faqs) # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/server-integration/nodejs/troubleshooting-faqs Troubleshoot common error scenarios and find answers to frequently asked questions about Razorpay Node.js SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] I have configured the payment method. But, I still see the following error message, `payment method is not configured`. How do I fix this? > > This error may also appear if the API key ID is not added to the checkout code. Check and add the API key ID. > [accordion] I got an error saying `id is not valid`. Which id do I look for? > > If the order id is not replaced in the checkout code, the `id is not valid` error appears. Replace the order id. > > The `order_id` is available in following code: > > ```html Handler Function (JS) Checkout Code theme={null} > > > > ``` > > ```html Callback URL (JS) Checkout Code theme={null} > > > > ``` > [accordion] Can I integrate Razorpay Checkout with React.js? > > Yes, you can integrate the Razorpay Payment Gateway with React.js. Follow the [Node.js integration steps](/docs/payments/server-integration/nodejs/integration-steps) and to add a pay button use the React.js sample code given below: > > ```javascript React.js theme={null} > import logo from './logo.svg'; > import './App.css'; > > function loadScript(src) { > return new Promise((resolve) => { > const script = document.createElement('script') > script.src = src > script.onload = () => { > resolve(true) > } > script.onerror = () => { > resolve(false) > } > document.body.appendChild(script) > }) > } > > function App() { > > async function displayRazorpay () { > > const res = await loadScript('https://checkout.razorpay.com/v1/checkout.js') > > if (!res){ > alert('Razropay failed to load!!') > return > } > > const data = await fetch('http://localhost:1769/razorpay', {method: 'POST'}).then((t) => > t.json() > ) > > console.log(data) > > const options = { > "key": "YOUR_KEY_ID", // Enter the Key ID generated from the Dashboard > "amount": "50000", // Amount is in currency subunits. > "currency": "INR", > "name": "Acme Corp", > "description": "Test Transaction", > "image": "https://example.com/your_logo", > "order_id": "order_IluGWxBm9U8zJ8", //This is a sample Order ID. Pass the `id` obtained in the response of Step 1 > "callback_url":"http://localhost:1769/verify", > "notes": { > "address": "Razorpay Corporate Office" > }, > "theme": { > "color": "#3399cc" > } > }; > const paymentObject = new window.Razorpay(options); > paymentObject.open(); > } > > return ( >
>
> logo > >
>
> ); > } > > export default App; > ``` > [accordion] While installing the SDK, I encountered an error "Please verify that the package.json has a valid main entry." How do I fix this? > > This error may occur due to the installation process. Try re-installing npm by deleting the node modules folder and running `npm i`. # PHP Server SDK Prerequisites Source: https://razorpay.com/docs/payments/server-integration/php Check the prerequisites before you integrate with Razorpay PHP server-side SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [PHP Changelog](/docs/payments/changelog#server-sdks) > > Discover new features, updates and deprecations related to the Razorpay PHP SDK (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/server-integration/php/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about Razorpay PHP SDK. Integrate the Razorpay PHP SDK with your PHP-based website to accept payments, initiate refunds and much more. ## Dependencies You must use PHP v8.3 or higher. Know more about the [latest PHP versions](https://www.php.net/supported-versions.php). ## Installation You can either download the file or run a composer command to install the Razorpay PHP SDK. > [tab] Download the File > > Download the latest [razorpay-php.zip file](https://github.com/razorpay/razorpay-php/releases/) from the releases section on GitHub. The razorpay-php.zip is pre-compiled to include all dependencies. > [tab] Use Composer Command > > You can install Razorpay using a composer command. Run the below command on your Composer: Unzip the SDK file and include the Razorpay.php file in your project. > > ```php Install using Composer theme={null} > composer require razorpay/razorpay:2.* > ``` > [card] [Payment Gateway](/docs/payments/server-integration/php/integration-steps#integrate-with-razorpay-payment-gateway) > > Integrate with Razorpay Payment Gateway. > [card] [API Sample Codes](https://github.com/razorpay/razorpay-php/tree/master/documents) > > Integrate using API sample codes. > [card] [Other Razorpay Products](/docs/payments/server-integration/php/integration-steps#integrate-with-other-razorpay-products) > > Integrate with other Razorpay products. ## Support * **Queries**: If you have queries, [contact support](https://razorpay.com/support/). * **Feature Request**: If you have a feature request, [create an issue on GitHub](https://github.com/razorpay/razorpay-php/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/server-integration/php/integration-steps Integrate your PHP-based website with our SDK to start accepting payments using the Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Payment Gateway](/docs/payments/server-integration/php/integration-steps#integrate-with-razorpay-payment-gateway) > > Integrate with Razorpay Payment Gateway. > [card] [Other Razorpay Products](/docs/payments/server-integration/php/integration-steps#integrate-with-other-razorpay-products) > > Integrate with other Razorpay products using API sample codes. ## Integrate With Razorpay Payment Gateway Start accepting domestic and international payments from customers on your website using the Razorpay Payment Gateway. Razorpay has developed the Standard Checkout method and manages it. You can configure **payment methods, orders, company logo** and also select **custom colour** based on your convenience. Razorpay supports these [payment methods](/docs/payments/payment-methods) and [international currencies](/docs/payments/international-payments#supported-currencies). ![Configure PHP integrated payment gateway checkout based on your requirement](https://razorpay.com/docs/build/browser/assets/images/web-integration-checkout-new.jpg) Watch this video to know how to integrate Razorpay Payment Gateway on your PHP app. [How to Integrate Razorpay Payment Gateway with PHP-based Website](https://www.youtube.com/embed/xBBxOwAdNnQ) > [card] Sample App > > We recommend you check the [PHP Sample App](https://razorpay.com/docs/build/browser/assets/images/razorpay-php-sample-project.zip), created using the video tutorial. > [card] GitHub Repository > > Download the latest [razorpay-php.zip](https://github.com/razorpay/razorpay-php/releases/) file from GitHub. It is pre-compiled to include all dependencies. > [!WARNING] > > **Watch Out!** > > Ensure you are using 5.6 or a higher version of the [PHP Official SDK](https://www.php.net/downloads). > [!NOTE] > > **Handy Tips** > > You can also download the [Razorpay PHP Test App](https://github.com/razorpay/razorpay-php-testapp) directly from GitHub. ### Project Structure Before you begin, we recommend you check the [PHP Sample App](https://razorpay.com/docs/build/browser/assets/images/razorpay-php-sample-project.zip), created using the video tutorial, and verify that your project contains the following files: | File Name | Purpose | | - | - | | index.php | Contains the Orders API and Checkout code. | | config.php | Contains the API Keys. | | verify.php | Contains the payment signature verification code. | | success.html | A page to redirect users once the payment is successful. | **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works) and follow these integration steps:
> [card] [1. Build Integration](/docs/payments/server-integration/php/integration-steps#1-build-integration) > > Integrate with your PHP-based website. > [card] [2. Test Integration](/docs/payments/server-integration/php/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/server-integration/php/integration-steps#3-go-live-checklist) > > Check the go-live checklist. ### 1. Build Integration > [accordion] 1 Create an Order in Server > > Order is an important step in the payment process. > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#1-1-sample-code). It is a server-side API call. Know how to [authenticate](/docs/api/authentication#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the Order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > > [!NOTE] > > > > **Handy Tips** > > > > You can capture payments automatically with one-time [Payment Capture setting configuration](/docs/payments/server-integration/php/integration-steps#3-go-live-checklist) on the Dashboard. > > > [accordion] 1.1 Sample Code > > > > In the sample app, the **index.php** file contains the code for order creation using Orders API. > > > > ```php Request theme={null} > > $api->order->create(array('receipt' => '123', 'amount' => 5000, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); // Amount is in currency subunits. > > ``` > > > > ```json Response theme={null} > > { > > "id": "order_EKwxwAgItmmXXX", > > "entity": "order", > > "amount": 5000, > > "amount_paid": 0, > > "amount_due": 5000, > > "currency": "INR", > > "receipt": "receipt#1", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1582628071 > > } > > ``` > > > [accordion] 1.2 Request Parameters > > > > Here is the list of parameters for creating an order: > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be 3 characters. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7000 is to be received from the customer in two installments of #1 - โ‚น5000, #2 - โ‚น2000 then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > > Know more about [Orders API](/docs/api/orders). > > > [accordion] 1.3 Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) table. > > > [accordion] 1.4 Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create#errors). > [accordion] 2 Add Checkout Options > > Add the Razorpay Checkout options to your project. For example, if you are using HTML for your front-end, create a page called **pay.html** and add the Pay button on your web page using the checkout code and either the callback URL or handler function. > > > [accordion] 2.1 Callback URL or Handler Function > > > > | **Callback URL** | **Handler Function** | > > | - | - | > > | When you use this:
  • On successful payment, the customer is redirected to the specified URL, for example, a payment success page.
  • On failure, the customer is asked to retry the payment.
| When you use this:
  • On successful payment, the customer is shown your web page.
  • On failure, the customer is notified of the failure and asked to retry the payment.
| > > > [accordion] 2.2 Code to Add Pay Button > > > > Copy-paste the parameters as `options` in your code: > > > > ```html PHP Checkout Code theme={null} > > $data = [ > > "key" => $YOUR_KEY_ID, // Enter the Key ID generated from the Dashboard > > "amount" => $5000, // Amount is in currency subunits. > > "currency" => $INR, > > "name" => "Acme Corp", > > "description" => "Test transaction", > > "image" => "https://cdn.razorpay.com/logos/GhRQcyean79PqE_medium.png", > > "prefill" => [ > > "name" => "", > > "email" => "", > > "contact" => "", > > ], > > "notes" => [ > > "address" => "Razorpay Corporate Office", > > "merchant_order_id" => "12312321", > > ], > > "theme" => [ > > "color" => "#3399cc" > > ], > > "order_id" => $order_IluGWxBm9U8zJ8, // This is a sample Order ID. Pass the `id` obtained in the response of Step 1 > > ]; > > > > $json = json_encode($data); > > require("checkout/{$checkout}.php"); > > ``` > > > > ```html Checkout Code (JS) theme={null} > > // Set your callback URL > > $callback_url = "http://localhost:8000/success.html"; > > > > // Include Razorpay Checkout.js library > > echo ''; > > > > // Create a payment button with Checkout.js > > echo ''; > > > > // Add a script to handle the payment > > echo ''; > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > * If you want to use this as your final code, follow the steps given below: > > > > > > 1. Edit the `[KEY_ID]` inside the html file. Use the test keys while testing your application. Know how to [Generate API keys](/docs/api/authentication#generate-api-keys). > > > > > > 2. Edit the `[KEY_ID]` and `[KEY_SECRET]` in **config.php**. \\ > > > * Test your integration using these [test cards](/docs/payments/server-integration/php/integration-steps#2-test-integration). > > > [accordion] 2.3 Checkout Options > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > The open method of Razorpay object (`rzp1.open()`) must be invoked by your site's JavaScript, which may or may not be a user-driven action such as a click. > > > [accordion] 2.4 Handle Payment Success and Failure > > > > The way the Payment Success and Failure scenarios are handled depends on the [Checkout Sample Code](#2-2-code-to-add-pay-button) you used in the last step. > > > > > [accordion] Checkout with Callback URL > > > > > > If you used the sample code with the callback URL: > > > > > > > [tab] On Payment Success > > > > > > > > Razorpay makes a POST call to the callback URL with the **razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature** in the response object of the successful payment. Only successful authorisations are auto-submitted. > > > > > > > [tab] On Payment Failure > > > > > > > > In case of failed payments, the checkout is displayed again to facilitate payment retry. > > > > > [accordion] Checkout with Handler Function > > > > > > If you used the sample code with the handler function: > > > > > > > [tab] On Payment Success > > > > > > > > The customer sees your website page. The checkout returns the response object of the successful payment (**razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature**). Collect these and send them to your server. > > > > > > > [tab] On Payment Failure > > > > > > > > The customer is notified about payment failure and asked to retry the payment. > > > > > > Use the Success/Failure Handling code given below: > > > > > > ```javascript Success Handling Code theme={null} > > > "handler": function (response){ > > > alert(response.razorpay_payment_id); > > > alert(response.razorpay_order_id); > > > alert(response.razorpay_signature)} > > > ``` > > > > > > ```javascript Failure Handling Code theme={null} > > > rzp1.on('payment.failed', function (response){ > > > alert(response.error.code); > > > alert(response.error.description); > > > alert(response.error.source); > > > alert(response.error.step); > > > alert(response.error.reason); > > > alert(response.error.metadata.order_id); > > > alert(response.error.metadata.payment_id); > > > } > > > ``` > > > [accordion] 2.5 Configure Payment Methods *(Optional)* > > > > Multiple payment methods are available on Razorpay Standard Checkout. > > > > * The payment methods are **fixed** and cannot be changed. > > * You can configure the order or make certain payment methods prominent. Know more about configuring payment methods. Know more about [configuring payment methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > [accordion] 3 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 4 Verify Payment Signature > > This is a mandatory step that allows you to confirm the authenticity of the details returned to the checkout for successful payments. > > To verify the `razorpay_signature` returned to you by the checkout: > > 1. Create a signature in your server using the following attributes: > > | Attribute | Description | > | - | - | > | `order_id` | Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by checkout. | > | `razorpay_payment_id` | Returned during checkout. | > | `key_secret` | Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/api/authentication#generate-api-keys). [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). | > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct an HMAC hex digest as shown below: > > ``` > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > if (generated_signature == razorpay_signature) { > payment is successful > } > ``` > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the checkout, the payment received is from an authentic source. > > Use the code given below to generate signature on your server: > > ```php Verify Payment Signature theme={null} > $api = new Api($key_id, $secret); > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > ``` > [accordion] 5 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > You can track the payment status in three ways: > > > [tab] Verify Status from Dashboard > > > > To verify the payment status from the Dashboard: > > > > 1. Log in to the Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > ![Check if the payment id is generated and the status is captured](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Subscribe to Webhook Events > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > #### Example > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > Given below is the webhook signature verification sample code. > > > > ```php PHP theme={null} > > /* PHP SDK: https://github.com/razorpay/razorpay-php */ > > use Razorpay\Api\Api; > > $api = new Api("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > $api->utility->verifyWebhookSignature($webhookBody, $webhookSignature, $webhookSecret); > > // $webhookBody should be raw webhook request body > > ``` > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ### 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ### 3. Go-live Checklist Check the go-live checklist for Razorpay Web Standard Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ## Integrate With Other Razorpay Products Razorpay offers a range of [payment products](/docs/payments) to meet your business requirements. Visit our [GitHub repository](https://github.com/razorpay/razorpay-php) for sample codes. #### Initialisation ```php php theme={null} use Razorpay\Api\Api; $api = new Api($api_key, $api_secret); ``` ### Related Information [Troubleshooting and FAQs](/docs/payments/server-integration/php/troubleshooting-faqs) # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/server-integration/php/troubleshooting-faqs Troubleshoot common error scenarios and find answers to frequently asked questions about Razorpay PHP SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] Why is the Pay button not appearing on my website/app after completing the SDK integration? > > The Pay button may not appear on your website/app if you are using an older SDK version. To resolve this, update the SDK with the latest version or replace the old lib/requests folder with the one from the latest SDK. > [accordion] How do I integrate Razorpay with Laravel? > > You can integrate Razorpay with Laravel using [Razorpay PHP SDK](/docs/payments/server-integration/php) which is compatible with Laravel and other PHP frameworks. # Python Server SDK Prerequisites Source: https://razorpay.com/docs/payments/server-integration/python Check the prerequisites before you integrate with Razorpay Python server-side SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Python Changelog](/docs/payments/changelog#server-sdks) > > Discover new features, updates and deprecations related to the Razorpay Python SDK (since Jan 2024). Install the Razorpay Python SDK and integrate it with your Python-based website to accept payments, initiate refunds and do much more. ## Dependencies You must use Python v3.12 or higher. Know more about the [latest Python versions](https://www.python.org/downloads/). Download the latest source code zip file from [GitHub](https://github.com/razorpay/razorpay-python/releases). Unzip the file and add it to your project. After setting up the client, set up your app details before making requests to Razorpay. Run the following command to set up your app details: ```python theme={null} client.set_app_details({"title" : "", "version" : ""}) ``` The app title and version is a `string`. For example, you can set the title to **Django** and version to **1.8.17**. > [card] [Payment Gateway](/docs/payments/server-integration/python/integration-steps#integrate-with-razorpay-payment-gateway) > > Integrate with Razorpay Payment Gateway. > [card] [API Sample Codes](https://github.com/razorpay/razorpay-python/tree/master/documents) > > Integrate using API sample codes. > [card] [Other Razorpay Products](/docs/payments/server-integration/python/integration-steps#integrate-with-other-razorpay-products) > > Integrate with other Razorpay products. ## Support * **Queries**: If you have queries, [contact support](https://razorpay.com/support/). * **Feature Request**: If you have a feature request, raise an issue on [GitHub](https://github.com/razorpay/razorpay-python/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/server-integration/python/integration-steps Integrate your Python-based website with our SDK to start accepting payments using the Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Payment Gateway](/docs/payments/server-integration/python/integration-steps#integrate-with-razorpay-payment-gateway) > > Integrate with Razorpay Payment Gateway. > [card] [Other Razorpay Products](/docs/payments/server-integration/python/integration-steps#integrate-with-other-razorpay-products) > > Integrate with other Razorpay products using API sample codes. ## Integrate With Razorpay Payment Gateway Start accepting domestic and international payments from customers on your website using the Razorpay Payment Gateway. Razorpay has developed the Standard Checkout method and manages it. You can configure **payment methods, orders, company logo** and also select **custom colour** based on your convenience. Razorpay supports these [payment methods](/docs/payments/payment-methods) and [international currencies](/docs/payments/international-payments#supported-currencies). ![Configure python integrated payment gateway checkout based on your requirement](https://razorpay.com/docs/build/browser/assets/images/web-integration-checkout-new.jpg) Watch this video to know how to integrate Razorpay Payment Gateway on your Python app. [How to Integrate Razorpay Payment Gateway with Python-based Website](https://www.youtube.com/embed/ujZlxjs_IRg) > [card] Sample App > > We recommend you check the [Python Sample App](https://razorpay.com/docs/build/browser/assets/images/razorpay-python-sample.zip), created using the video tutorial. > [card] GitHub Repository > > Download the latest [razorpay-python.zip](https://github.com/razorpay/razorpay-python/releases/) file from GitHub. It is pre-compiled to include all dependencies. > [!NOTE] > > **Handy Tips** > > You can also download the [Razorpay Python Test App](https://github.com/razorpay/razorpay-python-testapp) directly from github. ### Project Structure Before you begin, we recommend you check the [Python Sample App](https://razorpay.com/docs/build/browser/assets/images/razorpay-python-sample.zip), created using the video tutorial, and verify that your project contains the following files: | File Name | Purpose | | - | - | | app.py | Contains Orders API and payment signature verification code. | | index.html | Contains Checkout code. | | success.html | A page to redirect users once the payment is successful. | **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works) and follow these integration steps:
> [card] [1. Build Integration](/docs/payments/server-integration/python/integration-steps#1-build-integration) > > Integrate with your Python-based website. > [card] [2. Test Integration](/docs/payments/server-integration/python/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/server-integration/python/integration-steps#3-go-live-checklist) > > Check the go-live checklist. ### 1. Build Integration > [accordion] 1 Create an Order in Server > > Order is an important step in the payment process. > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#1-1-sample-code). It is a server-side API call. Know how to [authenticate](/docs/api/authentication#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to the checkout. This ties the Order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > > [!NOTE] > > > > **Handy Tips** > > > > You can capture payments automatically with the [Payment Capture setting configuration](/docs/payments/server-integration/python/integration-steps#3-go-live-checklist) on the Dashboard. > > > [accordion] 1.1 Sample Code > > > > Create a file, for example, `app.py` and add the API code given below: > > > > ```python Request theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > data = { "amount": 50000, "currency": "INR", "receipt": "order_rcptid_11" } > > payment = client.order.create(data=data) // Amount is in currency subunits. > > ``` > > > > ```json Response theme={null} > > { > > "id": "order_IluGWxBm9U8zJ8", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "rcptid_11", > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1566986570 > > } > > ``` > > > [accordion] 1.2 Request Parameters > > > > Here is the list of parameters for creating an order: > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be 3 characters. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7000 is to be received from the customer in two installments of #1 - โ‚น5000, #2 - โ‚น2000 then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > > Know more about [Orders API](/docs/api/orders). > > > [accordion] 1.3 Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) table. > > > [accordion] 1.4 Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create#errors). > [accordion] 2 Add Checkout Options > > Add the Razorpay Checkout options to your project. For example, if you are using HTML for your front-end, create a page called **index.html** and and add the Pay button on your web page using the checkout code and either the callback URL or handler function. > > > [accordion] 2.1 Callback URL or Handler Function > > > > | **Callback URL** | **Handler Function** | > > | - | - | > > | When you use this:
  • On successful payment, the customer is redirected to the specified URL, for example, a payment success page.
  • On failure, the customer is asked to retry the payment.
| When you use this:
  • On successful payment, the customer is shown your web page.
  • On failure, the customer is notified of the failure and asked to retry the payment.
| > > > [accordion] 2.2 Code to Add Pay Button > > > > Copy-paste the parameters as `options` in your code: > > > > ```html Handler Function (JS) Checkout Code theme={null} > > > > > > > > ``` > > > > ```html Callback URL (JS) Checkout Code theme={null} > > > > > > > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > * If you wish to use the above code as your final code, edit the `[KEY_ID]` and `[KEY_SECRET]` inside **app.py**. Use the test keys while testing your application.\ > > > Know how to [Generate API keys](/docs/api/authentication#generate-api-keys). > > > * Test your integration using these [test cards](/docs/payments/server-integration/python/integration-steps#2-test-integration). > > > [accordion] 2.3 Checkout Options > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > The open method of Razorpay object (`rzp1.open()`) must be invoked by your site's JavaScript, which may or may not be a user-driven action such as a click. > > > [accordion] 2.4 Handle Payment Success and Failure > > > > The way the Payment Success and Failure scenarios are handled depends on the [Checkout Sample Code](#2-2-code-to-add-pay-button) you used in the last step. > > > > > [accordion] Checkout with Callback URL > > > > > > If you used the sample code with the callback URL: > > > > > > > [tab] On Payment Success > > > > > > > > Razorpay makes a POST call to the callback URL with the **razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature** in the response object of the successful payment. Only successful authorisations are auto-submitted. > > > > > > > [tab] On Payment Failure > > > > > > > > In case of failed payments, the checkout is displayed again to facilitate payment retry. > > > > > [accordion] Checkout with Handler Function > > > > > > If you used the sample code with the handler function: > > > > > > > [tab] On Payment Success > > > > > > > > The customer sees your website page. The checkout returns the response object of the successful payment (**razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature**). Collect these and send them to your server. > > > > > > > [tab] On Payment Failure > > > > > > > > The customer is notified about payment failure and asked to retry the payment. > > > > > > Use the Success/Failure Handling code given below: > > > > > > ```javascript Success Handling Code theme={null} > > > "handler": function (response){ > > > alert(response.razorpay_payment_id); > > > alert(response.razorpay_order_id); > > > alert(response.razorpay_signature)} > > > ``` > > > > > > ```javascript Failure Handling Code theme={null} > > > rzp1.on('payment.failed', function (response){ > > > alert(response.error.code); > > > alert(response.error.description); > > > alert(response.error.source); > > > alert(response.error.step); > > > alert(response.error.reason); > > > alert(response.error.metadata.order_id); > > > alert(response.error.metadata.payment_id); > > > } > > > ``` > > > [accordion] 2.5 Configure Payment Methods *(Optional)* > > > > Multiple payment methods are available on Razorpay Standard Checkout. > > > > * The payment methods are **fixed** and cannot be changed. > > * You can configure the order or make certain payment methods prominent. Know more about configuring payment methods. Know more about [configuring payment methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > [accordion] 3 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 4 Verify Payment Signature > > This is a mandatory step that allows you to confirm the authenticity of the details returned to the checkout for successful payments. > > To verify the `razorpay_signature` returned to you by the checkout: > > 1. Create a signature in your server using the following attributes: > > | Attribute | Description | > | - | - | > | `order_id` | Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by checkout. | > | `razorpay_payment_id` | Returned during checkout. | > | `key_secret` | Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/api/authentication#generate-api-keys). [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). | > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > ``` > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > if (generated_signature == razorpay_signature) { > payment is successful > } > ``` > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the checkout, the payment received is from an authentic source. > > Use the code given below to generate signature on your server: > > ```python Verify Payment Signature theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > client.utility.verify_payment_signature({ > 'razorpay_order_id': razorpay_order_id, > 'razorpay_payment_id': razorpay_payment_id, > 'razorpay_signature': razorpay_signature > }) > ``` > [accordion] 5 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > You can track the payment status in three ways: > > > [tab] Verify Status from Dashboard > > > > To verify the payment status from the Dashboard: > > > > 1. Log in to the Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > ![Check if the payment id is generated and the status is captured](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Subscribe to Webhook Events > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > #### Example > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > Given below is the webhook signature verification sample code. > > > > ```python Python theme={null} > > /* Python SDK: https://github.com/razorpay/razorpay-python */ > > import razorpay > > client = razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > client.utility.verify_webhook_signature(webhook_body, webhook_signature, webhook_secret) > > // #webhook_body should be raw webhook request body > > ``` > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ### 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ### 3. Go-live Checklist Check the go-live checklist for Razorpay Web Standard Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ## Integrate With Other Razorpay Products Razorpay offers a [range of payment products](/docs/payments) to meet your business requirements. Visit our [GitHub](https://github.com/razorpay/razorpay-python) repository for sample codes. # Ruby Server SDK Prerequisites Source: https://razorpay.com/docs/payments/server-integration/ruby Check the prerequisites before you integrate with Razorpay Ruby server-side SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Ruby Changelog](/docs/payments/changelog#server-sdks) > > Discover new features, updates and deprecations related to the Razorpay Ruby SDK (since Jan 2024). Install the Razorpay Ruby SDK and integrate it with your Ruby-based website to accept payments, initiate refunds and do much more. ## Dependencies You must use Ruby v3.23 or higher. Know more about the [latest Ruby versions](https://www.ruby-lang.org/en/downloads/releases/). ## Installation You can install the Ruby SDK in the following ways: > [tab] Add line to Gemfile > > 1. Add the below line to your Gemfile of the application: > > ```ruby Ruby theme={null} > gem 'razorpay' > ``` > > 2. Execute the following command: > > ```ruby Ruby theme={null} > $ bundle > ``` > [tab] Execute Command > > Alternatively, you can install it by executing the following command: > > ```ruby Ruby theme={null} > $ gem install razorpay > ``` > [card] [Payment Gateway](/docs/payments/server-integration/ruby/integration-steps) > > Integrate with Razorpay Payment Gateway. > [card] [API Sample Codes](https://github.com/razorpay/razorpay-ruby/tree/master/documents) > > Integrate using API sample codes. ## Support * **Queries**: If you have queries, [contact support](https://razorpay.com/support/). * **Feature Request:** If you have a feature request, raise an issue on [GitHub](https://github.com/razorpay/razorpay-ruby/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/server-integration/ruby/integration-steps Integrate your Ruby-based website with our SDK to start accepting payments using the Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Start accepting domestic and international payments from customers on your website using the Razorpay Payment Gateway. Razorpay has developed the Standard Checkout method and manages it. You can configure **payment methods, orders, company logo** and also select **custom colour** based on your convenience. Razorpay supports these [payment methods](/docs/payments/payment-methods) and [international currencies](/docs/payments/international-payments#supported-currencies). ![Configure Ruby integrated payment gateway checkout based on your requirement](https://razorpay.com/docs/build/browser/assets/images/web-integration-checkout-new.jpg) Watch this video to know how to integrate Razorpay Payment Gateway on your Ruby-based website. [How to Integrate Razorpay Payment Gateway with Ruby-based Website](https://www.youtube.com/embed/kuEMuJw3Kis) > [card] GitHub Repository > > Download the latest [razorpay-ruby.zip](https://github.com/razorpay/razorpay-ruby/releases) file from GitHub. It is pre-compiled to include all dependencies. ### Project Structure Before you begin, we recommend you check that your project contains the following files: | File Name | Purpose | | - | - | | **payments.erb** | Contains the frontend code for Checkout. | | **rubysample.rb** | Contains the payment code for order creation. | | **verify.rb** | Contains a code for signature verification. | **Before you proceed:**
  • Create a [Razorpay account](https://dashboard.razorpay.com/signup).
  • Generate the [API Keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
  • Know about the [Payment Flow](/docs/payments/payment-gateway/how-it-works) and follow these integration steps:
> [card] [1. Build Integration](/docs/payments/server-integration/ruby/integration-steps#1-build-integration) > > Integrate with your Ruby-based website. > [card] [2. Test Integration](/docs/payments/server-integration/ruby/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/server-integration/ruby/integration-steps#3-go-live-checklist) > > Check the go-live checklist. ### 1. Build Integration > [accordion] 1 Create an Order in Server > > Order is an important step in the payment process. > > * An order should be created for every payment. > > * You can create an order using the [Orders API](#1-1-sample-code) in the **app.js** file. It is a server-side API call. Know how to [authenticate](/docs/api/authentication#generate-api-keys) Orders API. > > * The `order_id` received in the response should be passed to checkout in the **index.html** file. This ties the Order with the payment and secures the request from being tampered. > > > [!WARNING] > > > > **Watch Out!** > > > > Payments made without an `order_id` cannot be captured and will be automatically refunded. You must create an order before initiating payments to ensure proper payment processing. > > > [!NOTE] > > > > **Handy Tips** > > > > You can capture payments automatically with one-time [Payment Capture setting configuration](/docs/payments/server-integration/ruby/integration-steps#3-go-live-checklist) on the Dashboard. > > > [accordion] 1.1 Sample Code > > > > In the sample app, the **rubysample.rb** file contains the code for order creation using Orders API. > > > > ```ruby Request theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > order = Razorpay::Order.create amount: 50000, currency: 'INR', receipt: 'TEST' // Amount is in currency subunits. > > ``` > > > > ```json Response theme={null} > > { > > "id": "order_EKwxwAgItmmXdp", > > "entity": "order", > > "amount": 50000, > > "amount_paid": 0, > > "amount_due": 50000, > > "currency": "INR", > > "receipt": "TEST", > > "offer_id": null, > > "status": "created", > > "attempts": 0, > > "notes": [], > > "created_at": 1582628071 > > } > > ``` > > > [accordion] 1.2 Request Parameters > > > > Here is the list of parameters for creating an order: > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Length must be 3 characters. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `receipt` *optional* > > : `string` Your receipt id for this order should be passed here. Maximum length is 40 characters. > > > > `notes` *optional* > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scottyโ€`. > > > > `partial_payment` *optional* > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `first_payment_min_amount` *optional* > > : `integer` Minimum amount that must be paid by the customer as the first partial payment. For example, if an amount of โ‚น7000 is to be received from the customer in two installments of #1 - โ‚น5000, #2 - โ‚น2000 then you can set this value as `500000`. This parameter should be passed only if `partial_payment` is `true`. > > > > Know more about [Orders API](/docs/api/orders). > > > [accordion] 1.3 Response Parameters > > > > Descriptions for the response parameters are present in the [Orders Entity](/docs/api/orders/entity) table. > > > [accordion] 1.4 Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create#errors). > [accordion] 2 Add Checkout Options > > In the sample app, the **payments.erb** file contains the frontend code for Checkout and add the Pay button on your web page using the checkout code and either the callback URL or handler function. > > > [accordion] 2.1 Callback URL or Handler Function > > > > | **Callback URL** | **Handler Function** | > > | - | - | > > | When you use this:
  • On successful payment, the customer is redirected to the specified URL, for example, a payment success page.
  • On failure, the customer is asked to retry the payment.
| When you use this:
  • On successful payment, the customer is shown your web page.
  • On failure, the customer is notified of the failure and asked to retry the payment.
| > > > [accordion] 2.2 Code to Add Pay Button > > > > Copy-paste the parameters as `options` in your code: > > > > ```html Handler Function (JS) Checkout Code theme={null} > > > > > > > > ``` > > > > ```html Callback URL (JS) Checkout Code theme={null} > > > > > > > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Test your integration using these [test cards](/docs/payments/server-integration/ruby/integration-steps#2-test-integration). > > > [accordion] 2.3 Checkout Options > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > The open method of the Razorpay object (`rzp1.open()`) must be invoked by your site's JavaScript, which may or may not be a user-driven action such as a click. > > > [accordion] 2.4 Handle Payment Success and Failure > > > > The way the Payment Success and Failure scenarios are handled depends on the [Checkout Sample Code](#2-2-code-to-add-pay-button) you used in the last step. > > > > > [accordion] Checkout with Callback URL > > > > > > If you used the sample code with the callback URL: > > > > > > > [tab] On Payment Success > > > > > > > > Razorpay makes a POST call to the callback URL with the **razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature** in the response object of the successful payment. Only successful authorisations are auto-submitted. > > > > > > > [tab] On Payment Failure > > > > > > > > In case of failed payments, the checkout is displayed again to facilitate payment retry. > > > > > [accordion] Checkout with Handler Function > > > > > > If you used the sample code with the handler function: > > > > > > > [tab] On Payment Success > > > > > > > > The customer sees your website page. The checkout returns the response object of the successful payment (**razorpay\_payment\_id**, **razorpay\_order\_id** and **razorpay\_signature**). Collect these and send them to your server. > > > > > > > [tab] On Payment Failure > > > > > > > > The customer is notified about payment failure and asked to retry the payment. > > > > > > Use the Success/Failure Handling code given below: > > > > > > ```javascript Success Handling Code theme={null} > > > "handler": function (response){ > > > alert(response.razorpay_payment_id); > > > alert(response.razorpay_order_id); > > > alert(response.razorpay_signature)} > > > ``` > > > > > > ```javascript Failure Handling Code theme={null} > > > rzp1.on('payment.failed', function (response){ > > > alert(response.error.code); > > > alert(response.error.description); > > > alert(response.error.source); > > > alert(response.error.step); > > > alert(response.error.reason); > > > alert(response.error.metadata.order_id); > > > alert(response.error.metadata.payment_id); > > > } > > > ``` > > > [accordion] 2.5 Configure Payment Methods *(Optional)* > > > > Multiple payment methods are available on Razorpay Standard Checkout. > > > > * The payment methods are **fixed** and cannot be changed. > > * You can configure the order or make certain payment methods prominent. Know more about configuring payment methods. Know more about [configuring payment methods](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > [accordion] 3 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 4 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > To verify the `razorpay_signature` returned to you by the Checkout form: > > 1. Create a signature in your server using the following attributes: > > | Attribute | Description | > | - | - | > | `order_id` | Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by checkout. | > | `razorpay_payment_id` | Returned during checkout. | > | `key_secret` | Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/api/authentication#generate-api-keys). [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). | > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct an HMAC hex digest as shown below: > > ``` > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > if (generated_signature == razorpay_signature) { > payment is successful > } > ``` > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > #### Generate Signature on Your Server > > Use the code given below to generate signature on your server: > > ```ruby Verify Payment Signature theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > payment_response = { > razorpay_order_id: 'order_IEIaMR65cu6nz3', > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > } > Razorpay::Utility.verify_payment_signature(payment_response) > ``` > [accordion] 5 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > You can track the payment status in three ways: > > > [tab] Verify Status from Dashboard > > > > To verify the payment status from the Dashboard: > > > > 1. Log in to the Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > ![Check if the payment id is generated and the status is captured](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Subscribe to Webhook Events > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > #### Example > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > Given below is the webhook signature verification sample code. > > > > ```ruby Ruby theme={null} > > /* Ruby SDK: https://github.com/razorpay/razorpay-ruby */ > > > > require razorpay > > > > Razorpay::Utility.verify_webhook_signature(webhook_body, webhook_signature, webhook_secret) > > #webhook_body should be raw webhook request body > > ``` > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ### 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. | Payment Method | Code | Availability | | - | - | - | | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | You can make test payments using one of the payment methods configured at the Checkout. > [accordion] Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > [accordion] UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > [accordion] Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > ### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > #### Error Scenarios > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > > ### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > [accordion] Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ### 3. Go-live Checklist Check the go-live checklist for Razorpay Web Standard Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # Integration Steps Source: https://razorpay.com/docs/payments/ecommerce-plugins/razorpay-direct-credit-card Integrate your Shopify store with Razorpay Direct - Credit Card plugin and start accepting credit card payments directly on the checkout page. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow the steps given below to integrate credit card payment with your Shopify store directly on the checkout page using Razorpay Direct - Credit Card plugin. > [card] [1. Build Integration](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card#1-build-integration) > > Install and configure the Razorpay Direct - Credit Card plugin. > [card] [2. Test Integration](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card#3-go-live-checklist) > > Check the go-live checklist. Before you proceed: * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Create a [Shopify account](https://www.shopify.in). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. ## 1. Build Integration > [accordion] Install the plugin > > 1. **Install** [Razorpay Direct - Credit Card](https://apps.shopify.com/razorpay-cc-prod) from the Shopify app store. > > ![Activate Razorpay Direct - Credit Card plugin](https://razorpay.com/docs/build/browser/assets/images/shopify-store-cc-plugin-install.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > If you have multiple stores, select the store for which you want to install the Razorpay Direct - Credit Card. > > 2. You will be redirected to the Shopify home screen. Click **Install app**. > > ![Shopify install app](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-installapp.jpg) > > 3. You will be redirected to a landing page. Click **I am an existing user** and log in to your Razorpay account. > > ![Shopify auth for existing Razorpay user](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-auth.gif) > > > [!NOTE] > > > > **Handy Tips** > > > > * Ensure you log in with **owner** credentials to connect Razorpay with Shopify successfully. > > * If you are a new Razorpay user, click **I am new to Razorpay** and [set up](/docs/payments/set-up) an account. > > 4. Click **Activate Razorpay Direct - Credit Card** on the activation screen on your Shopify Dashboard. > > ![Activate Razorpay Direct - Credit Card plugin](https://razorpay.com/docs/build/browser/assets/images/shopify-activate-cc-plugin.jpg) > > Razorpay Direct - Credit Card Plugin now appears as a payment method on your Shopify Store. > > ![Enabled credit card plugin on shopify store](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-plugin-store.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > * Webhooks is auto-configured. You need to verify if webhooks are enabled on your [Dashboard](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card/troubleshooting-faqs#how-can-i-verify-if-webhooks-are-auto-configured). > > * The `order.paid`, `payment.authorized`, `refund.processed` and `refund.failed` events are auto-configured. You do not have to configure it on the Dashboard. ## 2. Test Integration After the integration is complete, you need to ensure that the integration is working as expected. You can start accepting actual payments from your customers once the test mode transaction is successful.\ > [accordion] Test Transaction in Test Mode > > Follow the steps given below to test a transaction in test mode: > > 1. Log in to your [Shopify store](https://accounts.shopify.com/lookup?rid=f19e1541-cd24-4856-a398-156d2ed5d56f). > 2. Navigate to **Settings** โ†’ **Payments**. > 3. Click **Manage** on the **Razorpay Direct - Credit Card** app. > > ![edit settings on the plugin to enable test mode](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-test-navigation.jpg) > 4. At the bottom of the page, select the **Enable test mode** check box and click **Save**. > > ![Enable test mode to test the flow](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-enable-test-mode.jpg) > 5. On your Shopify store, add an item to your cart and click **Buy it now**. > 6. Fill in your **contact** and **shipping** details and click **Continue to shipping**. > 7. Select the **Shipping method** and click **Continue to payment**. > 8. Select **Credit card** and enter the card details. > 9. Click **Pay now** and complete the order. > > ![Test Razorpay Direct - Credit Card plugin](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-test.gif) > [accordion] Verify Payment Status > > You can track the payment status from the Razorpay Dashboard or poll our APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Verify the transaction status from the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-verify-transactions.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] Switch from Test Mode to Live Mode > > You can perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the installation and integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > To switch from Test Mode to Live Mode: > > 1. Log in to your [Shopify store](https://accounts.shopify.com/lookup?rid=f19e1541-cd24-4856-a398-156d2ed5d56f). > 2. Navigate to **Settings** โ†’ **Payments**. > 3. On the **Supported payment methods** section, click **Manage** on the **Razorpay Direct - Credit Card** app. > 4. At the bottom of the page, clear the **Enable test mode** check box and click **Save**. > > ![Disable test mode to start accepting payments from customers](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-live.jpg) > > You can now start accepting actual payments on your Shopify store. ## Refunds #### Initiate Refunds To initiate refunds using Shopify store: 1. Log in to the [Shopify account](https://www.shopify.in). 2. After a payment is completed, navigate to **Orders**. 3. Select the order you want to initiate a refund. ![Select the order to initiate refund](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-orders.jpg) 4. Click **Refund**. ![Initiate refund](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-refund.jpg) 5. Select the quantity of the item and click **Refund**. 6. You can either issue a full refund or a partial refund. * For a **full refund**, enter the entire payment amount. * For a **partial refund**, enter a value lesser than the payment amount. ![Refund the order](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-refund-order.jpg) 7. You can verify the refund status from the Dashboard. Navigate to **Transactions** โ†’ **Refunds** and check if a **Refund Id** is generated for the relevant Payment Id. ![Verify refund status on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/shopify-cc-refund-verify.jpg) ## Support If you have queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/). ### Related Information * [Troubleshooting and FAQs](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card/troubleshooting-faqs) * [Ecommerce Plugins](/docs/payments/payment-gateway/ecommerce-plugins) # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/ecommerce-plugins/razorpay-direct-credit-card/troubleshooting-faqs Troubleshoot common errors for Razorpay Direct - Credit Card Plugin Shopify integration. Find answers to frequently asked questions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] Is this new plugin only for businesses who have moved to Shopifyโ€™s 1-page checkout? > > No, Razorpay Direct - Credit Card plugin is independent of Shopify's 1-page checkout, therefore, anyone can use this plugin. > [accordion] How can I install Razorpay Direct - Credit Card Plugin? > > Follow the [installation steps](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card) to install the plugin. > [accordion] Can I use the same MID for Razorpay Direct - Credit Card Plugin and the Razorpay Payment Gateway app? > > Yes, you can use the same MID for in-platform/onsite and other Payment Gateway apps (Razorpay Payment Gateway or other Payment Gateways). > [accordion] Can I use two in-platform/onsite apps for card transactions? > > No, a business can only use one in-platform/onsite app. All their card transactions will go through that in-platform/onsite app only. > [accordion] Is Customer or Dynamic fee bearer supported on the Razorpay Direct - Credit Card Plugin? > > No. The Razorpay Direct - Credit Card Plugin supports only the **Platform** fee bearer. **Customer Fee Bearer (CFB)** and **Dynamic Fee Bearer (DFB)** are not supported for this flow, for both domestic and international payments. > > Even if CFB or DFB is enabled on your account, the applicable fee (MDR) is deducted from the merchant for payments made through this plugin. The fee is not added to the amount charged to the customer. > [accordion] What will the UI look like when an in-platform/onsite app and multiple offsite Payment Gateway apps are installed? > > The in-platform/onsite cards app always takes precedence and is listed first. All other Payment Gateway apps are listed below, similar to Shopifyโ€™s checkout UI. > [accordion] What if I am not a Razorpay Payment Gateway user? How can I start using the Razorpay Direct - Credit Card Plugin? > > You can create a Razorpay account and use the [Razorpay Direct - Credit Card Plugin](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card) for credit card payments even if you are not currently a [Razorpay Payment Gateway](/docs/payments/payment-gateway) user. > [accordion] How can I verify if webhooks are auto-configured? > > To verify if webhooks are enabled: > > 1. Log in to the Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings** section, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Select the relevant webhook **URL**. > 4. On the right panel, check if the status for `order.paid`, `payment.authorized`, `refund.processed` and `refund.failed` is enabled. > [accordion] How can I accept payments? > > To accept **live** payments, follow the steps mentioned in the [Switch from Test Mode to Live Mode](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card#switch-from-test-mode-to-live-mode) section. # Integration Steps Source: https://razorpay.com/docs/payments/ecommerce-plugins/shopify-appmaker Steps to integrate the Razorpay Payment Gateway with Shopify - Appmaker on your Shopify store. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Appmaker allows you to create a custom mobile app for your Shopify store, providing a seamless shopping experience for your customers. Integrate with the Razorpay Shopify - Appmaker extension to offer a smooth payment experience to your customers on the app. Follow the steps given below to integrate the Razorpay Payment Gateway with Shopify - Appmaker on your Shopify store. > [card] [Standard Checkout](/docs/payments/ecommerce-plugins/shopify-appmaker#integrate-razorpay-appmaker-extension-with-shopify-for-magic-checkout) > > Integrate Razorpay Appmaker Extension With Shopify for Standard Checkout. > [card] [Magic Checkout](/docs/payments/ecommerce-plugins/shopify-appmaker#integrate-razorpay-appmaker-extension-with-shopify-for-magic-checkout) > > Integrate Razorpay Appmaker Extension With Shopify for Magic Checkout. ## Prerequisites Before you proceed, make sure you have the following: * Sign up for a [Razorpay account](https://dashboard.razorpay.com/signup). * Sign up for a [Shopify account](https://www.shopify.in). * Integrate [Appmaker](https://apps.shopify.com/appmaker) with Shopify. * [Integrate Razorpay with Shopify](/docs/payments/payment-gateway/ecommerce-plugins/shopify). ## Integration Steps Follow the steps given below: > [accordion] Integrate Razorpay Appmaker Extension With Shopify for Standard Checkout > > Follow these steps to proceed with the integration: > > 1. After adding AppMaker to your Shopify store, navigate to the AppMaker window. Click **Extensions**. > > ![Appmaker window extension](https://razorpay.com/docs/build/browser/assets/images/appmaker-extension.jpg) > 2. On the Installed Extensions page, click **Explore Extensions**. > > ![Explore extension](https://razorpay.com/docs/build/browser/assets/images/explore-extension.jpg) > 3. Search for Razorpay in the search bar on the All Extensions page. Select **Razorpay-Shopify-Appmaker** and click **Next**. > > ![All extensions razorpay shopify appmaker](https://razorpay.com/docs/build/browser/assets/images/razorpay-shopify-appmaker.jpg) > 4. Click **Install & Activate**. > > ![Install and activate razorpay shopify appmaker](https://razorpay.com/docs/build/browser/assets/images/install-activate-rsa.jpg) > > Appmaker extension is successfully installed and activated. > [accordion] Integrate Razorpay Appmaker Extension With Shopify for Magic Checkout > > Follow this step to proceed with the integration: > > You must do the [standard checkout integration](#integrate-razorpay-appmaker-extension-with-shopify-for-magic-checkout) before proceeding with the Magic checkout integration. After you install the Razorpay Shopify Appmaker extension, navigate to **Settings** and enter the **Config Key**. Click **Save Changes**. > > ![Razorpay shopify appmaker config key](https://razorpay.com/docs/build/browser/assets/images/rsa-config-key.jpg) > > Once you save the changes, the Appmaker extension will be available with Magic Checkout on the Native SDKs. ## Support If you have queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/). ### Related Information * [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard) * [Razorpay Magic Checkout](/docs/payments/magic-checkout/shopify) # About Magic Checkout Source: https://razorpay.com/docs/payments/magic-checkout Integrate Razorpay Magic Checkout for COD, faster checkouts, reduced RTOs, and gain order insights. Simplify payments with one gateway and accept payments using various plugins. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Magic Checkout Changelog](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to the Razorpay Magic Checkout (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/magic-checkout/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about Magic Checkout. Razorpay Magic Checkout enables seamless prepaid and COD transactions on your platform. It reduces COD RTOs by analysing customer shopping history and address quality. Customers can securely save addresses and payment details for future use across Razorpay network sites. You can efficiently run promotions with coupon-based discounts for your customers. > [!NOTE] > > **Feature Request** > > * This is an on-demand feature. Please fill out the [form](https://share.hsforms.com/1l6lBAl5_S82QSEN8_HMYHg3b5b6) to get this feature activated on your Razorpay account. > * At present, Magic Checkout is available only on [Web](/docs/payments/magic-checkout/web), [Android](/docs/payments/magic-checkout/android-integration), [iOS](/docs/payments/magic-checkout/ios-integration), [React Native Android](/docs/payments/magic-checkout/react-native-android-integration), [React Native iOS](/docs/payments/magic-checkout/react-native-ios-integration), [Flutter](/docs/payments/magic-checkout/flutter-integration), [Capacitor](/docs/payments/magic-checkout/capacitor-integration), [WooCommerce](/docs/payments/magic-checkout/woocommerce) and [Shopify](/docs/payments/magic-checkout/shopify) integrations. Watch the video below to know more about Magic Checkout. [YouTube video player](https://www.youtube.com/embed/TdZa73eheww) > [accordion] Advantages > > * **Seamless Prepaid and COD Transactions** \\ > > Magic Checkout offers flexible payment options for both prepaid and cash-on-delivery transactions, providing a smooth checkout experience for customers. > > * **Faster Checkout Experience** \\ > > Streamlined checkout process ensures quicker and smoother transactions, enhancing customer satisfaction and boosting completed purchases. > > * **Increased conversions** \\ > > Frictionless checkout experience reduces cart abandonment rates and increases sales. > > * **Save Customer Addresses and Payment Details** \\ > > Securely store customer addresses and payment information during checkout, enabling faster and convenient future transactions. > > * **Reduced RTOs** \\ > > * Prevent customers with past RTO behaviour from placing COD orders. Filter out COD orders with gibberish/incomplete addresses. > * You can manually review potential RTO orders and decide whether to provide customers COD option based on the insights we provide. > > * **Efficient Promotions** \\ > > Easily run coupon-based discounts to foster customer loyalty and drive increased sales. > [accordion] Prerequisites > > * Create a [Razorpay account](https://dashboard.razorpay.com/signup). > > * [Generate test API keys](/docs/api/authentication#generate-api-keys) on the Dashboard. > > > [!NOTE] > > > > **Handy Tips** > > > > The test mode is a simulation mode that you can use to test your integration flow. Your customers will not be able to make payments in this mode. > > > > When your integration is complete, switch to live mode and generate live mode API keys. Replace test mode keys with live mode keys in the integration to accept payments from customers. ## Try Our Checkout You can test our Checkout by clicking the **Pay with Magic Checkout** button. Provide your phone number, email address, select your preferred payment method and complete the test payment. [Try Magic Checkout](https://razorpay.com/demopg3/) ## Supported Platforms Razorpay Magic Checkout is supported on the following platforms: > [tab] Standard Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | > [tab] Custom Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | x | x | x | x | ### Related Information * [How Magic Checkout Works](/docs/payments/magic-checkout/how-it-works) * [Use Cases](/docs/payments/magic-checkout/use-cases) * [Features](/docs/payments/magic-checkout/features) * [Customisations and Extensions](/docs/payments/magic-checkout/customisations-extensions) # Abandoned Cart Webhook Source: https://razorpay.com/docs/payments/magic-checkout/abandoned-cart Enable the abandoned cart webhook to track drop-offs and retarget customers who leave without completing their purchase. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India An abandoned cart occurs when a customer adds items to their cart and initiates checkout but does not complete the purchase. For example, a customer might enter their shipping details but leave the site before making the payment. By enabling the abandoned cart webhook, you can track when a customer drops off during the checkout journey. This helps you retarget them using their contact information and recover potentially lost sales. ## Enable Abandoned Cart Webhook 1. Log in to the Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. 2. Select **Shopify**, **WooCommerce** or **Custom E-Commerce Platform** from the **Platform** drop-down list. Enter the required information based on your selection. 3. Navigate to **Checkout Setup** and toggle on **Enable the Abandoned webhook to track**. 4. Enter the URL where you want to receive the abandoned checkout data. 5. Click **Save** โ†’ **Save settings**. ![enable abandoned webhook](https://razorpay.com/docs/build/browser/assets/images/magic-abandoned-cart.jpg) ### Sample Payload Given below is a sample payload: ```json Abandoned Cart Webhook Payload theme={null} { "utm_parameters": { "fbclid": "test_fbclid", "utm_campaign": "campaign_value", "utm_content": "content_value", "utm_medium": "medium_value", "utm_source": "fb" }, "shop_id": "magic-checkout-test-store-1", "platform": "shopify", "token": "a9de14647f2c1e7b58cafeac93c4712c", "cart_token": "c1-68be3bdc331cfec1e79d05d8c4caa7d7", "email": "", "phone": "+919999999999", "abandoned_checkout_url": "https://magic-checkout-test-store-url", "currency": "INR", "line_items": [ { "image_url": "https://image_url", "name": "test product 2", "price": 5000, "product_id": "7652090314919", "quantity": 1, "sku": "123-A", "tax_amount": 0, "taxable": true, "variant_price": 5000, "variant_id": "43306810998951", "variant_title": "Default Title", "store_name": "", "gram": "212", "title": "" } ], "tax_details": { "taxes_included": true, "total_tax": 314 }, "line_items_total": "5000", "promotions": [ { "code": "off12", "value": 1200 }, { "code": "nector_coins", "value": 300 } ], "customer": { "email": "", "first_name": "Gaurav", "last_name": "Kumar", "Shipping_address": { "First_name": "Gaurav", "Last_name": "Kumar", "Address1": "Near Nehru Road", "Address2": "Ram Krishna Colony", "City": "Bengaluru", "Province": "Karnataka", "Country": "India", "Zip": "829122", "Phone": "+919999999999", "Name": "", "Province_code": "KA", "Country_code": "IN", "Country_name": "India" }, "created_at": "" } } ``` # Abandoned Sessions Source: https://razorpay.com/docs/payments/magic-checkout/abandoned-sessions See every recognised shopper who dropped off โ€” Browsing, Cart or Checkout โ€” in one Magic Checkout worklist, and act to win them back. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India **Abandoned Sessions** shows every recognised shopper who visited your store and left without buying, across the full funnel โ€” those who only browsed, those who added to cart, and those who reached Magic Checkout. It gives your recovery team one worklist, one set of filters and one set of actions to win these shoppers back. > [!NOTE] > > **Abandoned Orders is now Abandoned Sessions.** > > The page previously called **Abandoned Orders** โ€” nested under **Orders** โ€” is now called **Abandoned Sessions** and appears as its own entry in the left navigation. The old link redirects to the new page, and the data you had before is unchanged. What is new is two additional journey types (Browsing and Cart) alongside the abandoned checkouts you already worked. ![The Abandoned Sessions entry in the Magic Checkout left navigation, with the list of abandoned sessions on the right](https://razorpay.com/docs/build/browser/assets/images/magic-7e9e-image-3.png) > [!NOTE] > > **About the screenshots on this page.** The dashboard is mid-rename, so some screens still read **Abandoned Orders** and use the older labels **Session** (the *Browsing* journey type) and **Browse** (the *Browsing* drop-off stage). These map directly to the terms used here โ€” **Session / Browse โ†’ Browsing**. Only the labels are changing; the data and actions are the same. > [!WARNING] > > **Watch Out!** > > Abandoned Sessions is available for **Shopify stores only**. On other platforms, abandoned checkouts continue to work exactly as before; the Browsing and Cart journey types are not available yet. ## The Three Journey Types Abandoned Sessions covers the whole drop-off funnel. Every row is tagged with the stage at which the shopper left: ![The Abandoned Sessions list showing rows across all three journey types โ€” Checkout, Cart and Session (Browsing) โ€” each with its type and drop-off stage](https://razorpay.com/docs/build/browser/assets/images/magic-ee12-image-4.png) | Journey type | The shopperโ€ฆ | Available from | | - | - | - | | **Browsing** | Browsed the store and left without adding anything to the cart. | From rollout on your store | | **Cart** | Added items to the cart but never opened checkout. | From rollout on your store | | **Checkout** | Entered Magic Checkout but dropped off before placing the order. | Full history | > [!NOTE] > > Browsing and Cart are the new journey types. They start populating from the date the feature is enabled on your store, so your **Available from** date depends on when your store was onboarded. Checkout journeys retain their full history. > [!NOTE] > > **One journey, one row** > > A shopper who browses, adds to the cart, and then abandons at checkout appears as a **single row**, not three. The row is classified by how far the shopper got: if a checkout was started it is a **Checkout** journey; otherwise, if a cart exists it is a **Cart** journey; otherwise it is a **Browsing** journey. **Checkout** journeys also retain their sub-stages โ€” `cart`, `address`, `payment` and `checkout_summary` โ€” so you can see exactly where a checkout drop-off happened. Once a cart exists on a journey (a Cart or Checkout journey, or a Browsing journey after you [build a cart](#build-a-cart-for-browsing-sessions)), the full action set applies: edit the cart, edit customer details, apply a discount, place a COD order, or generate a Magic Link. ![A session detail view showing customer details, cart items and payment details, with Edit, Add New Products and Place COD Order actions](https://razorpay.com/docs/build/browser/assets/images/magic-d1c6-image-5.png) When you place a COD order for a shopper whose pincode is not normally eligible for Cash on Delivery, the dashboard shows an inline notice under **Place COD Order** and lets you override the restriction to place the order anyway. ![A COD not available for this Zipcode notice shown inline under the Place COD Order button, explaining the restriction can be overridden to place a COD order](https://razorpay.com/docs/build/browser/assets/images/magic-a8f6-image-10.png) ## Who Appears in the List Abandoned Sessions lists **only shoppers Razorpay can recognise** โ€” a shopper who has logged in through [Razorpay ID](/docs/payments/magic-checkout/login-with-razorpay), or who has transacted through Magic Checkout before. Anonymous visitors are counted in aggregate but never listed, because a row you cannot contact is not one you can act on. Abandoned cart and session data is only provided for customers that have provided their marketing consent. The **Marketing Consent** column shows each shopper's consent state, so your team can see who you are permitted to contact before reaching out โ€” a `โ€“` means no marketing-consent state is recorded for that shopper. Check this column (and your own Shopify consent fields) before you contact anyone. > [!NOTE] > > **Why are my counts lower than my store analytics?** > > Abandoned Sessions lists only shoppers we can identify โ€” those who have logged in through Magic or bought through Magic Checkout before. Store analytics counts every visitor, including anonymous ones. Every row here is a person you can actually contact. This is by design: the more shoppers Magic recognises, the larger and more actionable your Abandoned Sessions list becomes. ## Build a Cart for Browsing Sessions A **Browsing** session has no cart, because the shopper never added anything. To recover it, build a cart on the shopper's behalf: 1. Open the Browsing session and click **Build cart**. 2. Search your catalogue and add products. Products the shopper viewed during their session are surfaced first, where available. ![The Add Products dialog: a search-by-name-or-SKU box with catalogue products, live prices and available inventory, and per-product quantity steppers](https://razorpay.com/docs/build/browser/assets/images/magic-e3af-image-9.png) 3. Once the cart exists, the full action set applies โ€” edit the cart, apply a discount, place a COD order, or generate a Magic Link. > [!NOTE] > > **Handy Tips** > > Prices and inventory shown while building a cart are **live Shopify values at build time**, not the values the shopper saw earlier. If a viewed product has since been repriced or gone out of stock, the current Shopify value applies. ## Filters and Drop-off Stage The list supports filtering and searching across all three journey types: ![The Drop-off Stage filter open as a multi-select โ€” Address, Payment, Contact, Checkout Summary, Browse and Cart โ€” above the list, alongside the Status, Source, Type and Date Range filters, Manage Columns and Export](https://razorpay.com/docs/build/browser/assets/images/magic-860c-image-6.png) * **Journey type** โ€” a multi-select filter for **Browsing**, **Cart** and **Checkout**. All three are selected by default. * **Drop-off stage** โ€” the journey-level stage (Browsing / Cart / Checkout). For Checkout journeys, the sub-stages (`cart`, `address`, `payment`, `checkout_summary`) are also available. * **Status**, **Source (UTM)** and **Date range** โ€” as before. * **Search** โ€” across customer name, email and phone. Sorting, search, pagination and export behave identically across all journey types. ## Shopify Tags and Automations Every recognised abandoner is written to your Shopify customer list with a tag, and every order you place from Abandoned Sessions carries a tag. This turns Shopify โ€” and every tool wired to it โ€” into a retargeting surface with nothing to integrate. ### Tags | Tag | Applied to | Meaning | | - | - | - | | `magic-session-abandoner` | Shopify customer | Browsed the store and left without adding to cart. | | `magic-cart-abandoner` | Shopify customer | Added to cart, never opened checkout. | | `magic-checkout-abandoner` | Shopify customer | Entered Magic Checkout, dropped before order. | | `magic-agent-placed` | Shopify order | Order placed from the Abandoned Sessions dashboard (COD or Magic Link). | Marketing consent captured through Magic is synced to the customer's Shopify marketing consent fields and is **never downgraded**. If the customer already exists in Shopify, only tags and consent are updated โ€” no other customer data is changed. ### Automations You Can Build Today Using these tags, you can build recovery flows in Shopify Flow, Shopify Email, Klaviyo and similar tools: 1. **Browsing win-back email** โ€” Trigger on the `magic-session-abandoner` tag with email consent subscribed. Wait 2 hours, then send a "still thinking about it?" email featuring the collection they browsed. Low intent โ€” one message, no discount. 2. **Cart reminder with a nudge** โ€” Segment on `magic-cart-abandoner` with no order in the last day. Send a reminder at 1 hour, then an offer at 24 hours if there is still no order. Medium intent โ€” the second message earns the discount. 3. **Checkout abandoner SMS** โ€” Segment on `magic-checkout-abandoner` with SMS consent subscribed. Send an SMS with the store link within 30 minutes. Highest intent โ€” speed beats incentive. 4. **Stop double-contact after recovery** โ€” Trigger on order created with the `magic-agent-placed` tag. Add a `magic-recovered` customer tag (one you create in this flow, not a tag Razorpay applies) and exclude `magic-recovered` from flows 1โ€“3, so an agent recovery and an automated nudge don't both land on the same shopper. 5. **Recovered-revenue report** โ€” In Shopify, filter Orders by the `magic-agent-placed` tag and export. This is the revenue your recovery team produced, in your own numbers. 6. **Retargeting audiences** โ€” Use `magic-cart-abandoner` or `magic-checkout-abandoner` as high-intent retargeting audiences, and `magic-session-abandoner` as a low-cost prospecting or lookalike seed. ### Rules to Follow * **Consent first.** Tags identify; consent permits. Always check marketing consent before a flow sends โ€” a flow that ignores consent is a compliance risk. * **Don't over-contact Browsing abandoners.** One message. They showed the least intent. * **Tags accumulate.** A shopper can carry more than one abandoner tag. Flows should key on the highest-intent tag present. * **Tag names are stable.** These tags are a public interface and will not be renamed, so you can safely build long-lived segments and flows on them. ## Export to CSV You can export the filtered list to CSV, as before. The export now includes a **journey-type column** so you can distinguish Browsing, Cart and Checkout rows offline. The file also carries a note about the date from which Browsing and Cart data is available for your store. ## Reach WhatsApp and CRM Partners Automatically The same journeys you see in Abandoned Sessions can be pushed to your retargeting partners as events, using **Magic Webhooks**: | Event | Fires when | Status | | - | - | - | | `checkout.abandoned` | The shopper opened checkout and went quiet for about 30 minutes. | Live | | `cart.abandoned` | The shopper added to cart, never opened checkout, and went quiet for about 45 minutes. | Coming soon | | `cart.session_abandoned` | The shopper browsed, added nothing, and went quiet for about 30 minutes. | Coming soon | > [!NOTE] > > **Retargeting webhooks are coming soon.** > > Only `checkout.abandoned` is live today. The new retargeting events for the Browsing and Cart journeys โ€” `cart.abandoned` and `cart.session_abandoned` โ€” are coming soon; this page will be updated once they are released. Until then, the setup guide below covers the existing abandoned-checkout webhook only. **Bitespeed, BusinessOnBot and Intelliticks** are pre-integrated โ€” select one from the dropdown when configuring webhooks. The dashboard is for your own recovery team; the webhooks are for the tools you already use. Same shoppers, two routes. For setup of the existing abandoned-checkout webhook, see [Abandoned Cart Webhook](/docs/payments/magic-checkout/abandoned-cart). ## Availability * **Platform:** Shopify stores only. On other platforms, abandoned checkouts continue to work as before; Browsing and Cart journeys are not available. * **Data:** Browsing and Cart data is available from the day the feature is enabled on your store. Checkout history is unchanged. ### Related Information * [Automatic Customer Tagging for Retargeting](/docs/payments/magic-checkout/login-with-razorpay/automation-tags) * [Abandoned Cart Webhook](/docs/payments/magic-checkout/abandoned-cart) * [Razorpay ID](/docs/payments/magic-checkout/login-with-razorpay) # Conversion Analytics Source: https://razorpay.com/docs/payments/magic-checkout/analytics/conversion Track Magic Checkout conversion performance with funnel analysis, checkout rates and user behavior insights on your dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Magic Checkout's Conversion Analytics offers a detailed overview of your business's conversion activities and performance metrics. It offers insights into your conversion funnels, checkout completion rates and user behavior patterns to help you optimise your checkout experience via: * **Conversion Funnel Analysis**: Track user progression through checkout steps. * **User Behaviour Insights**: Understand logged-in vs logged-out user performance. * **Checkout Optimisation**: Identify drop-off points and improvement opportunities. > [!WARNING] > > **Watch Out!** > > This feature is available only for Shopify users. ## Get Started Follow the steps given below to view insights about the various conversion activities: 1. Log in to the Dashboard. 2. Navigate to **Magic Checkout** โ†’ **Analytics** and click **Conversion**. You can now view the **Conversion Analytics** on the Dashboard with conversion metrics. ![View conversion analytics on dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-conversion.jpg) > [!NOTE] > > **Handy Tips** > > * Select the date range of your choice to view the data. > * Use **Compared to** option to compare current data with a previous period or specific date range. Green indicators show improvements, while red indicators show declines. > * Hover over the card headings to understand the calculation methodology. > * Hover alongside the graph lines to view the exact values for specific time periods. > * Download detailed reports including UTM attribution data (date, source, medium, campaign, orders, sales) and conversion funnel details (checkout render, address step reached, payment step reached, payment attempted, payment success, checkout conversion rates) for further analysis. ## Compare Data Across Time Periods You can compare your current data against previous periods to track performance changes: 1. In the **Compared to** field, select the date or time range you want to compare against. 2. View the results with clear indicators: * **Green arrows** indicate improvements. * **Red arrows** show declines. * **Descriptive text** explains the changes. For example: `Conversion rate increased from 21.26% to 27.78%`. * **Charts display overlapping lines** for visual comparison between the selected time periods, with date labels at the bottom showing which line represents which period. ![Compare analytics data](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-conversion-comparison.jpg) ## Conversion Metrics The Conversion Analytics dashboard displays the following metrics to track your Magic Checkout conversion performance: | Field | Description | Calculation | | - | - | - | | Checkout conversion rate | Percentage of sessions with one or more successful Magic Checkout order. A session begins when a user arrives at Magic Checkout and a new session is created after 30 minutes of inactivity. | Total sessions (minimum one successful Magic Checkout order) divided by total Magic Checkout sessions. | | Order conversion rate | Percentage of unique Magic Checkout orders placed within total number of sessions. | Total orders divided by total Magic Checkout sessions. | | Total orders | Total number of Magic Checkout orders placed. | Count of orders placed. | | Address pre-fill rate | Percentage of logged-in users who see their addresses prefilled at checkout. | Number of logged-in users with pre-filled addresses divided by number of logged in users. | ## Detailed View The **Detailed view** section displays charts that allow you to analyse trends and patterns in your conversion data: * **Checkout conversion funnel**: Bar chart showing user progression through each checkout step from initiation to order completion. ![View checkout conversion funnel](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-conversion-funnel.jpg) * **Logged out conversion funnel**: Step-by-step funnel analysis for users who started as guests and logged in during checkout. * **Logged in conversion funnel**: Performance breakdown for users who were already logged in when they started checkout. ![View logged-in & logged-out conversion funnel](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-conversion-logged-in-out.jpg) * **Checkout conversion rate over time**: Line chart tracking overall conversion rate trends across your selected time period. ![View checkout conversion rate](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-conversion-rate.jpg) * **Logged out conversion rate**: Line chart showing conversion trends for guest users over time. * **Logged in conversion rate**: Line chart displaying conversion patterns for pre-logged users over time. ![View logged-in & logged-out conversion funnel](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-conversion-logged-in-out-rate.jpg) * **Sales attribution**: Checkout performance segmented by UTM source, medium and campaign data showing how different traffic sources contribute to orders and revenue. ![View sales attribution](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-conversion-sales-attribution.jpg) ## Bar Chart Terms The following table explains each bar displayed in the conversion charts: | Term | Description | | - | - | | Checkout started | Number of sessions in which a user initiated checkout. Each session is counted once, even if the user enters checkout multiple times within the same session. | | Address step reached | Number of sessions in which a user reached the address or shipping details step. Each session is counted once, even if the step is revisited. | | Payment step reached | Number of sessions in which a user reached the payment details step. Each session is counted once, regardless of how many times the payment step is viewed. | | Payment attempted | Number of sessions in which a user attempted to complete payment. Each session is counted once, even if multiple payment attempts are made. | | Order placed | Number of sessions that resulted in at least one successful order. Each session is counted once, even if multiple orders are placed in the same session. | > [!WARNING] > > **Watch Out!** > > * The **Order placed** metric in the checkout funnel reflects the number of sessions with at least one successful order, whereas **Total orders** counts every individual transaction. If a user completes multiple purchases within a single session, the funnel records it as one **Order placed** event. For instance, if 43 sessions result in 50 total orders, it indicates that 7 additional orders were placed by users during their existing sessions. > > * The **Order conversion rate** may appear higher because it accounts for every individual transaction. In contrast, the **Checkout conversion rate** is session-based and only tracks whether a session was successful, regardless of how many orders were placed. When users place multiple orders in a single visit, the **Order conversion rate** will be higher while the **Checkout conversion rate** remains stable. > > * The **Address pre-fill rate** counts all users who are logged in by the time they reach the address step. However, the logged-in funnel tracks **pre-logged** users who were already authenticated before starting the checkout process. # Order Analytics Source: https://razorpay.com/docs/payments/magic-checkout/analytics/order Access detailed insights into your order activities with Razorpay Magic Checkout directly from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Magic Checkout's Order Analytics offers a detailed overview of your business's order activities and performance metrics. It helps you optimise checkout performance and make data-driven business decisions by tracking: * **Order Volume Trends**: Monitor total orders and identify peak ordering times for campaign optimisation. * **Sales Performance**: Track revenue trends, average order values and growth opportunities. * **Payment Method Distribution**: Analyse prepaid vs COD patterns to reduce RTO risk and optimise payment options. > [!WARNING] > > **Watch Out!** > > This feature is available only for Shopify users. ## Get Started Follow the steps given below to view insights about the various order activities: 1. Log in to the Dashboard. 2. Navigate to **Magic Checkout** โ†’ **Analytics** and click **Order**. You can now view the **Order Analytics** on the Dashboard with order performance metrics. ![View order analytics on dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-order.jpg) > [!NOTE] > > **Handy Tips** > > * Select the date range of your choice to view the data. > * Use **Compared to** option to compare current data with a previous period or specific date range. Green indicators show improvements, while red indicators show declines. > * Hover over the card headings to understand the calculation methodology. > * Hover alongside the graph lines to view the exact values for specific time periods. > * Download detailed reports with daily data including date, total orders, total sales (in INR), prepaid orders, prepaid sales (in INR), COD orders and COD sales (in INR) for further analysis. ## Compare Data Across Time Periods You can compare your current data against previous periods to track performance changes: 1. In the **Compared to** field, select the date or time range you want to compare against. 2. View the results with clear indicators: * **Green arrows** indicate improvements. * **Red arrows** show declines. * **Descriptive text** explains the changes. For example: `Orders increased from 55 to 67`. * **Charts display overlapping lines** for visual comparison between the selected time periods, with date labels at the bottom showing which line represents which period. ![Compare analytics data](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-order-comparison.jpg) ## Order Metrics The Order Analytics Dashboard displays the following metrics to track your Magic Checkout order performance: | Field | Description | Calculation | | - | - | - | | Total orders | Total number of Magic Checkout orders placed. | Count of orders placed. | | Total sales | Total sales amount from Magic Checkout order. | Sum of net sales, additional fees, duties, shipping and taxes. | | Average order value | Average value of Magic Checkout orders. | Total sales divided by total orders. | | Prepaid order share | Percentage of orders paid via prepaid methods. | Total prepaid orders divided by total orders. | | Address pre-fill rate | Percentage of logged-in users who see their addresses prefilled at checkout. | Number of logged-in users with pre-filled addresses divided by number of logged in users. | | Checkout conversion rate | Percentage of checkout sessions that resulted in an order. | Total sessions (minimum one successful Magic Checkout order) divided by total Magic Checkout sessions. | > [!WARNING] > > **Watch Out!** > > **Address pre-fill rate** includes both users who were already logged in when they arrived at checkout and users who log in during the checkout process, provided they have saved addresses available. ## Detailed View The **Detailed view** section displays charts that allow you to analyse trends and patterns in your order data: * **Total orders**: Line chart tracking total order volume trends throughout the selected time period. * **Total sales**: Line chart showing total sales revenue patterns. ![View total orders and sales](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-total-orders-sales.jpg) * **Prepaid and COD share**: Comparative chart showing the distribution between prepaid and COD orders over time. * **Prepaid and COD sales**: Comparative chart showing revenue distribution between prepaid and COD sales over time. ![View prepaid and COD share and sales](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-prepaid-cod.jpg) * **Average Order Value**: Line chart displaying AOV fluctuations with hover tooltips showing specific values at different times. ![View average order value](https://razorpay.com/docs/build/browser/assets/images/magic-analytics-avg-order-value.jpg) # View Reports Source: https://razorpay.com/docs/payments/magic-checkout/analytics/reports Generate and download Magic Checkout Order and Checkout Reports to analyse order performance, customer behaviour and abandoned cart recovery metrics. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can generate Magic Checkout reports from the Dashboard to analyse order performance and customer behaviour on your store. Magic Checkout offers two types of reports: * **Order Reports**: Track completed orders placed through Magic Checkout. Use these reports to calculate conversion rates, identify top-performing products and promotions and analyse payment method preferences. * **Checkout Reports**: Analyse both completed orders and abandoned checkouts to understand the complete customer journey. Use these reports for abandoned cart recovery, checkout funnel analysis and identifying customer drop-off points. ## Generate Reports To generate reports: 1. Log in to the [Dashboard](https://dashboard.razorpay.com/app) and navigate to **Reports**. 2. In the **Overview** section, click **Download Report**. ![Download Magic Checkout reports](https://razorpay.com/docs/build/browser/assets/images/magic-reports-download.jpg) 3. Configure report settings: 1. Select the report from the drop-down list. * **Magic Checkout Orders Report** for completed orders only. * **Magic Checkout Checkout Report** for completed orders and abandoned checkouts. 2. Enter a file name *(optional)*. 3. 3. Select the file format. Only `CSV` format is supported for Magic Checkout reports. ![Configure report settings](https://razorpay.com/docs/build/browser/assets/images/magic-reports-download-config.jpg) 4. Choose the duration from the drop-down or toggle **Custom** to set a specific date range. 5. To receive the report via email, toggle **Yes** in the **Do you want this report in an email?** section and enter email addresses for all recipients. 4. Click **Start Download**. ![Download report](https://razorpay.com/docs/build/browser/assets/images/magic-reports-download-config-start.jpg) 5. Navigate to the **Downloads** section to track the download status and click the download icon to download the report. ![View and download Magic Checkout reports from Downloads section](https://razorpay.com/docs/build/browser/assets/images/magic-reports-download-view.jpg) > [!NOTE] > > **Schedule Reports** > > You can also schedule reports to receive them automatically at regular intervals. This ensures you get timely data for consistent decision-making without manual downloads. Know more about how to [schedule reports](/docs/payments/dashboard/reports#schedule-reports). ## Data Fields The reports contain the following data fields: > [accordion] Order Reports > > Order reports contain the following data fields: > > | Field | Description | > | - | - | > | `order_id` | Unique identifier for the order in your system. | > | `razorpay_order_id` | Unique Razorpay order identifier. | > | `razorpay_payment_id` | Unique Razorpay payment identifier. | > | `order_amount` | Total order amount in the smallest currency unit - paise for INR (for example: `12000` is โ‚น120). | > | `order_status` | Status of the order. Know more about [Order Status](/docs/payments/orders#order-states). | > | `payment_method` | Code of the payment method used. Know more about [Razorpay Payment Methods](/docs/payments/payment-methods). | > | `payment_amount` | Amount paid through the payment method in smallest currency unit. | > | `payment_status` | Status of payment. Know more about [Payment Status](/docs/payments/payments#payment-life-cycle). | > | `payment_currency` | Currency code for the payment. | > | `payment_refund_status` | Refund status of the payment. | > | `customer_contact` | Customer's contact number. | > | `customer_email` | Customer's email address. | > | `shipping_address` | JSON object containing shipping address details including name, contact, address lines, city, state, zipcode, country and landmark. | > | `promotions` | Array of applied promotions with details like type, code, description, value and reference id. | > | `utm_parameters` | JSON object containing UTM tracking parameters including source, campaign, medium, content, landing page URL and additional tracking ids like gclid. | > | `line_items` | Array of product names included in the order. | > | `line_items_total` | Total value of all line items in the smallest currency unit. | > | `checkout_created_time` | Timestamp when the checkout was initiated. | > | `checkout_closed_time` | Timestamp when the checkout was completed. | > [accordion] Checkout Reports > > Checkout reports contain all the fields from Order reports plus one additional field: > > | Field | Description | > | - | - | > | `abandoned_checkout_url` | URL to recover abandoned checkout. This is only populated for incomplete checkouts. | > > > [!NOTE] > > > > **Handy Tips** > > > > * Checkout reports include both completed orders and abandoned checkouts, while order reports only show completed orders. > > * The `abandoned_checkout_url` field is only populated for customers who initiated checkout but did not complete the purchase. > > * For completed orders, the `abandoned_checkout_url` field will remain empty. # About RTO Analytics Dashboard Source: https://razorpay.com/docs/payments/magic-checkout/analytics/rto View in-depth information about the various RTO activities with Razorpay Magic Checkout on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Magic Checkout's RTO Analytics Dashboard provides an in-depth view of the RTO-related activities on the orders received. It offers insight into how Magic Intelligence protects the business from risky orders by showing the number of unsafe orders and why they are marked risky via: > [tab] COD Intelligence > > On the Magic Checkout page, if the COD Intelligence detects a risky order, the Cash on Delivery (COD) payment option is disabled for the customer. This reduces the risk of RTO orders and reduces cost. > [tab] Manual Review of COD Orders > > The Magic Intelligence flags some orders as risky that you can approve, cancel, put an order on hold and review it later manually. Know more about [Manual review of COD Orders](/docs/payments/magic-checkout/order-settings/review-cod-orders). #### Features * The Dashboard widgets visualise data and provide insight into the order details. * Widgets can be modified and customised by duration, such as days and weeks. * Make smarter business decisions with timely, automated and accurate data. ## Get Started Follow the steps given below to view insights about the various activities: 1. Log in to the Dashboard. 2. Navigate to **Magic Checkout** โ†’ **RTO Analytics**. You can now view the **RTO Analytics** tab on the Dashboard. It has three views; [Overview](/docs/payments/magic-checkout/analytics/rto/overview), [Risk Report](/docs/payments/magic-checkout/analytics/rto/risk-report) and [RTO Insights](/docs/payments/magic-checkout/analytics/rto/insights). > [!NOTE] > > **Logistics Partners** > > We recommend integrating with logistics partners like [Shiprocket](/docs/payments/magic-checkout/rto-reduction/logistics-partners/shiprocket), [Delhivery](/docs/payments/magic-checkout/rto-reduction/logistics-partners/delhivery), [Unicommerce](/docs/payments/magic-checkout/rto-reduction/logistics-partners/unicommerce), [ClickPost](/docs/payments/magic-checkout/rto-reduction/logistics-partners/clickpost) and [iThink Logistics](/docs/payments/magic-checkout/rto-reduction/logistics-partners/ithink-logistics) to reflect the data on the widget. You can also upload the data in bulk via bulk upload. > [!WARNING] > > **Watch Out!** > > * The widgets provided on the RTO Analytics Dashboard are different for each option. > * You can only view these widgets. ### Related information * [Risk Report](/docs/payments/magic-checkout/analytics/rto/risk-report) * [RTO Insights](/docs/payments/magic-checkout/analytics/rto/insights) * [Manually Review COD Orders](/docs/payments/magic-checkout/order-settings/review-cod-orders) # RTO Insights Source: https://razorpay.com/docs/payments/magic-checkout/analytics/rto/insights Find insights about cost savings, risky ZIP codes and IP addresses. Take actions using Razorpay Magic Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India View information about cost savings, risky ZIP codes and IP Addresses and take specific actions as required. You can generate data for a selected period of up to the last 90 days. > [!WARNING] > > **Watch Out!** > > * We recommend integrating with logistics partners like [Shiprocket](/docs/payments/magic-checkout/rto-reduction/logistics-partners/shiprocket), [Delhivery](/docs/payments/magic-checkout/rto-reduction/logistics-partners/delhivery), [Unicommerce](/docs/payments/magic-checkout/rto-reduction/logistics-partners/unicommerce), [ClickPost](/docs/payments/magic-checkout/rto-reduction/logistics-partners/clickpost) and [iThink Logistics](/docs/payments/magic-checkout/rto-reduction/logistics-partners/ithink-logistics) to reflect the data on the widget. > > * You can only view these widgets. ## Widgets The following widgets are available in the **RTO Insights** tab of the [RTO Analytics Dashboard](/docs/payments/magic-checkout/analytics/rto). Check which widgets are applicable when you opt either for: * COD Intelligence. * Manual review of COD Orders. | Widget | COD Intelligence | Manual review of COD Orders | | - | - | - | | [Cost saved by COD Intelligence](#cost-saved-by-cod-intelligence) | โœ“ | x | | [Cost Saved Due to Manual Review of COD Orders](#cost-saved-due-to-manual-review-of-cod-orders) | x | โœ“ | | [RTO Orders by ZIP codes and IP Addresses](#rto-orders-by-zip-codes-and-ip-addresses) | โœ“ | โœ“ | ## Cost Saved by COD Intelligence The following chart provides insights only when you opt for **COD Intelligence** in the **Settings** section. It displays how much shipping cost you have saved as COD Intelligence blocked risky RTO orders. You can filter the data to display it on a **Daily**, **Weekly** or **Monthly** basis. Hover over the graph for more details. ![RTO Analytics cost saved by COD intelligence graph](https://razorpay.com/docs/build/browser/assets/images/rto-cost-saved-cod.jpg) > [!NOTE] > > **Handy Tips** > > The default shipping charge is โ‚น75. You can enter your average shipping charge in the field. > > ![RTO Analytics customise shipping charge](https://razorpay.com/docs/build/browser/assets/images/rto-cost-saved-cod-charges.jpg) ## Cost Saved Due to Manual Review of COD Orders The following chart provides insights only when you opt for **Manual review of COD orders** in the **Settings** section. The **Cost saved due to manual review of COD orders** widget shows the trend of cost saved. You can view the data **Daily**, **Weekly** or **Monthly**. ![RTO cost savings via manual review](https://razorpay.com/docs/build/browser/assets/images/rto-manual-review-cost-saved.jpg) > [!NOTE] > > **Handy Tips** > > [Automate](/docs/payments/magic-checkout/order-settings/review-cod-orders/workflow#how-it-works) your manual review process or let COD Intelligence handle your COD Orders. Know more about the [RTO Analytics Dashboard for COD Intelligence](/docs/payments/magic-checkout/analytics/rto). ## RTO Orders by ZIP codes and IP Addresses The following widget is available when you opt for either **COD Intelligence** or **Manual review of COD orders** in the **Settings** section. This tab displays the RTO orders at the zipcode (PIN code) and IP address level. These are sorted based on the **RTO risk %**. You can also view the total number of orders shipped and returned for each zipcode and IP address. ![RTO Orders by ZIP codes and IP addresses](https://razorpay.com/docs/build/browser/assets/images/rto-zipcode-ip-address.jpg) You can block or unblock COD orders for a zipcode or an IP address. Orders from these ZIP codes or IP addresses will not be eligible for COD in the future. Click **next** to view more data. ### Related information * [Risk Report](/docs/payments/magic-checkout/analytics/rto/risk-report) * [Manually Review COD Orders](/docs/payments/magic-checkout/order-settings/review-cod-orders) # RTO Overview Source: https://razorpay.com/docs/payments/magic-checkout/analytics/rto/overview Check the various RTO-related widgets available using Razorpay Magic Checkout on the RTO Analytics Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The **Overview** tab on the RTO Analytics Dashboard provides an in-depth view to understand the RTO rate for prepaid and COD orders made on Magic Checkout over a period of time. ## Widgets The following widgets are available in the **Overview** tab of the [RTO Analytics Dashboard](/docs/payments/magic-checkout/analytics/rto). Check which widgets are applicable when you opt for either: * COD Intelligence. * Manual review of COD Orders. | Widget | COD Intelligence | Manual review of COD Orders | | - | - | - | | [RTO Rate with Magic Checkout](#rto-rate-with-magic-checkout) | โœ“ | โœ“ | | [Delivery Data](#delivery-data) | โœ“ | โœ“ | | [Share of COD](#share-of-cod) | โœ“ | โœ“ | | [COD Order Review Report](#cod-order-review-report) | x | โœ“ | > [!WARNING] > > **Watch Out!** > > You can only view these widgets. ## RTO Rate with Magic Checkout The following widget is commonly available if you opt for either **COD Intelligence** or **Manual Review of COD Orders** in the **Settings** section. This chart shows the percentage of RTOs to the total number of orders. You can identify how many RTOs were COD or prepaid. You can view the **Overall RTO %** or filter data for COD and prepaid RTOs. You can also compare all three by selecting **View all RTO %**. > [!NOTE] > > **Handy Tips** > > The default graph is for COD RTO %. This tab only considers data after Magic Checkout Integration. ![RTO rate with Magic Checkout graph](https://razorpay.com/docs/build/browser/assets/images/rto-rate-with-mc.jpg) You can filter data to display it on a **Weekly** or **Monthly** basis. ## Delivery Data The following widget is commonly available when you opt for either **COD Intelligence** or **Manual Review of COD Orders** in the **Settings** section. This tab shows the percentage of orders for which you have shared order data. You can share more data with us by: * Uploading Data Manually: Click **data by uploading** to share the information manually. Know how to [upload data manually](/docs/payments/magic-checkout/rto-reduction/delivery-status#monthly-delivery-data). * Integrating with Logistics Partners: Click **integrate with your delivery partner** to integrate with [Shiprocket](/docs/payments/magic-checkout/rto-reduction/logistics-partners/shiprocket), [Delhivery](/docs/payments/magic-checkout/rto-reduction/logistics-partners/delhivery), [Unicommerce](/docs/payments/magic-checkout/rto-reduction/logistics-partners/unicommerce), [ClickPost](/docs/payments/magic-checkout/rto-reduction/logistics-partners/clickpost) and [iThink Logistics](/docs/payments/magic-checkout/rto-reduction/logistics-partners/ithink-logistics) and share the data automatically. ![RTO Analytics delivery data chart](https://razorpay.com/docs/build/browser/assets/images/rto-delivery-data2.jpg) ## Share of COD The following widget is commonly available when you opt for either **COD Intelligence** or **Manual Review of COD Orders** in the **Settings** section. This graph shows the percentage of COD orders in the total number of orders received. You can use this to analyse COD trends and take measures to increase the number of prepaid orders. You can filter data to display it on a **Daily**, **Weekly** or **Monthly** basis. Hover over the graph for details and the total number of orders. ![RTO Analytics share of COD chart](https://razorpay.com/docs/build/browser/assets/images/rto-share-of-cod.jpg) ## COD Order Review Report The following widget is available only when you opt for **Manual Review of COD Orders** in the **Settings** section. The **COD Order Review Report** provides a break-up of orders received and the actions taken on them, that is, whether you have: * Approved the order for COD payment. * Cancelled the order for COD payment. * Put it on hold for review. * Are yet to take action on the order. You can view the data on a **Daily**, **Weekly** or **Monthly** basis for the last 90 days only. ![COD Order Review Report on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/rto-cod-order-review-report.jpg) > [!NOTE] > > **Handy Tips** > > [Automate](/docs/payments/magic-checkout/order-settings/review-cod-orders/workflow#how-it-works) your manual review process or let COD Intelligence handle your COD Orders. Know more about the [RTO Analytics Dashboard for COD Intelligence](/docs/payments/magic-checkout/analytics/rto). ### Related Information * [RTO Insights](/docs/payments/magic-checkout/analytics/rto/insights) * [Manually Review COD Orders](/docs/payments/magic-checkout/order-settings/review-cod-orders) # Risk Report Source: https://razorpay.com/docs/payments/magic-checkout/analytics/rto/risk-report View and compare users based on RTO Risk. Find reasons for risk flagging using Razorpay Magic Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can compare the probability of risk associated with orders reviewed via COD Intelligence or manual review. View the graphs for a selected period up to the last 90 days. ## Widgets The following widgets are available in the **Risk Report** tab of the [RTO Analytics Dashboard](/docs/payments/magic-checkout/analytics/rto). Check which widgets are applicable when you opt either for: * COD Intelligence. * Manual review of COD Orders. | Widget | COD Intelligence | Manual review of COD Orders | | - | - | - | | [Safe vs Risky Users](#safe-vs-risky-users) | โœ“ | x | | [RTO Risk Distribution](#rto-risk-distribution) | x | โœ“ | | [Breakdown of Risky Users](#breakdown-of-risky-users) | โœ“ | โœ“ | | [Incremental Prepaid Orders Gained](#incremental-prepaid-orders-gained) | โœ“ | x | > [!WARNING] > > **Watch Out!** > > You can only view these widgets. ## Safe vs Risky Users The following widget is available only if you opt for **COD Intelligence** in the **Settings** section. This graph shows the split between safe and risky users for the total users processed by Magic Intelligence. You can filter data to display it on a **Daily**, **Weekly** or **Monthly** basis. Hover over the graph for a breakdown of the data and the total number of users. ![RTO Analytics safe vs risky users chart](https://razorpay.com/docs/build/browser/assets/images/rto-safe-risky-users.jpg) ## RTO Risk Distribution The following chart provides insights only when you opt for **Manual review of COD orders** in the **Settings** section. The **RTO risk distribution** bar graph provides a time-wise break-up of the orders' riskiness. You can view the graph **Daily**, **Weekly** or **Monthly**. ![RTO Analytics Risk Distribution across orders bar graph](https://razorpay.com/docs/build/browser/assets/images/rto-risk-dist.jpg) > [!NOTE] > > **Handy Tips** > > [Automate](/docs/payments/magic-checkout/order-settings/review-cod-orders/workflow#how-it-works) your manual review process or let COD Intelligence handle your COD Orders. Know more about the [RTO Analytics Dashboard for COD Intelligence](/docs/payments/magic-checkout/analytics/rto). ## Breakdown of Risky Users The following widget is commonly available whether you opt for **COD Intelligence** or **Manual review of COD Orders** in the **Settings** section. This tab shows why the users are flagged as risky. The top reasons are displayed first, and the rest are listed under different categories. The intelligence flags the users as risky because: * The address contains many symbols, gibberish, or does not contain commas. * The user has a lower number of prepaid orders. * The user or zip code has a high RTO percentage across many stores. ![RTO Analytics breakdown of risky users](https://razorpay.com/docs/build/browser/assets/images/rto-breakdown-risky-more.jpg) To view all the remaining reasons, click **View all reasons**. ![RTO Analytics breakdown of risky users - view all reasons](https://razorpay.com/docs/build/browser/assets/images/rto-breakdown-risky.jpg) ## Incremental Prepaid Orders Gained The following widget is available only when you opt for **COD Intelligence** in the **Settings** section. This chart shows the split between the **Regular orders** and the **Additional prepaid orders** received because of RTO intelligence. You can analyse how many potentially risky orders were converted to prepaid because of RTO intelligence. ![RTO Analytics incremental prepaid orders gained chart](https://razorpay.com/docs/build/browser/assets/images/rto-incremental-orders2.jpg) You can filter data to display it on a **Daily**, **Weekly** or **Monthly** basis. Hover over the graph for a breakdown of the data and the total number of orders. ### Related information * [RTO Insights](/docs/payments/magic-checkout/analytics/rto/insights) * [Manually Review COD Orders](/docs/payments/magic-checkout/order-settings/review-cod-orders) # Integrate Magic Checkout on Android App Source: https://razorpay.com/docs/payments/magic-checkout/android-integration Steps to integrate Magic Checkout on your Android app using the Razorpay Android Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your Android application. #### Prerequisites * Create a Razorpay account. * Generate [API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. > [card] [1. Build Integration](/docs/payments/magic-checkout/android-integration#1-build-integration) > > Integrate with Android App. > [card] [2. Test Integration](/docs/payments/magic-checkout/android-integration#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/magic-checkout/android-integration#3-go-live-checklist) > > Check the go-live checklist. ## 1. Build Integration > [accordion] 1 Enable/Disable Magic Checkout and Cash on Delivery > > > [tab] Enable Magic Checkout > > > > Raise a request with your Razorpay SPOC to get this feature enabled on your account. > > Once this feature is enabled, the customer address saving and coupon features are enabled. > > > [tab] Enable Cash on Delivery Payment Method > > > > Raise a request with our [Support team](https://razorpay.com/support/) to enable this feature for your account. > [accordion] 2 Create Promotions and Shipping Info API Endpoints > > Follow the steps given below to create promotions and shipping info API endpoints: > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure that the URLs are publicly accessible, require no authentication and are hosted on your server. > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > 2. In the **Platform Setup**, select **Custom E-Commerce Platform** from the drop-down list and click **Next**. > > ![Choose custom platform](https://razorpay.com/docs/build/browser/assets/images/magic-custom-platform.jpg) > 3. In the **Setup & Settings** section, click **Checkout Settings**. > 4. In the **Coupon Settings** section, enter the following: > 1. **URL for get promotions**: The API URL should return a list of promotions applicable to the specified order\_id and customer. Magic Checkout uses this endpoint to fetch these promotions from your server and display them to your customers in the checkout modal. > 2. **URL for apply promotions**: The API URL validates the promotion code applied by the customer and should return the discount amount. Magic Checkout uses this endpoint to apply promotions via your server. > 5. Click **Save settings**. > > ![Add promotion URLs](https://razorpay.com/docs/build/browser/assets/images/magic-web-promo-url.jpg) > 6. Navigate to **Shipping Setup**. > 7. Select **API** as the Shipping Service type from the drop-down list. > 8. Enter the **URL for shipping info**. The API URL should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. Magic Checkout uses this endpoint to retrieve shipping information from your server. > 9. Click **Save Settings**. > > ![Add shipping URL](https://razorpay.com/docs/build/browser/assets/images/magic-web-shipping-url.jpg) > [accordion] 3 Install Razorpay Android Standard SDK > > To install the SDK in your Android project, add the following code to your project's top-level build.gradle file. This provides access to the SDK library. > > ```json dependencies theme={null} > repositories { > mavenCentral() > } > > dependencies { > implementation 'com.razorpay:checkout:1.6.41' > } > ``` > [accordion] 4 Initialise Razorpay Android Standard SDK > > Use the `setKeyId()` method of the Checkout class to dynamically add your API key id. You can generate your API keys from the [Razorpay Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > To ensure the Checkout form loads quickly, call the `preload()` method early in your payment flow. The time taken to load resources may vary based on your network bandwidth. > > ```java Java theme={null} > public class PaymentActivity extends Activity { > > // ... > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > > /** > * Preload payment resources > */ > Checkout.preload(getApplicationContext()); > > // ... > > checkout.setKeyID(""); > > // ... > } > } > ``` > > ```kotlin kotlin theme={null} > class PaymentActivity: Activity(), PaymentResultWithDataListener, ExternalWalletListener { > // ..... > override fun onCreate(savedInstanceState: Bundle?) { > super.onCreate(savedInstanceState) > setContentView(R.layout.activity_payment) > /* > * To ensure faster loading of the Checkout form, > * call this method as early as possible in your checkout flow > * */ > Checkout.preload(applicationContext) > val co = Checkout() > // apart from setting it in AndroidManifest.xml, keyId can also be set > // programmatically during runtime > co.setKeyID("rzp_live_XXXXXXXXXXXXXX") > } > //...... > } > ``` > > > [!WARNING] > > > > **Watch Out!** > > > > It is recommended to send the API Key ID from your server-side as app-related metadata fetch. Do not add API Keys in the `AndroidManifest` file. > [accordion] 5 Create an Order > > You can create an order using the following API and send the additional information required for Magic Checkout. Pass the `order_id` received in response to the checkout code. > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/orders \ > -H "content-type: application/json" \ > -d '{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount", 50000); > orderRequest.put("currency", "INR"); > orderRequest.put("receipt", "receipt#1"); > orderRequest.put("line_items_total", 50000); // Mandatory for Magic Checkout > > JSONArray lineItems = new JSONArray(); > JSONObject item = new JSONObject(); > item.put("sku", "1g234"); > item.put("variant_id", "12r34"); > item.put("price", 50000); > item.put("offer_price", 50000); > item.put("quantity", 1); > item.put("name", "Product Name"); > // ... other line item details > lineItems.put(item); > orderRequest.put("line_items", lineItems); > > Order order = razorpay.orders.create(orderRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > client.order.create(data) > ``` > > ```go Go theme={null} > import ( > razorpay "github.com/razorpay/razorpay-go" > ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > para_attr := map[string]interface{}{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": []interface{}{ > map[string]interface{}{ > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name", > // ... other line item details > }, > }, > } > > body, err := client.Order.Create(para_attr, nil) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->order->create(array( > 'amount' => 50000, > 'currency' => 'INR', > 'receipt' => 'receipt#1', > 'line_items_total' => 50000, // Mandatory for Magic Checkout > 'line_items' => array( > 0 => array( > 'sku' => '1g234', > 'variant_id' => '12r34', > 'price' => 50000, > 'offer_price' => 50000, > 'quantity' => 1, > 'name' => 'Product Name', > // ... other line item details > ), > ), > )); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > para_attr = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > Razorpay::Order.create(para_attr) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ > key_id: 'YOUR_KEY_ID', > key_secret: 'YOUR_SECRET' > }) > > var data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > } > > instance.orders.create(data); > ``` > > ```csharp .Net theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary orderRequest = new Dictionary(); > orderRequest.Add("amount", 50000); > orderRequest.Add("currency", "INR"); > orderRequest.Add("receipt", "receipt#1"); > orderRequest.Add("line_items_total", 50000); // Mandatory for Magic Checkout > > List lineItem = new List(); > Dictionary lineItems = new Dictionary(); > lineItems.Add("sku", "1g234"); > lineItems.Add("variant_id", "12r34"); > lineItems.Add("price", 50000); > lineItems.Add("offer_price", 50000); > lineItems.Add("quantity", 1); > lineItems.Add("name", "Product Name"); > // ... other line item details > lineItem.Add(lineItems); > orderRequest.Add("line_items", lineItem); > > Order order = client.Order.Create(orderRequest); > ``` > > ```json Response theme={null} > { > "id": "order_EKwxwAgItmmXdp", > "entity": "order", > "amount": 50000, > "amount_paid": 0, > "amount_due": 50000, > "currency": "INR", > "receipt": "receipt#1", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1582628071, > "line_items_total": 50000 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit, such as paise (in case of INR). For example, for an actual amount of โ‚น299.35, the value of this field should be `29935`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Default is `INR`. Length must be of 3 characters. > > > > `receipt` *mandatory* > > : `string` Your receipt id for this order should be passed here. Maximum length of 40 characters. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `line_items_total` *mandatory* > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. For example, if a shoe worth โ‚น8,000 and a shirt worth โ‚น10,000 are added, the `line_item_total` will be `1800000`. This amount is post-tax. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To ensure the order is considered as a Magic Checkout order, you must pass this parameter. Otherwise, it will default to Standard Checkout order and customers will view the Standard Checkout UI instead of Magic Checkout. Know more about [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > > > > `line_items` *mandatory* > > : `array` This will have the details about the specific items added to the cart. > > > > `sku` *mandatory* > > : `string` Unique product id defined by you. It can be alphanumeric. > > > > `variant_id` *mandatory* > > : `string` Unique variant id defined by you. It can be alphanumeric. > > > > `price` *mandatory* > > : `integer` Price of the product in paise. > > > > `offer_price` *mandatory* > > : `integer` Final price charged to the customer in paise, after applying any adjustments, such as product discounts. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If no discount is applied, `price` and `offer_price` will be the same. > > > > `quantity` *mandatory* > > : `integer` Number of units added in the cart. > > > > `name` *mandatory* > > : `string` Name of the product. > > > > `description` *mandatory* > > : `string` Description of the product. > > > > `weight` *optional* > > : `integer` Weight of the product in grams. > > > > `dimensions` *optional* > > : `object` The dimensions of the product. > > > > `length` *optional* > > : `string` The length of the product in centimeters. > > > > `width` *optional* > > : `string` The width of the product in centimeters. > > > > `height` *optional* > > : `string` The height of the product in centimeters. > > > > `image_url` *mandatory* > > : `string` The URL of the product image. This parameter is mandatory if you want to display product images on our iframe. > > > > `product_url` *optional* > > : `string` URL of the product's listing page. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > [accordion] Response Parameters > > > > `id` > > : `string` The unique identifier of the order. > > > > `amount` > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. > > > > `partial_payment` > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `amount_paid` > > : `integer` The amount paid against the order. > > > > `amount_due` > > : `integer` The amount pending against the order. > > > > `currency` > > : `string` ISO code for the currency in which you want to accept the payment. The default length is 3 characters. > > > > `receipt` > > : `string` Receipt number that corresponds to this order. Can have a maximum length of 40 characters and has to be unique. > > > > `status` > > : `string` The status of the order. Possible values: > > > > * `created`: When you create an order it is in the `created` state. It stays in this state till a payment is attempted on it. > > * `attempted`: An order moves from `created` to `attempted` state when a payment is first attempted on it. It remains in the `attempted` state till one payment associated with that order is captured. > > * `paid`: After the successful capture of the payment, the order moves to the `paid` state. No further payment requests are permitted once the order moves to the `paid` state. The order stays in the `paid` state even if the payment associated with the order is refunded. > > > > `attempts` > > : `integer` The number of payment attempts, successful and failed, that have been made against this order. > > > > `notes` > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `created_at` > > : `integer` Indicates the Unix timestamp when this order was created. > > > > `line_items_total` > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > > > [accordion] Pre-discount Handling > > > > Line items total should equal the sum of individual item prices after your discounts are applied. When applying discounts, reduce both `amount` and `line_items_total` by the same amount: > > > > ```json Example theme={null} > > { > > "amount": 45000, // โ‚น500 - โ‚น50 discount = โ‚น450 > > "line_items_total": 45000, // Must match the discounted amount > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "prediscount_applied": "5000" // Track discount in paise > > }, > > "line_items": [ > > // ... your line items with original prices > > ] > > } > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Magic Checkout automatically handles all discount calculations on the UI. The system detects differences in checkout amounts and adjusts accordingly. > [accordion] 6 Interact with Shipping Info API > > This API should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. > > `POST /your-server-url/shipping-info-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // This is the receipt field set in the Razorpay order > "razorpay_order_id": "EKwxwAgItmmXdp", // This is the RZP order created without the `order_` prefix > "email": "", // Email field will be set if the customer enters an email > "contact": "+919900000000", // Customer phone number with country code > "addresses": [{ > "id": "0", > "zipcode": "560060", > "state_code": "KA", > "country": "IN" > }] > } > ``` > > ```json Response theme={null} > { > "addresses": [ > { > "id": "0", > "zipcode": "560000", > "state_code": "KA", > "country": "IN", > "shipping_methods": [ > { > "id": "1", > "description": "Free shipping", > "name": "Delivery within 5 days", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": true, > "cod_fee": 1000 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > }, > { > "id": "2", > "description": "Standard Delivery", > "name": "Delivered on the same day", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": false, > "cod_fee": 0 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > } > ] > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#5-create-an-order). > > > > `razorpay_order_id` *mandatory* > > : `string` Unique identifier for the order returned by Checkout. > > > > `email` *optional* > > : `string` Customer's email address. > > > > `contact` *mandatory* > > : `string` Customer's phone number. > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `state_code` *optional* > > : `string` The code of the state where the customer resides. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > [accordion] Response Parameters > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > > `shipping_methods` *mandatory* > > : `array` Details regarding the shipping methods. > > > > `id` *mandatory* > > : `string` Unique identifier of the shipping method. > > > > `description` > > : `integer` Brief description of the shipping method. > > > > `name` *mandatory* > > : `string` Name of the shipping method. > > > > `serviceable` *mandatory* > > : `boolean` Indicates whether you deliver orders to the zipcode entered by the customer. This is based on the ZIP codes you have added in the serviceability setting on the Razorpay Dashboard. Possible values: > > > > * `true`: Orders can be delivered to the added ZIP codes. > > * `false`: Orders cannot be delivered to the added ZIP codes. > > > > `shipping_fee` *mandatory* > > : `integer` Shipping charge in paise applicable to be paid by the customer. > > > > `cod` *mandatory* > > : `boolean` Indicates whether you support cash on delivery on this order. > > > > * `true`: COD payment method is supported. > > * `false`: COD payment method is not supported. > > > > `cod_fee` *mandatory* : `integer` Cash on Delivery fee charged in paise. This amount is based on the COD settings configured in your Razorpay Dashboard. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If the `cod` field is false, set the `cod_fee` field to 0. > [accordion] 7 Interact with Get Promotions API > > This API should return the list of promotions applicable for the given `order_id` and customer. > > `POST /your-server-url/create-promotions-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > "contact": "+919000090000", > "email": "" > }' > ``` > > ```json Response theme={null} > { > "promotions": [ > { > "code": "10%OFF", > "summary": "10% off on total cart value", > "description": "10% on total cart value upto โ‚น300" > }, > { > "code": "500OFF", > "summary": "โ‚น500 off on total cart value", > "description": "โ‚น500 off on a minimum cart value of โ‚น1500" > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#5-create-an-order). > > > > `contact` *optional* > > : `string` Customer's phone number. > > > > `email` *optional* > > : `string` Customer's email address. > > > [accordion] Response Parameters > > > > `promotions` *mandatory* > > : `array` Details of the promotions created. > > > > `code` *mandatory* > > : `string` Unique identifier of the promotion. > > > > `summary` *mandatory* > > : `string` Summary about the promotion. For example, 10% off on total cart value. > > > > `description` *optional* > > : `string` Brief description of the promotion. For example, 10% on total cart value upto โ‚น300. > > > [accordion] 7.1 Interact with Apply Promotions API > > > > This API should validate the promotion code applied by the customer and return the discount amount. > > > > `POST /your-server-url/create-promotions-api-path` > > > > ```bash Request theme={null} > > { > > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > > "contact": "+919000090000", > > "email": "", > > "code": "500OFF" > > }' > > ``` > > > > ```json Success Response theme={null} > > { > > "promotion": { > > "reference_id": "3rvff", > > "type": "offer", > > "code": "500OFF", > > "value": 50000, > > "value_type": "fixed_amount", > > "description": "New Year Sale Offer" > > } > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "failure_code": "LOGIN_REQUIRED", > > "failure_reason": โ€œpromotion Code has expired" > > } > > ``` > > > > > [accordion] Request Parameters > > > > > > `order_id` *mandatory* > > > : `string` Unique identifier of the order created [previously](#5-create-an-order). > > > > > > `contact` *optional* > > > : `string` Customer's phone number. > > > > > > `email` *optional* > > > : `string` Customer's email address. > > > > > > `code` *mandatory* > > > : `string` Promotion code used to avail discount on checkout. > > > > > [accordion] Response Parameters > > > > > > `promotion` *mandatory* > > > : `object` Used to pass all offer or discount-related information, including promotion code discount, method discount and so on. > > > > > > `reference_id` *mandatory* > > > : `string` Identifier of the offer you create. > > > > > > `code` *optional* > > > : `string` Promotion code used to avail discount on checkout. > > > > > > `type` *optional* > > > : `string` Type of offer. Possible values: > > > > > > * `coupon`: A discount applied by customers during checkout. For example, customers can use a coupon like `Diwali Sale 500 Off` to get โ‚น500 off the total cart value. > > > * `offer`: A promotion you create for your customers. For example, you create an offer `Buy 4 t-shirts and get 2 free`. In this case, when customers add 4 t-shirts to their cart, the 2 additional t-shirts will be automatically added for free. > > > > > > `value` *optional* > > > : `integer` The offer value that needs to be applied in paise. For example, if you want to offer a discount of โ‚น500, enter 50000. > > > > > > `value_type` *optional* > > > : `string` The type of value like: > > > > > > * `fixed_amount`: A fixed amount discount value in the currency of the order. For example, โ‚น500. > > > > > > * `percentage`: A percentage discount value. For example, 10%. > > > > > > * `BXGY`: Buy X and Get Y. For example, if you buy 2 t-shirts, you a get a cap for free or at a discounted value. > > > > > > > [!NOTE] > > > > > > > > **Handy Tips** > > > > > > > > Regardless of the `value_type`, the amount specified in the `value` parameter is applied as-is. For example, if `value_type` is percentage and the `value` is 5000, 5000 is considered in currency subunits (paise). > > > > > > `description` *optional* > > > : `string` Description of the promotion applied. For example, `New Year Sale Offer`. > > > > > [accordion] Error Code, Description and Next Steps > > > > > > | Code | Description | Next Steps | > > > | - | - | - | > > > | INVALID\_PROMOTION | The specified promotion code is not recognised or does not exist in the system. | Please verify the code and try again. | > > > | LOGIN\_REQUIRED | This coupon is specifically assigned to a registered customer. | To redeem it, the customer must log in to their account and authenticate their identity. | > > > | REQUIREMENT\_NOT\_MET | The current cart conditions do not meet the requirements for this promotion to be valid. For example, the promotion may require a minimum cart value of โ‚น1,000, but the cart total is โ‚น800. | Review the promotion's terms and adjust the cart contents accordingly. | > [accordion] 8 Initiate Payment and Display Checkout Form > > Create an instance of the `Checkout` and pass the payment details and options as a `JSONObject`. Ensure that you add the `order_id` generated in [Step 5](/docs/payments/magic-checkout/android-integration#5-create-an-order). > > ```java Java theme={null} > public void startPayment() { > checkout.setKeyID(""); > /** > * Instantiate Checkout > */ > Checkout checkout = new Checkout(); > > /** > * Set your logo here > */ > checkout.setImage(R.drawable.logo); > > /** > * Reference to current activity > */ > final Activity activity = this; > > /** > * Pass your payment options to the Razorpay Checkout as a JSONObject > */ > try { > JSONObject options = new JSONObject(); > > options.put("name", ""); > options.put("description", "Reference No. #123456"); > options.put("image", "http://example.com/image/rzp.jpg"); > options.put("order_id", "order_DBJOWzybf0sJbb");//from response of step 3. > options.put("theme.color", "#3399cc"); > options.put("currency", "INR"); > options.put("amount", "50000");//pass amount in currency subunits > options.put("prefill.email", ""); > options.put("prefill.contact",""); > c > JSONObject retryObj = new JSONObject(); > retryObj.put("enabled", true); > retryObj.put("max_count", 4); > options.put("retry", retryObj); > > checkout.open(activity, options); > > } catch(Exception e) { > Log.e(TAG, "Error in starting Razorpay Checkout", e); > } > } > ``` > > ```java Kotlin theme={null} > private fun startPayment() { > /* > * You need to pass the current activity to let Razorpay create CheckoutActivity > * */ > val activity:Activity = this > val co = Checkout() > > try { > val options = JSONObject() > options.put("name","Razorpay Corp") > options.put("description","Demoing Charges") > //You can omit the image option to fetch the image from the Dashboard > options.put("image","http://example.com/image/rzp.jpg") > options.put("theme.color", "#3399cc"); > options.put("currency","INR"); > options.put("order_id", "order_DBJOWzybfXXXX"); > options.put("amount","50000")//pass amount in currency subunits > > val retryObj = new JSONObject(); > retryObj.put("enabled", true); > retryObj.put("max_count", 4); > options.put("retry", retryObj); > > val prefill = JSONObject() > prefill.put("email","") > prefill.put("contact","9876543210") > options.put("one_click_checkout",true) // magic checkout > options.put("show_coupons", true) // magic checkout > > options.put("prefill",prefill) > co.open(activity,options) > }catch (e: Exception){ > Toast.makeText(activity,"Error in payment: "+ e.message,Toast.LENGTH_LONG).show() > e.printStackTrace() > } > } > ``` > > > [!NOTE] > > > > **Handy Tips** > > > > When you paste the checkout options given above, the following error message appears: '`TAG` has private access in `androidx.fragment.app.FragmentActivity`'. You can resolve this by adding the following code: > > > > ```java Resolve TAG has private access theme={null} > > public class MainActivity extends AppCompatActivity implements PaymentResultListener { > > private static final String TAG = MainActivity.class.getSimpleName(); > > ``` > > `Checkout.open()` launches the Checkout form where the customer completes the payment and returns the payment result via appropriate callbacks on the `PaymentResultListener`. > > **Payment Options in JSONObject**: > All available options in the `Standard Web Checkout` are also available in Android. > > > [accordion] Checkout Options > > > > `key` *mandatory* > > : `string` API key id generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` The amount to be paid by the customer in currency subunits. For example, if the amount is โ‚น500, enter `50000`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. Length must be of 3 characters. > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order id generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > > * `card` > > * `netbanking` > > * `wallet` > > * `upi` > > * `cod` > > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `show_coupons` *optional* > > : `boolean` Determines whether to show the coupons to customer on the checkout. Possible values: > > > > * `true` (default): Enables the Coupon feature. > > * `false`: Disables the Coupon feature. > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If you call the payment start method inside a fragment, ensure that the `fragment`'s parent `activity` implements the `PaymentResultListener` interface. > [accordion] 9 Handle Success and Error Events > > You have the option to implement `PaymentResultListener` or `PaymentResultWithDataListener` to receive callbacks for the payment result. > > * `PaymentResultListener` provides only `payment_id` as the payment result. > * `PaymentResultWithDataListener` provides additional payment data such as email and contact of the customer, along with the `order_id`, `payment_id`, `signature` and more. > > Use the code below to import the function in your `.java` file. This should be added at the beginning of the file. > > ```java PaymentResultListener theme={null} > import com.razorpay.PaymentResultListener > ``` > > ```java PaymentResultWithDataListener theme={null} > import com.razorpay.PaymentResultWithDataListener; > ``` > > Given below are the sample codes for implementation: > > ```java Java - PaymentResultListener theme={null} > public class PaymentActivity extends Activity implements PaymentResultListener { > // ... > > @Override > public void onPaymentSuccess(String razorpayPaymentID) { > /** > * Add your logic here for a successful payment response > */ > } > > @Override > public void onPaymentError(int code, String response) { > /** > * Add your logic here for a failed payment response > */ > } > } > ``` > > ```kotlin Kotlin - PaymentResultListener theme={null} > class PaymentActivity: Activity(), PaymentResultListener { > // ... > override fun onPaymentError(errorCode: Int, response: String?) { > /** > * Add your logic here for a failed payment response > */ > } > > override fun onPaymentSuccess(razorpayPaymentId: String?) { > /** > * Add your logic here for a successful payment response > */ > } > ``` > > ```java Java - PaymentResultWithDataListener theme={null} > public class PaymentActivity extends Activity implements PaymentResultWithDataListener { > // ... > @Override > public void onPaymentSuccess(String razorpayPaymentID, PaymentData paymentData) { > /** > * Add your logic here for a successful payment response > */ > } > @Override > public void onPaymentError(int code, String response) { > /** > * Add your logic here for a failed payment response > */ > } > } > ``` > > ```kotlin Kotlin - PaymentResultWithDataListener theme={null} > class PaymentActivity: Activity(), PaymentResultWithDataListener { > // ... > override fun onPaymentError(errorCode: Int, response: String?) { > /** > * Add your logic here for a failed payment response > */ > } > override fun onPaymentSuccess(razorpayPaymentId: String?, PaymentData: PaymentData) { > /** > * Add your logic here for a successful payment response > */ > } > ``` > > > [!WARNING] > > > > **Watch Out!** > > > > * Razorpay's payment process takes place in a new activity. Since there are two activities involved, your activity can get corrupted or destroyed if the device is low on memory. These two methods should not depend on any variables not set through your life cycle hooks. > > * It is recommended that you test everything by enabling "Don't Keep Activities" in **Developer Options** under **Settings**. > > > [accordion] Error Codes > > > > The error codes are returned in the `onPaymentError` method: > > > > | Error\_Code | Description | > > | - | - | > > | `Checkout.NETWORK_ERROR` | There was a network error, for example, loss of internet connectivity. | > > | `Checkout.INVALID_OPTIONS` | An issue with options passed in `checkout.open`. | > > | `Checkout.PAYMENT_CANCELED` | The user canceled the payment. | > > | `Checkout.TLS_ERROR` | The device does not support TLS v1.1 or TLS v1.2. | > > > [accordion] 9.1 Erase User Data from SDK > > > > The SDK stores customer-specific data such as email, contact number, and user-session cookies if the customer wants to make another payment in the same session. You can delete such sensitive information before another customer logs into the app. > > > > To erase customer data from the app, you can call the following method anywhere in your app. > > > > ```java Erase Customer Data theme={null} > > Checkout.clearUserData(Context) > > ``` > [accordion] 10 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 11 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > [accordion] 12 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. > [accordion] 13 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. You can make test payments using one of the payment methods configured at the Checkout. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > [accordion] Supported Payment Methods > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Cash on Delivery](/docs/payments/payment-methods/cod) | `cod` | Requires [Integration](/docs/payments/payment-methods/cod#prerequisites). | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > ### Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > ### UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the following lists: > > * [Supported UPI Flows](/docs/payments/payment-methods/upi). > > * [UPI Error Codes](/docs/errors/payments/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > ### Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > #### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > * [Test Error Scenarios](/docs/payments/payments/test-card-details#error-scenarios). > > #### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > ### Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Magic Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ## Related Information [Android Standard Integration](/docs/payments/payment-gateway/android-integration/standard) # Integrate Magic Checkout on Capacitor App Source: https://razorpay.com/docs/payments/magic-checkout/capacitor-integration Steps to integrate Magic Checkout on your Capacitor app using the Razorpay Capacitor Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your Capacitor application. #### Prerequisites * Create a Razorpay account. * Generate [API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. > [card] [1. Build Integration](/docs/payments/magic-checkout/capacitor-integration#1-build-integration) > > Integrate with Capacitor App. > [card] [2. Test Integration](/docs/payments/magic-checkout/capacitor-integration#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/magic-checkout/capacitor-integration#3-go-live-checklist) > > Check the go-live checklist. > [!WARNING] > > **Watch Out!** > > If you use M1 MacBook, you need to make these changes in your `podfile`. Add the following code inside `post_install do |installer|`: > > ```javascript podfile theme={null} > installer.pods_project.build_configurations.each do |config| > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > end > ``` ## 1. Build Integration > [accordion] 1 Enable/Disable Magic Checkout and Cash on Delivery > > > [tab] Enable Magic Checkout > > > > Raise a request with your Razorpay SPOC to get this feature enabled on your account. > > Once this feature is enabled, the customer address saving and coupon features are enabled. > > > [tab] Enable Cash on Delivery Payment Method > > > > Raise a request with our [Support team](https://razorpay.com/support/) to enable this feature for your account. > [accordion] 2 Create Promotions and Shipping Info API Endpoints > > Follow the steps given below to create promotions and shipping info API endpoints: > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure that the URLs are publicly accessible, require no authentication and are hosted on your server. > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > 2. In the **Platform Setup**, select **Custom E-Commerce Platform** from the drop-down list and click **Next**. > > ![Choose custom platform](https://razorpay.com/docs/build/browser/assets/images/magic-custom-platform.jpg) > 3. In the **Setup & Settings** section, click **Checkout Settings**. > 4. In the **Coupon Settings** section, enter the following: > 1. **URL for get promotions**: The API URL should return a list of promotions applicable to the specified `order_id` and customer. Magic Checkout uses this endpoint to fetch these promotions from your server and display them to your customers in the checkout modal. > 2. **URL for apply promotions**: The API URL validates the promotion code applied by the customer and should return the discount amount. Magic Checkout uses this endpoint to apply promotions via your server. > 5. Click **Save settings**. > > ![Add promotion URLs](https://razorpay.com/docs/build/browser/assets/images/magic-web-promo-url.jpg) > 6. Navigate to **Shipping Setup**. > 7. Select **API** as the Shipping Service type from the drop-down list. > 8. Enter the **URL for shipping info**. The API URL should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. Magic Checkout uses this endpoint to retrieve shipping information from your server. > 9. Click **Save Settings**. > > ![Add shipping URL](https://razorpay.com/docs/build/browser/assets/images/magic-web-shipping-url.jpg) > [accordion] 3 Install Razorpay Capacitor Plugin > > Run the following command on your command prompt to install the plugin: > > ```yml Install Capacitor theme={null} > npm i -S https://github.com/razorpay/razorpay-capacitor.git #installs plugin that supports Capacitor 6.0 > ``` > > > [!WARNING] > > > > **Watch Out!** > > > > We recommend you to use the latest plugin version (that works on Capacitor 6.0) as all the latest features will be made available only on this version. However, if you want to use the plugin that works on Capacitor 5.0, use the command given below: > > > > ```yml Install Capacitor theme={null} > > npm i -S https://github.com/razorpay/razorpay-capacitor.git#76fd7d6b59f631eb44e6ecebc9188b2425168beb #installs plugin that supports Capacitor 5.0 > > ``` > > > > If you want to use the plugin that works on other capacitor versions, refer to the [GitHub repository](https://github.com/razorpay/razorpay-capacitor). > > > [accordion] Proguard Rules > > > > If you are using Proguard for your builds, you must add the following lines to your `proguard-rules.pro` file. > > > > ```java theme={null} > > -keepclassmembers class * { > > @android.webkit.JavascriptInterface ; > > } > > > > -keepattributes JavascriptInterface > > -keepattributes *Annotation* > > > > -dontwarn com.razorpay.** > > -keep class com.razorpay.** {*;} > > > > -optimizations !method/inlining/* > > > > -keepclasseswithmembers class * { > > public void onPayment*(...); > > } > > ``` > [accordion] 4 Create an Order > > You can create an order using the following API and send the additional information required for Magic Checkout. Pass the `order_id` received in response to the checkout code. > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/orders \ > -H "content-type: application/json" \ > -d '{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount", 50000); > orderRequest.put("currency", "INR"); > orderRequest.put("receipt", "receipt#1"); > orderRequest.put("line_items_total", 50000); // Mandatory for Magic Checkout > > JSONArray lineItems = new JSONArray(); > JSONObject item = new JSONObject(); > item.put("sku", "1g234"); > item.put("variant_id", "12r34"); > item.put("price", 50000); > item.put("offer_price", 50000); > item.put("quantity", 1); > item.put("name", "Product Name"); > // ... other line item details > lineItems.put(item); > orderRequest.put("line_items", lineItems); > > Order order = razorpay.orders.create(orderRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > client.order.create(data) > ``` > > ```go Go theme={null} > import ( > razorpay "github.com/razorpay/razorpay-go" > ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > para_attr := map[string]interface{}{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": []interface{}{ > map[string]interface{}{ > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name", > // ... other line item details > }, > }, > } > > body, err := client.Order.Create(para_attr, nil) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->order->create(array( > 'amount' => 50000, > 'currency' => 'INR', > 'receipt' => 'receipt#1', > 'line_items_total' => 50000, // Mandatory for Magic Checkout > 'line_items' => array( > 0 => array( > 'sku' => '1g234', > 'variant_id' => '12r34', > 'price' => 50000, > 'offer_price' => 50000, > 'quantity' => 1, > 'name' => 'Product Name', > // ... other line item details > ), > ), > )); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > para_attr = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > Razorpay::Order.create(para_attr) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ > key_id: 'YOUR_KEY_ID', > key_secret: 'YOUR_SECRET' > }) > > var data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > } > > instance.orders.create(data); > ``` > > ```csharp .Net theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary orderRequest = new Dictionary(); > orderRequest.Add("amount", 50000); > orderRequest.Add("currency", "INR"); > orderRequest.Add("receipt", "receipt#1"); > orderRequest.Add("line_items_total", 50000); // Mandatory for Magic Checkout > > List lineItem = new List(); > Dictionary lineItems = new Dictionary(); > lineItems.Add("sku", "1g234"); > lineItems.Add("variant_id", "12r34"); > lineItems.Add("price", 50000); > lineItems.Add("offer_price", 50000); > lineItems.Add("quantity", 1); > lineItems.Add("name", "Product Name"); > // ... other line item details > lineItem.Add(lineItems); > orderRequest.Add("line_items", lineItem); > > Order order = client.Order.Create(orderRequest); > ``` > > ```json Response theme={null} > { > "id": "order_EKwxwAgItmmXdp", > "entity": "order", > "amount": 50000, > "amount_paid": 0, > "amount_due": 50000, > "currency": "INR", > "receipt": "receipt#1", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1582628071, > "line_items_total": 50000 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit, such as paise (in case of INR). For example, for an actual amount of โ‚น299.35, the value of this field should be `29935`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Default is `INR`. Length must be of 3 characters. > > > > `receipt` *mandatory* > > : `string` Your receipt id for this order should be passed here. Maximum length of 40 characters. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `line_items_total` *mandatory* > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. For example, if a shoe worth โ‚น8,000 and a shirt worth โ‚น10,000 are added, the `line_item_total` will be `1800000`. This amount is post-tax. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To ensure the order is considered as a Magic Checkout order, you must pass this parameter. Otherwise, it will default to Standard Checkout order and customers will view the Standard Checkout UI instead of Magic Checkout. Know more about [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > > > > `line_items` *mandatory* > > : `array` This will have the details about the specific items added to the cart. > > > > `sku` *mandatory* > > : `string` Unique product id defined by you. It can be alphanumeric. > > > > `variant_id` *mandatory* > > : `string` Unique variant id defined by you. It can be alphanumeric. > > > > `price` *mandatory* > > : `integer` Price of the product in paise. > > > > `offer_price` *mandatory* > > : `integer` Final price charged to the customer in paise, after applying any adjustments, such as product discounts. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If no discount is applied, `price` and `offer_price` will be the same. > > > > `quantity` *mandatory* > > : `integer` Number of units added in the cart. > > > > `name` *mandatory* > > : `string` Name of the product. > > > > `description` *mandatory* > > : `string` Description of the product. > > > > `weight` *optional* > > : `integer` Weight of the product in grams. > > > > `dimensions` *optional* > > : `object` The dimensions of the product. > > > > `length` *optional* > > : `string` The length of the product in centimeters. > > > > `width` *optional* > > : `string` The width of the product in centimeters. > > > > `height` *optional* > > : `string` The height of the product in centimeters. > > > > `image_url` *mandatory* > > : `string` The URL of the product image. This parameter is mandatory if you want to display product images on our iframe. > > > > `product_url` *optional* > > : `string` URL of the product's listing page. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > [accordion] Response Parameters > > > > `id` > > : `string` The unique identifier of the order. > > > > `amount` > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. > > > > `partial_payment` > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `amount_paid` > > : `integer` The amount paid against the order. > > > > `amount_due` > > : `integer` The amount pending against the order. > > > > `currency` > > : `string` ISO code for the currency in which you want to accept the payment. The default length is 3 characters. > > > > `receipt` > > : `string` Receipt number that corresponds to this order. Can have a maximum length of 40 characters and has to be unique. > > > > `status` > > : `string` The status of the order. Possible values: > > > > * `created`: When you create an order it is in the `created` state. It stays in this state till a payment is attempted on it. > > * `attempted`: An order moves from `created` to `attempted` state when a payment is first attempted on it. It remains in the `attempted` state till one payment associated with that order is captured. > > * `paid`: After the successful capture of the payment, the order moves to the `paid` state. No further payment requests are permitted once the order moves to the `paid` state. The order stays in the `paid` state even if the payment associated with the order is refunded. > > > > `attempts` > > : `integer` The number of payment attempts, successful and failed, that have been made against this order. > > > > `notes` > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `created_at` > > : `integer` Indicates the Unix timestamp when this order was created. > > > > `line_items_total` > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > > > [accordion] Pre-discount Handling > > > > Line items total should equal the sum of individual item prices after your discounts are applied. When applying discounts, reduce both `amount` and `line_items_total` by the same amount: > > > > ```json Example theme={null} > > { > > "amount": 45000, // โ‚น500 - โ‚น50 discount = โ‚น450 > > "line_items_total": 45000, // Must match the discounted amount > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "prediscount_applied": "5000" // Track discount in paise > > }, > > "line_items": [ > > // ... your line items with original prices > > ] > > } > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Magic Checkout automatically handles all discount calculations on the UI. The system detects differences in checkout amounts and adjusts accordingly. > [accordion] 5 Interact with Shipping Info API > > This API should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. > > `POST /your-server-url/shipping-info-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // This is the receipt field set in the Razorpay order > "razorpay_order_id": "EKwxwAgItmmXdp", // This is the RZP order created without the `order_` prefix > "email": "", // Email field will be set if the customer enters an email > "contact": "+919900000000", // Customer phone number with country code > "addresses": [ > { > "id": "0", > "zipcode": "560060", > "state_code": "KA", > "country": "IN" > } > ] > } > ``` > > ```json Response theme={null} > { > "addresses": [ > { > "id": "0", > "zipcode": "560000", > "state_code": "KA", > "country": "IN", > "shipping_methods": [ > { > "id": "1", > "description": "Free shipping", > "name": "Delivery within 5 days", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": true, > "cod_fee": 1000 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > }, > { > "id": "2", > "description": "Standard Delivery", > "name": "Delivered on the same day", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": false, > "cod_fee": 0 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > } > ] > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#4-create-an-order). > > > > `razorpay_order_id` *mandatory* > > : `string` Unique identifier for the order returned by Checkout. > > > > `email` *optional* > > : `string` Customer's email address. > > > > `contact` *mandatory* > > : `string` Customer's phone number. > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `state_code` *optional* > > : `string` The code of the state where the customer resides. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > [accordion] Response Parameters > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > > `shipping_methods` *mandatory* > > : `array` Details regarding the shipping methods. > > > > `id` *mandatory* > > : `string` Unique identifier of the shipping method. > > > > `description` > > : `integer` Brief description of the shipping method. > > > > `name` *mandatory* > > : `string` Name of the shipping method. > > > > `serviceable` *mandatory* > > : `boolean` Indicates whether you deliver orders to the zipcode entered by the customer. This is based on the ZIP codes you have added in the serviceability setting on the Razorpay Dashboard. Possible values: > > > > * `true`: Orders can be delivered to the added ZIP codes. > > * `false`: Orders cannot be delivered to the added ZIP codes. > > > > `shipping_fee` *mandatory* > > : `integer` Shipping charge in paise applicable to be paid by the customer. > > > > `cod` *mandatory* > > : `boolean` Indicates whether you support cash on delivery on this order. > > > > * `true`: COD payment method is supported. > > * `false`: COD payment method is not supported. > > > > `cod_fee` *mandatory* : `integer` Cash on Delivery fee charged in paise. This amount is based on the COD settings configured in your Razorpay Dashboard. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If the `cod` field is false, set the `cod_fee` field to 0. > [accordion] 6 Interact with Get Promotions API > > This API should return the list of promotions applicable for the given `order_id` and customer. > > `POST /your-server-url/create-promotions-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > "contact": "+919000090000", > "email": "" > }' > ``` > > ```json Response theme={null} > { > "promotions": [ > { > "code": "10%OFF", > "summary": "10% off on total cart value", > "description": "10% on total cart value upto โ‚น300", > ] > }, > { > "code": "500OFF", > "summary": "โ‚น500 off on total cart value", > "description": "โ‚น500 off on a minimum cart value of โ‚น1500", > ] > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#4-create-an-order). > > > > `contact` *optional* > > : `string` Customer's phone number. > > > > `email` *optional* > > : `string` Customer's email address. > > > [accordion] Response Parameters > > > > `promotions` *mandatory* > > : `array` Details of the promotions created. > > > > `code` *mandatory* > > : `string` Unique identifier of the promotion. > > > > `summary` *mandatory* > > : `string` Summary about the promotion. For example, 10% off on total cart value. > > > > `description` *optional* > > : `string` Brief description of the promotion. For example, 10% on total cart value upto โ‚น300. > > > [accordion] 6.1 Interact with Apply Promotions API > > > > This API should validate the promotion code applied by the customer and return the discount amount. > > > > `POST /your-server-url/create-promotions-api-path` > > > > ```bash Request theme={null} > > { > > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > > "contact": "+919000090000", > > "email": "", > > "code": "500OFF" > > }' > > ``` > > > > ```json Success Response theme={null} > > { > > "promotion": { > > "reference_id": "3rvff", > > "type": "offer", > > "code": "500OFF", > > "value": 50000, > > "value_type": "fixed_amount", > > "description": "New Year Sale Offer" > > } > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "failure_code": "LOGIN_REQUIRED", > > "failure_reason": "promotion Code has expired" > > } > > ``` > > > > > [accordion] Request Parameters > > > > > > `order_id` *mandatory* > > > : `string` Unique identifier of the order created [previously](#4-create-an-order). > > > > > > `contact` *optional* > > > : `string` Customer's phone number. > > > > > > `email` *optional* > > > : `string` Customer's email address. > > > > > > `code` *mandatory* > > > : `string` Promotion code used to avail discount on checkout. > > > > > [accordion] Response Parameters > > > > > > `promotion` *mandatory* > > > : `object` Used to pass all offer or discount-related information, including promotion code discount, method discount and so on. > > > > > > `reference_id` *mandatory* > > > : `string` Identifier of the offer you create. > > > > > > `code` *optional* > > > : `string` Promotion code used to avail discount on checkout. > > > > > > `type` *optional* > > > : `string` Type of offer. Possible values: > > > > > > * `coupon`: A discount applied by customers during checkout. For example, customers can use a coupon like `Diwali Sale 500 Off` to get โ‚น500 off the total cart value. > > > * `offer`: A promotion you create for your customers. For example, you create an offer `Buy 4 t-shirts and get 2 free`. In this case, when customers add 4 t-shirts to their cart, the 2 additional t-shirts will be automatically added for free. > > > > > > `value` *optional* > > > : `integer` The offer value that needs to be applied in paise. For example, if you want to offer a discount of โ‚น500, enter 50000. > > > > > > `value_type` *optional* > > > : `string` The type of value like: > > > > > > * `fixed_amount`: A fixed amount discount value in the currency of the order. For example, โ‚น500. > > > > > > * `percentage`: A percentage discount value. For example, 10%. > > > > > > * `BXGY`: Buy X and Get Y. For example, if you buy 2 t-shirts, you a get a cap for free or at a discounted value. > > > > > > > [!NOTE] > > > > > > > > **Handy Tips** > > > > > > > > Regardless of the `value_type`, the amount specified in the `value` parameter is applied as-is. For example, if `value_type` is percentage and the `value` is 5000, 5000 is considered in currency subunits (paise). > > > > > > `description` *optional* > > > : `string` Description of the promotion applied. For example, `New Year Sale Offer`. > > > > > [accordion] Error Code, Description and Next Steps > > > > > > | Code | Description | Next Steps | > > > | - | - | - | > > > | INVALID\_PROMOTION | The specified promotion code is not recognised or does not exist in the system. | Please verify the code and try again. | > > > | LOGIN\_REQUIRED | This coupon is specifically assigned to a registered customer. | To redeem it, the customer must log in to their account and authenticate their identity. | > > > | REQUIREMENT\_NOT\_MET | The current cart conditions do not meet the requirements for this promotion to be valid. For example, the promotion may require a minimum cart value of โ‚น1,000, but the cart total is โ‚น800. | Review the promotion's terms and adjust the cart contents accordingly. | > [accordion] 7 Add Checkout Class in MainActivity.java (Android Only) > > Add the Checkout class to the ArrayList in the MainActivity class in `{{projectDir}}/android/src/main/MainActivity.java`. Below is the sample code: > > ```java Add Checkout Class theme={null} > import com.ionicframework.capacitor.Checkout; > > public class MainActivity extends BridgeActivity { > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > > registerPlugin(Checkout.class); > } > } > ``` > > Check the [Capacitor 6.0 Official Updates](https://capacitorjs.com/docs/updating/6-0). > [accordion] 8 Add Checkout Code > > Add the Pay button on your web page using the checkout code given below. The checkout page is displayed when the customers click the Pay button. > > > [accordion] 8.1 Code to Add Pay Button > > > > Add the Checkout code to your project. Ensure that you pass the `order_id` that you received in response to the first step. > > > > ```javascript Checkout Code theme={null} > > import { Checkout } from 'capacitor-razorpay'; > > @Component({ > > selector: 'app-home', > > templateUrl: 'home.page.html', > > styleUrls: ['home.page.scss'], > > }) > > export class HomePage { > > constructor(private alertController: AlertController) {} > > async payWithRazorpay(){ > > const options = { > > key: '[YOUR_KEY_ID]', > > amount: '50000', > > description: 'Great offers', > > image: 'https://i.imgur.com/3g7nmJC.jpg', > > order_id: 'order_Cp10EhSaf7wLbS',//Order ID generated in Step 1 > > currency: 'INR', > > name: 'Acme Corp', > > prefill: { > > email: '', > > contact: '9000090000' > > }, > > theme: { > > color: '#3399cc' > > }, > > 'one_click_checkout': true, // magic checkout > > 'show_coupons': true // magic checkout > > } > > try { > > let data = (await Checkout.open(options)); > > console.log(data.response+"AcmeCorp"); > > console.log(JSON.stringify(data)) > > } catch (error) { > > //it's paramount that you parse the data into a JSONObject > > let errorObj = JSON.parse(error['code']) > > alert(errorObj.description); > > alert(errorObj.code); > > alert(errorObj.reason); > > alert(errorObj.step); > > alert(errorObj.source); > > alert(errorObj.metadata.order_id); > > alert(errorObj.metadata.payment_id); > > } > > async presentAlert(response: string){ > > // let responseObj = JSON.parse(response) > > console.log("message"+ response['razorpay_payment_id']); > > const alert = await this.alertController.create({ > > message:response['razorpay_payment_id'], > > backdropDismiss: true, > > }); > > await alert.present(); > > } > > } > > ``` > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > [accordion] 8.2 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > > > > ### UPI Intent on Recurring Payments > > > > Configure and initiate a recurring payment transaction on UPI Intent: > > > > ```swift ViewController.swift theme={null} > > let options: [String:Any] = [ > > "key": "YOUR_KEY_ID", > > "order_id": "order_DBJOWzybfXXXX", > > "customer_id": "cust_BtQNqzmBlXXXX", > > "prefill": [ > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com" > > ], > > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > "amount": 10000, // Amount should match the order amount > > "currency": "INR", > > "recurring": 1 // This key value pair is mandatory for Intent Recurring Payment. > > ] > > ``` > > > > ```objectivec ViewController.m theme={null} > > NSDictionary *options = @{ > > @"key": @"YOUR_KEY_ID", > > @"order_id": @"order_DBJOWzybfXXXX", > > @"customer_id": @"cust_BtQNqzmBlXXXX", > > @"prefill": @{ > > @"contact": @"+919000090000", > > @"email": @"gaurav.kumar@example.com" > > }, > > @"image": @"https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > @"amount": @(10000), // Amount should match the order amount > > @"currency": @"INR", > > @"recurring": @(1) // This key value pair is mandatory for Intent Recurring Payment. > > }; > > ``` > [accordion] 9 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 10 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > [accordion] 11 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. > [accordion] 12 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. You can make test payments using one of the payment methods configured at the Checkout. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > [accordion] Supported Payment Methods > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Cash on Delivery](/docs/payments/payment-methods/cod) | `cod` | Requires [Integration](/docs/payments/payment-methods/cod#prerequisites). | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > ### Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > ### UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the following lists: > > * [Supported UPI Flows](/docs/payments/payment-methods/upi). > > * [UPI Error Codes](/docs/errors/payments/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > ### Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > #### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > * [Test Error Scenarios](/docs/payments/payments/test-card-details#error-scenarios). > > #### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > ### Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Magic Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ## Related Information [Capacitor Standard Integration](/docs/payments/payment-gateway/capacitor-integration) # Customisations and Extensions Source: https://razorpay.com/docs/payments/magic-checkout/customisations-extensions Customise Razorpay Magic Checkout with third-party extensions. Add analytics, marketing automation, loyalty programs shipping solution and more. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay Magic Checkout offers extensive customisation options through third-party integrations and plugins. Extend functionality with analytics, marketing, loyalty and logistics tools tailored to your business needs. ## Analytics and Tracking Solutions Track user behaviour, measure conversions and optimise the checkout funnel with the following tools: | Tool | Description | | - | - | | **Webengage** | Customer engagement and analytics | | **Moengage** | Customer engagement and retention analytics | | **Clevertap** | User analytics and behavioural insights | | **Mixpanel** | Event-based product analytics | | **Velocity Insights** | Checkout performance and conversion analytics | | **Freshsales/Freshdesk** | CRM and customer support analytics | ## Retargeting and Marketing Automation Re-engage customers and automate marketing workflows with these tools: | Tool | Description | Integration Type | | - | - | - | | **Omnisend** | Email and SMS marketing automation | Abandoned cart recovery | | **Contlo** | Customer data platform with marketing automation | Personalised retargeting | | **Klavio** | Email marketing and customer segmentation | Post-purchase campaigns | | **Zoko** | WhatsApp and multi-channel marketing | Cross-platform retargeting | | **Intelliticks** | AI-powered chatbot and customer engagement | Real-time customer support | | **BoB** | Behavioural targeting and personalisation | Dynamic content delivery | | **Bitespeed** | Customer journey automation | Multi-touchpoint engagement | | **Haptik** | Conversational AI and customer support | Interactive customer assistance | Follow the best practices given below: * Sync customer and checkout data for effective targeting. * Implement consent banners for compliant data usage. * Trigger campaigns using checkout completion events. ## Product Customisation and Variant Management Enable personalised products and advanced variant controls using: | Solution | Description | Technical Requirements | | - | - | - | | **BOLD Product Options** | Advanced product customisation interface | [Shopify App Store](https://apps.shopify.com/product-options) | | **Ymq Product Options** | Variant management with auto-complete | [Shopify Integration](https://apps.shopify.com/ymq-options?st_source=autocomplete) | | **Product Options and Customiser** | Comprehensive product personalisation | [Customiser App](https://apps.shopify.com/product-customizer) | | **Infinite Options** | Unlimited product variant creation | [Custom Options](https://apps.shopify.com/custom-options) | | **W3 Product Accessories** | Related product and accessory management | Custom integration required | Check the list of features given below: * Dynamic pricing based on customer selections. * Inventory syncing for selected variants. * Custom fields with input validation. * Responsive design across mobile and desktop. ## Loyalty and Rewards Programs Incentivise purchases and improve retention with loyalty platforms: | Platform | Functionality | Integration Method | | - | - | - | | **Nector** | Points-based loyalty program | `API Integration` | | **FLits** | Cashback and reward management | `Webhook Integration` | | **Capillary** | Enterprise loyalty platform | `Custom API` | | **Smile** | Social loyalty and referral program | `JavaScript Widget` | | **BoN Rewards** | Comprehensive loyalty solution | `Plugin Integration` | Follow the best practices given below: * Calculate and apply points during checkout. * Update balances in real-time post-transaction. * Validate redemption rules on Checkout. * Ensure loyalty points sync across platforms. ## Shipping and Logistics Integration Automate shipping, tracking and fulfilment using: | Service | Description | | - | - | | **Clickpost** |
  • Multi-carrier shipping management
  • Rate comparison and selection
  • Automated label generation
| | **Shiprocket** |
  • Automated shipping and tracking
  • COD reconciliation
  • Return management system
| | **Unicommerce** |
  • Inventory and order management
  • Multi-channel fulfillment
  • Warehouse management system
| | **iThink Logistics** |
  • End-to-end logistics solutions
  • Real-time shipment tracking
  • Multi-carrier network access
| | **Delhivery** |
  • Express logistics and supply chain
  • Last-mile delivery optimisation
  • Hyperlocal delivery services
| Check to the list of features given below: * Calculate shipping rates dynamically at checkout. * Enable automated courier selection based on criteria. * Integrate tracking updates post order placement. * Handle returns with pre-defined workflows. ## Discount and Coupon Management Enable discounts and promotional strategies using these tools: | Tool | Description | Use Case | | - | - | - | | **Shopify Native Coupons** | Built-in discount management | Standard promotional codes | | **Farzi** | Advanced coupon and promotional tool | Complex discount rules | | **All In One Discount** |
  • Comprehensive discount management
  • Volume discounts and quantity breaks
  • BOGO and tiered pricing
| Plugin Integration | The configuration options are given below: * Apply fixed or percentage-based discounts. * Set minimum order values for eligibility. * Enable user-specific or limited-time offers. * Define discount tiers based on quantity or value. ## Related Information * [Magic Checkout](/docs/payments/magic-checkout) * [Magic Checkout Use Cases](/docs/payments/magic-checkout/use-cases) * [Features](/docs/payments/magic-checkout/features) * [Logistics Partners](/docs/payments/magic-checkout/rto-reduction/logistics-partners) # Delete a Saved Address on Magic Checkout Source: https://razorpay.com/docs/payments/magic-checkout/delete-saved-address Remove a delivery address you saved while shopping on a store that uses Razorpay Magic Checkout. No payment or order is needed. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can remove any delivery address you saved while shopping on a store that uses Razorpay Magic Checkout. It takes about a minute, and you do not need to pay or place an order. ## Delete an address 1. Open the [Razorpay demo page](https://razorpay.com/demopg3/). At the bottom of the page, select **Magic Checkout** and **Mobile**, then click **Buy Now**. ![Demo page toggles with Magic Checkout and Mobile selected](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-delete-address-demo-toggle.png) 2. Enter the mobile number you shop with, then enter the OTP you receive. 3. Tap **Add/Change** next to the delivery address. ![Magic Checkout order summary with the Add/Change link next to the delivery address highlighted](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-delete-address-add-change.png) 4. Tap **โ‹ฎ** on the address you want to remove, then tap **Delete**. ![Saved delivery addresses list with the three-dot menu open and the Delete option highlighted](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-delete-address-menu.png) 5. Tap **Yes, delete**. The address disappears from your list. ![Confirmation prompt asking if you want to delete this address, with the Yes, delete button highlighted](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-delete-address-confirm.png) Repeat steps 4 and 5 for each address you want to remove. Close the page when you have finished. You do not need to complete the payment. > [!NOTE] > > After you delete an address, it no longer appears at checkout on any store that uses Razorpay Magic Checkout. # Features Source: https://razorpay.com/docs/payments/magic-checkout/features List of features that will help you build a first-class payments experience with Razorpay Magic Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India With Magic Checkout you can: * **Reduce RTOs and Improve COD Intelligence** \ Magic Checkout offers the following features to better RTO protection and improve COD intelligence. * [Block or allow COD options](/docs/payments/magic-checkout/rto-reduction/allowlist-blocklist). * [Upload order status data](/docs/payments/magic-checkout/rto-reduction/delivery-status). * [Manually review COD orders](/docs/payments/magic-checkout/order-settings/review-cod-orders). * [Automate the actions on COD orders](/docs/payments/magic-checkout/order-settings/review-cod-orders/workflow). * **Convert COD Orders to Prepaid** \ Persuade customers who chose cash on delivery while placing an order to convert to prepaid by offering discounts or incentives post-order placement. You can do this by sending your customers a conversion link via WhatsApp. Know how to [convert COD orders to prepaid](/docs/payments/magic-checkout/order-settings/prepay-cod). * **RTO Analytics** \ View in-depth information about the various RTO activities on Magic Checkout and improve your overall business health. Know more about [RTO Analytics](/docs/payments/magic-checkout/analytics/rto). * **Integrate with Logistics Partners** \ Seamlessly integrate with logistics partners to facilitate efficient order fulfillment and delivery processes. Know more about how to integrate with [Logistics Partners](/docs/payments/magic-checkout/rto-reduction/logistics-partners). * **Leverage Various Plugins** \ Access a range of plugins to customise and enhance your e-commerce platform, meeting specific business needs and improving functionality. Know more about how to integrate with [WooCommerce](/docs/payments/magic-checkout/woocommerce) and [Shopify](/docs/payments/magic-checkout/shopify). * **Eliminate Multiple Payment Gateways** \ Simplify payment processing with a single gateway, reducing complexity and enhancing transaction efficiency through Magic Checkout. Know more about how to integrate on your [Custom-built Website](/docs/payments/magic-checkout/web). * **QuickBuy: Revolutionise Your Checkout Process** \ QuickBuy is a game-changing 1-click payment experience designed to simplify your checkout. Its intuitive half-page interface minimises steps, allowing customers to complete payments faster. Leveraging advanced personalisation algorithms, QuickBuy streamlines the checkout experience by minimising steps and simplifying decisions leading to quicker checkouts and higher conversion rates. This boosts customer satisfaction and drives business growth, making every transaction seamless. Know more about [QuickBuy](/docs/payments/magic-checkout/features/quickbuy). ## Related Information [Customisations and Extensions](/docs/payments/magic-checkout/customisations-extensions) # QuickBuy Source: https://razorpay.com/docs/payments/magic-checkout/features/quickbuy Streamline checkout with QuickBuyโ€™s 1-click payment and order placement. Minimise steps and speed up transactions for a fast, seamless customer experience. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India QuickBuy is a one-click payment solution that streamlines checkout for returning customers. With a compact half-page interface, it intelligently displays preferred payment methods based on past transactions and automatically applies the best available offers, reducing friction and decision-making. This results in a faster, more efficient checkout experience that boosts conversion rates and enhances satisfaction for both customers and businesses. ![QuickBuy on Magic Checkout](https://razorpay.com/docs/build/browser/assets/images/quickbuy-magic.jpg) > [!NOTE] > > **Handy Tips** > > This feature is currently available only on mobile. ## Features * **Quick Transactions**: 1-click payment process for returning users with minimal steps for faster checkouts, enhanced by a half-page overlay that provides a streamlined experience. * **Clear Payment Details**: Transparent display of payment information, including savings and discounts. * **Automatic Offer Application**: Automatic application of offers with visible savings to enhance customer satisfaction. * **Smart Address and Shipping Method Selection**: Automatically selects the most suitable address and shipping option, minimising customer effort and ensuring a seamless checkout process. > [!NOTE] > > **Handy Tips** > > * Customers can use UPI intent, UPI Saved VPAs and Saved Cards through QuickBuy. > * QuickBuy displays recommended payment methods based on past transactions for a faster checkout. If no recommendations exist, the full checkout flow is shown. ## Advantages > [tab] Businesses > > * **Improved Conversion Rates**: Reduces drop-offs with minimal steps and pre-selected payment methods. > * **Enhanced User Experience**: Provides a faster, simpler payment process that encourages repeat transactions. > * **Efficient Checkout Process**: Offers advanced features like 1-click purchases, improving overall efficiency. > [tab] Customers > > * **Simplified Payments**: Pre-selection of preferred payment methods for quicker transactions. > * **Automatic Offer Application:** Automatically applies the best available offers for cost savings. ## How it Works QuickBuy is ideal for returning users who are logged into Razorpay Checkout and making repeat purchases. The workflow includes: 1. **Automatic coupon application**: The best available coupon is applied to the total. If they change the coupon, the system recalculates and updates the total amount. 2. **Default address selection**: The most recently used address is automatically selected. 3. **Pre-selected shipping method**: The default shipping method is free if available; otherwise, the lowest-cost option is chosen, with the option to change it if required. 4. **Preferred payment method**: The most frequently used payment method is pre-selected. If the user changes their payment method, the system recalculates and applies the best available offer to the new method, notifying them of the updated total. 5. **Single-click purchase**: Customers complete their purchases in a single click. > [!NOTE] > > **Disable QuickBuy** > > To disable QuickBuy on checkout, contact our [Support team](https://razorpay.com/support/#request). # Integrate Magic Checkout on Flutter App Source: https://razorpay.com/docs/payments/magic-checkout/flutter-integration Steps to integrate Magic Checkout on your Flutter app using the Razorpay Flutter Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your Flutter application. #### Prerequisites * Create a Razorpay account. * Generate [API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. > [card] [1. Build Integration](/docs/payments/magic-checkout/flutter-integration#1-build-integration) > > Integrate with Flutter App. > [card] [2. Test Integration](/docs/payments/magic-checkout/flutter-integration#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/magic-checkout/flutter-integration#3-go-live-checklist) > > Check the go-live checklist. ## 1. Build Integration > [accordion] 1 Enable/Disable Magic Checkout and Cash on Delivery > > > [tab] Enable Magic Checkout > > > > Raise a request with your Razorpay SPOC to get this feature enabled on your account. > > Once this feature is enabled, the customer address saving and coupon features are enabled. > > > [tab] Enable Cash on Delivery Payment Method > > > > Raise a request with our [Support team](https://razorpay.com/support/) to enable this feature for your account. > [accordion] 2 Create Promotions and Shipping Info API Endpoints > > Follow the steps given below to create promotions and shipping info API endpoints: > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure that the URLs are publicly accessible, require no authentication and are hosted on your server. > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > 2. In the **Platform Setup**, select **Custom E-Commerce Platform** from the drop-down list and click **Next**. > > ![Choose custom platform](https://razorpay.com/docs/build/browser/assets/images/magic-custom-platform.jpg) > 3. In the **Setup & Settings** section, click **Checkout Settings**. > 4. In the **Coupon Settings** section, enter the following: > 1. **URL for get promotions**: The API URL should return a list of promotions applicable to the specified `order_id` and customer. Magic Checkout uses this endpoint to fetch these promotions from your server and display them to your customers in the checkout modal. > 2. **URL for apply promotions**: The API URL validates the promotion code applied by the customer and should return the discount amount. Magic Checkout uses this endpoint to apply promotions via your server. > 5. Click **Save settings**. > > ![Add promotion URLs](https://razorpay.com/docs/build/browser/assets/images/magic-web-promo-url.jpg) > 6. Navigate to **Shipping Setup**. > 7. Select **API** as the Shipping Service type from the drop-down list. > 8. Enter the **URL for shipping info**. The API URL should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. Magic Checkout uses this endpoint to retrieve shipping information from your server. > 9. Click **Save Settings**. > > ![Add shipping URL](https://razorpay.com/docs/build/browser/assets/images/magic-web-shipping-url.jpg) > [accordion] 3 Install Razorpay Flutter Plugin > > [Download the plugin](https://pub.dev/packages/razorpay_flutter) from Pub.dev. > > Add the below code to `dependencies` in your app's `pubspec.yaml` > > ```yml Add Dependencies theme={null} > razorpay_flutter: 1.4.0 > ``` > > > [accordion] Add Proguard Rules (Android Only) > > > > If you are using Proguard for your builds, you need to add the following lines to the Proguard files: > > > > ```java Add Proguard Rules theme={null} > > -keepattributes *Annotation* > > -dontwarn com.razorpay.** > > -keep class com.razorpay.** {*;} > > -optimizations !method/inlining/ > > -keepclasseswithmembers class * { > > public void onPayment*(...); > > } > > ``` > > > > Know more about [Proguard rules](https://github.com/razorpay/razorpay-flutter/issues/42#issuecomment-550161626). > > > [accordion] Get Packages > > > > Run `flutter packages get` in the root directory of your app. > > > > > [!NOTE] > > > > > > **Minimum Version Requirement** > > > > > > * For **Android**, ensure that the minimum API level for your app is 19 or higher. > > > * For **iOS**, ensure that the minimum deployment target for your app is iOS 10.0 or higher. Also, do not forget to enable bitcode for your project. > [accordion] 4 Import Package and Create Razorpay Instance > > Use the below code to import the `razorpay_flutter.dart` file to your project. > > ```yml Import Package theme={null} > import 'package:razorpay_flutter/razorpay_flutter.dart'; > ``` > > Use the below code to create a Razorpay instance. > > ```yml Instantiate theme={null} > _razorpay = Razorpay(); > ``` > [accordion] 5 Attach Event Listeners > > The plugin uses event-based communication and emits events when payments fail or succeed. > > The event names are exposed via the constants `EVENT_PAYMENT_SUCCESS`, `EVENT_PAYMENT_ERROR` and `EVENT_EXTERNAL_WALLET` from the `Razorpay` class. > > Use the `on(String event, Function handler)` method on the `Razorpay` instance to attach event listeners. > > ```yml Attach Event Listeners theme={null} > _razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, _handlePaymentSuccess); > _razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, _handlePaymentError); > _razorpay.on(Razorpay.EVENT_EXTERNAL_WALLET, _handleExternalWallet); > ``` > > The handlers would be defined in the class as: > > ```yml Handlers theme={null} > void _handlePaymentSuccess(PaymentSuccessResponse response) { > // Do something when payment succeeds > } > > void _handlePaymentError(PaymentFailureResponse response) { > // Do something when payment fails > } > > void _handleExternalWallet(ExternalWalletResponse response) { > // Do something when an external wallet is selected > } > ``` > > To clear event listeners, use the `clear` method on the `Razorpay` instance. > > ```yml Clear Event Listeners theme={null} > _razorpay.clear(); // Removes all listeners > ``` > [accordion] 6 Create an Order > > You can create an order using the following API and send the additional information required for Magic Checkout. Pass the `order_id` received in response to the checkout code. > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/orders \ > -H "content-type: application/json" \ > -d '{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount", 50000); > orderRequest.put("currency", "INR"); > orderRequest.put("receipt", "receipt#1"); > orderRequest.put("line_items_total", 50000); // Mandatory for Magic Checkout > > JSONArray lineItems = new JSONArray(); > JSONObject item = new JSONObject(); > item.put("sku", "1g234"); > item.put("variant_id", "12r34"); > item.put("price", 50000); > item.put("offer_price", 50000); > item.put("quantity", 1); > item.put("name", "Product Name"); > // ... other line item details > lineItems.put(item); > orderRequest.put("line_items", lineItems); > > Order order = razorpay.orders.create(orderRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > client.order.create(data) > ``` > > ```go Go theme={null} > import ( > razorpay "github.com/razorpay/razorpay-go" > ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > para_attr := map[string]interface{}{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": []interface{}{ > map[string]interface{}{ > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name", > // ... other line item details > }, > }, > } > > body, err := client.Order.Create(para_attr, nil) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->order->create(array( > 'amount' => 50000, > 'currency' => 'INR', > 'receipt' => 'receipt#1', > 'line_items_total' => 50000, // Mandatory for Magic Checkout > 'line_items' => array( > 0 => array( > 'sku' => '1g234', > 'variant_id' => '12r34', > 'price' => 50000, > 'offer_price' => 50000, > 'quantity' => 1, > 'name' => 'Product Name', > // ... other line item details > ), > ), > )); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > para_attr = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > Razorpay::Order.create(para_attr) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ > key_id: 'YOUR_KEY_ID', > key_secret: 'YOUR_SECRET' > }) > > var data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > } > > instance.orders.create(data); > ``` > > ```csharp .Net theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary orderRequest = new Dictionary(); > orderRequest.Add("amount", 50000); > orderRequest.Add("currency", "INR"); > orderRequest.Add("receipt", "receipt#1"); > orderRequest.Add("line_items_total", 50000); // Mandatory for Magic Checkout > > List lineItem = new List(); > Dictionary lineItems = new Dictionary(); > lineItems.Add("sku", "1g234"); > lineItems.Add("variant_id", "12r34"); > lineItems.Add("price", 50000); > lineItems.Add("offer_price", 50000); > lineItems.Add("quantity", 1); > lineItems.Add("name", "Product Name"); > // ... other line item details > lineItem.Add(lineItems); > orderRequest.Add("line_items", lineItem); > > Order order = client.Order.Create(orderRequest); > ``` > > ```json Response theme={null} > { > "id": "order_EKwxwAgItmmXdp", > "entity": "order", > "amount": 50000, > "amount_paid": 0, > "amount_due": 50000, > "currency": "INR", > "receipt": "receipt#1", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1582628071, > "line_items_total": 50000 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit, such as paise (in case of INR). For example, for an actual amount of โ‚น299.35, the value of this field should be `29935`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Default is `INR`. Length must be of 3 characters. > > > > `receipt` *mandatory* > > : `string` Your receipt id for this order should be passed here. Maximum length of 40 characters. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `line_items_total` *mandatory* > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. For example, if a shoe worth โ‚น8,000 and a shirt worth โ‚น10,000 are added, the `line_item_total` will be `1800000`. This amount is post-tax. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To ensure the order is considered as a Magic Checkout order, you must pass this parameter. Otherwise, it will default to Standard Checkout order and customers will view the Standard Checkout UI instead of Magic Checkout. Know more about [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > > > > `line_items` *mandatory* > > : `array` This will have the details about the specific items added to the cart. > > > > `sku` *mandatory* > > : `string` Unique product id defined by you. It can be alphanumeric. > > > > `variant_id` *mandatory* > > : `string` Unique variant id defined by you. It can be alphanumeric. > > > > `price` *mandatory* > > : `integer` Price of the product in paise. > > > > `offer_price` *mandatory* > > : `integer` Final price charged to the customer in paise, after applying any adjustments, such as product discounts. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If no discount is applied, `price` and `offer_price` will be the same. > > > > `quantity` *mandatory* > > : `integer` Number of units added in the cart. > > > > `name` *mandatory* > > : `string` Name of the product. > > > > `description` *mandatory* > > : `string` Description of the product. > > > > `weight` *optional* > > : `integer` Weight of the product in grams. > > > > `dimensions` *optional* > > : `object` The dimensions of the product. > > > > `length` *optional* > > : `string` The length of the product in centimeters. > > > > `width` *optional* > > : `string` The width of the product in centimeters. > > > > `height` *optional* > > : `string` The height of the product in centimeters. > > > > `image_url` *mandatory* > > : `string` The URL of the product image. This parameter is mandatory if you want to display product images on our iframe. > > > > `product_url` *optional* > > : `string` URL of the product's listing page. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > [accordion] Response Parameters > > > > `id` > > : `string` The unique identifier of the order. > > > > `amount` > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. > > > > `partial_payment` > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `amount_paid` > > : `integer` The amount paid against the order. > > > > `amount_due` > > : `integer` The amount pending against the order. > > > > `currency` > > : `string` ISO code for the currency in which you want to accept the payment. The default length is 3 characters. > > > > `receipt` > > : `string` Receipt number that corresponds to this order. Can have a maximum length of 40 characters and has to be unique. > > > > `status` > > : `string` The status of the order. Possible values: > > > > * `created`: When you create an order it is in the `created` state. It stays in this state till a payment is attempted on it. > > * `attempted`: An order moves from `created` to `attempted` state when a payment is first attempted on it. It remains in the `attempted` state till one payment associated with that order is captured. > > * `paid`: After the successful capture of the payment, the order moves to the `paid` state. No further payment requests are permitted once the order moves to the `paid` state. The order stays in the `paid` state even if the payment associated with the order is refunded. > > > > `attempts` > > : `integer` The number of payment attempts, successful and failed, that have been made against this order. > > > > `notes` > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `created_at` > > : `integer` Indicates the Unix timestamp when this order was created. > > > > `line_items_total` > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > > > [accordion] Pre-discount Handling > > > > Line items total should equal the sum of individual item prices after your discounts are applied. When applying discounts, reduce both `amount` and `line_items_total` by the same amount: > > > > ```json Example theme={null} > > { > > "amount": 45000, // โ‚น500 - โ‚น50 discount = โ‚น450 > > "line_items_total": 45000, // Must match the discounted amount > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "prediscount_applied": "5000" // Track discount in paise > > }, > > "line_items": [ > > // ... your line items with original prices > > ] > > } > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Magic Checkout automatically handles all discount calculations on the UI. The system detects differences in checkout amounts and adjusts accordingly. > [accordion] 7 Interact with Shipping Info API > > This API should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. > > `POST /your-server-url/shipping-info-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // This is the receipt field set in the Razorpay order > "razorpay_order_id": "EKwxwAgItmmXdp", // This is the RZP order created without the `order_` prefix > "email": "", // Email field will be set if the customer enters an email > "contact": "+919900000000", // Customer phone number with country code > "addresses": [ > { > "id": "0", > "zipcode": "560060", > "state_code": "KA", > "country": "IN" > } > ] > } > ``` > > ```json Response theme={null} > { > "addresses": [ > { > "id": "0", > "zipcode": "560000", > "state_code": "KA", > "country": "IN", > "shipping_methods": [ > { > "id": "1", > "description": "Free shipping", > "name": "Delivery within 5 days", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": true, > "cod_fee": 1000 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > }, > { > "id": "2", > "description": "Standard Delivery", > "name": "Delivered on the same day", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": false, > "cod_fee": 0 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > } > ] > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#6-create-an-order). > > > > `razorpay_order_id` *mandatory* > > : `string` Unique identifier for the order returned by Checkout. > > > > `email` *optional* > > : `string` Customer's email address. > > > > `contact` *mandatory* > > : `string` Customer's phone number. > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `state_code` *optional* > > : `string` The code of the state where the customer resides. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > [accordion] Response Parameters > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > > `shipping_methods` *mandatory* > > : `array` Details regarding the shipping methods. > > > > `id` *mandatory* > > : `string` Unique identifier of the shipping method. > > > > `description` > > : `integer` Brief description of the shipping method. > > > > `name` *mandatory* > > : `string` Name of the shipping method. > > > > `serviceable` *mandatory* > > : `boolean` Indicates whether you deliver orders to the zipcode entered by the customer. This is based on the ZIP codes you have added in the serviceability setting on the Razorpay Dashboard. Possible values: > > > > * `true`: Orders can be delivered to the added ZIP codes. > > * `false`: Orders cannot be delivered to the added ZIP codes. > > > > `shipping_fee` *mandatory* > > : `integer` Shipping charge in paise applicable to be paid by the customer. > > > > `cod` *mandatory* > > : `boolean` Indicates whether you support cash on delivery on this order. > > > > * `true`: COD payment method is supported. > > * `false`: COD payment method is not supported. > > > > `cod_fee` *mandatory* : `integer` Cash on Delivery fee charged in paise. This amount is based on the COD settings configured in your Razorpay Dashboard. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If the `cod` field is false, set the `cod_fee` field to 0. > [accordion] 8 Interact with Get Promotions API > > This API should return the list of promotions applicable for the given `order_id` and customer. > > `POST /your-server-url/create-promotions-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > "contact": "+919000090000", > "email": "" > }' > ``` > > ```json Response theme={null} > { > "promotions": [ > { > "code": "10%OFF", > "summary": "10% off on total cart value", > "description": "10% on total cart value upto โ‚น300", > ] > }, > { > "code": "500OFF", > "summary": "โ‚น500 off on total cart value", > "description": "โ‚น500 off on a minimum cart value of โ‚น1500", > ] > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#6-create-an-order). > > > > `contact` *optional* > > : `string` Customer's phone number. > > > > `email` *optional* > > : `string` Customer's email address. > > > [accordion] Response Parameters > > > > `promotions` *mandatory* > > : `array` Details of the promotions created. > > > > `code` *mandatory* > > : `string` Unique identifier of the promotion. > > > > `summary` *mandatory* > > : `string` Summary about the promotion. For example, 10% off on total cart value. > > > > `description` *optional* > > : `string` Brief description of the promotion. For example, 10% on total cart value upto โ‚น300. > > > [accordion] 8.1 Interact with Apply Promotions API > > > > This API should validate the promotion code applied by the customer and return the discount amount. > > > > `POST /your-server-url/create-promotions-api-path` > > > > ```bash Request theme={null} > > { > > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > > "contact": "+919000090000", > > "email": "", > > "code": "500OFF" > > }' > > ``` > > > > ```json Success Response theme={null} > > { > > "promotion": { > > "reference_id": "3rvff", > > "type": "offer", > > "code": "500OFF", > > "value": 50000, > > "value_type": "fixed_amount", > > "description": "New Year Sale Offer" > > } > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "failure_code": "LOGIN_REQUIRED", > > "failure_reason": "promotion Code has expired" > > } > > ``` > > > > > [accordion] Request Parameters > > > > > > `order_id` *mandatory* > > > : `string` Unique identifier of the order created [previously](#6-create-an-order). > > > > > > `contact` *optional* > > > : `string` Customer's phone number. > > > > > > `email` *optional* > > > : `string` Customer's email address. > > > > > > `code` *mandatory* > > > : `string` Promotion code used to avail discount on checkout. > > > > > [accordion] Response Parameters > > > > > > `promotion` *mandatory* > > > : `object` Used to pass all offer or discount-related information, including promotion code discount, method discount and so on. > > > > > > `reference_id` *mandatory* > > > : `string` Identifier of the offer you create. > > > > > > `code` *optional* > > > : `string` Promotion code used to avail discount on checkout. > > > > > > `type` *optional* > > > : `string` Type of offer. Possible values: > > > > > > * `coupon`: A discount applied by customers during checkout. For example, customers can use a coupon like `Diwali Sale 500 Off` to get โ‚น500 off the total cart value. > > > * `offer`: A promotion you create for your customers. For example, you create an offer `Buy 4 t-shirts and get 2 free`. In this case, when customers add 4 t-shirts to their cart, the 2 additional t-shirts will be automatically added for free. > > > > > > `value` *optional* > > > : `integer` The offer value that needs to be applied in paise. For example, if you want to offer a discount of โ‚น500, enter 50000. > > > > > > `value_type` *optional* > > > : `string` The type of value like: > > > > > > * `fixed_amount`: A fixed amount discount value in the currency of the order. For example, โ‚น500. > > > > > > * `percentage`: A percentage discount value. For example, 10%. > > > > > > * `BXGY`: Buy X and Get Y. For example, if you buy 2 t-shirts, you a get a cap for free or at a discounted value. > > > > > > > [!NOTE] > > > > > > > > **Handy Tips** > > > > > > > > Regardless of the `value_type`, the amount specified in the `value` parameter is applied as-is. For example, if `value_type` is percentage and the `value` is 5000, 5000 is considered in currency subunits (paise). > > > > > > `description` *optional* > > > : `string` Description of the promotion applied. For example, `New Year Sale Offer`. > > > > > [accordion] Error Code, Description and Next Steps > > > > > > | Code | Description | Next Steps | > > > | - | - | - | > > > | INVALID\_PROMOTION | The specified promotion code is not recognised or does not exist in the system. | Please verify the code and try again. | > > > | LOGIN\_REQUIRED | This coupon is specifically assigned to a registered customer. | To redeem it, the customer must log in to their account and authenticate their identity. | > > > | REQUIREMENT\_NOT\_MET | The current cart conditions do not meet the requirements for this promotion to be valid. For example, the promotion may require a minimum cart value of โ‚น1,000, but the cart total is โ‚น800. | Review the promotion's terms and adjust the cart contents accordingly. | > [accordion] 9 Add Checkout Options > > Pass the Checkout options. Ensure that you pass the `order_id` that you received in the response of the previous step. > > ```yml Checkout Options theme={null} > var options = { > 'key': '', > 'amount': 50000, > 'currency': 'INR', > 'name': '', > 'order_id': 'order_EMBFqjDHEEn80l', // Generate order_id using Orders API > 'description': 'Fine T-Shirt', > 'timeout': 60, // in seconds > 'prefill': { > 'contact': '', > 'email': '' > }, > 'one_click_checkout': true, // magic checkout > 'show_coupons': true // magic checkout > }; > ``` > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > [accordion] 9.1 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > > > > ### UPI Intent on Recurring Payments > > > > Configure and initiate a recurring payment transaction on UPI Intent: > > > > ```swift ViewController.swift theme={null} > > let options: [String:Any] = [ > > "key": "YOUR_KEY_ID", > > "order_id": "order_DBJOWzybfXXXX", > > "customer_id": "cust_BtQNqzmBlXXXX", > > "prefill": [ > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com" > > ], > > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > "amount": 10000, // Amount should match the order amount > > "currency": "INR", > > "recurring": 1 // This key value pair is mandatory for Intent Recurring Payment. > > ] > > ``` > > > > ```objectivec ViewController.m theme={null} > > NSDictionary *options = @{ > > @"key": @"YOUR_KEY_ID", > > @"order_id": @"order_DBJOWzybfXXXX", > > @"customer_id": @"cust_BtQNqzmBlXXXX", > > @"prefill": @{ > > @"contact": @"+919000090000", > > @"email": @"gaurav.kumar@example.com" > > }, > > @"image": @"https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > @"amount": @(10000), // Amount should match the order amount > > @"currency": @"INR", > > @"recurring": @(1) // This key value pair is mandatory for Intent Recurring Payment. > > }; > > ``` > [accordion] 10 Open Checkout > > Use the below code to open the Razorpay checkout. > > ```yml Open Razorpay Checkout theme={null} > _razorpay.open(options); > ``` > [accordion] 11 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 12 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > > > [accordion] M1 MacBook Changes > > > > If you use M1 MacBook, you need to make the following changes in your podfile. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Add the following code inside `post_install do |installer|`. > > > > ```javascript podfile theme={null} > > installer.pods_project.build_configurations.each do |config| > > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > > end > > ``` > [accordion] 13 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. > [accordion] 14 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. You can make test payments using one of the payment methods configured at the Checkout. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > [accordion] Supported Payment Methods > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Cash on Delivery](/docs/payments/payment-methods/cod) | `cod` | Requires [Integration](/docs/payments/payment-methods/cod#prerequisites). | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > ### Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > ### UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the following lists: > > * [Supported UPI Flows](/docs/payments/payment-methods/upi). > > * [UPI Error Codes](/docs/errors/payments/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > ### Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > #### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > * [Test Error Scenarios](/docs/payments/payments/test-card-details#error-scenarios). > > #### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > ### Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Magic Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ## Related Information [Flutter Standard Integration](/docs/payments/payment-gateway/flutter-integration/standard) # Glossary Source: https://razorpay.com/docs/payments/magic-checkout/glossary List of commonly used terms related to Razorpay Magic Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The following table lists all the commonly used terms and their definitions used in Magic Checkout: | Terms | Description | | - | - | | Magic Checkout | A seamless and secure payment experience that enables prepaid and COD transactions on your platform. It reduces cash on delivery (COD) RTOs by analysing customer shopping history and address quality. | | RTO | Return to Origin refers to returning an order to its place of origin for reasons such as non-delivery or customer rejection. | | COD Intelligence | A feature that analyses COD orders to reduce fraud and improve the efficiency of COD transactions. | | Logistics Partners | Organisations that provide shipping and delivery services for e-commerce businesses to streamline the order fulfilment process. | | Coupon Code | A code that customers can use during checkout to apply a discount or special offer to their purchase. | | Blocklist | A list of users prohibited from availing COD as they return products on delivery, resulting in damaged products during transit, high returns, and refund issues. | | Allowlist | A list of users explicitly permitted to avail COD, often loyal to your brand and contributing to increasing revenue. | | Prepaid | This refers to a payment method where the customer pays for goods or services before receiving them, as opposed to COD, where payment is made upon delivery. | | Convert COD to Prepaid | The process of changing a COD order to a prepaid order is often done to reduce the risk associated with COD transactions. | | Risky Users | The users flagged as potentially fraudulent or high-risk based on factors such as past behaviour or transaction patterns. | | Billing Address | The address associated with a payment method used for verification and billing purposes during checkout. | | Inactive Coupon | A coupon code that is no longer valid or usable, often because it has reached its usage limit or has been manually deactivated. | # How Magic Checkout Works Source: https://razorpay.com/docs/payments/magic-checkout/how-it-works Understand how Magic Checkout works on mobile and desktop for logged-in, logged-out and new customers with QuickBuy and One Page features. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Given below is a complete end-to-end flow about how customers can use Magic Checkout. ## Mobile Magic Checkout on mobile offers different experiences based on customer login status and purchase history: > [accordion] Logged In > > Customers who already are logged in have 2 ways to proceed with checkout: > > > [tab] Quickbuy > > > > QuickBuy is a one-click payment solution that streamlines checkout for returning customers. With a compact half-page interface, it intelligently displays preferred payment methods based on past transactions and automatically applies the best available offers, reducing friction and decision-making. > > > > This results in a faster, more efficient checkout experience that boosts conversion rates and enhances satisfaction for both customers and businesses. Know more about [Quickbuy](/docs/payments/payment-gateway/features/quickbuy). > > > > QuickBuy is ideal for returning customers who are logged into Razorpay Checkout and making repeat purchases. > > > > ![QuickBuy on Magic Checkout](https://razorpay.com/docs/build/browser/assets/images/quickbuy-magic.jpg) > > > > The workflow includes: > > > > 1. **Automatic coupon application**: The best available coupon is applied to the total. If they change the coupon, the system recalculates and updates the total amount. > > 2. **Default address selection**: The most recently used address is automatically selected. > > Pre-selected shipping method: The default shipping method is free if available; otherwise, the lowest-cost option is chosen, with the option to change it if required. > > 3. **Preferred payment method**: The most frequently used payment method is pre-selected. If the user changes their payment method, the system recalculates and applies the best available offer to the new method, notifying them of the updated total. > > 4. **Single-click purchase**: Customers complete their purchases in a single click. > > > [tab] One Page Checkout > > > > Magic Checkout now features a **One Page Checkout** that consolidates all essential checkout elements onto one clean, intuitive page. Eligible customers can complete their entire purchase without navigating through multiple pages. The unified view brings together order summary, coupon application, address selection and payment options for a streamlined checkout process. > > > > The system automatically determines which checkout experience to show each customer: > > > > * **One Page Checkout**: Automatically displayed to logged-in customers with saved addresses and payment methods for faster completion. > > * **Multi-Step Flow**: Used for new customers or those without sufficient saved information, guiding them through the traditional step-by-step process. > > > > ### Customer Experience > > > > Customers select the products on your website or app and proceed to Checkout. > > > > ![Magic Checkout Flow on Mobile: Logged in customers](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-flow-mobile-logged-in.gif) > > > > On the Checkout page, logged-in customers: > > > > 1. Verify the order in the **Order Summary** tab. > > 2. Click **Coupons** to view available offers. > > 3. Enter the coupon code or select a preferred coupon and click **Apply**. > > 4. Verify the pre-filled address or click **Add/Change** to view all saved addresses, select any existing address or add a new one. > > 5. Choose a delivery option if applicable. > > 6. Choose a preferred payment method, enter the required details and complete the purchase. > [accordion] Logged Out > > Customers select the products on your website or app and proceed to Checkout. > > ![Magic Checkout Flow on Mobile: Logged out customers](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-flow-logged-out.gif) > > On the Checkout page, logged-out customers: > > 1. Enter their mobile number and click **Continue**. > 2. Enter the OTP to prefill their saved address and click **Continue**. > 3. Verify the order in the **Order Summary** tab. > 4. Click **Coupons** to view available offers. > 5. Enter the coupon code or select a preferred coupon and click **Apply**. > 6. Verify the pre-filled address or click **Add/Change** to view all saved addresses, select any existing address or add a new one. > 7. Choose a delivery option if applicable. > 8. Choose a preferred payment method, enter the required details and complete the purchase. > [accordion] New customers > > Customers select the products on your website or app and proceed to Checkout. > > ![Magic Checkout Flow on Mobile: New customers](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-flow-mobile-new-user.gif) > > On the Checkout page, new customers: > > 1. Enter their mobile number. > 2. Verify the order in the **Order Summary** tab. > 3. Click **Coupons and offers** to view available offers. > 4. Enter the coupon code or select a preferred coupon and click **Apply**. Click **Continue**. > 5. Enter the delivery address. > 6. Select the **Save my address as** check box to save the address and select the address type. > 7. Enter the OTP to securly save your address for future use and click **Continue**. > 8. In the **Payment Options** section, choose a preferred payment method. Enter the required details and complete the purchase. ## Desktop Magic Checkout on desktop provides a checkout interface optimised for larger screens with different flows based on customer login status: > [accordion] Logged In > > Customers select the products on your website or app and proceed to Checkout. > > ![Magic Checkout Flow on Desktop: Logged in customers](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-flow-desktop.gif) > > On the Checkout page, logged-in customers: > > 1. Verify the order in the **Order Summary** tab on the left. > 2. Click **Coupons and offers** to view available offers. > 3. Enter the coupon code or select a preferred coupon and click **Apply**. > 4. Verify the pre-filled address or click **Add/Change** to view all saved addresses. Select any existing address or add a new one. > 5. Choose a delivery option if applicable and click **Continue**. > 6. In the **Payment Options** section, choose a preferred payment method. Enter the required details and complete the purchase. > [accordion] Logged Out > > Customers select the products on your website or app and proceed to Checkout. > > ![Magic Checkout Flow on Desktop: Logged out customers](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-flow-desktop-logged-out.gif) > > On the Checkout page, logged-out customers: > > 1. Enter their mobile number and click **Continue**. > 2. Enter the OTP to prefill their saved address and click **Continue**. > 3. Verify the order in the **Order Summary** tab on the left. > 4. Click **Coupons and offers** to view available offers. > 5. Enter the coupon code or select a preferred coupon and click **Apply**. > 6. Verify the pre-filled address. Select any existing address or add a new one. > 7. Choose a delivery option if applicable and click **Continue**. > 8. In the **Payment Options** section, choose a preferred payment method. Enter the required details and complete the purchase. > [accordion] New customers > > Customers select the products on your website or app and proceed to Checkout. > > ![Magic Checkout Flow on Desktop: New customers](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-flow-desktop-new-user.gif) > > On the Checkout page, new customers: > > 1. Enter their mobile number and click **Continue**. > 2. Verify the order in the **Order Summary** tab on the left. > 3. Click **Coupons and offers** to view available offers. > 4. Enter the coupon code or select a preferred coupon and click **Apply**. > 5. Enter the delivery address. > 6. Select the **Save my address as** check box to save the address and select the address type. > 7. Enter the OTP to securely save your address for future use and click **Continue**. > 8. In the **Payment Options** section, choose a preferred payment method. Enter the required details and complete the purchase. # Integrate Magic Checkout on iOS App Source: https://razorpay.com/docs/payments/magic-checkout/ios-integration Steps to integrate Magic Checkout on your iOS app using the Razorpay iOS Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your iOS application. #### Prerequisites * Create a Razorpay account. * Generate [API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. > [card] [1. Build Integration](/docs/payments/magic-checkout/ios-integration#1-build-integration) > > Integrate with iOS App. > [card] [2. Test Integration](/docs/payments/magic-checkout/ios-integration#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/magic-checkout/ios-integration#3-go-live-checklist) > > Check the go-live checklist. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Enable/Disable Magic Checkout and Cash on Delivery > > > [tab] Enable Magic Checkout > > > > Raise a request with your Razorpay SPOC to get this feature enabled on your account. > > Once this feature is enabled, the customer address saving and coupon features are enabled. > > > [tab] Enable Cash on Delivery Payment Method > > > > Raise a request with our [Support team](https://razorpay.com/support/) to enable this feature for your account. > [accordion] 2 Create Promotions and Shipping Info API Endpoints > > Follow the steps given below to create promotions and shipping info API endpoints: > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure that the URLs are publicly accessible, require no authentication and are hosted on your server. > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > 2. In the **Platform Setup**, select **Custom E-Commerce Platform** from the drop-down list and click **Next**. > > ![Choose custom platform](https://razorpay.com/docs/build/browser/assets/images/magic-custom-platform.jpg) > 3. In the **Setup & Settings** section, click **Checkout Settings**. > 4. In the **Coupon Settings** section, enter the following: > 1. **URL for get promotions**: The API URL should return a list of promotions applicable to the specified order\_id and customer. Magic Checkout uses this endpoint to fetch these promotions from your server and display them to your customers in the checkout modal. > 2. **URL for apply promotions**: The API URL validates the promotion code applied by the customer and should return the discount amount. Magic Checkout uses this endpoint to apply promotions via your server. > 5. Click **Save settings**. > > ![Add promotion URLs](https://razorpay.com/docs/build/browser/assets/images/magic-web-promo-url.jpg) > 6. Navigate to **Shipping Setup**. > 7. Select **API** as the Shipping Service type from the drop-down list. > 8. Enter the **URL for shipping info**. The API URL should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. Magic Checkout uses this endpoint to retrieve shipping information from your server. > 9. Click **Save Settings**. > > ![Add shipping URL](https://razorpay.com/docs/build/browser/assets/images/magic-web-shipping-url.jpg) > [accordion] 3 Import Razorpay iOS Standard SDK Library > > You can import the Razorpay iOS Standard SDK library using any of these ways: > > > [tab] Cocoapod > > > > Refer to our [Cocoapod](https://cocoapods.org/pods/razorpay-pod) (bitcode enabled) pod. > > > [tab] Manual > > > > 1. Download the SDK and unzip it. > > 2. Open your project in XCode and go to **file** under **Menu**. Select **Add files to "yourproject"**. > > 3. Select **Razorpay.xcframework** in the directory you just unzipped. > > 4. Select the **Copy items if needed** checkbox. > > 5. Click **Add**. > > 6. Navigate to **Target settings โ†’ General** and add the **Razorpay.xcframework** in both **Embedded Binaries** and **Linked Frameworks and Libraries**. > > > [tab] Objective-C > > > > If you are building an **Objective-C** project, follow the steps given for Swift and the additional steps given below: > > > > 1. Go to **Project Settings** and select **Build Settings - All and Combined**. > > 2. Set the **Always Embed Swift Standard Libraries** option to **TRUE**. > > > > Ensure that you have the framework added in both **Embedded Binaries** and **Linked Frameworks and Libraries** under **Target settings - General**. > > > [accordion] Xcode 11 > > > > Ensure that you have the framework added in **Frameworks, Libraries, and Embed Content** under **Target settings - General**. Change `Embed status` from - `Do not Embed` to `Embed & Sign`. \\ > > > > Watch the GIF to see how to add Frameworks, Libraries and Embed Content. > > > > ![add Frameworks, Libraries and Embed Content](https://razorpay.com/docs/build/browser/assets/images/ios-embed-framework.gif) > [accordion] 4 Initialise Razorpay iOS Standard SDK > > To initialise Razorpay iOS Standard SDK, you need the following: > > * API keys. You can generate this from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > > [!WARNING] > > > > **Watch Out!** > > > > API keys should not be hardcoded in the app. Must be sent from your backend as app-related metadata fetch. > > * A delegate that implements `RazorpayPaymentCompletionProtocol` or `RazorpayPaymentCompletionProtocolWithData`. > > > [!WARNING] > > > > **Watch Out!** > > > > * For Swift version 5.1+, ensure that you declare `var razorpay: RazorpayCheckout!`. > > > > * For versions lower than 5.1, use `var razorpay: Razorpay!`. > > > > * Alternatively, you can use the following alias and retain the variable as Razorpay. \\ > > > > `typealias Razorpay = RazorpayCheckout` > > ```swift ViewController.swift theme={null} > import Razorpay > > class ViewController: UIViewController, RazorpayPaymentCompletionProtocol { > > // typealias Razorpay = RazorpayCheckout > > var razorpay: RazorpayCheckout! > override func viewDidLoad() { > super.viewDidLoad() > razorpay = RazorpayCheckout.initWithKey(razorpayTestKey, andDelegate: self) > } > override func viewWillAppear(_ animated: Bool) { > super.viewWillAppear(animated) > self.showPaymentForm() > } > } > ``` > > ```objectivec ViewController.m theme={null} > #import > //- typedef RazorpayCheckout Razorpay; > > @interface ViewController () { > RazorpayCheckout *razorpay; > . > . > - (void)viewDidLoad { > [super viewDidLoad]; > . > . > razorpay = [RazorpayCheckout initWithKey:@"YOUR_PUBLIC_KEY" andDelegate:self]; > } > } > ``` > [accordion] 5 Create an Order in Server > > You can create an order using the following API and send the additional information required for Magic Checkout. Pass the `order_id` received in response to the checkout code. > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/orders \ > -H "content-type: application/json" \ > -d '{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount", 50000); > orderRequest.put("currency", "INR"); > orderRequest.put("receipt", "receipt#1"); > orderRequest.put("line_items_total", 50000); // Mandatory for Magic Checkout > > JSONArray lineItems = new JSONArray(); > JSONObject item = new JSONObject(); > item.put("sku", "1g234"); > item.put("variant_id", "12r34"); > item.put("price", 50000); > item.put("offer_price", 50000); > item.put("quantity", 1); > item.put("name", "Product Name"); > // ... other line item details > lineItems.put(item); > orderRequest.put("line_items", lineItems); > > Order order = razorpay.orders.create(orderRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > client.order.create(data) > ``` > > ```go Go theme={null} > import ( > razorpay "github.com/razorpay/razorpay-go" > ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > para_attr := map[string]interface{}{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": []interface{}{ > map[string]interface{}{ > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name", > // ... other line item details > }, > }, > } > > body, err := client.Order.Create(para_attr, nil) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->order->create(array( > 'amount' => 50000, > 'currency' => 'INR', > 'receipt' => 'receipt#1', > 'line_items_total' => 50000, // Mandatory for Magic Checkout > 'line_items' => array( > 0 => array( > 'sku' => '1g234', > 'variant_id' => '12r34', > 'price' => 50000, > 'offer_price' => 50000, > 'quantity' => 1, > 'name' => 'Product Name', > // ... other line item details > ), > ), > )); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > para_attr = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > Razorpay::Order.create(para_attr) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ > key_id: 'YOUR_KEY_ID', > key_secret: 'YOUR_SECRET' > }) > > var data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > } > > instance.orders.create(data); > ``` > > ```csharp .Net theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary orderRequest = new Dictionary(); > orderRequest.Add("amount", 50000); > orderRequest.Add("currency", "INR"); > orderRequest.Add("receipt", "receipt#1"); > orderRequest.Add("line_items_total", 50000); // Mandatory for Magic Checkout > > List lineItem = new List(); > Dictionary lineItems = new Dictionary(); > lineItems.Add("sku", "1g234"); > lineItems.Add("variant_id", "12r34"); > lineItems.Add("price", 50000); > lineItems.Add("offer_price", 50000); > lineItems.Add("quantity", 1); > lineItems.Add("name", "Product Name"); > // ... other line item details > lineItem.Add(lineItems); > orderRequest.Add("line_items", lineItem); > > Order order = client.Order.Create(orderRequest); > ``` > > ```json Response theme={null} > { > "id": "order_EKwxwAgItmmXdp", > "entity": "order", > "amount": 50000, > "amount_paid": 0, > "amount_due": 50000, > "currency": "INR", > "receipt": "receipt#1", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1582628071, > "line_items_total": 50000 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit, such as paise (in case of INR). For example, for an actual amount of โ‚น299.35, the value of this field should be `29935`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Default is `INR`. Length must be of 3 characters. > > > > `receipt` *mandatory* > > : `string` Your receipt id for this order should be passed here. Maximum length of 40 characters. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `line_items_total` *mandatory* > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. For example, if a shoe worth โ‚น8,000 and a shirt worth โ‚น10,000 are added, the `line_item_total` will be `1800000`. This amount is post-tax. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To ensure the order is considered as a Magic Checkout order, you must pass this parameter. Otherwise, it will default to Standard Checkout order and customers will view the Standard Checkout UI instead of Magic Checkout. Know more about [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > > > > `line_items` *mandatory* > > : `array` This will have the details about the specific items added to the cart. > > > > `sku` *mandatory* > > : `string` Unique product id defined by you. It can be alphanumeric. > > > > `variant_id` *mandatory* > > : `string` Unique variant id defined by you. It can be alphanumeric. > > > > `price` *mandatory* > > : `integer` Price of the product in paise. > > > > `offer_price` *mandatory* > > : `integer` Final price charged to the customer in paise, after applying any adjustments, such as product discounts. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If no discount is applied, `price` and `offer_price` will be the same. > > > > `quantity` *mandatory* > > : `integer` Number of units added in the cart. > > > > `name` *mandatory* > > : `string` Name of the product. > > > > `description` *mandatory* > > : `string` Description of the product. > > > > `weight` *optional* > > : `integer` Weight of the product in grams. > > > > `dimensions` *optional* > > : `object` The dimensions of the product. > > > > `length` *optional* > > : `string` The length of the product in centimeters. > > > > `width` *optional* > > : `string` The width of the product in centimeters. > > > > `height` *optional* > > : `string` The height of the product in centimeters. > > > > `image_url` *mandatory* > > : `string` The URL of the product image. This parameter is mandatory if you want to display product images on our iframe. > > > > `product_url` *optional* > > : `string` URL of the product's listing page. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > [accordion] Response Parameters > > > > `id` > > : `string` The unique identifier of the order. > > > > `amount` > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. > > > > `partial_payment` > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `amount_paid` > > : `integer` The amount paid against the order. > > > > `amount_due` > > : `integer` The amount pending against the order. > > > > `currency` > > : `string` ISO code for the currency in which you want to accept the payment. The default length is 3 characters. > > > > `receipt` > > : `string` Receipt number that corresponds to this order. Can have a maximum length of 40 characters and has to be unique. > > > > `status` > > : `string` The status of the order. Possible values: > > > > * `created`: When you create an order it is in the `created` state. It stays in this state till a payment is attempted on it. > > * `attempted`: An order moves from `created` to `attempted` state when a payment is first attempted on it. It remains in the `attempted` state till one payment associated with that order is captured. > > * `paid`: After the successful capture of the payment, the order moves to the `paid` state. No further payment requests are permitted once the order moves to the `paid` state. The order stays in the `paid` state even if the payment associated with the order is refunded. > > > > `attempts` > > : `integer` The number of payment attempts, successful and failed, that have been made against this order. > > > > `notes` > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `created_at` > > : `integer` Indicates the Unix timestamp when this order was created. > > > > `line_items_total` > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > > > [accordion] Pre-discount Handling > > > > Line items total should equal the sum of individual item prices after your discounts are applied. When applying discounts, reduce both `amount` and `line_items_total` by the same amount: > > > > ```json Example theme={null} > > { > > "amount": 45000, // โ‚น500 - โ‚น50 discount = โ‚น450 > > "line_items_total": 45000, // Must match the discounted amount > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "prediscount_applied": "5000" // Track discount in paise > > }, > > "line_items": [ > > // ... your line items with original prices > > ] > > } > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Magic Checkout automatically handles all discount calculations on the UI. The system detects differences in checkout amounts and adjusts accordingly. > [accordion] 6 Interact with Shipping Info API > > This API should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. > > `POST /your-server-url/shipping-info-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // This is the receipt field set in the Razorpay order > "razorpay_order_id": "EKwxwAgItmmXdp", // This is the RZP order created without the `order_` prefix > "email": "", // Email field will be set if the customer enters an email > "contact": "+919900000000", // Customer phone number with country code > "addresses": [{ > "id": "0", > "zipcode": "560060", > "state_code": "KA", > "country": "IN" > }] > } > ``` > > ```json Response theme={null} > { > "addresses": [ > { > "id": "0", > "zipcode": "560000", > "state_code": "KA", > "country": "IN", > "shipping_methods": [ > { > "id": "1", > "description": "Free shipping", > "name": "Delivery within 5 days", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": true, > "cod_fee": 1000 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > }, > { > "id": "2", > "description": "Standard Delivery", > "name": "Delivered on the same day", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": false, > "cod_fee": 0 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > } > ] > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#5-create-an-order-in-server). > > > > `razorpay_order_id` *mandatory* > > : `string` Unique identifier for the order returned by Checkout. > > > > `email` *optional* > > : `string` Customer's email address. > > > > `contact` *mandatory* > > : `string` Customer's phone number. > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `state_code` *optional* > > : `string` The code of the state where the customer resides. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > [accordion] Response Parameters > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > > `shipping_methods` *mandatory* > > : `array` Details regarding the shipping methods. > > > > `id` *mandatory* > > : `string` Unique identifier of the shipping method. > > > > `description` > > : `integer` Brief description of the shipping method. > > > > `name` *mandatory* > > : `string` Name of the shipping method. > > > > `serviceable` *mandatory* > > : `boolean` Indicates whether you deliver orders to the zipcode entered by the customer. This is based on the ZIP codes you have added in the serviceability setting on the Razorpay Dashboard. Possible values: > > > > * `true`: Orders can be delivered to the added ZIP codes. > > * `false`: Orders cannot be delivered to the added ZIP codes. > > > > `shipping_fee` *mandatory* > > : `integer` Shipping charge in paise applicable to be paid by the customer. > > > > `cod` *mandatory* > > : `boolean` Indicates whether you support cash on delivery on this order. > > > > * `true`: COD payment method is supported. > > * `false`: COD payment method is not supported. > > > > `cod_fee` *mandatory* : `integer` Cash on Delivery fee charged in paise. This amount is based on the COD settings configured in your Razorpay Dashboard. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If the `cod` field is false, set the `cod_fee` field to 0. > [accordion] 7 Interact with Get Promotions API > > This API should return the list of promotions applicable for the given `order_id` and customer. > > `POST /your-server-url/create-promotions-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > "contact": "+919000090000", > "email": "" > }' > ``` > > ```json Response theme={null} > { > "promotions": [ > { > "code": "10%OFF", > "summary": "10% off on total cart value", > "description": "10% on total cart value upto โ‚น300" > }, > { > "code": "500OFF", > "summary": "โ‚น500 off on total cart value", > "description": "โ‚น500 off on a minimum cart value of โ‚น1500" > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#5-create-an-order-in-server). > > > > `contact` *optional* > > : `string` Customer's phone number. > > > > `email` *optional* > > : `string` Customer's email address. > > > [accordion] Response Parameters > > > > `promotions` *mandatory* > > : `array` Details of the promotions created. > > > > `code` *mandatory* > > : `string` Unique identifier of the promotion. > > > > `summary` *mandatory* > > : `string` Summary about the promotion. For example, 10% off on total cart value. > > > > `description` *optional* > > : `string` Brief description of the promotion. For example, 10% on total cart value upto โ‚น300. > > > [accordion] 7.1 Interact with Apply Promotions API > > > > This API should validate the promotion code applied by the customer and return the discount amount. > > > > `POST /your-server-url/create-promotions-api-path` > > > > ```bash Request theme={null} > > { > > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > > "contact": "+919000090000", > > "email": "", > > "code": "500OFF" > > }' > > ``` > > > > ```json Success Response theme={null} > > { > > "promotion": { > > "reference_id": "3rvff", > > "type": "offer", > > "code": "500OFF", > > "value": 50000, > > "value_type": "fixed_amount", > > "description": "New Year Sale Offer" > > } > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "failure_code": "LOGIN_REQUIRED", > > "failure_reason": โ€œpromotion Code has expired" > > } > > ``` > > > > > [accordion] Request Parameters > > > > > > `order_id` *mandatory* > > > : `string` Unique identifier of the order created [previously](#5-create-an-order-in-server). > > > > > > `contact` *optional* > > > : `string` Customer's phone number. > > > > > > `email` *optional* > > > : `string` Customer's email address. > > > > > > `code` *mandatory* > > > : `string` Promotion code used to avail discount on checkout. > > > > > [accordion] Response Parameters > > > > > > `promotion` *mandatory* > > > : `object` Used to pass all offer or discount-related information, including promotion code discount, method discount and so on. > > > > > > `reference_id` *mandatory* > > > : `string` Identifier of the offer you create. > > > > > > `code` *optional* > > > : `string` Promotion code used to avail discount on checkout. > > > > > > `type` *optional* > > > : `string` Type of offer. Possible values: > > > > > > * `coupon`: A discount applied by customers during checkout. For example, customers can use a coupon like `Diwali Sale 500 Off` to get โ‚น500 off the total cart value. > > > * `offer`: A promotion you create for your customers. For example, you create an offer `Buy 4 t-shirts and get 2 free`. In this case, when customers add 4 t-shirts to their cart, the 2 additional t-shirts will be automatically added for free. > > > > > > `value` *optional* > > > : `integer` The offer value that needs to be applied in paise. For example, if you want to offer a discount of โ‚น500, enter 50000. > > > > > > `value_type` *optional* > > > : `string` The type of value like: > > > > > > * `fixed_amount`: A fixed amount discount value in the currency of the order. For example, โ‚น500. > > > > > > * `percentage`: A percentage discount value. For example, 10%. > > > > > > * `BXGY`: Buy X and Get Y. For example, if you buy 2 t-shirts, you a get a cap for free or at a discounted value. > > > > > > > [!NOTE] > > > > > > > > **Handy Tips** > > > > > > > > Regardless of the `value_type`, the amount specified in the `value` parameter is applied as-is. For example, if `value_type` is percentage and the `value` is 5000, 5000 is considered in currency subunits (paise). > > > > > > `description` *optional* > > > : `string` Description of the promotion applied. For example, `New Year Sale Offer`. > > > > > [accordion] Error Code, Description and Next Steps > > > > > > | Code | Description | Next Steps | > > > | - | - | - | > > > | INVALID\_PROMOTION | The specified promotion code is not recognised or does not exist in the system. | Please verify the code and try again. | > > > | LOGIN\_REQUIRED | This coupon is specifically assigned to a registered customer. | To redeem it, the customer must log in to their account and authenticate their identity. | > > > | REQUIREMENT\_NOT\_MET | The current cart conditions do not meet the requirements for this promotion to be valid. For example, the promotion may require a minimum cart value of โ‚น1,000, but the cart total is โ‚น800. | Review the promotion's terms and adjust the cart contents accordingly. | > [accordion] 8 Pass Payment Options and Display Checkout Form > > Call `RazorpayCheckout.checkIntegration(withMerchantKey: )` to check the health of integration. This will also let you know if the SDK version is outdated. The opinionated alerting is displayed only when it is running on simulators. > > Add the following code to your `ViewController` or wherever you want to initialise payments: > > ```swift ViewController.swift theme={null} > internal func showPaymentForm(){ > let options: [String:Any] = [ > "key": "YOUR_KEY_ID", > "amount": "100", //This is in currency subunits. 100 = 100 paise= INR 1. > "currency": "INR",//We support more that 92 international currencies. > "description": "purchase description", > "order_id": "order_DBJOWzybf0sJbb", > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > "name": "business or product name", > "prefill": [ > "contact": "", > "email": "" > ], > "one_click_checkout": true, //magic checkout > "show_coupons": true, //magic checkout > "theme": [ > "color": "#F37254" > ] > ] > razorpay.open(options) > } > ``` > > ```objectivec ViewController.m theme={null} > - (void)showPaymentForm { // called by your app > NSDictionary *options = @{ > @"key": @"YOUR_KEY_ID", > @"amount": @"1000", //This is in currency subunits. 1000 = 1000 paise= INR 10. > // all optional other than amount. > @"currency": @"INR", //We support more that 92 international currencies. > @"image": @"https://url-to-image.jpg", > @"name": @"business or product name", > @"description": @"purchase description", > @"order_id": @"order_4xbQrmEoA5WJ0G", > @"prefill" : @{ > @"email": @"", > @"contact": @"" > }, > @"one_click_checkout": @"true", //magic checkout > @"show_coupons": @"true", //magic checkout > @"theme": @{ > @"color": @"#F37254" > } > }; > [razorpay open:options]; > } > ``` > > > [!NOTE] > > > > **Optional Parameter - displayController** > > > > When the optional parameter- displayController, is specified, the Razorpay controller is pushed onto this controller's navigation controller if present or presented on this controller if absent. > > > > ``` > > razorpay.open(options, displayController: self) > > ``` > > > [accordion] Checkout Options > > > > `key` *mandatory* > > : `string` API key id generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` The amount to be paid by the customer in currency subunits. For example, if the amount is โ‚น500, enter `50000`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. Length must be of 3 characters. > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order id generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > > * `card` > > * `netbanking` > > * `wallet` > > * `upi` > > * `cod` > > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `show_coupons` *optional* > > : `boolean` Determines whether to show the coupons to customer on the checkout. Possible values: > > > > * `true` (default): Enables the Coupon feature. > > * `false`: Disables the Coupon feature. > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > You must pass these parameters in Checkout to initiate the payment. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To support theme colour in the progress bar, please pass HEX colour values only. > > > [accordion] 8.1 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > > > > ### UPI Intent on Recurring Payments > > > > Configure and initiate a recurring payment transaction on UPI Intent: > > > > ```swift ViewController.swift theme={null} > > let options: [String:Any] = [ > > "key": "YOUR_KEY_ID", > > "order_id": "order_DBJOWzybfXXXX", > > "customer_id": "cust_BtQNqzmBlXXXX", > > "prefill": [ > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com" > > ], > > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > "amount": 10000, // Amount should match the order amount > > "currency": "INR", > > "recurring": 1 // This key value pair is mandatory for Intent Recurring Payment. > > ] > > ``` > > > > ```objectivec ViewController.m theme={null} > > NSDictionary *options = @{ > > @"key": @"YOUR_KEY_ID", > > @"order_id": @"order_DBJOWzybfXXXX", > > @"customer_id": @"cust_BtQNqzmBlXXXX", > > @"prefill": @{ > > @"contact": @"+919000090000", > > @"email": @"gaurav.kumar@example.com" > > }, > > @"image": @"https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > @"amount": @(10000), // Amount should match the order amount > > @"currency": @"INR", > > @"recurring": @(1) // This key value pair is mandatory for Intent Recurring Payment. > > }; > > ``` > [accordion] 9 Handle Success and Error Events > > After completing payment, you can handle success or error events by implementing `onPaymentSuccess` and `onPaymentError` methods of the `RazorpayPaymentCompletionProtocol`. > > Alternatively, you can implement `onPaymentSuccess` and `onPaymentError` methods of `RazorpayPaymentCompletionProtocolWithData`. > > > [accordion] RazorpayPaymentCompletionProtocol > > > > ```swift ViewController.swift theme={null} > > extension CheckoutViewController : RazorpayPaymentCompletionProtocol { > > > > func onPaymentError(_ code: Int32, description str: String) { > > print("error: ", code, str) > > self.presentAlert(withTitle: "Alert", message: str) > > } > > > > func onPaymentSuccess(_ payment_id: String) { > > print("success: ", payment_id) > > self.presentAlert(withTitle: "Success", message: "Payment Succeeded") > > } > > } > > ``` > > > > ```objectivec ViewController.m theme={null} > > - (void)onPaymentSuccess:(NSString *)payment_id { > > [self showAlertWithTitle:SUCCESS_TITLE > > andMessage:[NSString > > stringWithFormat:SUCCESS_MESSAGE, payment_id]]; > > } > > > > - (void)onPaymentError:(int)code description:(NSString *)str { > > [self showAlertWithTitle:FAILURE_TITLE > > andMessage:[NSString > > stringWithFormat:FAILURE_MESSAGE, code, str]]; > > } > > ``` > > > [accordion] RazorpayPaymentCompletionProtocolWithData > > > > ```swift ViewController.swift theme={null} > > extension CheckoutViewController: RazorpayPaymentCompletionProtocolWithData { > > > > func onPaymentError(_ code: Int32, description str: String, andData response: [AnyHashable : Any]?) { > > print("error: ", code) > > self.presentAlert(withTitle: "Alert", message: str) > > } > > > > func onPaymentSuccess(_ payment_id: String, andData response: [AnyHashable : Any]?) { > > print("success: ", payment_id) > > self.presentAlert(withTitle: "Success", message: "Payment Succeeded") > > } > > } > > ``` > > > > ```objectivec ViewController.m theme={null} > > - (void)onPaymentError:(int32_t)code description:(NSString * _Nonnull)str andData:(NSDictionary * _Nullable)response { > > NSLog(@"%@ %@",str, response); > > } > > - (void)onPaymentSuccess:(NSString * _Nonnull)payment_id andData:(NSDictionary * _Nullable)response { > > NSLog(@"%@ %@",payment_id, response); > > } > > ``` > > After completing the payment, add necessary actions based on success or error events. > > **Failure Codes**: > > * 0: Network error > * 1: Initialization failure / Unexpected behaviour > * 2: Payment cancelled by the user > > Success handler receives `payment_id` that you can use later for capturing the payment. > [accordion] 10 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 11 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > [accordion] 12 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. > [accordion] 13 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. You can make test payments using one of the payment methods configured at the Checkout. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > [accordion] Supported Payment Methods > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Cash on Delivery](/docs/payments/payment-methods/cod) | `cod` | Requires [Integration](/docs/payments/payment-methods/cod#prerequisites). | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > ### Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > ### UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the following lists: > > * [Supported UPI Flows](/docs/payments/payment-methods/upi). > > * [UPI Error Codes](/docs/errors/payments/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > ### Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > #### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > * [Test Error Scenarios](/docs/payments/payments/test-card-details#error-scenarios). > > #### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > ### Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Magic Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ## Related Information [iOS Standard Integration](/docs/payments/payment-gateway/ios-integration/standard) # Login With Razorpay Setup (SSO) Source: https://razorpay.com/docs/payments/magic-checkout/login-with-razorpay Boost conversions and gain customer insights with Magic SSO. Simplify login and create personalised shopping experiences for your Shopify store. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay Magic SSO (Single Sign-On) offers a seamless login experience, helping you enhance conversions and gain valuable insights into user behaviour. > [!WARNING] > > **Watch Out!** > > This feature is available only for Shopify users. > [accordion] Advantages > > * **Seamless Login and Personalisation**: OTP-based login with incentives like discounts, enabling auto-login across stores for a frictionless and personalised experience. > * **Expanded Customer Data and Insights**: Higher login rates provide you with deep insights into customer behaviour before checkout, improving engagement and retention. > * **Improved Conversion Rates**: Pre-logged-in users experience smoother checkouts, early coupon discovery, and personalised offers, driving higher sales. > * **Stronger Abandoned Cart Recovery**: Captures abandoned carts before checkout, allowing you to re-engage users who showed purchase intent. > * **Customisable and Compliant**: Fully brandable UI with explicit consent collection for retargeting, ensuring compliance and trust. ## Get Started Follow the steps given below: 1. Log in to the Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings**. 2. Navigate to **Login with Razorpay Setup**. 3. We will verify the following eligibility requirements with your Shopify store: > [accordion] Shopify Store Eligibility > > If your store is on Shopify's base plan and is not eligible, you must upgrade your plan. Follow the steps given below: > > 1. Log in to the [Shopify Store](https://accounts.shopify.com/store-login) and navigate to **Settings** โ†’ **Plan**. > 2. Choose an upgraded plan and complete the payment. > 3. Recheck the Razorpay Dashboard, you will now be eligible to enable Login with Razorpay. > [accordion] Legacy Customer Accounts > > Follow the steps given below to configure your legacy customer settings: > > 1. Log in to the [Shopify Store](https://accounts.shopify.com/store-login) and navigate to **Settings** โ†’ **Customer accounts**. > 2. In the **Login Links** section, select **Legacy**. > 3. Click **Switch to legacy customer accounts** to confirm. > 4. On the home page, navigate to **Online Store** โ†’ **Preferences** in the **Sales channels** section. > 5. Scroll down to the **Spam Protection** section and disable the **Enable on login, create account and password recovery pages** setting. > 6. Click **Save**. > [accordion] Enable Login Settings > > Follow the steps given below to configure your Shopify login settings: > > 1. Log in to the [Shopify Store](https://accounts.shopify.com/store-login) and navigate to **Online Store** โ†’ **Preferences** in the **Sales channels** section. > 2. Scroll down to the **Spam Protection** section and disable the **Enable on login, create account and password recovery pages** setting. > 3. Click **Save**. > [accordion] Razorpay App Configuration > > Follow the steps given below if your Razorpay app is unable to create or merge customer: > > 1. Log in to the [Shopify Store](https://accounts.shopify.com/store-login) and navigate to **App and Sales** in the **Sales channels** section. > 2. Click **Develop apps** and open the **Magic Checkout** app. > 3. Click **configuration** โ†’ **Edit Admin API Integration** > 4. Search for **customer** and select **Write\_Customer** and **read\_customer**. > 5. Search for **Merge** and select **Write\_customer\_merge** and **read\_customer\_merge**. > 6. Click **Save**. ## Video Tutorial Watch this video for a step-by-step walkthrough on enabling Login with Razorpay (SSO) on your Shopify store. [Enable Login with Razorpay (SSO)](https://www.youtube.com/embed/VodJW26ehYI) ## Enable Login with Razorpay Setup Set up easy login into your website with single sign-on for your customers across the Razorpay network. To enable login with Razorpay setup: 1. Log in to the Dashboard navigate to **Magic Checkout** โ†’ **Setup & Settings**. 2. Navigate to **Login with Razorpay Setup**. 3. Turn on **Enable Login with Razorpay**. ![Enable Login with Razorpay](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-enable.jpg) 4. You will be able to view the following options for the SSO widget: * [Settings](#settings) * [Customise](#customise) ![Settings and customisation options on SSO](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-settings.jpg) > [!WARNING] > > **Watch Out!** > > If you have added a custom domain for the account page, SSO will not work. You must revert to the default domain for the SSO settings to function. ### Video Tutorial Watch this video to know how to customise the Login with Razorpay (SSO) widget. [Customise Login with Razorpay (SSO)](https://www.youtube.com/embed/8A7G7S0jUHA) ### Settings You can configure the following: > [accordion] Where should we display login screen? > > Select where you want to show the login screen, if the user is not logged in. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a multi select configuration, if a customer does not login the first time a login screen is dispayed, the login screen will reappear based on the options you select below. > > * **The first page your customer sees**: Useful for encouraging early login during browsing. Select the checkbox and schedule when the login widget shows up (in seconds). For example, show the login widget 5 seconds after the page loads. > * **When a customer adds their very first item to the cart**: Prompt login after the customer adds their first item to the cart. Select the checkbox and schedule when the login widget should show up (in seconds). > * **When a customer begins the checkout process**: Display the login screen when they proceed to checkout, just before payment. Select the checkbox. > * **Make Login mandatory pre-Checkout**: Ensure that users cannot proceed to checkout without logging in. Select the checkbox to enforce mandatory login. > > ![Display login screen](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-display-login.jpg) > [accordion] Ask consent from customer for marketing communication > > Select how you want to seek permission from your customer for marketing communication. > > * **Single selector for Email, WhatsApp, and SMS**: Use one unified checkbox to capture consent for all three channels together. > * **Separate selectors for Email, WhatsApp, and SMS**: Use separate checkboxes to capture consent for each channel individually. > * **Do not ask for consent**: No explicit consent prompt is displayed for marketing communications. > > ![Ask consent from customer for marketing communication](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-ask-consent.jpg) > [accordion] Collect missing emails from everyone > > You can choose to collect missing emails during the login. > > * **Email-Less Customers**: Allow users to log in without providing an email address. > * **Collect Missing Emails (recommended)**: Prompt users to enter their email during login if it is not already available. > > ![Collect missing emails](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-collect-emails.jpg) After completing the configuration, click **Save Changes** to apply the updates. > [!NOTE] > > **Handy Tips** > > The widget includes a consent prompt for users at the bottom, with terms and conditions listed. ### Customise Customise the widget to suit your brand. The default configuration flows from the configurations on checkout settings. 1. In the **Customise** section, the preview turns into edit mode. You can edit the following: > [tab] Widget Heading > > Enter the widget heading as per your preference. > > ![Edit widget heading](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-widget-heading.gif) > [tab] Emojis > > Hover over the emoji you want to change and click the edit icon. Press `Command + Control + Space` to open the emoji picker and select your preferred emoji. > > ![change emojis](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-emoji.gif) > [tab] Change Background Colour > > Click **Change Background Colour** and choose a colour of your choice. > > ![Customise background colour](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-background-colour.gif) > [tab] Change Button Colour > > Click **Change Button Colour** and choose a colour of your choice. > > ![Customise button colour](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-button-colour.gif) > [tab] Change Font > > Click **Change Font** and choose a font of your choice from the drop-down list. > > ![Change Font](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-font.gif) 2. Click **Save**. > [!NOTE] > > **Handy Tips** > > * You can switch between mobile and desktop views to preview changes. > * You can also preview how the widget will appear on **Live Mode**. > > ![Mobile/Desktop view and Live Mode](https://razorpay.com/docs/build/browser/assets/images/cod-magic-sso-view-mode.jpg) ## Login Rewards You can offer discounts or coupons to encourage customers to log in to your website. > [!NOTE] > > **Handy Tips** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. Ensure your coupon is created on the [Coupon Engine](/docs/payments/magic-checkout/shopify/features#coupons) and include the following details in your request: > > * Coupon code > * A brief description > * Any additional message you want to display ### Related Information * [Automatic Customer Tagging for Retargeting](/docs/payments/magic-checkout/login-with-razorpay/automation-tags) * [Customer Analytics](/docs/payments/magic-checkout/login-with-razorpay/customer-analytics) # Automatic Customer Tagging for Retargeting Source: https://razorpay.com/docs/payments/magic-checkout/login-with-razorpay/automation-tags Razorpay SSO automatically tags customers in Shopify to enable personalised retargeting campaigns and targeted marketing workflows. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India When customers authenticate through [Login with Razorpay (SSO)](/docs/payments/magic-checkout/login-with-razorpay) on your Shopify store, specific tags are automatically assigned to their profiles. These tags provide automation capabilities that enhance your marketing efforts and improve customer engagement. > [accordion] Advantages > > * **Zero Additional Cost**: This feature is included with your Magic Checkout integration. > * **Boost Revenue**: Create targeted marketing campaigns that convert more effectively. > * **Time Saving**: Automate customer journeys that would otherwise require manual segmentation. > * **Seamless Integration**: Works with your existing marketing tools and Shopify workflows. ## List of Tags **Login with Razorpay** automatically applies the following tags to customer profiles in Shopify: | Tag | Description | | - | - | | **MAGIC\_LOGIN\_AUTO** | Applied when returning customers are automatically identified without additional input. | | **MAGIC\_LOGIN\_MANUAL** | Applied when customers manually authenticate using an OTP. | | **LOGIN\_TIMESTAMP** | Records the exact store visit time in ISO format. | | **MAGIC\_CUSTOMER** | Identifies customers whose accounts were created through Razorpay Magic. | ### Example: Customer Journey with Tags These tags enable automation possibilities for your store. Create personalised retargeting flows based on login behaviour: * Send WhatsApp messages to customers tagged with `MAGIC_LOGIN_AUTO` who have not completed a purchase in 7 days. * Offer special promotions to customers with `MAGIC_LOGIN_MANUAL` tags who abandoned their carts. * Use `LOGIN_TIMESTAMP` to trigger time-sensitive offers after login events. #### Example Setup This example demonstrates how to create an automated campaign to re-engage customers who have not placed orders recently. [Example: Customer Journey with Tags](https://www.youtube.com/embed/hrXRNUWjIyU) Follow the steps given below: 1. **Customer Identification**: * Customer logs in (automatically/manually through Magic). * System automatically assigns `Magic_login` tag. 2. **Segment Creation**: * Create segment: Customers who have not placed an order since February. * This segment dynamically updates as customer behaviour changes. 3. **Campaign Rule**: If customer has **Magic\_login** tag and customer belongs to **No orders since February** segment then send an **Email**. #### Additional Campaign Possibilities The system supports unlimited automation combinations based on your requirements. Common use cases include: > [tab] Product Interest Campaigns > > * Customer identified + viewed specific items โ†’ send targeted coupon. > * Customer identified + browsed category multiple times โ†’ send category-specific offers. > [tab] High-Value Customer Recovery > > * Customer identified + no order in 3 days โ†’ send premium re-engagement message. > * Customer identified + high purchase frequency + recent inactivity โ†’ send personalised offers. > [tab] Behavioural Trigger Campaigns > > * Customer identified + 4 website visits in 7 days + abandoned checkout + no order in 5 days โ†’ send discount coupon. > * Customer identified + repeated product views + no purchase โ†’ send limited-time offer. ## Compatible Automation Tools Leverage Razorpay Shopify tags with various automation platforms: * **Shopify Flow**: Create conditional workflows using the login tags as triggers. * **Zapier**: Connect to hundreds of apps based on tag events. * **WhatsApp Business Solutions**: Trigger customer communications based on tag status. * **Email Marketing Tools**: Create segments based on login behaviour. For advanced use cases, combine multiple tags to create targeted customer segments with specific behaviours and attributes. ### Related Information [Customer Analytics](/docs/payments/magic-checkout/login-with-razorpay/customer-analytics) # Customer Analytics Source: https://razorpay.com/docs/payments/magic-checkout/login-with-razorpay/customer-analytics Track customer login activity, account creation, and checkout behaviour with the Customer Analytics Dashboard. Export detailed user data to drive targeted marketing and engagement campaigns. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India When customers authenticate through [Login with Razorpay (SSO)](/docs/payments/magic-checkout/login-with-razorpay), their activity is captured in the **Customer Analytics** dashboard. It displays login metrics, account creation data, and customer-level insights to help you track engagement, understand user behaviour, and retarget high-intent customers across marketing channels. > [accordion] Advantages > > * **Understand customer behaviour**: View detailed metrics on login patterns, account creation, and last order placed. > * **Enable targeted outreach**: Identify users who dropped off during checkout and re-engage them via custom campaigns. > * **Drive marketing automation**: Export data seamlessly into third-party tools for automated messaging and performance ads. > * **Consolidate key metrics**: Access all customer login and engagement data in a single, streamlined dashboard view. ## Get Started Follow the steps given below to view insights about the various activities: 1. Log in to the Dashboard. 2. Navigate to **Magic Checkout** โ†’ **Reports & Analytics** โ†’ **Customer Analytics**. ![SSO Customer Analytics](https://razorpay.com/docs/build/browser/assets/images/magic-sso-analytics.jpg) ## Dashboard Overview The **Customer Analytics** dashboard provides the following widgets: * **Total Logged-in Users**: Displays the cumulative number of users who have logged in using [Login with Razorpay (SSO)](/docs/payments/magic-checkout/login-with-razorpay). This gives you a glipmse of how many unique users have engaged with your store through SSO. * **New Account Creations**: Displays the number of new customer accounts created via SSO during the selected date range. This helps track how many users are converting from guest visitors to registered customers. * **Login Trends - Total Login vs New Users**: Displays daily login activity, comparing total logins to new users. This helps identify patterns in user engagement and determine whether returning customers or new visitors are driving traffic. * **Customer Login Data**: A detailed table of all users who have logged in via SSO. You can view key attributes for each user and use this data to build segments or trigger marketing actions. It includes the following fields: * **Customer Details**: Customer id. * **Phone**: Phone number associated with the customer's SSO profile. * **Email**: Email address used during login or account creation. * **First Login**: Date when the customer first logged in using **Login with Razorpay**. * **Last Login**: Most recent date the customer logged in in the selected time range. * **Frequency**: Total number of times the customer has logged in in the selected time range. This helps identify highly engaged users. * **UTM Source**: Captures the marketing source (like a campaign or referral link) that led to the user login. * **Last order**: Date of the customer's most recent successful order. * **Abandoned Checkout**: Indicates whether the customer initiated checkout but did not complete the payment. This helps in identifying high-intent users who may be open to retargeting. ![Customer details for retargeting](https://razorpay.com/docs/build/browser/assets/images/magic-sso-analytics-customer-details.jpg) > [!NOTE] > > **Handy Tips** > > * Select a customer id to view a detailed breakdown of their login activity, contact information, order history, and checkout behaviour. > > ![Customer detail view in Login with Razorpay dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-sso-analytics-customer-details-view.jpg) > * Click **Export** to download customer data. You can then upload the file to platforms like Google Ads, Facebook, or a WhatsApp solution to automate retargeting or run manual campaigns. ### Related Information [Automatic Customer Tagging for Retargeting](/docs/payments/magic-checkout/login-with-razorpay/automation-tags) # Inventory and Stock Settings Source: https://razorpay.com/docs/payments/magic-checkout/order-settings/inventory-stock Configure how Magic Checkout handles out-of-stock items during order placement on Shopify. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India When a customer completes payment on Magic Checkout, there is a small window between payment confirmation and final order placement on Shopify during which an item in the cart may go out of stock. This feature lets you control what happens in this scenario. By default, Magic Checkout does not place the order on Shopify if an item goes out of stock after payment is collected and the customer is automatically refunded. If you intend to service all paid orders regardless of stock status, you can enable this setting to place the order on Shopify irrespective of stock availability. ## How It Works To configure inventory and stock settings: 1. Log in to the Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Order Settings**. 2. In the **Inventory & Stock** section, toggle on **Continue to place order when items are out of stock**. * **Enabled**: The order is placed on Shopify even if an item goes out of stock after payment is collected. Use this if you intend to service all paid orders regardless of stock status. * **Disabled (Default)**: If an item is out of stock at the time of order placement, the order is not created on Shopify and the customer is automatically refunded. ![Inventory and stock settings for out of stock products](https://razorpay.com/docs/build/browser/assets/images/magic-shopify-out-of-stock.jpg) > [!WARNING] > > **Watch Out!** > > If you disable this setting, customers who have already completed payment will receive an automatic refund and their order will not be placed. Ensure this aligns with your refund and fulfilment policies before making changes. # Convert COD Orders to Prepaid Source: https://razorpay.com/docs/payments/magic-checkout/order-settings/prepay-cod Send your customers a Conversion Link via WhatsApp to convert COD orders to prepaid with Razorpay Magic Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Cash on Delivery transactions are popular in India. However, they can result in a higher return rate due to less customer commitment. With Magic Checkout, you can urge customers who chose cash on delivery while placing an order to convert to prepaid by offering discounts or incentives post-order placement. You can do this by sending your customers a conversion link via WhatsApp to convert COD orders to prepaid. > [!NOTE] > > **Dependencies** > > * This is an on-demand feature. Write to us at [magic-checkout-support@razorpay.com](mailto:magic-checkout-support@razorpay.com) to get this feature enabled for your account. > * This feature is available only if you use [Shopify](/docs/payments/magic-checkout/shopify) or [WooCommerce](/docs/payments/magic-checkout/woocommerce) (v4.3.5 and above) plugin. > [accordion] Advantages > > * **Increase Order Commitment**\\ > > Since customers have already paid upfront, prepaid orders reduce the likelihood of cancellations or returns. > > * **Reduce RTO**\\ > > Customers who invest their money are more likely to be satisfied with their purchases, leading to a decrease in RTO orders. > > * **Streamline Operations**\\ > > Shifting to prepaid orders simplifies order fulfillment, reducing operational burdens and errors associated with cash handling and returns management. > > * **Enhance Customer Trust**\\ > > Offering discounts or incentives for prepaid orders builds customer trust and loyalty, fostering a positive brand impression and increasing the likelihood of repeat purchases. ## Configure Conversion Link Follow the steps given below: 1. Log in to the Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings**. 2. Navigate to **COD Setup** โ†’ **Convert COD to Prepaid**. 3. Click **Convert COD to Prepaid**. ![Navigate to convert COD to prepaid on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-prepay-cod.jpg) > [!NOTE] > > **Manually Review COD Orders** > > The **Enable conversion for** field will appear if you enable the [Manually review COD orders](/docs/payments/magic-checkout/order-settings/review-cod-orders) feature. The COD conversion will be based on the type of RTO risk. > > ![Enable conversion field for manual review](https://razorpay.com/docs/build/browser/assets/images/magic-prepay-cod-manual-review.jpg) 4. Enable **Discount** to add a flat or percentage discount to the total COD order amount. Adding a discount increases the probability of conversion by up to 30%. Select the type of discount you want to apply: > [!WARNING] > > **Watch Out!** > > Discount applied on the order amount excludes shipping and COD fee. > [tab] Flat Discount > > In this type, a fixed amount is deducted from the original amount. > > * **Discount value**: Enter an amount by which the original price should be reduced. For example, if โ‚น150 is the flat discount applied, โ‚น150 is deducted from the original price. > * **Minimum order value**: Enter the minimum bill amount for which the discount can be applied. For example, if you enter โ‚น800, the discount is applied to orders whose bill amount is โ‚น800 or above. > > ![offer flat discount](https://razorpay.com/docs/build/browser/assets/images/magic-prepay-flat.jpg) > [tab] Percentage Discount > > In this type, the offer is calculated in percentage. > > * **Discount percentage**: The percentage by which the original price should be reduced. For example, if 10 is the percentage discount to be applied, on an order amount of โ‚น900, โ‚น90 will be deducted. > * **Maximum discount**: The maximum amount that can be deducted from the bill amount. For example, you can ensure that the customer cannot avail of a discount higher than โ‚น500, irrespective of the order amount. > * **Minimum order value**: Enter the minimum bill amount for which the offer can be applied. For example, if you enter โ‚น800, the discount is applied to orders whose bill amount is โ‚น800 or above. > > ![offer percentage discount](https://razorpay.com/docs/build/browser/assets/images/magic-prepay-percentage.jpg) 5. Select the **Order conversion validity** based on your requirement. Customers will not be able to convert COD orders to prepaid post validity. For example, if you set the order conversion validity to 15 minutes, customers cannot convert COD orders to prepaid 15 minutes after sending the conversion link. > [!NOTE] > > **Handy Tips** > > We recommend setting the order conversion validity below your average shipping start time. Customers should not be able to convert COD orders to prepaid after the order is shipped. 6. You can convert orders only on **WhatsApp message**. Customers will receive the conversion link based on your selected option. 7. Click **Save settings**. > [!WARNING] > > **WooCommerce API Credentials** > > If you are a WooCommerce user and have not opted for the [Manually review COD orders](/docs/payments/magic-checkout/order-settings/review-cod-orders) feature, you must provide your **WooCommerce API credentials** to enable us to send the conversion links to your customers. > > ![Submit API keys to enable conversion links](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-submit-keys.jpg) > [!WARNING] > > **WhatsApp Message Limitations** > > * WhatsApp notifications for COD to prepaid conversion are subject to Meta's daily messaging limits of **5-6 marketing messages per customer**. > * If customers have already received their daily limit of marketing messages from any WhatsApp Business account, COD to prepaid notifications may fail to deliver. > * This is expected behavior due to Meta's WhatsApp Business API policies and affects all platforms using WhatsApp marketing messages, not specific to Razorpay. ## Conversion States After you send the conversion link to your customers, you can filter the search by Order Id and track the conversion status on the Dashboard. Navigate to **Magic Checkout** โ†’ **COD Order Conversion**. ![View order Id and conversion status on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-prepay-status.jpg) > [accordion] List of Conversion States > > The table below lists the various conversion states and their descriptions: > > | Status | Description | > | - | - | > | Conversion Link Sent | Indicates that the conversion link is sent. | > | Converted To Prepaid | Indicates that the customer successfully converted the order to prepaid. | > | Auto Expired | Indicates that the link expired based on the order conversion validity (expiry time). | > | Manually Expired | Indicates that you manually expired the link from the Dashboard. | > | Failed To Send Link | Indicates that the link is not sent to the customer due to technical issues or since the customer is not on WhatsApp. | > > > [!NOTE] > > > > **Conversion Link Sent State** > > > > When the link is in the **Conversion Link Sent** state, you can choose to expire the link manually. Follow the steps given below: > > > > 1. In the **COD Order Conversion** tab, select the **Order Id** for which you want to expire the conversion link. > > 2. Under **Actions**, click the clock icon. > > > > ![Manually expire the conversion link](https://razorpay.com/docs/build/browser/assets/images/magic-prepay-expire.jpg) > > 3. Click **Expire Link** to confirm your action. ## Customer Experience Customers view the conversion link on WhatsApp sent via Razorpay's WhatsApp handle and can choose to prepay for the order. ![View Conversion link on WhatsApp](https://razorpay.com/docs/build/browser/assets/images/magic-prepay-link.jpg) ### Edit Display Name *(Optional)* You can change the business name displayed on the WhatsApp message to a name that your customers are familiar with. For example, if **Acme Corp's** official business name is XYZ Technologies, but customers know them as Acme Corp, we recommend using **Acme Corp** as the display name. > [accordion] To edit the display name: > > 1. Log in to the Dashboard and navigate to **Account & Settings**. > 2. In the **Business settings** section, select **Account details**. > > ![Edit Account details on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-settings.jpg) > 3. Click **Edit** and modify the name. > > ![Edit Display name](https://razorpay.com/docs/build/browser/assets/images/magic-setting-edit-display-name.jpg) # About Manual Review of COD Orders Source: https://razorpay.com/docs/payments/magic-checkout/order-settings/review-cod-orders Manually review COD orders with Razorpay Magic Checkout and take necessary actions based on our recommendations post-order placement to reduce RTOs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can manually review COD orders and take necessary actions based on our recommendations post-order placement to filter out potential RTOs. #### Features * Manually review COD orders to filter out potential RTO orders. * Take necessary actions on COD orders based on the insights. * Evaluate orders on priority based on the risk levels. ## How it Works Follow the steps given below: 1. Log in to the Dashboard. 2. Navigate to **Magic Checkout**. 3. Select the platform of your e-commerce website, enter the relevant details and click **Next**. 4. Navigate to **RTO Reduction Setup** โ†’ **RTO Reduction**. 5. Toggle on **Manually review COD orders**. > [!WARNING] > > **Watch Out!** > > You can either opt for the automated option by enabling COD intelligence or manually review COD orders. ![Opt for Manual Review on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-enable-manual-review.jpg) 6. Enter the required details based on the platform of your e-commerce website to align your actions performed on the Razorpay Dashboard with your e-commerce platform. > [tab] Shopify > > No additional configuration is required to enable manual review. > [tab] WooCommerce > > Enter the **Consumer Key** and **Secret**. Follow the steps given below: > > 1. Log in to the [WordPress account](https://wordpress.com/log-in) and navigate to **WooCommerce** โ†’ **Settings**. > 2. Navigate to **Advanced** โ†’ **REST API**. > 3. Click **Add key**. > > ![REST APIs](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-rest-api.jpg) > 4. Enter the required details and click **Generate API Key**. > > ![Generate keys](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-generate-apis.jpg) > 5. Copy the API keys and paste them onto the Razorpay Dashboard. Click **Submit**. > > ![Submit keys on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-submit-keys.jpg) > [tab] Custom E-Commerce > > Enter the **URL to review orders API**, **User name** and **Password**. To generate the URL, click **instructions** and follow the steps. Copy the information and paste it on the Razorpay Dashboard. Click **Submit**. > > ![Submit Keys on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-ecommerce-platform-submit.jpg) 6. Click **Enable manual review**. The COD option is enabled for all customers. You can now review the COD orders and take the necessary actions. ## Review COD Orders Once you enable manual review for orders, navigate to **Orders** โ†’ **COD Order Conversion** on the Razorpay Dashboard. Under this section, you can review all the COD orders and take relevant actions. The list gets populated with orders as and when customers place an order for COD. * You can view the **Razorpay Order ID**, **Receipt**, **Date** when the order was placed and **RTO risk** level. * Click on a particular **Order ID** to view the **Risk Reasons**, **recommendations** and **Customer Details**. ![Select order id to view the risk reasons, recommendations and customer details](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-risk.jpg) Based on the **Risk Reasons** and our recommendation, you can take the following actions: > [accordion] Approve Order > > There are no changes in the order. It indicates that you have reviewed the order but chose not to take action. Click the **approve icon** to approve the order. > > ![Approve order based on the risk level](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-approve-order.jpg) > [accordion] Cancel Order > > You can cancel the order based on the risk level and our recommendation. For example, if we have noticed a high return behaviour associated with this order; we recommend cancelling the order. The order status will change to cancelled on the COD orders tab and your [e-commerce platform](/docs/payments/magic-checkout/order-settings/review-cod-orders#e-commerce-platform). Click the **cancel icon** to cancel the order. > > ![Cancel Order based on the risk level](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-cancel-order.jpg) > [accordion] Mark Order On Hold > > It indicates that you have reviewed the order but have not decided what action to take. For example, if the address on order is incorrect, you might want to contact the customer and clarify the details. You can put the order on hold, review the order post clarification and decide if you want to approve or cancel the order. Click the **on hold icon** to put the order on hold. > > ![On hold order based on the risk level](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-hold-order.jpg) You can view the orders in the respective tabs, **Approved Orders**, **Canceled Orders** and **On Hold Orders**. ![View the order in the respective tabs](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-review-orders-tabs.jpg) ## E-Commerce Platform Based on the action on the Razorpay Dashboard, the order status changes on your e-commerce platform as well. > [accordion] WooCommerce Dashboard > > Refer to the order states given below: > > | Action on Razorpay Dashboard | Status on WooCommerce Dashboard | > | - | - | > | Approved Orders | `Processing` | > | Canceled Orders | `Failed` | > | On Hold Orders | `On hold` | > > ![WooCommerce order status based on the actions on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-rto-orders-woocommerce-status.jpg) > [accordion] Shopify Dashboard > > Refer to the order states given below: > > | Action on Razorpay Dashboard | Status on Shopify Dashboard | > | - | - | > | Approved Orders | No change, remains `Paid` | > | Canceled Orders | Strike through | > | On Hold Orders | `hold` tag in the **Tags Section** | > > ![Shopify order status based on the actions on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-rto-orders-shopify-status.jpg) ### Related Information [COD Review Workflow](/docs/payments/magic-checkout/order-settings/review-cod-orders/workflow) # COD Orders Review Workflow Source: https://razorpay.com/docs/payments/magic-checkout/order-settings/review-cod-orders/workflow Configure workflows to automate the actions on the COD orders based on the RTO risk level using Razorpay Magic Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Reviewing and acting upon COD orders manually can be time-consuming. With the automation feature, you can configure workflows to approve, hold or cancel COD orders based on the RTO risk levels. > [!WARNING] > > **Watch Out!** > > You can access the **COD Orders Review Workflow** feature only if you opt for [manual review of COD orders](/docs/payments/magic-checkout/order-settings/review-cod-orders). ## How it Works Follow the steps given below to configure the COD review workflow: 1. Log in to the Dashboard. 2. Navigate to **Magic Checkout** โ†’ **Orders**. 3. In the **Manual Review of COD Orders** tab, click **Automate now**. This redirects you to the **COD Review Workflow** field in the **Setup & Settings** section. > [!NOTE] > > **Handy Tips** > > **COD Review Workflow** section appears only if you opt for the manual review of COD orders. 4. Select the **Type of RTO risk** and its corresponding action from the drop-down list. ![Add risk and the corresponding action](https://razorpay.com/docs/build/browser/assets/images/magic-automate-config.jpg) > [!WARNING] > > **Watch Out!** > > * You can only assign one action to each specific **Type of RTO risk**. For example, if you identify a risk as **High** and choose the action to **Cancel the order** to handle that risk, you cannot add any additional actions for that specific type of risk. > * However, you can use the same action, such as **Cancel the order** for multiple types of RTO risks, such as **Medium risk**. 5. Click **+ Add more conditions** to add more types of RTO risk and its corresponding action if required. 6. Click **Save settings**. > [accordion] Edit Workflow Conditions *(Optional)* > > Follow the steps given below to edit the conditions: > > 1. Log in to the Dashboard. > > 2. Navigate to **Magic Checkout**. > > 3. Select the platform of your ecommerce website from the drop-down list and click **Next**. > > > [!NOTE] > > > > **Handy Tips** > > > > This feature is available for your Custom ecommerce platform, [WooCommerce website](/docs/payments/payment-pages) and [Shopify store](/docs/payments/payment-pages). > > 3. Click **COD Review Workflow**. > 4. Click **Edit** to modify the conditions based on your requirement. > > ![Edit automation conditions based on your requirement](https://razorpay.com/docs/build/browser/assets/images/magic-automate-edit.jpg) > 5. Click **Save settings**. > [accordion] Remove a Workflow > > Follow the steps given below to remove the review workflow conditions: > > 1. In the **COD Review Workflow** section, click the cancel icon. > > ![Remove Automation](https://razorpay.com/docs/build/browser/assets/images/magic-remove-automation.jpg) > 2. Click **Yes, Remove** to remove all the the COD review workflow conditions. # Integrate Magic Checkout on React Native Android App Source: https://razorpay.com/docs/payments/magic-checkout/react-native-android-integration Steps to integrate Magic Checkout on your React Native using the Razorpay React Native Android Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your React Native Android application. #### Prerequisites * Create a Razorpay account. * Generate [API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. > [!NOTE] > > **Handy Tips** > > The **compileSdkVersion** is the version of Android. Increase the value of **minSdkVersion** to at least 19 in the build.gradle file in the Android folder to work with the latest Android SDK Build Tools version. Using it with a lower **minSdkVersion** version will lead to errors. > [card] [1. Build Integration](/docs/payments/magic-checkout/react-native-android-integration#1-build-integration) > > Integrate with React Native Android App. > [card] [2. Test Integration](/docs/payments/magic-checkout/react-native-android-integration#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/magic-checkout/react-native-android-integration#3-go-live-checklist) > > Check the go-live checklist. ## 1. Build Integration Follow the steps given below: > [!WARNING] > > **Watch Out!** > > If you use M1 MacBook, you need to make [these changes](#m1-macbook-changes) in your `podfile`. > [accordion] 1 Enable/Disable Magic Checkout and Cash on Delivery > > > [tab] Enable Magic Checkout > > > > Raise a request with your Razorpay SPOC to get this feature enabled on your account. > > Once this feature is enabled, the customer address saving and coupon features are enabled. > > > [tab] Enable Cash on Delivery Payment Method > > > > Raise a request with our [Support team](https://razorpay.com/support/) to enable this feature for your account. > [accordion] 2 Create Promotions and Shipping Info API Endpoints > > Follow the steps given below to create promotions and shipping info API endpoints: > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure that the URLs are publicly accessible, require no authentication and are hosted on your server. > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > 2. In the **Platform Setup**, select **Custom E-Commerce Platform** from the drop-down list and click **Next**. > > ![Choose custom platform](https://razorpay.com/docs/build/browser/assets/images/magic-custom-platform.jpg) > 3. In the **Setup & Settings** section, click **Checkout Settings**. > 4. In the **Coupon Settings** section, enter the following: > 1. **URL for get promotions**: The API URL should return a list of promotions applicable to the specified order\_id and customer. Magic Checkout uses this endpoint to fetch these promotions from your server and display them to your customers in the checkout modal. > 2. **URL for apply promotions**: The API URL validates the promotion code applied by the customer and should return the discount amount. Magic Checkout uses this endpoint to apply promotions via your server. > 5. Click **Save settings**. > > ![Add promotion URLs](https://razorpay.com/docs/build/browser/assets/images/magic-web-promo-url.jpg) > 6. Navigate to **Shipping Setup**. > 7. Select **API** as the Shipping Service type from the drop-down list. > 8. Enter the **URL for shipping info**. The API URL should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. Magic Checkout uses this endpoint to retrieve shipping information from your server. > 9. Click **Save Settings**. > > ![Add shipping URL](https://razorpay.com/docs/build/browser/assets/images/magic-web-shipping-url.jpg) > [accordion] 3 Install Razorpay React Native SDK > > Install the SDK using the following `npm` command in the **Terminal** window. If you are using Windows, please use **Git Bash** instead of the **Command Prompt** window. Ensure that you run this code within your React Native project folder in the **Terminal** window. > > ```javascript Installation Code theme={null} > //using npm > $ npm install react-native-razorpay --save > ``` > > Additionally, run the code given below if you are using `yarn` or `expo`: > > ```javascript Installation Code using yarn theme={null} > // using yarn > $ yarn add react-native-razorpay > ``` > > ```javascript Installation Code using expo theme={null} > // for expo > $ npx expo install react-native-razorpay > ``` > [accordion] 4 Run React Native App > > Run the React Native app.\\ > > ```javascript Run theme={null} > npx react-native run-android > ``` > > This links the SDK with your React Native project. > > > [accordion] Expo Application > > > > After adding the `react-native-razorpay` package, use the option to prebuild the app. This generates the **android** platform folders in the project to use native-modules. > > > > ```javascript Run theme={null} > > npx expo prebuild > > ``` > > > > The application is installed on the device/emulator. > > > > ```javascript theme={null} > > npx expo run:[android] --device > > ``` > [accordion] 5 Create an Order in Server > > You can create an order using the following API and send the additional information required for Magic Checkout. Pass the `order_id` received in response to the checkout code. > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/orders \ > -H "content-type: application/json" \ > -d '{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount", 50000); > orderRequest.put("currency", "INR"); > orderRequest.put("receipt", "receipt#1"); > orderRequest.put("line_items_total", 50000); // Mandatory for Magic Checkout > > JSONArray lineItems = new JSONArray(); > JSONObject item = new JSONObject(); > item.put("sku", "1g234"); > item.put("variant_id", "12r34"); > item.put("price", 50000); > item.put("offer_price", 50000); > item.put("quantity", 1); > item.put("name", "Product Name"); > // ... other line item details > lineItems.put(item); > orderRequest.put("line_items", lineItems); > > Order order = razorpay.orders.create(orderRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > client.order.create(data) > ``` > > ```go Go theme={null} > import ( > razorpay "github.com/razorpay/razorpay-go" > ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > para_attr := map[string]interface{}{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": []interface{}{ > map[string]interface{}{ > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name", > // ... other line item details > }, > }, > } > > body, err := client.Order.Create(para_attr, nil) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->order->create(array( > 'amount' => 50000, > 'currency' => 'INR', > 'receipt' => 'receipt#1', > 'line_items_total' => 50000, // Mandatory for Magic Checkout > 'line_items' => array( > 0 => array( > 'sku' => '1g234', > 'variant_id' => '12r34', > 'price' => 50000, > 'offer_price' => 50000, > 'quantity' => 1, > 'name' => 'Product Name', > // ... other line item details > ), > ), > )); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > para_attr = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > Razorpay::Order.create(para_attr) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ > key_id: 'YOUR_KEY_ID', > key_secret: 'YOUR_SECRET' > }) > > var data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > } > > instance.orders.create(data); > ``` > > ```csharp .Net theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary orderRequest = new Dictionary(); > orderRequest.Add("amount", 50000); > orderRequest.Add("currency", "INR"); > orderRequest.Add("receipt", "receipt#1"); > orderRequest.Add("line_items_total", 50000); // Mandatory for Magic Checkout > > List lineItem = new List(); > Dictionary lineItems = new Dictionary(); > lineItems.Add("sku", "1g234"); > lineItems.Add("variant_id", "12r34"); > lineItems.Add("price", 50000); > lineItems.Add("offer_price", 50000); > lineItems.Add("quantity", 1); > lineItems.Add("name", "Product Name"); > // ... other line item details > lineItem.Add(lineItems); > orderRequest.Add("line_items", lineItem); > > Order order = client.Order.Create(orderRequest); > ``` > > ```json Response theme={null} > { > "id": "order_EKwxwAgItmmXdp", > "entity": "order", > "amount": 50000, > "amount_paid": 0, > "amount_due": 50000, > "currency": "INR", > "receipt": "receipt#1", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1582628071, > "line_items_total": 50000 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit, such as paise (in case of INR). For example, for an actual amount of โ‚น299.35, the value of this field should be `29935`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Default is `INR`. Length must be of 3 characters. > > > > `receipt` *mandatory* > > : `string` Your receipt id for this order should be passed here. Maximum length of 40 characters. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `line_items_total` *mandatory* > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. For example, if a shoe worth โ‚น8,000 and a shirt worth โ‚น10,000 are added, the `line_item_total` will be `1800000`. This amount is post-tax. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To ensure the order is considered as a Magic Checkout order, you must pass this parameter. Otherwise, it will default to Standard Checkout order and customers will view the Standard Checkout UI instead of Magic Checkout. Know more about [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > > > > `line_items` *mandatory* > > : `array` This will have the details about the specific items added to the cart. > > > > `sku` *mandatory* > > : `string` Unique product id defined by you. It can be alphanumeric. > > > > `variant_id` *mandatory* > > : `string` Unique variant id defined by you. It can be alphanumeric. > > > > `price` *mandatory* > > : `integer` Price of the product in paise. > > > > `offer_price` *mandatory* > > : `integer` Final price charged to the customer in paise, after applying any adjustments, such as product discounts. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If no discount is applied, `price` and `offer_price` will be the same. > > > > `quantity` *mandatory* > > : `integer` Number of units added in the cart. > > > > `name` *mandatory* > > : `string` Name of the product. > > > > `description` *mandatory* > > : `string` Description of the product. > > > > `weight` *optional* > > : `integer` Weight of the product in grams. > > > > `dimensions` *optional* > > : `object` The dimensions of the product. > > > > `length` *optional* > > : `string` The length of the product in centimeters. > > > > `width` *optional* > > : `string` The width of the product in centimeters. > > > > `height` *optional* > > : `string` The height of the product in centimeters. > > > > `image_url` *mandatory* > > : `string` The URL of the product image. This parameter is mandatory if you want to display product images on our iframe. > > > > `product_url` *optional* > > : `string` URL of the product's listing page. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > [accordion] Response Parameters > > > > `id` > > : `string` The unique identifier of the order. > > > > `amount` > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. > > > > `partial_payment` > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `amount_paid` > > : `integer` The amount paid against the order. > > > > `amount_due` > > : `integer` The amount pending against the order. > > > > `currency` > > : `string` ISO code for the currency in which you want to accept the payment. The default length is 3 characters. > > > > `receipt` > > : `string` Receipt number that corresponds to this order. Can have a maximum length of 40 characters and has to be unique. > > > > `status` > > : `string` The status of the order. Possible values: > > > > * `created`: When you create an order it is in the `created` state. It stays in this state till a payment is attempted on it. > > * `attempted`: An order moves from `created` to `attempted` state when a payment is first attempted on it. It remains in the `attempted` state till one payment associated with that order is captured. > > * `paid`: After the successful capture of the payment, the order moves to the `paid` state. No further payment requests are permitted once the order moves to the `paid` state. The order stays in the `paid` state even if the payment associated with the order is refunded. > > > > `attempts` > > : `integer` The number of payment attempts, successful and failed, that have been made against this order. > > > > `notes` > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `created_at` > > : `integer` Indicates the Unix timestamp when this order was created. > > > > `line_items_total` > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > > > [accordion] Pre-discount Handling > > > > Line items total should equal the sum of individual item prices after your discounts are applied. When applying discounts, reduce both `amount` and `line_items_total` by the same amount: > > > > ```json Example theme={null} > > { > > "amount": 45000, // โ‚น500 - โ‚น50 discount = โ‚น450 > > "line_items_total": 45000, // Must match the discounted amount > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "prediscount_applied": "5000" // Track discount in paise > > }, > > "line_items": [ > > // ... your line items with original prices > > ] > > } > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Magic Checkout automatically handles all discount calculations on the UI. The system detects differences in checkout amounts and adjusts accordingly. > [accordion] 6 Interact with Shipping Info API > > This API should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. > > `POST /your-server-url/shipping-info-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // This is the receipt field set in the Razorpay order > "razorpay_order_id": "EKwxwAgItmmXdp", // This is the RZP order created without the `order_` prefix > "email": "", // Email field will be set if the customer enters an email > "contact": "+919900000000", // Customer phone number with country code > "addresses": [{ > "id": "0", > "zipcode": "560060", > "state_code": "KA", > "country": "IN" > }] > } > ``` > > ```json Response theme={null} > { > "addresses": [ > { > "id": "0", > "zipcode": "560000", > "state_code": "KA", > "country": "IN", > "shipping_methods": [ > { > "id": "1", > "description": "Free shipping", > "name": "Delivery within 5 days", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": true, > "cod_fee": 1000 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > }, > { > "id": "2", > "description": "Standard Delivery", > "name": "Delivered on the same day", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": false, > "cod_fee": 0 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > } > ] > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#5-create-an-order-in-server). > > > > `razorpay_order_id` *mandatory* > > : `string` Unique identifier for the order returned by Checkout. > > > > `email` *optional* > > : `string` Customer's email address. > > > > `contact` *mandatory* > > : `string` Customer's phone number. > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `state_code` *optional* > > : `string` The code of the state where the customer resides. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > [accordion] Response Parameters > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > > `shipping_methods` *mandatory* > > : `array` Details regarding the shipping methods. > > > > `id` *mandatory* > > : `string` Unique identifier of the shipping method. > > > > `description` > > : `integer` Brief description of the shipping method. > > > > `name` *mandatory* > > : `string` Name of the shipping method. > > > > `serviceable` *mandatory* > > : `boolean` Indicates whether you deliver orders to the zipcode entered by the customer. This is based on the ZIP codes you have added in the serviceability setting on the Razorpay Dashboard. Possible values: > > > > * `true`: Orders can be delivered to the added ZIP codes. > > * `false`: Orders cannot be delivered to the added ZIP codes. > > > > `shipping_fee` *mandatory* > > : `integer` Shipping charge in paise applicable to be paid by the customer. > > > > `cod` *mandatory* > > : `boolean` Indicates whether you support cash on delivery on this order. > > > > * `true`: COD payment method is supported. > > * `false`: COD payment method is not supported. > > > > `cod_fee` *mandatory* : `integer` Cash on Delivery fee charged in paise. This amount is based on the COD settings configured in your Razorpay Dashboard. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If the `cod` field is false, set the `cod_fee` field to 0. > [accordion] 7 Interact with Get Promotions API > > This API should return the list of promotions applicable for the given `order_id` and customer. > > `POST /your-server-url/create-promotions-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > "contact": "+919000090000", > "email": "" > }' > ``` > > ```json Response theme={null} > { > "promotions": [ > { > "code": "10%OFF", > "summary": "10% off on total cart value", > "description": "10% on total cart value upto โ‚น300" > }, > { > "code": "500OFF", > "summary": "โ‚น500 off on total cart value", > "description": "โ‚น500 off on a minimum cart value of โ‚น1500" > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#5-create-an-order-in-server). > > > > `contact` *optional* > > : `string` Customer's phone number. > > > > `email` *optional* > > : `string` Customer's email address. > > > [accordion] Response Parameters > > > > `promotions` *mandatory* > > : `array` Details of the promotions created. > > > > `code` *mandatory* > > : `string` Unique identifier of the promotion. > > > > `summary` *mandatory* > > : `string` Summary about the promotion. For example, 10% off on total cart value. > > > > `description` *optional* > > : `string` Brief description of the promotion. For example, 10% on total cart value upto โ‚น300. > > > [accordion] 7.1 Interact with Apply Promotions API > > > > This API should validate the promotion code applied by the customer and return the discount amount. > > > > `POST /your-server-url/create-promotions-api-path` > > > > ```bash Request theme={null} > > { > > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > > "contact": "+919000090000", > > "email": "", > > "code": "500OFF" > > }' > > ``` > > > > ```json Success Response theme={null} > > { > > "promotion": { > > "reference_id": "3rvff", > > "type": "offer", > > "code": "500OFF", > > "value": 50000, > > "value_type": "fixed_amount", > > "description": "New Year Sale Offer" > > } > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "failure_code": "LOGIN_REQUIRED", > > "failure_reason": โ€œpromotion Code has expired" > > } > > ``` > > > > > [accordion] Request Parameters > > > > > > `order_id` *mandatory* > > > : `string` Unique identifier of the order created [previously](#5-create-an-order-in-server). > > > > > > `contact` *optional* > > > : `string` Customer's phone number. > > > > > > `email` *optional* > > > : `string` Customer's email address. > > > > > > `code` *mandatory* > > > : `string` Promotion code used to avail discount on checkout. > > > > > [accordion] Response Parameters > > > > > > `promotion` *mandatory* > > > : `object` Used to pass all offer or discount-related information, including promotion code discount, method discount and so on. > > > > > > `reference_id` *mandatory* > > > : `string` Identifier of the offer you create. > > > > > > `code` *optional* > > > : `string` Promotion code used to avail discount on checkout. > > > > > > `type` *optional* > > > : `string` Type of offer. Possible values: > > > > > > * `coupon`: A discount applied by customers during checkout. For example, customers can use a coupon like `Diwali Sale 500 Off` to get โ‚น500 off the total cart value. > > > * `offer`: A promotion you create for your customers. For example, you create an offer `Buy 4 t-shirts and get 2 free`. In this case, when customers add 4 t-shirts to their cart, the 2 additional t-shirts will be automatically added for free. > > > > > > `value` *optional* > > > : `integer` The offer value that needs to be applied in paise. For example, if you want to offer a discount of โ‚น500, enter 50000. > > > > > > `value_type` *optional* > > > : `string` The type of value like: > > > > > > * `fixed_amount`: A fixed amount discount value in the currency of the order. For example, โ‚น500. > > > > > > * `percentage`: A percentage discount value. For example, 10%. > > > > > > * `BXGY`: Buy X and Get Y. For example, if you buy 2 t-shirts, you a get a cap for free or at a discounted value. > > > > > > > [!NOTE] > > > > > > > > **Handy Tips** > > > > > > > > Regardless of the `value_type`, the amount specified in the `value` parameter is applied as-is. For example, if `value_type` is percentage and the `value` is 5000, 5000 is considered in currency subunits (paise). > > > > > > `description` *optional* > > > : `string` Description of the promotion applied. For example, `New Year Sale Offer`. > > > > > [accordion] Error Code, Description and Next Steps > > > > > > | Code | Description | Next Steps | > > > | - | - | - | > > > | INVALID\_PROMOTION | The specified promotion code is not recognised or does not exist in the system. | Please verify the code and try again. | > > > | LOGIN\_REQUIRED | This coupon is specifically assigned to a registered customer. | To redeem it, the customer must log in to their account and authenticate their identity. | > > > | REQUIREMENT\_NOT\_MET | The current cart conditions do not meet the requirements for this promotion to be valid. For example, the promotion may require a minimum cart value of โ‚น1,000, but the cart total is โ‚น800. | Review the promotion's terms and adjust the cart contents accordingly. | > [accordion] 8 Add Razorpay Checkout Options to .js File > > To integrate the Razorpay Checkout with your React Native app, you must add the Checkout Display Options in the **.js** file. > > Open the **.js** file in your project folder and perform the following: > > 1. Import the `RazorpayCheckout` module to your component. > > ```javascript Import Razorpay Checkout Module theme={null} > import RazorpayCheckout from 'react-native-razorpay'; > ``` > > 2. Call the `RazorpayCheckout.open` method with the payment options. The method returns a JS Promise where the `then` part corresponds to a successful payment and the `catch` part corresponds to payment failure. > > Add the following code: > > ```javascript Checkout Options theme={null} > { > var options = { > description: 'Credits towards consultation', > image: 'https://i.imgur.com/3g7nmJC.jpg', > currency: 'INR', > key: '', > amount: '50000', > name: 'Acme Corp', > order_id: 'order_DslnoIgkIDL8Zt',//Replace this with an order_id created using Orders API. > prefill: { > email: '', > contact: '9191919191', > name: '' > }, > one_click_checkout: true, // magic checkout > show_coupons: true, // magic checkout > theme: {color: '#53a20e'} > } > RazorpayCheckout.open(options).then((data) => { > // handle success > alert(`Success: ${data.razorpay_payment_id}`); > }).catch((error) => { > // handle failure > alert(`Error: ${error.code} | ${error.description}`); > }); > }}> > ``` > > > [accordion] Checkout Options > > > > `key` *mandatory* > > : `string` API key id generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` The amount to be paid by the customer in currency subunits. For example, if the amount is โ‚น500, enter `50000`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. Length must be of 3 characters. > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order id generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > > * `card` > > * `netbanking` > > * `wallet` > > * `upi` > > * `cod` > > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `show_coupons` *optional* > > : `boolean` Determines whether to show the coupons to customer on the checkout. Possible values: > > > > * `true` (default): Enables the Coupon feature. > > * `false`: Disables the Coupon feature. > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > You must pass these parameters in Checkout to initiate the payment. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To support theme colour in the progress bar, please pass HEX colour values only. > [accordion] 9 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 10 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > > > [accordion] M1 MacBook Changes > > > > If you use M1 MacBook, you need to make the following changes in your podfile. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Add the following code inside `post_install do |installer|`. > > > > ```javascript podfile theme={null} > > installer.pods_project.build_configurations.each do |config| > > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > > end > > ``` > [accordion] 11 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. > [accordion] 12 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. You can make test payments using one of the payment methods configured at the Checkout. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > [accordion] Supported Payment Methods > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Cash on Delivery](/docs/payments/payment-methods/cod) | `cod` | Requires [Integration](/docs/payments/payment-methods/cod#prerequisites). | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > ### Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > ### UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the following lists: > > * [Supported UPI Flows](/docs/payments/payment-methods/upi). > > * [UPI Error Codes](/docs/errors/payments/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > ### Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > #### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > * [Test Error Scenarios](/docs/payments/payments/test-card-details#error-scenarios). > > #### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > ### Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Magic Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ## Related Information [React Native: Android Standard Integration](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-android) # Integrate Magic Checkout on React Native iOS App Source: https://razorpay.com/docs/payments/magic-checkout/react-native-ios-integration Steps to integrate Magic Checkout on your React Native iOS app using the Razorpay React Native iOS Standard SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your React Native iOS application. #### Prerequisites * Create a Razorpay account. * Generate [API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. > [card] [1. Build Integration](/docs/payments/magic-checkout/react-native-ios-integration#1-build-integration) > > Integrate with React Native iOS App. > [card] [2. Test Integration](/docs/payments/magic-checkout/react-native-ios-integration#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/magic-checkout/react-native-ios-integration#3-go-live-checklist) > > Check the go-live checklist. ## 1. Build Integration Follow the steps given below: > [!WARNING] > > **Watch Out!** > > If you use M1 MacBook, you need to make [these changes](#m1-macbook-changes) in your `podfile`. > [accordion] 1 Enable/Disable Magic Checkout and Cash on Delivery > > > [tab] Enable Magic Checkout > > > > Raise a request with your Razorpay SPOC to get this feature enabled on your account. > > Once this feature is enabled, the customer address saving and coupon features are enabled. > > > [tab] Enable Cash on Delivery Payment Method > > > > Raise a request with our [Support team](https://razorpay.com/support/) to enable this feature for your account. > [accordion] 2 Create Promotions and Shipping Info API Endpoints > > Follow the steps given below to create promotions and shipping info API endpoints: > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure that the URLs are publicly accessible, require no authentication and are hosted on your server. > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > 2. In the **Platform Setup**, select **Custom E-Commerce Platform** from the drop-down list and click **Next**. > > ![Choose custom platform](https://razorpay.com/docs/build/browser/assets/images/magic-custom-platform.jpg) > 3. In the **Setup & Settings** section, click **Checkout Settings**. > 4. In the **Coupon Settings** section, enter the following: > 1. **URL for get promotions**: The API URL should return a list of promotions applicable to the specified order\_id and customer. Magic Checkout uses this endpoint to fetch these promotions from your server and display them to your customers in the checkout modal. > 2. **URL for apply promotions**: The API URL validates the promotion code applied by the customer and should return the discount amount. Magic Checkout uses this endpoint to apply promotions via your server. > 5. Click **Save settings**. > > ![Add promotion URLs](https://razorpay.com/docs/build/browser/assets/images/magic-web-promo-url.jpg) > 6. Navigate to **Shipping Setup**. > 7. Select **API** as the Shipping Service type from the drop-down list. > 8. Enter the **URL for shipping info**. The API URL should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. Magic Checkout uses this endpoint to retrieve shipping information from your server. > 9. Click **Save Settings**. > > ![Add shipping URL](https://razorpay.com/docs/build/browser/assets/images/magic-web-shipping-url.jpg) > [accordion] 3 Install Razorpay React Native SDK > > Install the SDK using the following `npm` command in the **Terminal** window. If you are using Windows, please use **Git Bash** instead of the **Command Prompt** window. Ensure that you run this code within your React Native project folder in **Terminal** window. > > ```javascript Installation Code theme={null} > //using npm > $ npm install react-native-razorpay --save > ``` > > Additionally, run the code given below if you are using `yarn` or `expo`: > > ```javascript Installation Code using yarn theme={null} > // using yarn > $ yarn add react-native-razorpay > ``` > > ```javascript Installation Code using expo theme={null} > // for expo > $ npx expo install react-native-razorpay > ``` > [accordion] 4 Open Podfile and Update Platform Version > > Navigate to the **ios** folder and open **Podfile**. You can do this using the following code. > > ```javascript Open Podfile theme={null} > $ cd ios && open podfile > ``` > > Change the platform version from `9.0` to `10.0` in the Podfile. > > ![](https://razorpay.com/docs/build/browser/assets/images/react-native-change_platform_version_podfile.jpg) > [accordion] 5 Install Pods Using Cocoapods > > Install pods after updating the iOS platform. This will install all pods in the Podfile at the exact versions.\\ > > ```javascript Cocoapod Step theme={null} > pod install && cd .. > ``` > [accordion] 6 Run React Native App > > Run the React Native app. > > ```javascript Run App theme={null} > npx react-native run-ios > ``` > > > [accordion] Expo Application > > > > After adding the `react-native-razorpay` package, use the option to prebuild the app. This generates the **iOS** platform folders in the project to use native-modules. > > > > ```javascript Run theme={null} > > npx expo prebuild > > ``` > > > > The application is installed on the device/emulator. > > > > ```javascript theme={null} > > npx expo run:[ios] --device > > ``` > [accordion] 7 Create an Order in Server > > You can create an order using the following API and send the additional information required for Magic Checkout. Pass the `order_id` received in response to the checkout code. > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/orders \ > -H "content-type: application/json" \ > -d '{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount", 50000); > orderRequest.put("currency", "INR"); > orderRequest.put("receipt", "receipt#1"); > orderRequest.put("line_items_total", 50000); // Mandatory for Magic Checkout > > JSONArray lineItems = new JSONArray(); > JSONObject item = new JSONObject(); > item.put("sku", "1g234"); > item.put("variant_id", "12r34"); > item.put("price", 50000); > item.put("offer_price", 50000); > item.put("quantity", 1); > item.put("name", "Product Name"); > // ... other line item details > lineItems.put(item); > orderRequest.put("line_items", lineItems); > > Order order = razorpay.orders.create(orderRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > client.order.create(data) > ``` > > ```go Go theme={null} > import ( > razorpay "github.com/razorpay/razorpay-go" > ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > para_attr := map[string]interface{}{ > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": []interface{}{ > map[string]interface{}{ > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name", > // ... other line item details > }, > }, > } > > body, err := client.Order.Create(para_attr, nil) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->order->create(array( > 'amount' => 50000, > 'currency' => 'INR', > 'receipt' => 'receipt#1', > 'line_items_total' => 50000, // Mandatory for Magic Checkout > 'line_items' => array( > 0 => array( > 'sku' => '1g234', > 'variant_id' => '12r34', > 'price' => 50000, > 'offer_price' => 50000, > 'quantity' => 1, > 'name' => 'Product Name', > // ... other line item details > ), > ), > )); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > para_attr = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, # Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > # ... other line item details > } > ] > } > > Razorpay::Order.create(para_attr) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ > key_id: 'YOUR_KEY_ID', > key_secret: 'YOUR_SECRET' > }) > > var data = { > "amount": 50000, > "currency": "INR", > "receipt": "receipt#1", > "line_items_total": 50000, // Mandatory for Magic Checkout > "line_items": [ > { > "sku": "1g234", > "variant_id": "12r34", > "price": 50000, > "offer_price": 50000, > "quantity": 1, > "name": "Product Name" > // ... other line item details > } > ] > } > > instance.orders.create(data); > ``` > > ```csharp .Net theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary orderRequest = new Dictionary(); > orderRequest.Add("amount", 50000); > orderRequest.Add("currency", "INR"); > orderRequest.Add("receipt", "receipt#1"); > orderRequest.Add("line_items_total", 50000); // Mandatory for Magic Checkout > > List lineItem = new List(); > Dictionary lineItems = new Dictionary(); > lineItems.Add("sku", "1g234"); > lineItems.Add("variant_id", "12r34"); > lineItems.Add("price", 50000); > lineItems.Add("offer_price", 50000); > lineItems.Add("quantity", 1); > lineItems.Add("name", "Product Name"); > // ... other line item details > lineItem.Add(lineItems); > orderRequest.Add("line_items", lineItem); > > Order order = client.Order.Create(orderRequest); > ``` > > ```json Response theme={null} > { > "id": "order_EKwxwAgItmmXdp", > "entity": "order", > "amount": 50000, > "amount_paid": 0, > "amount_due": 50000, > "currency": "INR", > "receipt": "receipt#1", > "offer_id": null, > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1582628071, > "line_items_total": 50000 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` The transaction amount, expressed in the currency subunit, such as paise (in case of INR). For example, for an actual amount of โ‚น299.35, the value of this field should be `29935`. > > > > `currency` *mandatory* > > : `string` The currency in which the transaction should be made. See the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Default is `INR`. Length must be of 3 characters. > > > > `receipt` *mandatory* > > : `string` Your receipt id for this order should be passed here. Maximum length of 40 characters. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `line_items_total` *mandatory* > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. For example, if a shoe worth โ‚น8,000 and a shirt worth โ‚น10,000 are added, the `line_item_total` will be `1800000`. This amount is post-tax. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To ensure the order is considered as a Magic Checkout order, you must pass this parameter. Otherwise, it will default to Standard Checkout order and customers will view the Standard Checkout UI instead of Magic Checkout. Know more about [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > > > > `line_items` *mandatory* > > : `array` This will have the details about the specific items added to the cart. > > > > `sku` *mandatory* > > : `string` Unique product id defined by you. It can be alphanumeric. > > > > `variant_id` *mandatory* > > : `string` Unique variant id defined by you. It can be alphanumeric. > > > > `price` *mandatory* > > : `integer` Price of the product in paise. > > > > `offer_price` *mandatory* > > : `integer` Final price charged to the customer in paise, after applying any adjustments, such as product discounts. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If no discount is applied, `price` and `offer_price` will be the same. > > > > `quantity` *mandatory* > > : `integer` Number of units added in the cart. > > > > `name` *mandatory* > > : `string` Name of the product. > > > > `description` *mandatory* > > : `string` Description of the product. > > > > `weight` *optional* > > : `integer` Weight of the product in grams. > > > > `dimensions` *optional* > > : `object` The dimensions of the product. > > > > `length` *optional* > > : `string` The length of the product in centimeters. > > > > `width` *optional* > > : `string` The width of the product in centimeters. > > > > `height` *optional* > > : `string` The height of the product in centimeters. > > > > `image_url` *mandatory* > > : `string` The URL of the product image. This parameter is mandatory if you want to display product images on our iframe. > > > > `product_url` *optional* > > : `string` URL of the product's listing page. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > [accordion] Response Parameters > > > > `id` > > : `string` The unique identifier of the order. > > > > `amount` > > : `integer` Payment amount in the smallest currency sub-unit. For example, if the amount to be charged is โ‚น299, then pass `29900` in this field. > > > > `partial_payment` > > : `boolean` Indicates whether the customer can make a partial payment. Possible values: > > > > * `true`: The customer can make partial payments. > > * `false` (default): The customer cannot make partial payments. > > > > `amount_paid` > > : `integer` The amount paid against the order. > > > > `amount_due` > > : `integer` The amount pending against the order. > > > > `currency` > > : `string` ISO code for the currency in which you want to accept the payment. The default length is 3 characters. > > > > `receipt` > > : `string` Receipt number that corresponds to this order. Can have a maximum length of 40 characters and has to be unique. > > > > `status` > > : `string` The status of the order. Possible values: > > > > * `created`: When you create an order it is in the `created` state. It stays in this state till a payment is attempted on it. > > * `attempted`: An order moves from `created` to `attempted` state when a payment is first attempted on it. It remains in the `attempted` state till one payment associated with that order is captured. > > * `paid`: After the successful capture of the payment, the order moves to the `paid` state. No further payment requests are permitted once the order moves to the `paid` state. The order stays in the `paid` state even if the payment associated with the order is refunded. > > > > `attempts` > > : `integer` The number of payment attempts, successful and failed, that have been made against this order. > > > > `notes` > > : `json object` Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty"`. > > > > `created_at` > > : `integer` Indicates the Unix timestamp when this order was created. > > > > `line_items_total` > > : `integer` Total of `offer_price` for all line items added to the cart, in paise. > > > [accordion] Error Response Parameters > > > > The error response parameters are available in the [API Reference Guide](/docs/api/orders/create). > > > [accordion] Pre-discount Handling > > > > Line items total should equal the sum of individual item prices after your discounts are applied. When applying discounts, reduce both `amount` and `line_items_total` by the same amount: > > > > ```json Example theme={null} > > { > > "amount": 45000, // โ‚น500 - โ‚น50 discount = โ‚น450 > > "line_items_total": 45000, // Must match the discounted amount > > "currency": "INR", > > "receipt": "receipt#1", > > "notes": { > > "prediscount_applied": "5000" // Track discount in paise > > }, > > "line_items": [ > > // ... your line items with original prices > > ] > > } > > ``` > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Magic Checkout automatically handles all discount calculations on the UI. The system detects differences in checkout amounts and adjusts accordingly. > [accordion] 8 Interact with Shipping Info API > > This API should return shipping serviceability, COD serviceability, shipping fees and COD fees for a given list of customer addresses. > > `POST /your-server-url/shipping-info-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // This is the receipt field set in the Razorpay order > "razorpay_order_id": "EKwxwAgItmmXdp", // This is the RZP order created without the `order_` prefix > "email": "", // Email field will be set if the customer enters an email > "contact": "+919900000000", // Customer phone number with country code > "addresses": [{ > "id": "0", > "zipcode": "560060", > "state_code": "KA", > "country": "IN" > }] > } > ``` > > ```json Response theme={null} > { > "addresses": [ > { > "id": "0", > "zipcode": "560000", > "state_code": "KA", > "country": "IN", > "shipping_methods": [ > { > "id": "1", > "description": "Free shipping", > "name": "Delivery within 5 days", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": true, > "cod_fee": 1000 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > }, > { > "id": "2", > "description": "Standard Delivery", > "name": "Delivered on the same day", > "serviceable": true, > "shipping_fee": 1000, // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > "cod": false, > "cod_fee": 0 // in paise. Here 1000 = 1000 paise, which equals to โ‚น10 > } > ] > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#7-create-an-order-in-server). > > > > `razorpay_order_id` *mandatory* > > : `string` Unique identifier for the order returned by Checkout. > > > > `email` *optional* > > : `string` Customer's email address. > > > > `contact` *mandatory* > > : `string` Customer's phone number. > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `state_code` *optional* > > : `string` The code of the state where the customer resides. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > [accordion] Response Parameters > > > > `addresses` *mandatory* > > : `array` Customer's address details. > > > > `id` *mandatory* > > : `string` Unique identifier of the customer's address. > > > > `zipcode` *mandatory* > > : `string` Customer's ZIP code. > > > > `country` *mandatory* > > : `string` Country where the customer resides. The length cannot exceed 2 characters. > > > > `shipping_methods` *mandatory* > > : `array` Details regarding the shipping methods. > > > > `id` *mandatory* > > : `string` Unique identifier of the shipping method. > > > > `description` > > : `integer` Brief description of the shipping method. > > > > `name` *mandatory* > > : `string` Name of the shipping method. > > > > `serviceable` *mandatory* > > : `boolean` Indicates whether you deliver orders to the zipcode entered by the customer. This is based on the ZIP codes you have added in the serviceability setting on the Razorpay Dashboard. Possible values: > > > > * `true`: Orders can be delivered to the added ZIP codes. > > * `false`: Orders cannot be delivered to the added ZIP codes. > > > > `shipping_fee` *mandatory* > > : `integer` Shipping charge in paise applicable to be paid by the customer. > > > > `cod` *mandatory* > > : `boolean` Indicates whether you support cash on delivery on this order. > > > > * `true`: COD payment method is supported. > > * `false`: COD payment method is not supported. > > > > `cod_fee` *mandatory* : `integer` Cash on Delivery fee charged in paise. This amount is based on the COD settings configured in your Razorpay Dashboard. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If the `cod` field is false, set the `cod_fee` field to 0. > [accordion] 9 Interact with Get Promotions API > > This API should return the list of promotions applicable for the given `order_id` and customer. > > `POST /your-server-url/create-promotions-api-path` > > ```bash Request theme={null} > { > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > "contact": "+919000090000", > "email": "" > }' > ``` > > ```json Response theme={null} > { > "promotions": [ > { > "code": "10%OFF", > "summary": "10% off on total cart value", > "description": "10% on total cart value upto โ‚น300" > }, > { > "code": "500OFF", > "summary": "โ‚น500 off on total cart value", > "description": "โ‚น500 off on a minimum cart value of โ‚น1500" > } > ] > } > ``` > > > [accordion] Request Parameters > > > > `order_id` *mandatory* > > : `string` Unique identifier of the order created [previously](#7-create-an-order-in-server). > > > > `contact` *optional* > > : `string` Customer's phone number. > > > > `email` *optional* > > : `string` Customer's email address. > > > [accordion] Response Parameters > > > > `promotions` *mandatory* > > : `array` Details of the promotions created. > > > > `code` *mandatory* > > : `string` Unique identifier of the promotion. > > > > `summary` *mandatory* > > : `string` Summary about the promotion. For example, 10% off on total cart value. > > > > `description` *optional* > > : `string` Brief description of the promotion. For example, 10% on total cart value upto โ‚น300. > > > [accordion] 9.1 Interact with Apply Promotions API > > > > This API should validate the promotion code applied by the customer and return the discount amount. > > > > `POST /your-server-url/create-promotions-api-path` > > > > ```bash Request theme={null} > > { > > "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order > > "contact": "+919000090000", > > "email": "", > > "code": "500OFF" > > }' > > ``` > > > > ```json Success Response theme={null} > > { > > "promotion": { > > "reference_id": "3rvff", > > "type": "offer", > > "code": "500OFF", > > "value": 50000, > > "value_type": "fixed_amount", > > "description": "New Year Sale Offer" > > } > > } > > ``` > > > > ```json Failure Response theme={null} > > { > > "failure_code": "LOGIN_REQUIRED", > > "failure_reason": โ€œpromotion Code has expired" > > } > > ``` > > > > > [accordion] Request Parameters > > > > > > `order_id` *mandatory* > > > : `string` Unique identifier of the order created [previously](#7-create-an-order-in-server). > > > > > > `contact` *optional* > > > : `string` Customer's phone number. > > > > > > `email` *optional* > > > : `string` Customer's email address. > > > > > > `code` *mandatory* > > > : `string` Promotion code used to avail discount on checkout. > > > > > [accordion] Response Parameters > > > > > > `promotion` *mandatory* > > > : `object` Used to pass all offer or discount-related information, including promotion code discount, method discount and so on. > > > > > > `reference_id` *mandatory* > > > : `string` Identifier of the offer you create. > > > > > > `code` *optional* > > > : `string` Promotion code used to avail discount on checkout. > > > > > > `type` *optional* > > > : `string` Type of offer. Possible values: > > > > > > * `coupon`: A discount applied by customers during checkout. For example, customers can use a coupon like `Diwali Sale 500 Off` to get โ‚น500 off the total cart value. > > > * `offer`: A promotion you create for your customers. For example, you create an offer `Buy 4 t-shirts and get 2 free`. In this case, when customers add 4 t-shirts to their cart, the 2 additional t-shirts will be automatically added for free. > > > > > > `value` *optional* > > > : `integer` The offer value that needs to be applied in paise. For example, if you want to offer a discount of โ‚น500, enter 50000. > > > > > > `value_type` *optional* > > > : `string` The type of value like: > > > > > > * `fixed_amount`: A fixed amount discount value in the currency of the order. For example, โ‚น500. > > > > > > * `percentage`: A percentage discount value. For example, 10%. > > > > > > * `BXGY`: Buy X and Get Y. For example, if you buy 2 t-shirts, you a get a cap for free or at a discounted value. > > > > > > > [!NOTE] > > > > > > > > **Handy Tips** > > > > > > > > Regardless of the `value_type`, the amount specified in the `value` parameter is applied as-is. For example, if `value_type` is percentage and the `value` is 5000, 5000 is considered in currency subunits (paise). > > > > > > `description` *optional* > > > : `string` Description of the promotion applied. For example, `New Year Sale Offer`. > > > > > [accordion] Error Code, Description and Next Steps > > > > > > | Code | Description | Next Steps | > > > | - | - | - | > > > | INVALID\_PROMOTION | The specified promotion code is not recognised or does not exist in the system. | Please verify the code and try again. | > > > | LOGIN\_REQUIRED | This coupon is specifically assigned to a registered customer. | To redeem it, the customer must log in to their account and authenticate their identity. | > > > | REQUIREMENT\_NOT\_MET | The current cart conditions do not meet the requirements for this promotion to be valid. For example, the promotion may require a minimum cart value of โ‚น1,000, but the cart total is โ‚น800. | Review the promotion's terms and adjust the cart contents accordingly. | > [accordion] 10 Add Razorpay Checkout Options to .js File > > To integrate the Razorpay Checkout with your React Native app, you must add the Checkout Display Options in the **.js** file. > > Open the **.js** file in your project folder and perform the following: > > 1. Import the `RazorpayCheckout` module to your component. > > ```javascript Import Razorpay Checkout Module theme={null} > import RazorpayCheckout from 'react-native-razorpay'; > ``` > > 2. Call the `RazorpayCheckout.open` method with the payment options. The method returns a JS Promise where the `then` part corresponds to a successful payment and the `catch` part corresponds to payment failure. > > ```javascript Checkout Options theme={null} > { > var options = { > description: 'Credits towards consultation', > image: 'https://i.imgur.com/3g7nmJC.jpg', > currency: 'INR', > key: '', > amount: '50000', > name: 'Acme Corp', > order_id: 'order_DslnoIgkIDL8Zt',// Replace this with an order_id created using Orders API. > prefill: { > email: '', > contact: '9191919191', > name: '' > }, > one_click_checkout: true, // magic checkout > show_coupons: true, // magic checkout > theme: {color: '#53a20e'} > } > RazorpayCheckout.open(options).then((data) => { > // handle success > alert(`Success: ${data.razorpay_payment_id}`); > }).catch((error) => { > // handle failure > alert(`Error: ${error.code} | ${error.description}`); > }); > }}> > ``` > > > [accordion] Checkout Options > > > > `key` *mandatory* > > : `string` API key id generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` The amount to be paid by the customer in currency subunits. For example, if the amount is โ‚น500, enter `50000`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. Length must be of 3 characters. > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order id generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > > * `card` > > * `netbanking` > > * `wallet` > > * `upi` > > * `cod` > > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `show_coupons` *optional* > > : `boolean` Determines whether to show the coupons to customer on the checkout. Possible values: > > > > * `true` (default): Enables the Coupon feature. > > * `false`: Disables the Coupon feature. > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > > You must pass these parameters in Checkout to initiate the payment. > > > [accordion] 10.1 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > > > > ### UPI Intent on Recurring Payments > > > > Configure and initiate a recurring payment transaction on UPI Intent: > > > > ```swift ViewController.swift theme={null} > > let options: [String:Any] = [ > > "key": "YOUR_KEY_ID", > > "order_id": "order_DBJOWzybfXXXX", > > "customer_id": "cust_BtQNqzmBlXXXX", > > "prefill": [ > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com" > > ], > > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > "amount": 10000, // Amount should match the order amount > > "currency": "INR", > > "recurring": 1 // This key value pair is mandatory for Intent Recurring Payment. > > ] > > ``` > > > > ```objectivec ViewController.m theme={null} > > NSDictionary *options = @{ > > @"key": @"YOUR_KEY_ID", > > @"order_id": @"order_DBJOWzybfXXXX", > > @"customer_id": @"cust_BtQNqzmBlXXXX", > > @"prefill": @{ > > @"contact": @"+919000090000", > > @"email": @"gaurav.kumar@example.com" > > }, > > @"image": @"https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > > @"amount": @(10000), // Amount should match the order amount > > @"currency": @"INR", > > @"recurring": @(1) // This key value pair is mandatory for Intent Recurring Payment. > > }; > > ``` > [accordion] 11 Store Fields in Your Server > > A successful payment returns the following fields to the Checkout form. > > > [accordion] Success Callback > > > > * You need to store these fields in your server. > > * You can confirm the authenticity of these details by verifying the signature in the next step. > > > > ```json Success Callback theme={null} > > { > > "razorpay_payment_id": "pay_29QQoUBi66xm2f", > > "razorpay_order_id": "order_9A33XWu170gUtm", > > "razorpay_signature": "9ef4dffbfd84f1318f6739a3ce19f9d85851857ae648f114332d8401e0949a3d" > > } > > ``` > > > > `razorpay_payment_id` > > : `string` Unique identifier for the payment returned by Checkout **only** for successful payments. > > > > `razorpay_order_id` > > : `string` Unique identifier for the order returned by Checkout. > > > > `razorpay_signature` > > : `string` Signature returned by the Checkout. This is used to verify the payment. > [accordion] 12 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > > > [accordion] M1 MacBook Changes > > > > If you use M1 MacBook, you need to make the following changes in your podfile. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Add the following code inside `post_install do |installer|`. > > > > ```javascript podfile theme={null} > > installer.pods_project.build_configurations.each do |config| > > config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" > > end > > ``` > [accordion] 13 Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. > [accordion] 14 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. ## 2. Test Integration After the integration is complete, a **Pay** button appears on your webpage/app. Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. You can make test payments using one of the payment methods configured at the Checkout. > [!WARNING] > > **Watch Out!** > > This is a mock payment page that uses your test API keys, test card and payment details. > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > [accordion] Supported Payment Methods > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Cash on Delivery](/docs/payments/payment-methods/cod) | `cod` | Requires [Integration](/docs/payments/payment-methods/cod#prerequisites). | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > ### Netbanking > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > ### UPI > > You can enter one of the following UPI IDs: > > * `success@razorpay`: To make the payment successful. > * `failure@razorpay`: To fail the payment. > > Check the following lists: > > * [Supported UPI Flows](/docs/payments/payment-methods/upi). > > * [UPI Error Codes](/docs/errors/payments/upi). > > > [!NOTE] > > > > **Handy Tips** > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > ### Cards > > You can use the following test cards to test transactions for your integration in Test Mode. > > #### Domestic Cards > > Use the following test cards for Indian payments: > > | Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > | Mastercard | 5500 6700 0000 1002 | | > | RuPay | 6527 6589 0000 1005 | | > | Diners | 3608 280009 1007 | | > | Amex | 3402 560004 01007 | | > > Check the following lists: > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > * [Cards Error Codes](/docs/errors/payments/cards). > * [Test Error Scenarios](/docs/payments/payments/test-card-details#error-scenarios). > > #### International Cards > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > | Card Network | Card Number | CVV & Expiry Date | > | - | - | - | > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > | Visa | 4012 8888 8888 1881 | | > > ### Wallet > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). ## 3. Go-live Checklist Check the go-live checklist for Razorpay Magic Checkout integration. Consider these steps before taking the integration live. > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > [accordion] 3 Set Up Webhooks > > Ensure you have [set up webhooks](/docs/webhooks/setup-edit-payments) in the live mode and configured the events for which you want to receive notifications. > > > [!WARNING] > > > > **Implementation Considerations** > > > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > > > **Recommended approach** \\ > > > > * Rely on webhooks for all automation, which can be asynchronous. > > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. ## Related Information [React Native: iOS Standard Integration](/docs/payments/payment-gateway/react-native-integration/standard/integration-steps-ios) # Allowlist & Blocklist Source: https://razorpay.com/docs/payments/magic-checkout/rto-reduction/allowlist-blocklist Configure COD settings on Razorpay Magic Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India With Magic Checkout, you can determine which cash on delivery orders you would like to allow or block based on a set of parameters to reduce RTO. > [!NOTE] > > **Handy Tips** > > * Only the **Owner** and **Admin** roles have access to this feature. > * Blocklist and Allowlist will work only if you enable COD Intelligence. To enable COD Intelligence, navigate to **Magic Checkout** โ†’ **Analytics** โ†’ **RTO** and enable **COD Intelligence**. ## Blocklist You can create a blocklist in the case of high-risk customers who often return products on delivery resulting in damaged products during transit, high returns, refund issues, and so on.\ The customers mentioned in the blocklist based on the order phone number, email ID, device IP and shipping zip code will **not** be eligible for COD. > [accordion] Add Orders Under Blocklist > > The orders that fall under this list will not be eligible for COD. Follow the steps given below: > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > 2. Select the platform of your e-commerce website, enter the relevant details and click **Next**. > 3. Navigate to **RTO Reduction Setup** โ†’ **RTO Reduction**. > 4. Toggle on **COD Intelligence** and click **Enable COD Intelligence** in the confirmation pop-up modal. > > ![Enable COD Intelligence](https://razorpay.com/docs/build/browser/assets/images/magic-enable-cod.jpg) > 5. Navigate to the **Block List** tab and click **Add New Blocklist**. > > ![Add Blocklist to block COD for customers](https://razorpay.com/docs/build/browser/assets/images/add-new-blocklist.jpg) > 6. You can either upload a list or enter it manually. > * **To upload a list**: > 1. Download the **sample file**. > 2. Add the required data to the file. A maximum of 1M rows are acceptable in the file. > 3. Upload the file in .CSV format. Maximum file size supported is 50 MB. > * **To manually enter the list**: > 1. Select the **Type** from the drop-down list. > > 2. Enter the values. You can enter up to 20 values by separating them with a comma based on the **type**. > > > [!NOTE] > > > > **Handy Tips** > > > > Enter the values in a valid format as given below: > > > > * **Phone number**: 10-digit phone number with the country code. For example, +919000090000. > > * **Zip code**: 6-digit zip code. > > * **Device IP**: For example, 123.123.123.123. > > 7. Click **Confirm**. > > ![Confirm settings on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/blocklist-confirm.jpg) > 8. A pop-up page appears with the list of items added. Review the list and click **Add To Blocklist**. ## Allowlist You can create an allowlist in case of trusted customers who are loyal to your brand and contribute to increasing revenue. In addition to the other customers who can avail of the COD option, the customers mentioned in the allowlist based on the order phone number and email ID **will always be** eligible for COD irrespective of the RTO intelligence recommendation. > [accordion] Add Orders Under Allowlist > > The orders that fall under this list will be eligible for COD. Follow the steps given below: > > > [!WARNING] > > > > **Watch Out!** > > > > Orders under the allowlist are not eligible for RTO insurance if they result in an RTO. > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > 2. Select the platform of your e-commerce website, enter the relevant details and click **Next**. > 3. Navigate to **RTO Reduction Setup** โ†’ **RTO Reduction**. > 4. Toggle on **COD Intelligence** and click **Enable COD Intelligence** in the confirmation pop-up modal. > > ![Enable COD Intelligence](https://razorpay.com/docs/build/browser/assets/images/magic-enable-cod.jpg) > 5. Navigate to the **Allow List** tab and click **Add New Allowlist**. > > ![Add Allowlist to allow COD for customers](https://razorpay.com/docs/build/browser/assets/images/add-new-allowlist.jpg) > 6. You can either upload a list or enter it manually. > * **To upload a list**: > 1. Download the **sample file**. > 2. Add the required data to the file. A maximum of 1M rows are acceptable in the file. > 3. Upload the file in .CSV format. Maximum file size supported is 50 MB. > * **To manually enter the list**: > 1. Select the **Type** from the drop-down list. > > 2. Enter the values. You can enter up to 20 values by separating them with a comma based on the **type**. > > > [!NOTE] > > > > **Handy Tips** > > > > Enter the value in a valid format as given below: > > > > * **Phone number**: 10-digit phone number with the country code. For example, +919000090000. > > 7. Click **Confirm**. > > ![Confirm settings on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/allowlist-confirm.jpg) > 8. A pop-up page appears with the list of items added. Review the list and click **Add To Allowlist**. > [!NOTE] > > **Handy Tips** > > Once added, you cannot edit the items in the list. You can only delete each item in the list. \\ > > ![Delete each item in the list](https://razorpay.com/docs/build/browser/assets/images/delete-item.jpg) # Delivery Status Source: https://razorpay.com/docs/payments/magic-checkout/rto-reduction/delivery-status Share the order history (pre-Magic Checkout) and monthly delivery status for Razorpay Magic Checkout orders to improve intelligence and RTO protection. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can share your historical order data (pre-Magic Checkout) and delivery status with Razorpay Magic Checkout for improved COD intelligence and better RTO protection. You must upload the following: * [Monthly Delivery Data](#monthly-delivery-data) for Magic Checkout orders. * [Pre-Magic Delivery Data](#pre-magic-delivery-data). #### Advantages * Reduce the RTO rate in the long run. * Get improved COD intelligence from day 1. * Better RTO protection. ## Monthly Delivery Data You can share the monthly delivery status data for Magic Checkout orders to be eligible for RTO protection and get improved COD intelligence. If you have not integrated with logistics partners like [Shiprocket](/docs/payments/magic-checkout/rto-reduction/logistics-partners/shiprocket), [Delhivery](/docs/payments/magic-checkout/rto-reduction/logistics-partners/delhivery), [iThink Logistics](/docs/payments/magic-checkout/rto-reduction/logistics-partners/ithink-logistics), [Unicommerce](/docs/payments/magic-checkout/rto-reduction/logistics-partners/unicommerce) and [ClickPost](/docs/payments/magic-checkout/rto-reduction/logistics-partners/clickpost), you must manually upload the data. \ > [accordion] To upload the delivery statuses: > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > > 2. Select the platform of your e-commerce website, enter the relevant details and click **Next**. > > 3. Navigate to **RTO Reduction Setup** โ†’ **Delivery Data Upload**. > > 4. In the **RTO Reduction Setup** section, navigate to the **Delivery Data Upload** tab. > > 5. Click **+ Upload Delivery Statuses**. > > ![Monthly delivery data on the Razorpay Dashboard and upload the file](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-monthly-delivery.jpg) > > 6. Download the **sample file** for the template. Enter the Order id, Status, Shipping Charges, AWB number and Shipping Provider to claim RTO Insurance. Upload the file. > > > [!WARNING] > > > > **Watch Out!** > > > > * Shipping provider and AWB number fields are mandatory. > > * Merchant\_order\_id should contain your platform order id as mentioned in the order. For example, `#BCA1011`. > > * The status should contain the shipping status against the order. For example, RTO, Delivered, Cancelled and so on. > > * Upload a `.csv` or an `.xlsx` file. > > * The maximum size of the file is 50MB. > > * The number of rows in the file should not exceed 1 million. > > ![download the sample file and enter the details required](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-delivery-upload.jpg) > > Here is a glimpse of the sample file: ## Pre-Magic Delivery Data You can share your shipping provider's pre-Magic Checkout order history on Razorpay Magic Checkout for the last 6 months to get improved COD intelligence and better RTO protection. Follow the steps given below to share the order history: > [accordion] Export Order History > > We recommend that you upload the data for the last 6 months. Currently, Magic Checkout supports order history upload for: > > > [accordion] Shiprocket > > > > Follow the steps given below: > > > > 1. Log in to the [Shiprocket Dashboard](https://app.shiprocket.in/login) and navigate to **Orders**. > > > > ![Navigate to orders on the Shiprocket Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-shiprocket-orders.jpg) > > 2. Under **All**, select **Custom** and filter the data for the last 6 months. Click **Apply**. > > > > ![Filter the data for the last 6 months](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-shiprocket-date.jpg) > > 3. Click the download icon. > > ![Download the data filtered](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-shiprocket-download.jpg). > > 4. Your report is sent to your email id or you can also download it from the **Reports Panel**. > > > [accordion] Delhivery *(Old Dashboard)* > > > > Follow the steps given below: > > > > 1. Log in to the [Delhivery Dashboard](https://cl.delhivery.com/app/home) and click **Go to Dashboard**. > > > > ![Navigate to the Delhivery Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-delhivery-dashboard.jpg) > > 2. Click **APPLY FILTER**. > > 3. Click **Custom Date Range** and select the **Start Date** and the **End Date**. Click **Apply Filter**. > > > > ![Filter the data for the last 6 months](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-delhivery-date.jpg) > > 4. Click **Download**. > > > > ![Download the data filtered](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-delhivery-download.jpg) > > > [accordion] Pickrr > > > > Follow the steps given below: > > > > 1. Log in to the Pickrr Dashboard. > > 2. Navigate to **Reports** โ†’ **Advanced Report**. > > > > ![Navigate to Advanced Reports on the Pickr Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-pickrr-reports.jpg) > > 3. Select **Download By Data Range**. > > 4. Select upload dates. > > 5. Select the **File Type** as **MIS**. > > 6. Select the **Status** as **All** from the drop-down list. > > 7. Enter your **Email Address** and click **Download**. The report download link is sent to your email ID. > > > > ![Download the data filtered](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-pickrr-download.jpg) > [accordion] Upload Order History > > To upload order history: > > 1. Log in to the Razorpay Dashboard and navigate to **Magic Checkout**. > > 2. Select the platform of your e-commerce website, enter the relevant details and click **Next**. > > 3. In the **RTO Reduction Setup** section, navigate to the **RTO History** tab. > > 4. Click **+ Upload Order History**. > > ![Upload order history on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-order-history.jpg) > > 5. Select the **Shipping Provider** from the drop-down list. > > 6. Upload the order history file you downloaded in the [previous step](#export-order-history). > > > [!WARNING] > > > > **Watch Out!** > > > > * Upload a `.csv` file. Only one file upload is allowed. > > * The maximum size of the file is 50MB. > > * If you use multiple shipping providers, please upload the file from your most frequently used provider. > > 7. Click **Confirm**. > > ![Upload the order history file](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-pre-magic.jpg) ### Related Information * [RTO Analytics](/docs/payments/magic-checkout/analytics/rto) * [Integrate with Logistics Partners](/docs/payments/magic-checkout/rto-reduction/logistics-partners) # About Logistics Partners Integration Source: https://razorpay.com/docs/payments/magic-checkout/rto-reduction/logistics-partners Integrate with Logistics Partners like Shiprocket, Delhivery, iThink Logistics, Unicommerce and ClickPost to easily fetch order status and provide RTO protection on COD orders. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Logistics Partners Integration Changelog](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to the Logistics Partners Integration (since Jan 2024). Your logistics partner is responsible for delivering orders to your customers. You can integrate with Logistics Partners like **Shiprocket**, **Delhivery**, **iThink Logistics**, **Unicommerce** and **ClickPost** with Magic Checkout to easily fetch order status and provide RTO protection on COD orders. #### Features * Get the delivery status update periodically. * Eliminate the need to send these updates or bulk upload them via Dashboard manually. #### Advantages * Improve the COD Intelligence you receive in filtering out high RTO risk COD orders. * Orders processed will be eligible for RTO Insurance (if opted). ## Available Logistics Partners You can integrate with the following logistics partners: * [Shiprocket](/docs/payments/magic-checkout/rto-reduction/logistics-partners/shiprocket) * [Delhivery](/docs/payments/magic-checkout/rto-reduction/logistics-partners/delhivery) * [iThink Logistics](/docs/payments/magic-checkout/rto-reduction/logistics-partners/ithink-logistics) * [Unicommerce](/docs/payments/magic-checkout/rto-reduction/logistics-partners/unicommerce) * [ClickPost](/docs/payments/magic-checkout/rto-reduction/logistics-partners/clickpost) ### Related Information * [Upload Order Status](/docs/payments/magic-checkout/rto-reduction/delivery-status) * [Customisations and Extensions](/docs/payments/magic-checkout/customisations-extensions) # Integrate Magic Checkout with ClickPost Source: https://razorpay.com/docs/payments/magic-checkout/rto-reduction/logistics-partners/clickpost Integrate ClickPost with Razorpay Magic Checkout to easily fetch delivery status details. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ClickPost is India's largest ecommerce shipping and courier integration platform. It operates as a multi-carrier integration system, a courier tracking system, and an overall logistics solution. ## Integration Steps Follow these steps on the Razorpay Dashboard: 1. Log in to the Dashboard and navigate to **Magic Checkout**. 2. Select the platform of your e-commerce website, enter the relevant details and click **Next**. 3. In the **RTO Reduction Setup** section, navigate to the โ†’ **Delivery Tracking** tab. 4. Click **Connect** next to **ClickPost**. ![Connect Magic Checkout with ClickPost](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-connect.jpg) 5. Enter the same **Username** and **Key** as provided by ClickPost during the registration. 6. Click **Connect to ClickPost**. ![Paste the API Keys on the Razorpay Dashboard and connect](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-clickpost-creds.jpg) You have successfully integrated Magic Checkout with ClickPost. In case you want to disconnect ClickPost, click **Disconnect**. # Integrate Magic Checkout with Delhivery Source: https://razorpay.com/docs/payments/magic-checkout/rto-reduction/logistics-partners/delhivery Integrate Delhivery with Razorpay Magic Checkout to easily fetch delivery status details. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Delhivery is an Indian supply chain and logistics company aiming to build an operating system for commerce. ## Integration Steps Follow these steps on the Razorpay Dashboard: 1. Log in to the Dashboard and navigate to **Magic Checkout**. 2. Select the platform of your e-commerce website, enter the relevant details and click **Next**. 3. In the **RTO Reduction Setup** section, navigate to the โ†’ **Delivery Tracking** tab. 4. Click **Connect** next to **Delhivery**. ![Connect Magic Checkout with Delhivery](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-connect.jpg) 5. Send an email to the **Delhivery team** on `de.onb@delhivery.com` requesting for the **Production Authentication Token**. 6. Enter the token once you receive it and click **Connect**. ![Enter the production authentication token](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-delhivery-connect.jpg) You have successfully integrated Magic Checkout with Delhivery. In case you want to disconnect Delhivery, click **Disconnect**. # Integrate Magic Checkout with iThink Logistics Source: https://razorpay.com/docs/payments/magic-checkout/rto-reduction/logistics-partners/ithink-logistics Integrate iThink Logistics with Razorpay Magic Checkout to easily fetch delivery status details. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India iThink logistics is a third-party logistics service provider that makes your ecommerce shipping process easier. ## Integration Steps > [accordion] Copy the API Keys > > 1. Log in to the [iThink Logistics Dashboard](https://my.ithinklogistics.com/login) and hover over the settings icon on the bottom left. > 2. Click **API Key**. > > ![Navigate to API keys section on the iThink logistics Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-ithink.jpg) > 3. Copy the **API Key** and **Secret Key**. > > ![Copy the API Keys](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-ithink-keys.jpg) > [accordion] Enable iThink Logistics on Razorpay Dashboard > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > 2. Select the platform of your e-commerce website, enter the relevant details and click **Next**. > 3. In the **RTO Reduction Setup** section, navigate to the โ†’ **Delivery Tracking** tab. > 4. Click **Connect** next to **iThink Logistics**. > > ![Connect Magic Checkout with iThink Logistics](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-connect.jpg) > 5. Paste the **API Key** and **Secret Key** copied from the iThink Logistics Dashboard. > 6. Click **Connect to iThink Logistics**. > > ![Paste the API Keys on the Razorpay Dashboard and connect](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-ithink-creds.jpg) > > You have successfully integrated Magic Checkout with iThink Logistics. In case you want to disconnect iThink Logistics, click **Disconnect**. # Integrate Magic Checkout with Shiprocket Source: https://razorpay.com/docs/payments/magic-checkout/rto-reduction/logistics-partners/shiprocket Integrate Shiprocket with Razorpay Magic Checkout to easily fetch delivery status details. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Shiprocket is India's leading logistics software, offering automated shipping solutions. ## Integration Steps > [accordion] Configure Settings on Shiprocket Dashboard > > > [!NOTE] > > > > **Handy Tips** > > > > This step is required only if you are generating the API credentials for the first time. If you have already generated the API credentials, please skip this step. > > 1. Log in to the [Shiprocket Dashboard](https://app.shiprocket.in/login) and navigate to **Settings** โ†’ **API** on the bottom right. > 2. Click **Configure**. > > ![Navigate to Configure section on the Shiprocket Dashboard.](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-shiprocket-login.jpg) > 3. In the **API User** section, click **Create an API User**. > 4. Enter your **Email ID** and **password**. > 5. Click **Generate API Credential**. > > ![Enter the credentials and generate the API keys](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-shiprocket-api.jpg) > [accordion] Enable Shiprocket on Razorpay Dashboard > > 1. Log in to the Dashboard and navigate to **Magic Checkout**. > 2. Select the platform of your e-commerce website, enter the relevant details and click **Next**. > 3. In the **RTO Reduction Setup** section, navigate to the โ†’ **Delivery Tracking** tab. > 4. Click **Connect** next to **Shiprocket**. > > ![Connect Magic Checkout with Shiprocket](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-connect.jpg) > 5. Enter your **API User Email ID** and **API User Password** generated on the Shiprocket Dashboard. > 6. Click **Connect to Shiprocket**. > > ![Enter your API keys](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-shiprocket-credentials.jpg) > > You have successfully integrated Magic Checkout with Shiprocket. In case you want to disconnect Shiprocket, click **Disconnect**. > [!NOTE] > > **Handy Tips** > > For Shiprocket integration issues, contact Shiprocket support directly as it is a third-party platform. # Integrate Magic Checkout with Unicommerce Source: https://razorpay.com/docs/payments/magic-checkout/rto-reduction/logistics-partners/unicommerce Integrate Unicommerce with Razorpay Magic Checkout to easily fetch delivery status details. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Unicommerce eSolutions is India's largest e-commerce-focused SaaS technology supply chain platform. It is designed to meet the business needs of e-commerce across various industries. > [!WARNING] > > **Watch Out!** > > Ensure you have a Unicommerce account with an **Admin** role and Shopify access. If you do not have access, follow [these steps](https://documentation.unicommerce.com/docs/faq-uniware.html#5-how-to-give-facility-access-to-a-user) to set it up. ## Integration Steps Follow these steps on the Razorpay Dashboard: 1. Log in to the Dashboard and navigate to **Magic Checkout**. 2. Select the platform of your e-commerce website, enter the relevant details and click **Next**. 3. In the **RTO Reduction Setup** section, navigate to the โ†’ **Delivery Tracking** tab. 4. Click **Connect** next to **Unicommerce**. ![Connect Magic Checkout with Unicommerce](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-connect.jpg) 5. Enter the same **Username** and **Password** as your Unicommerce admin account login credentials. 6. Enter **Tenant** from the Unicommerce domain URL. For example, if the Unicommerce Dashboard URL after you log in is `acmecorp.unicommerce.com`, **acmecorp** is the tenant. ![Paste the API Keys on the Razorpay Dashboard and connect](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-unicommerce-creds.jpg) You have successfully integrated Magic Checkout with Unicommerce. In case you want to disconnect Unicommerce, click **Disconnect**. # Set Up Magic Checkout on Your Shopify Store Source: https://razorpay.com/docs/payments/magic-checkout/shopify Which Shopify setup you have, how to put Magic Checkout live on your store yourself, how to check it is live and why buyers may still see Shopify checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Magic Checkout replaces the Shopify checkout on your store with Razorpay's one-page checkout. This page covers Shopify stores. For WooCommerce, Magento or your own website, see [Magic Checkout](/docs/payments/magic-checkout). ## Which Shopify setup you have Razorpay runs two different Shopify setups. Check which one you are on before you follow any steps on this site. | Setup | What it is | How to tell | | - | - | - | | **Magic Checkout** (custom app) | Razorpay creates a custom app for your store and you install it in Shopify. Razorpay's checkout pop-up replaces the Shopify checkout, takes the payment and creates the order in Shopify. This is the setup new Shopify stores get. | **Setup & Settings** on your Razorpay Dashboard shows **Checkout Setup**. The Dashboard calls the app **Razorpay Magic Checkout Pro**; in your Shopify admin it appears as your merchant ID followed by **MagicCheckout**. The theme Magic Checkout was added to has **Magic Checkout** in its name. | | **Shopify One-page Checkout(MagicX)** (public app) | The **Razorpay COD & Magic Checkout App** from the Shopify App Store. Razorpay's window collects the buyer's phone number, OTP and saved address, then opens Shopify's own checkout with those details filled in. The buyer pays on Shopify. | **Setup & Settings** shows **Checkout Settings** and **Control Center**. When Razorpay has offered you the upgrade, the menu shows a **Magic Checkout Pro** card (**Set up in 2 minutes!**). If both apps are installed, **Checkout Setup** shows **Toggle checkout platform:** with **Shopify One-page Checkout(MagicX)** as one option. | Shopify One-page Checkout is being retired. Existing stores keep it until they move to Magic Checkout through the **Magic Checkout Pro** card on the Dashboard (**Start setup**, then **Start upgrade**), which uninstalls the public app. New stores set up Magic Checkout, as on this page. The settings pages for One-page Checkout are under [COD & Magic Checkout](/docs/payments/cod-magic-checkout/shopify). | What differs | Magic Checkout | Shopify One-page Checkout(MagicX) | | - | - | - | | Where the buyer pays | Razorpay's checkout pop-up | Shopify's own checkout | | Cash On Delivery page, Advanced COD Workflows, Partial COD, Convert COD to Prepaid, RTO Analytics | Yes | No. COD on this setup is Razorpay COD, set on its own COD Settings page and applied as a Shopify shipping rate and payment customisation | | Shipping rates set on the Razorpay Dashboard | Yes | No, only where you ship; the buyer pays Shopify's rate | | Checkout Setup, Checkout Config, Additional Fee, GSTIN capture | Yes | A smaller Checkout Settings page; no GSTIN | | Orders list with refunds, Edit Orders | Yes | No | | Segments, Analytics and ads setup, Order analytics, Magic Cart | Yes | No | | Control Center | No | Yes | ## When Magic Checkout is live for your buyers Buyers see the Magic Checkout pop-up only when all of these are true: 1. Your Razorpay account is activated, so you have Live API keys, and your Dashboard is in Live mode when you start setup. Setup writes your Live key into the store and checks for keys in the mode the Dashboard is in; without the Live key Magic Checkout cannot run. 2. Magic Checkout is switched on for your Razorpay account, either by you through the setup on this page or by Razorpay. 3. The buyer is viewing your store in Indian Rupees. Magic Checkout does not load on a page shown in another currency, for example through a Shopify Markets currency selector. A display-only converter app does not affect this. 4. The theme Magic Checkout was added to, the one with **Magic Checkout** in its name, is your **published** theme in Shopify. Magic Checkout lives inside one theme. Any other theme does not have it. 5. On Shopify One-page Checkout(MagicX) only: **Enable Magic Checkout** is on under **Setup & Settings** โ†’ **Checkout Settings**. Magic Checkout on the custom app has no on/off switch. 6. Shipping is set up under **Setup & Settings** โ†’ **Shipping Setup**. Home shows **Shipping is required to start Magic Checkout** until it is. 7. Every product in the cart is in stock, published, and available to the Magic Checkout app in Shopify. Otherwise Magic Checkout opens, shows **Uh-oh!**, and **Go to cart** takes the buyer to the Shopify checkout. If any one of these fails, buyers land on the Shopify checkout page. See [Why is this not working?](#why-is-this-not-working). ## What setup switches on for you Self-serve setup turns on Magic Checkout for your account with these defaults: taxes included in prices, the email field shown at checkout, the Razorpay coupon engine, Partial COD, the Magic Checkout button on product pages (off in the cart), and your Shopify shipping rates imported into Magic Checkout. Change any of them later under **Setup & Settings**. ## Before you start * Finish KYC on the Razorpay Dashboard and wait for activation. Live API keys exist only after activation, and setup needs them. * Switch the Dashboard to Live mode and generate API keys under **Account & Settings** โ†’ **Website and app settings** โ†’ **API keys**. Without a key in the current mode, setup stops at **API key not found!**. * Use an owner or admin login on the Razorpay Dashboard. Other roles do not see **Setup & Settings**. * Use a Shopify login that can install apps and manage themes. * Leave room for one more theme in your Shopify theme library. Setup makes a copy of your live theme and adds Magic Checkout to that copy. * Connect one Shopify store to one Razorpay account. Connecting a second store to the same account replaces the first. ## Set up Magic Checkout yourself Every Razorpay account can set up Magic Checkout on Shopify itself. The Magic Checkout page on the Dashboard shows **Try Magic Checkout now**. Your progress is saved, so you can close the Dashboard and come back; after the app is installed the store URL is locked. > [accordion] Step 1: Start setup and connect your store > > 1. Log in to the [Razorpay Dashboard](https://dashboard.razorpay.com/) and open **Magic Checkout**. > 2. Click **Try Magic Checkout now**. If you started earlier, the button reads **Resume setup** and shows your progress. > > ![Try Magic Checkout now](https://mintcdn.com/razorpay-881012b3/5gQNTic0lHgA-ZJy/static/docs-home/assets/magic-shopify-setup-start.jpg?fit=max\&auto=format\&n=5gQNTic0lHgA-ZJy\&q=85\&s=7163842202475c11b001c1d635e690e8) > 3. If **API key not found!** opens, click **Open Settings**, generate your Live API keys, come back and click **Try Magic Checkout now** again. > 4. Under **What's your store URL?**, type your store address in **Enter Shopify URL** or pick it from **Shopify store URL**. Wait for **Valid Shopify URL**. > > ![What's your store URL](https://mintcdn.com/razorpay-881012b3/5gQNTic0lHgA-ZJy/static/docs-home/assets/magic-shopify-setup-url.jpg?fit=max\&auto=format\&n=5gQNTic0lHgA-ZJy\&q=85\&s=9a2e04fb681600d1d3538d07e36717d5) > 5. Click **Proceed to install app**. > [accordion] Step 2: Install the app on Shopify > > 1. On the **Razorpay Magic Checkout Pro** card, click **Install App**. Shopify opens; install the app there. > > ![Install the Razorpay Magic Checkout Pro app](https://mintcdn.com/razorpay-881012b3/5gQNTic0lHgA-ZJy/static/docs-home/assets/magic-shopify-setup-install.jpg?fit=max\&auto=format\&n=5gQNTic0lHgA-ZJy\&q=85\&s=4a88079f62b0671e4a25cc101f475124) > 2. Come back to the Razorpay tab and click **Next**. > 3. If you see **Do you levy taxes on your products?**, pick the answer that fits your store and click **Proceed to create theme**. On the shorter setup the tax setting is read from your Shopify store and the question appears only if that read fails. > [accordion] Step 3: Add Magic Checkout to a copy of your theme > > 1. Under **Shopify theme creation**, check the theme marked **Created for you**. It is a copy of your live theme. > > ![Shopify theme creation](https://mintcdn.com/razorpay-881012b3/5gQNTic0lHgA-ZJy/static/docs-home/assets/magic-shopify-setup-theme.png?fit=max\&auto=format\&n=5gQNTic0lHgA-ZJy\&q=85\&s=61a0860e6980cc10d0c27285d319ad62) > > 2. If you see **You're out of themes!**, delete an unused theme in Shopify, then click **Refresh**. Never delete your live theme; deleting a theme cannot be undone. > > 3. Click **Integrate Magic Checkout** and wait for it to finish. The page may reload once or twice; wait a minute, then refresh. > > > [!NOTE] > > > > **Magic Checkout is in the copy, not in your live theme yet** > > > > Nothing changes for your buyers until you publish the copy in Step 5. Test it first. > [accordion] Step 4: Set up shipping > > On **Home**, under **Complete your setup**, open **Shipping setup** and click **View all shipping settings**. Switch on **Magic Shipping** and set up your zones and methods. **Home** ticks this step when **Magic Shipping** is on. Magic Checkout does not start without shipping. See [Shipping Options](/docs/payments/magic-checkout/shopify/features#shipping-options). > [accordion] Step 5: Test, then publish the theme > > 1. In Shopify admin, go to **Online Store** โ†’ **Themes**. Find the copy under **Draft themes**; its name contains **Magic Checkout**. Click **Preview**, add a product to the cart, click **Checkout** and place a test order. The Magic Checkout pop-up should open and the order should land in Shopify as you expect. Orders placed on a preview theme do not count in Magic Checkout Analytics. [Watch how to test and publish](https://www.youtube.com/watch?v=onRhGmippxY). > > 2. Happy with the test? Publish the copy: click **Publish** on it and confirm. On **Home**, under **Complete your setup**, **Publish theme on Shopify** opens the Shopify themes page for you. > > 3. Back on **Home**, click **I've done it**. The step turns complete only when the Magic theme is your live theme. If **Home** does not show this step, see [Check that Magic Checkout is live](#check-that-magic-checkout-is-live) instead. > > ![Complete your setup checklist on Home](https://mintcdn.com/razorpay-881012b3/5gQNTic0lHgA-ZJy/static/docs-home/assets/magic-shopify-setup-home-checklist.jpg?fit=max\&auto=format\&n=5gQNTic0lHgA-ZJy\&q=85\&s=537adccf97faa7487b08795252ee4734) > > > [!WARNING] > > > > **Watch Out!** > > > > * The copy was made at setup time, so any edits you made to your live theme since then are not in it. Make them again on the copy before you publish. > > * Shopify does not switch other apps' embeds on in a newly published theme. Check your other apps after publishing. ## Check that Magic Checkout is live "Live" has two parts: Magic Checkout is on for your Razorpay account, and Magic Checkout is on the theme your buyers see. Both must be true. 1. On the Dashboard, open **Magic Checkout**. **Home** should greet you with **Welcome to Magic checkout**. If you still see **Try Magic Checkout now** or **Resume setup**, setup is not finished. 2. In Shopify admin, **Online Store** โ†’ **Themes**: the published theme must be the one with **Magic Checkout** in its name, not a draft and not another theme. 3. Open your store in a private window, add a product to the cart and click **Checkout**. The Magic Checkout pop-up should open, not the Shopify checkout page. Do this on the preview of the copy theme before you publish, and again on the live store after. > [!NOTE] > > **On Shopify One-page Checkout(MagicX)** > > Check **Enable Magic Checkout** is on under **Setup & Settings** โ†’ **Checkout Settings**. Then in Shopify, open your live theme's editor, click **App embeds** and check the Razorpay embed is on. Test as in step 3: Razorpay's window should open before the Shopify checkout. ## Change your Shopify theme Magic Checkout's code sits inside one theme, the one with **Magic Checkout** in its name. A new or changed theme does not have it, so buyers go back to the Shopify checkout. Your Razorpay settings are not affected. 1. Write to [magic-checkout-support@razorpay.com](mailto:magic-checkout-support@razorpay.com) with your store URL and the name of the new theme. Razorpay adds Magic Checkout to that theme itself, not to a copy. 2. If the theme is not published yet, preview it, place a test order, then publish it, as in Step 5 above. 3. Add back any other custom code your old theme had, or ask whoever added it. > [!NOTE] > > **On Shopify One-page Checkout(MagicX)** > > This setup runs as a Shopify app embed, and Shopify does not switch app embeds on in a newly published theme. In Shopify admin, open **Online Store**, click **Customize** on the new theme, click **App embeds**, switch the Razorpay embed on and click **Save**. Or on the Dashboard, under **Setup & Settings** โ†’ **Checkout Settings**, check **Enable Magic Checkout** is on and click **Save Settings**, which opens the theme editor for you. Click **Save** there. ## Turn Magic Checkout off Magic Checkout on the custom app has no switch on the Dashboard. To turn it off, write to [magic-checkout-support@razorpay.com](mailto:magic-checkout-support@razorpay.com) with your store URL. Buyers then go to the normal Shopify checkout. Do not uninstall the Shopify app to pause Magic Checkout: uninstalling turns Magic Checkout off on your Razorpay account and you would have to set it up again. When Razorpay switches Magic Checkout off for you, the theme code stays in place. On Shopify One-page Checkout(MagicX): under **Setup & Settings** โ†’ **Checkout Settings**, switch off **Enable Magic Checkout** and click **Save Settings**. ## Why is this not working? > [accordion] Buyers see the Shopify checkout instead of Magic Checkout. > > Check these in order and stop at the first one that fails. > > 1. Magic Checkout is on for your account: **Home** greets you with **Welcome to Magic checkout**. On Shopify One-page Checkout(MagicX): **Enable Magic Checkout** is on under **Setup & Settings** โ†’ **Checkout Settings**, and the Razorpay app embed is on in your live theme's editor. > 2. The published theme in Shopify is the one with **Magic Checkout** in its name. If you changed or published another theme, see [Change your Shopify theme](#change-your-shopify-theme). > 3. The buyer is viewing the store in Indian Rupees. A Shopify Markets currency selector set to another currency stops Magic Checkout from loading on that page. > 4. The products in the cart are in stock, published and available to the Magic Checkout app. If not, Magic Checkout opens with **Uh-oh!** and **Go to cart** sends the buyer to the Shopify checkout. > 5. If both Razorpay apps are installed: **Toggle checkout platform:** under **Setup & Settings** โ†’ **Checkout Setup** is set to the checkout you want. > 6. If **Enable International Shipping** is on under **Setup & Settings** โ†’ **Shipping Setup** and the buyer confirms an address outside India, Magic Checkout sends them to the Shopify checkout on purpose. With it off, buyers cannot pick another country. > 7. Theme code was edited. If the file `snippets/razorpay-magic-checkout.liquid` was changed or removed from the theme, Magic Checkout does not load. Write to support with the theme name; re-adding Magic Checkout rewrites the file. > 8. Other apps take the first click. Upsell apps such as SellEasy and Zepto handle the first click on the checkout or Buy it now button and Magic Checkout opens on the second. Carts with a Recurpay subscription go to Recurpay's checkout, and a cart with a total of zero goes to the Shopify checkout. > 9. If only some products fail: open the product in Shopify admin and under **Publishing** make sure the **Magic Checkout** sales channel is selected. > > If every check passes, write to [magic-checkout-support@razorpay.com](mailto:magic-checkout-support@razorpay.com) with your store URL, a product link, the time it happened and a screen recording. Six causes only Razorpay can see: a traffic split on your account that sends a share of buyers to the Shopify checkout, a missing or malformed key in the theme code, an unsupported bundle app in the cart, a failure creating the Shopify checkout or order, a failure fetching taxes, or a failure applying additional fees. > [accordion] I do not know whether Razorpay has turned Magic Checkout on for my account. > > Open **Magic Checkout** on the Dashboard. **Try Magic Checkout now** or **Resume setup** means Magic Checkout is not live yet: finish the setup yourself. **Welcome to Magic checkout** on **Home** means it is on and setup is done. > [accordion] Setup stops at API key not found! > > You have no Live API keys. Click **Open Settings**, generate them and start again with **Try Magic Checkout now**. > [accordion] Setup stops at You're out of themes! > > Your Shopify theme library is full. Delete an unused theme in Shopify, never the live one, then click **Refresh**. > [accordion] Home says the Magic theme is not live on my store yet. > > The copy theme with **Magic Checkout** in its name is still a draft. Publish it in Shopify under **Online Store** โ†’ **Themes**, then click **I've done it** again. **Your live theme is ... Magic is set up on a different theme.** means you published another theme: publish the Magic Checkout theme again, or follow [Change your Shopify theme](#change-your-shopify-theme) if you want Magic on the new one. > [accordion] My store is not on Shopify. > > On the Magic Checkout page, click **Not on Shopify?**, choose your platform under **Choose your platform** and click **Continue**. WooCommerce and Magento stores then follow their own setup pages; a custom website needs a developer and the [website integration](/docs/payments/magic-checkout/web). > [accordion] My menu shows Checkout Settings, not Checkout Setup. > > You are on Shopify One-page Checkout(MagicX). Use the **Magic Checkout Pro** card in the menu, when Razorpay has offered it, to move to Magic Checkout, or see [COD & Magic Checkout](/docs/payments/cod-magic-checkout/shopify) for its settings. > [accordion] Where do I see my orders and conversions after going live? > > Orders placed through Magic Checkout appear in Shopify as usual and under **Magic Checkout** โ†’ **Orders** on the Razorpay Dashboard. Conversion numbers are under **Magic Checkout** โ†’ **Analytics**. ## What to set up next * [Shipping Options](/docs/payments/magic-checkout/shopify/features#shipping-options): zones, methods and rates. Required before Magic Checkout starts. * [Cash on Delivery](/docs/payments/magic-checkout/shopify/features#cash-on-delivery): turn COD on and set where and when it shows. * [Coupons](/docs/payments/magic-checkout/shopify/features#coupons) and [Login with Razorpay](/docs/payments/magic-checkout/shopify/features#login-with-razorpay). * [Google Analytics](/docs/payments/magic-checkout/shopify/features#google-analytics), [Google Ads](/docs/payments/magic-checkout/shopify/features#google-ads) and [Facebook Ads](/docs/payments/magic-checkout/shopify/features#facebook-ads) under **Setup & Settings** โ†’ **Analytics and ads setup**. * [Abandoned Sessions](/docs/payments/magic-checkout/abandoned-sessions): recover buyers who dropped off. # Additional Fees - Shopify Magic Checkout Source: https://razorpay.com/docs/payments/magic-checkout/shopify/additional-fees Configure a named convenience, platform or handling fee on Magic Checkout for your Shopify store, shown to buyers as a line item and included in the order total. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Additional Fees lets you charge buyers a single named fee โ€” such as a **Convenience Fee**, **Platform Fee** or **Handling Fee** โ€” at Magic Checkout. The fee is shown to buyers as a line item in the order summary, added to the order total and passed through to your Shopify order, so your operations team can reconcile it without leaving Shopify. Use this to recover operational costs such as packaging, platform or handling on every order, instead of building the cost into your product prices. > [!NOTE] > > **Availability** > > Additional Fees is available for **Shopify** merchants on Magic Checkout. It is **disabled by default** โ€” buyers see no fee until you enable and configure it. > > The feature is being rolled out in phases. If you do not see the **Additional Fee** section on your Dashboard, write to us at [magic-checkout-support@razorpay.com](mailto:magic-checkout-support@razorpay.com). ## How the Fee Works * You configure **one** fee โ€” either a **flat amount**, for example โ‚น10, or a **percentage** of the cart subtotal, for example 1%. * The fee is charged to the buyer **exactly as you configure it**. Razorpay does not calculate or add any tax on top โ€” you are responsible for the tax treatment of the fee on your own books. * The fee appears as a plain line item in the order summary, with the same visual weight as taxes and shipping. There is no banner or highlight. * The fee is included in the total Razorpay captures and in the total written to your Shopify order. ### How the Amount is Calculated For a **flat fee**, the configured amount is charged on every order, regardless of cart value โ€” including โ‚น0 carts. For a **percentage fee**, the amount is calculated on the **cart subtotal before any discount** โ€” the sum of item prices in the cart: * Coupons, loyalty points, gift card redemptions and payment offers **do not** reduce the amount the fee is calculated on. The fee is resolved once against the pre-discount subtotal and stays fixed for the session, so buyers do not see it change when they apply or remove a coupon. * The fee is calculated before shipping, taxes and COD charges are added. * A percentage fee resolves to โ‚น0 only when the pre-discount subtotal itself is โ‚น0. > [!NOTE] > > **Discounts do not waive the fee** > > The fee is a merchant charge tied to the order being placed, not to the discounted amount the buyer pays. A coupon, even a 100%-off coupon, reduces what the buyer pays but does not reduce the fee. Loyalty points, gift card balance and payment offers can still cover the fee amount at payment time โ€” the same way they cover shipping and COD charges today. ## Configure Additional Fees To set up your fee: 1. Log in to the [Razorpay Dashboard](https://dashboard.razorpay.com/) and navigate to **Magic Checkout** โ†’ **Magic Suite** โ†’ **Additional Fee**. 2. Select **Add Additional Fees**. The configuration fields become active. ![additional fee configuration page on the magic checkout dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-additional-fee-config.png) 3. Select the **Fee name** from the drop-down list. You can choose one of the following pre-approved labels: * Convenience Fee * Platform Fee * Handling Fee * Handling Charges * Packaging Fee * Packaging Charges * Service Fee * Other Charges ![fee name drop-down list with the pre-approved fee labels](https://razorpay.com/docs/build/browser/assets/images/magic-additional-fee-name-dropdown.png) 4. Select the **Fee type**: * **Flat**: a fixed rupee amount charged on every order. * **Percentage**: a percentage of the cart subtotal. 5. Enter the **amount** for a flat fee, or the **rate** for a percentage fee. > [!WARNING] > > **Watch Out!** > > * The amount or rate must be **greater than 0** and use at most **2 decimal places**. > * A percentage rate cannot be greater than **100**. > * There is **no upper limit** on a flat fee amount โ€” set whatever amount fits your business. 6. Review the **Preview** panel on the right. It updates as you change the fee name, type or amount and shows how the fee appears to buyers. The preview uses a sample cart โ€” the actual amount at checkout depends on the buyer's cart. 7. Click **Publish**. In the **Publish this fee?** dialog, check the summary of what buyers will be charged and click **Confirm**. The fee goes live for all **new** checkout sessions from this point. To discard your changes instead, click **Cancel**. ![publish this fee confirmation dialog summarising the fee buyers will be charged](https://razorpay.com/docs/build/browser/assets/images/magic-additional-fee-publish-modal.png) You can return to this section at any time to change the fee name, amount or type, or to stop charging the fee. > [!NOTE] > > **Changes apply to new sessions only** > > Any change you make โ€” the amount, rate, type or fee name, or turning the fee off โ€” affects **new** checkout sessions only. Buyers already in an active checkout session are charged exactly what they were shown when their session started. ### Stop Charging the Fee To turn the fee off, select **No Additional Fees** and click **Confirm**. Buyers no longer see the charge on new checkout sessions. ## What Your Buyers See When the fee is enabled, buyers see it as a line item in the order summary on the **payments page**, below the delivery charge and immediately above the grand total: ![magic checkout order summary showing a platform fee line item above the grand total](https://razorpay.com/docs/build/browser/assets/images/magic-additional-fee-buyer-summary.png) In this example a โ‚น99 discount brings a โ‚น100 item down to โ‚น1, and the โ‚น49 Platform Fee is still charged in full. * The fee is shown only when the resolved amount is greater than โ‚น0. A percentage fee on a โ‚น0 cart is not shown. * Applying or removing a coupon changes the payable total but does **not** change the fee amount. ## What You See in Shopify Every order placed through Magic Checkout carries the fee into your Shopify order. The fee is added as its **own shipping line**, separate from the delivery charge, so it appears as a distinct row with its own amount. Here is an order with a โ‚น49 flat Packaging Charges fee, as it appears in your Shopify admin order view. The fee sits under **Shipping**, on its own row below the delivery charge: ![shopify admin order payment breakdown showing the packaging charges fee as a separate shipping row](https://razorpay.com/docs/build/browser/assets/images/magic-additional-fee-shopify-order.png) The fee row is labelled with the fee name you configured, so your operations team can identify and reconcile it directly in Shopify without opening the Magic Checkout Dashboard. The amount Razorpay captures always matches your Shopify order total. > [!NOTE] > > **Pulling orders through the Shopify API?** > > The fee is an entry in the order's `shippingLines`. Both `title` and `code` carry the fee name you configured, so match on the fee name rather than on a fixed value โ€” and note that changing your fee name on the Dashboard changes both fields on new orders. ## Refunds The additional fee is part of the order total and is **fully refundable** from Razorpay's payment layer: * **Full refund** on a cancellation or return: the fee is included in the refund. * **Payment captured but order not placed**: the full amount, including the fee, is refunded. * **Partial refund**: handled as a standard Razorpay partial refund on the captured total. The fee is part of the total and is not tracked or refunded separately. ## Frequently Asked Questions > [accordion] Can I charge more than one fee? > > No. You can configure a single fee at a time. Support for multiple fees may be added in future. > [accordion] Can I use a custom fee name? > > No. The label is selected from the eight pre-approved options listed in [Configure Additional Fees](#configure-additional-fees). Free-text labels are not supported. > [accordion] Will Razorpay add GST on top of the fee I set? > > No. The amount you configure is charged to the buyer exactly as set, that is, tax-inclusive. Razorpay does not calculate or add any tax on top. You are responsible for the tax treatment of the fee on your own books. > [accordion] Does a coupon or discount reduce the fee? > > No. A percentage fee is calculated on the cart subtotal before any discount and stays fixed for the session. Coupons, loyalty points, gift cards and payment offers reduce what the buyer pays but do not reduce the fee amount. > [accordion] Is the fee charged on COD orders? > > Yes. In this version, the additional fee applies to COD orders and stacks with any existing COD fee. > [accordion] I changed the fee amount mid-day. Which buyers are affected? > > Only buyers who start a new checkout session after you save the change. Buyers already in an active session are charged the fee that was shown to them when their session started. ### Related Information [Shopify Features](/docs/payments/magic-checkout/shopify/features) # Integrate Magic Checkout on Android App - Shopify Source: https://razorpay.com/docs/payments/magic-checkout/shopify/custom/android-integration Steps to integrate Magic Checkout on your Android app using the Razorpay Android Standard SDK - Shopify integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your Android application when using Shopify as your e-commerce platform. ## Prerequisites * Ensure you enable [Magic Checkout](/docs/payments/magic-checkout/troubleshooting-faqs#how-do-i-check-if-magic-checkout-is-enabled-on-my-account) on your account. * Integrate [Magic Checkout With Shopify Store](/docs/payments/magic-checkout/shopify). * Integrate with [Android Integration](/docs/payments/magic-checkout/android-integration). * Generate [Live API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. > [card] [1. Build Integration](/docs/payments/magic-checkout/shopify/custom/android-integration#1-build-integration) > > Integrate with Android App for Shopify. > [card] [2. Test Integration](/docs/payments/magic-checkout/shopify/custom/android-integration#2-test-integration) > > Test the integration by making a test payment. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Create a Checkout id > > Generate a unique cart identifier to initiate the Magic Checkout process. > > > [!NOTE] > > > > **Important** > > > > Ensure you create the Shopify cart before making this request as the cart token must be included in the payload. > > `POST /magic/checkout/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/checkout/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "cart": { > "token": "ashgad?key=abasab", > "note": null, > "attributes": {}, > "item_count": 1, > "items": [ > { > "id": 100000000001, > "quantity": 1, > "product_id": 832938123321, > "variant_id": 100000000001, > "properties": {} > } > ] > } > }' > ``` > > ```json Response theme={null} > { > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "tax_details": { > "total_tax": 0, > "taxes_included": true > } > } > ``` > > > [accordion] Request Parameters > > > > `cart` *mandatory* > > : `object` Complete cart object from Shopify. > > > > `cart.token` *mandatory* > > : `string` Unique cart token from Shopify cart creation. > > > > `cart.note` *optional* > > : `string|null` Customer notes or special instructions. > > > > `cart.attributes` *optional* > > : `object` Custom attributes for the cart (key-value pairs). > > > > `cart.item_count` *mandatory* > > : `integer` Total number of items in the cart. > > > > `cart.items` *mandatory* > > : `array` Array of cart items. > > > > `cart.items[].id` *mandatory* > > : `integer` Unique item identifier. > > > > `cart.items[].quantity` *mandatory* > > : `integer` Quantity of the item. > > > > `cart.items[].product_id` *mandatory* > > : `integer` Shopify product identifier. > > > > `cart.items[].variant_id` *mandatory* > > : `integer` Shopify variant identifier. > > > > `cart.items[].properties` *optional* > > : `object` Custom item properties. > > > [accordion] Response Parameters > > > > `shopify_checkout_id` > > : `string` Unique checkout identifier for Shopify integration. > > > > `tax_details` > > : `object` Tax information for the checkout. > > > > `total_tax` > > : `integer` Total tax amount in smallest currency unit (paise). > > > > `taxes_included` > > : `boolean` Whether taxes are included in item prices. Possible values: > > > > * `true`: Taxes are included in item prices. > > * `false`: Taxes are separate from item prices. > [accordion] 2 Create Order id on Server > > Create a Razorpay order id required for the payment modal. This API requires the `shopify_checkout_id` from [Step 1.1](#1-create-a-checkout-id). > > `POST /magic/order/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/order/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: */*" \ > -H "Origin: https://api.razorpay.com" \ > -d '{ > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "ga_id": "GA1.1.xxxxxxx.xxxxxxxx", > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "", > "event_source_url": "https://your-store.com/" > }, > "utm_parameters": { > "landing_page_url": "https://your-store.com/", > "user_agent": "Mozilla/5.0 (Linux; Android 12; SM-G991B)..." > }, > "analytics": { > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "" > }, > "ga4": { > "session_ids": { > "_ga_XXXXXXXXXX": "GS1.1.xxxxxxxx.x.x.x.x.x" > }, > "client_id": "GA1.1.xxxxxxxx.xxxxxxxx" > }, > "google_ads": { > "gclid": "", > "wbraid": "", > "gbraid": "" > }, > "source_url": "https://your-store.com/" > } > }' > ``` > > ```json Response theme={null} > { > "preferences": null, > "order_id": "order_EKwxwAgItmmXdp" > } > ``` > > > [accordion] Request Parameters > > > > `shopify_checkout_id` *mandatory* > > : `string` Checkout id from [Step 1.1](#1-create-a-checkout-id). > > > > `ga_id` *optional* > > : `string` Google Analytics client identifier. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics parameters. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `event_source_url` *optional* > > : `string` Source URL for the event. > > > > `utm_parameters` *optional* > > : `object` UTM tracking parameters. > > > > `landing_page_url` *optional* > > : `string` Landing page URL. > > > > `user_agent` *optional* > > : `string` Browser user agent string. > > > > `analytics` *optional* > > : `object` Comprehensive analytics data. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics configuration. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `ga4` *optional* > > : `object` Google Analytics 4 configuration. > > > > `session_ids` *optional* > > : `object` GA4 session identifiers. > > > > `client_id` *optional* > > : `string` GA4 client identifier. > > > > `google_ads` *optional* > > : `object` Google Ads tracking parameters. > > > > `gclid` *optional* > > : `string` Google Click Identifier. > > > > `wbraid` *optional* > > : `string` Web-to-app measurement parameter. > > > > `gbraid` *optional* > > : `string` Google Ads Broad match parameter. > > > > `source_url` *optional* > > : `string` Source URL for analytics. > > > [accordion] Response Parameters > > > > `preferences` > > : `object|null` Customer preferences. Returns `null` if no preferences are set. > > > > `order_id` > > : `string` Unique Razorpay order identifier. For example, `order_EKwxwAgItmmXdp`. > [accordion] 3 Install Razorpay Android Standard SDK > > To install the SDK in your Android project, add the following code to your project's top-level build.gradle file. This provides access to the SDK library. > > ```json dependencies theme={null} > repositories { > mavenCentral() > } > > dependencies { > implementation 'com.razorpay:checkout:1.6.41' > } > ``` > [accordion] 4 Initialise Razorpay Android Standard SDK > > Use the `setKeyId()` method of the Checkout class to dynamically add your API key id. You can generate your API keys from the [Razorpay Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > To ensure the Checkout form loads quickly, call the `preload()` method early in your payment flow. The time taken to load resources may vary based on your network bandwidth. > > ```java Java theme={null} > public class PaymentActivity extends Activity { > > // ... > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > > /** > * Preload payment resources > */ > Checkout.preload(getApplicationContext()); > > // ... > > checkout.setKeyID(""); > > // ... > } > } > ``` > > ```kotlin kotlin theme={null} > class PaymentActivity: Activity(), PaymentResultWithDataListener, ExternalWalletListener { > // ..... > override fun onCreate(savedInstanceState: Bundle?) { > super.onCreate(savedInstanceState) > setContentView(R.layout.activity_payment) > /* > * To ensure faster loading of the Checkout form, > * call this method as early as possible in your checkout flow > * */ > Checkout.preload(applicationContext) > val co = Checkout() > // apart from setting it in AndroidManifest.xml, keyId can also be set > // programmatically during runtime > co.setKeyID("rzp_live_XXXXXXXXXXXXXX") > } > //...... > } > ``` > > > [!WARNING] > > > > **Watch Out!** > > > > It is recommended to send the API Key id from your server-side as app-related metadata fetch. Do not add API Keys in the `AndroidManifest` file. > [accordion] 5 Coupon Handling > > Since this is an SDK integration, Shopify coupons will not auto-apply like they do on the website. You must explicitly pass coupon codes to Magic Checkout. When initialising Magic Checkout, include the coupon code in the prefill options: > > ```javascript theme={null} > const options = { > key: 'rzp_live_XXXXXX', > order_id: 'order_EKwxwAgItmmXdp', > // ... other options > > prefill: { > coupon_code: 'MY_COUPON_NAME', // Coupon from your cart to auto-apply > }, > }; > > // Initialize Magic Checkout with options > MagicCheckout.open(options); > ``` > > Your app captures the coupon applied on the cart page, then passes the coupon code in the `prefill.coupon_code` field. The SDK internally calls `applyCoupon('MY_COUPON_NAME')`, and if the coupon is valid, it is automatically applied in Magic Checkout. > [accordion] 6 Initiate Payment and Display Checkout Form > > Create an instance of the `Checkout` and pass the payment details and options as a `JSONObject`. Ensure that you add the `order_id` generated in [Step 5](/docs/payments/magic-checkout/android-integration#5-create-an-order). > > ```java Java theme={null} > public void startPayment() { > checkout.setKeyID(""); > /** > * Instantiate Checkout > */ > Checkout checkout = new Checkout(); > > /** > * Set your logo here > */ > checkout.setImage(R.drawable.logo); > > /** > * Reference to current activity > */ > final Activity activity = this; > > /** > * Pass your payment options to the Razorpay Checkout as a JSONObject > */ > try { > JSONObject options = new JSONObject(); > > options.put("name", ""); > options.put("description", "Reference No. #123456"); > options.put("image", "http://example.com/image/rzp.jpg"); > options.put("order_id", "order_DBJOWzybf0sJbb");//from response of step 3. > options.put("theme.color", "#3399cc"); > options.put("currency", "INR"); > options.put("amount", "50000");//pass amount in currency subunits > options.put("prefill.email", ""); > options.put("prefill.contact",""); > options.put("show_coupons", true); // magic checkout > > JSONObject retryObj = new JSONObject(); > retryObj.put("enabled", true); > retryObj.put("max_count", 4); > options.put("retry", retryObj); > > checkout.open(activity, options); > > } catch(Exception e) { > Log.e(TAG, "Error in starting Razorpay Checkout", e); > } > } > ``` > > ```java Kotlin theme={null} > private fun startPayment() { > /* > * You need to pass the current activity to let Razorpay create CheckoutActivity > * */ > val activity:Activity = this > val co = Checkout() > > try { > val options = JSONObject() > options.put("name","Razorpay Corp") > options.put("description","Demoing Charges") > //You can omit the image option to fetch the image from the Dashboard > options.put("image","http://example.com/image/rzp.jpg") > options.put("theme.color", "#3399cc"); > options.put("currency","INR"); > options.put("order_id", "order_DBJOWzybfXXXX"); > options.put("amount","50000")//pass amount in currency subunits > > val retryObj = new JSONObject(); > retryObj.put("enabled", true); > retryObj.put("max_count", 4); > options.put("retry", retryObj); > > val prefill = JSONObject() > prefill.put("email","") > prefill.put("contact","9876543210") > options.put("show_coupons", true) // magic checkout > > options.put("prefill",prefill) > co.open(activity,options) > }catch (e: Exception){ > Toast.makeText(activity,"Error in payment: "+ e.message,Toast.LENGTH_LONG).show() > e.printStackTrace() > } > } > ``` > > > [!NOTE] > > > > **Handy Tips** > > > > When you paste the checkout options given above, the following error message appears: '`TAG` has private access in `androidx.fragment.app.FragmentActivity`'. You can resolve this by adding the following code: > > > > ```java Resolve TAG has private access theme={null} > > public class MainActivity extends AppCompatActivity implements PaymentResultListener { > > private static final String TAG = MainActivity.class.getSimpleName(); > > ``` > > `Checkout.open()` launches the Checkout form where the customer completes the payment and returns the payment result via appropriate callbacks on the `PaymentResultListener`. > > **Payment Options in JSONObject**: > All available options in the `Standard Web Checkout` are also available in Android. > > > [accordion] Checkout Options > > > > `key` *mandatory* > > : `string` API key id generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` The amount to be paid by the customer in currency subunits. For example, if the amount is โ‚น500, enter `50000`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. Length must be of 3 characters. > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order id generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > > * `card` > > * `netbanking` > > * `wallet` > > * `upi` > > * `cod` > > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `show_coupons` *optional* > > : `boolean` Determines whether to show the coupons to customer on the checkout. Possible values: > > > > * `true` (default): Enables the Coupon feature. > > * `false`: Disables the Coupon feature. > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If you call the payment start method inside a fragment, ensure that the `fragment`'s parent `activity` implements the `PaymentResultListener` interface. > [accordion] 7 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. > [accordion] 8 Complete Checkout Call > > After a successful payment, call the complete checkout API to create the order in Shopify. You must make the call from the callback handler implemented when importing the react SDK. Ensure you redirect the user to the `order_status_url` to show them the order success page on Shopify. > > `POST /1cc/shopify/complete?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/1cc/shopify/complete?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "razorpay_payment_id": "pay_Rk3b76fSqXXXXX", > "razorpay_order_id": "order_Rk3UmCXXW5XXXX" > }' > ``` > > ```json Response theme={null} > { > "id": 65157213390123, > "order_id": "#32697", > "payment_id": "pay_Rk3b76fSqXXXXX", > "payment_method": "netbanking", > "payment_currency": "INR", > "total_amount": 659430, > "total_tax": "543.91", > "shipping_fee": 700, > "cod_fee": 0, > "promotions": [ > { > "reference_id": "Auto Order Amount Discount", > "code": "Auto Order Amount Discount", > "type": "automatic", > "value": 100000, > "source": "shopify" > } > ], > "shipping_country": "in", > "customer_details": { > "email": "", > "contact": "", > "shipping_address": { > "name": "", > "line1": "123 Main Street", > "city": "Bengaluru", > "state": "KARNATAKA", > "zipcode": "560049", > "country": "in" > } > }, > "order_status_url": "https://your-store.myshopify.com/orders/...", > "is_new_customer": false > } > ``` > > > [accordion] Request Parameters > > > > `razorpay_payment_id` *mandatory* > > : `string` Unique payment identifier. Format: `pay_` followed by 14 characters. > > > > `razorpay_order_id` *mandatory* > > : `string` Unique order identifier from Step 1.2. Format: `order_` followed by 14 characters. > > > [accordion] Response Parameters > > > > `id` > > : `integer` Unique Shopify order identifier. For example, `65157213390123`. > > > > `order_id` > > : `string` Human-readable order number. For example, `#32697`. > > > > `payment_id` > > : `string` Razorpay payment identifier. For example, `pay_Rk3b76fSqXXXXX`. > > > > `payment_method` > > : `string` Payment method used. Possible values include: > > > > * `netbanking` > > * `upi` > > * `card` > > * `wallet` > > > > `payment_currency` > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > `total_amount` > > : `integer` Total order amount in smallest currency unit (paise). For example, `659430` for โ‚น6594.30. > > > > `total_tax` > > : `string` Total tax amount as string. For example, `543.91`. > > > > `shipping_fee` > > : `integer` Shipping charges in smallest currency unit (paise). For example, `700` for โ‚น7. > > > > `cod_fee` > > : `integer` Cash on Delivery fee in smallest currency unit (paise). For example, `0` indicates no COD fee. > > > > `promotions` > > : `array` Array of applied promotions/discounts. > > > > `reference_id` > > : `string` Internal reference for the promotion. > > > > `code` > > : `string` Promotion code used. > > > > `type` > > : `string` Type of promotion. Possible values: > > > > * `automatic`: Automatically applied discount. > > * `coupon`: Coupon-based discount. > > > > `value` > > : `integer` Discount value in smallest currency unit (paise). For example, `100000` for โ‚น1000. > > > > `source` > > : `string` Source of the promotion. For example, `shopify`. > > > > `shipping_country` > > : `string` Country code for shipping destination. For example, `in`. > > > > `customer_details` > > : `object` Complete customer information. > > > > `email` > > : `string` Customer's email address. > > > > `contact` > > : `string` Customer's phone number. > > > > `shipping_address` > > : `object` Complete shipping address information. > > > > `name` > > : `string` Recipient name. > > > > `line1` > > : `string` Address line 1. > > > > `city` > > : `string` City name. > > > > `state` > > : `string` State name. > > > > `zipcode` > > : `string` Postal code. > > > > `country` > > : `string` Country code. For example, `in`. > > > > `order_status_url` > > : `string` Shopify order status page URL for customer. > > > > `is_new_customer` > > : `boolean` Whether this is a new customer's first order. Possible values: > > > > * `true`: New customer's first order. > > * `false`: Existing customer order. #### Pass Additional Attributes to Shopify Orders Shopify orders support Tags and Additional Attributes (note attributes). Include the attributes in the Shopify cart's attributes object before initiating checkout: ```javascript theme={null} // When creating/updating Shopify cart const cartPayload = { cart: { token: "your_cart_token", note: "Customer special instructions", attributes: { "Source": "Mobile App", "App Version": "2.1.0", "Campaign": "Summer Sale 2025", "Custom Field": "Your custom value" }, item_count: 1, items: [/* ... */] }, key: "rzp_live_XXXXXX" }; ``` These attributes will flow through to the Shopify order and appear in the additional attributes section in Shopify Admin. ## 2. Test Integration Check the following checklist below: * Shopify cart creation is working correctly. * Checkout id is generated successfully. * Order id is created with analytics parameters. * Magic Checkout SDK opens without errors. * Coupons apply correctly via prefill. * Payment flow completes successfully. * Complete Checkout API creates order in Shopify. * Order appears in Shopify Admin with correct details. * Additional attributes appear correctly in Shopify order. ## Error Handling | Error Scenario | Recommended Action | | - | - | | Invalid cart token | Ensure Shopify cart exists before [Step 1.1](#1-create-a-checkout-id). | | Payment not captured | Verify payment status before complete checkout. | | Invalid signature | Regenerate signature using Razorpay's signature verification. | | Coupon invalid | Handle error callback and notify user. | > [!WARNING] > > **Fallback to Shopify Checkout** > > If any Magic Checkout API fails, redirect users to the standard Shopify checkout to ensure customers can still complete their purchase. ## Support For integration support, reach out to your Razorpay account manager or raise a request with our [support team](https://razorpay.com/support/#request). # Integrate Magic Checkout on Capacitor App - Shopify Source: https://razorpay.com/docs/payments/magic-checkout/shopify/custom/capacitor-integration Steps to integrate Magic Checkout on your Capacitor app using the Razorpay Capacitor Standard SDK - Shopify integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your Capacitor application when using Shopify as your e-commerce platform. ## Prerequisites * Ensure you enable [Magic Checkout](/docs/payments/magic-checkout/troubleshooting-faqs#how-do-i-check-if-magic-checkout-is-enabled-on-my-account) on your account. * Integrate [Magic Checkout With Shopify Store](/docs/payments/magic-checkout/shopify). * Integrate with [Capacitor Integration](/docs/payments/magic-checkout/capacitor-integration). * Generate [Live API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. > [card] [1. Build Integration](/docs/payments/magic-checkout/shopify/custom/capacitor-integration#1-build-integration) > > Integrate with Capacitor App for Shopify. > [card] [2. Test Integration](/docs/payments/magic-checkout/shopify/custom/capacitor-integration#2-test-integration) > > Test the integration by making a test payment. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Create a Checkout id > > Generate a unique cart identifier to initiate the Magic Checkout process. > > > [!NOTE] > > > > **Important** > > > > Ensure you create the Shopify cart before making this request as the cart token must be included in the payload. > > `POST /magic/checkout/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/checkout/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "cart": { > "token": "ashgad?key=abasab", > "note": null, > "attributes": {}, > "item_count": 1, > "items": [ > { > "id": 100000000001, > "quantity": 1, > "product_id": 832938123321, > "variant_id": 100000000001, > "properties": {} > } > ] > } > }' > ``` > > ```json Response theme={null} > { > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "tax_details": { > "total_tax": 0, > "taxes_included": true > } > } > ``` > > > [accordion] Request Parameters > > > > `cart` *mandatory* > > : `object` Complete cart object from Shopify. > > > > `cart.token` *mandatory* > > : `string` Unique cart token from Shopify cart creation. > > > > `cart.note` *optional* > > : `string|null` Customer notes or special instructions. > > > > `cart.attributes` *optional* > > : `object` Custom attributes for the cart (key-value pairs). > > > > `cart.item_count` *mandatory* > > : `integer` Total number of items in the cart. > > > > `cart.items` *mandatory* > > : `array` Array of cart items. > > > > `cart.items[].id` *mandatory* > > : `integer` Unique item identifier. > > > > `cart.items[].quantity` *mandatory* > > : `integer` Quantity of the item. > > > > `cart.items[].product_id` *mandatory* > > : `integer` Shopify product identifier. > > > > `cart.items[].variant_id` *mandatory* > > : `integer` Shopify variant identifier. > > > > `cart.items[].properties` *optional* > > : `object` Custom item properties. > > > [accordion] Response Parameters > > > > `shopify_checkout_id` > > : `string` Unique checkout identifier for Shopify integration. > > > > `tax_details` > > : `object` Tax information for the checkout. > > > > `total_tax` > > : `integer` Total tax amount in smallest currency unit (paise). > > > > `taxes_included` > > : `boolean` Whether taxes are included in item prices. Possible values: > > > > * `true`: Taxes are included in item prices. > > * `false`: Taxes are separate from item prices. > [accordion] 2 Create Order id on Server > > Create a Razorpay order id required for the payment modal. This API requires the `shopify_checkout_id` from [Step 1.1](#1-create-a-checkout-id). > > `POST /magic/order/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/order/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: */*" \ > -H "Origin: https://api.razorpay.com" \ > -d '{ > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "ga_id": "GA1.1.xxxxxxx.xxxxxxxx", > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "", > "event_source_url": "https://your-store.com/" > }, > "utm_parameters": { > "landing_page_url": "https://your-store.com/", > "user_agent": "Mozilla/5.0 (Linux; Android 12; SM-G991B)..." > }, > "analytics": { > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "" > }, > "ga4": { > "session_ids": { > "_ga_XXXXXXXXXX": "GS1.1.xxxxxxxx.x.x.x.x.x" > }, > "client_id": "GA1.1.xxxxxxxx.xxxxxxxx" > }, > "google_ads": { > "gclid": "", > "wbraid": "", > "gbraid": "" > }, > "source_url": "https://your-store.com/" > } > }' > ``` > > ```json Response theme={null} > { > "preferences": null, > "order_id": "order_EKwxwAgItmmXdp" > } > ``` > > > [accordion] Request Parameters > > > > `shopify_checkout_id` *mandatory* > > : `string` Checkout id from [Step 1.1](#1-create-a-checkout-id). > > > > `ga_id` *optional* > > : `string` Google Analytics client identifier. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics parameters. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `event_source_url` *optional* > > : `string` Source URL for the event. > > > > `utm_parameters` *optional* > > : `object` UTM tracking parameters. > > > > `landing_page_url` *optional* > > : `string` Landing page URL. > > > > `user_agent` *optional* > > : `string` Browser user agent string. > > > > `analytics` *optional* > > : `object` Comprehensive analytics data. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics configuration. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `ga4` *optional* > > : `object` Google Analytics 4 configuration. > > > > `session_ids` *optional* > > : `object` GA4 session identifiers. > > > > `client_id` *optional* > > : `string` GA4 client identifier. > > > > `google_ads` *optional* > > : `object` Google Ads tracking parameters. > > > > `gclid` *optional* > > : `string` Google Click Identifier. > > > > `wbraid` *optional* > > : `string` Web-to-app measurement parameter. > > > > `gbraid` *optional* > > : `string` Google Ads Broad match parameter. > > > > `source_url` *optional* > > : `string` Source URL for analytics. > > > [accordion] Response Parameters > > > > `preferences` > > : `object|null` Customer preferences. Returns `null` if no preferences are set. > > > > `order_id` > > : `string` Unique Razorpay order identifier. For example, `order_EKwxwAgItmmXdp`. > [accordion] 3 Install Razorpay Capacitor Plugin > > Run the following command on your command prompt to install the plugin: > > ```yml Install Capacitor theme={null} > npm i -S https://github.com/razorpay/razorpay-capacitor.git #installs plugin that supports Capacitor 6.0 > ``` > > > [!WARNING] > > > > **Watch Out!** > > > > We recommend you to use the latest plugin version (that works on Capacitor 6.0) as all the latest features will be made available only on this version. However, if you want to use the plugin that works on Capacitor 5.0, use the command given below: > > > > ```yml Install Capacitor theme={null} > > npm i -S https://github.com/razorpay/razorpay-capacitor.git#76fd7d6b59f631eb44e6ecebc9188b2425168beb #installs plugin that supports Capacitor 5.0 > > ``` > > > > If you want to use the plugin that works on other capacitor versions, refer to the [GitHub repository](https://github.com/razorpay/razorpay-capacitor). > > > [accordion] Proguard Rules > > > > If you are using Proguard for your builds, you must add the following lines to your `proguard-rules.pro` file. > > > > ```java theme={null} > > -keepclassmembers class * { > > @android.webkit.JavascriptInterface ; > > } > > > > -keepattributes JavascriptInterface > > -keepattributes *Annotation* > > > > -dontwarn com.razorpay.** > > -keep class com.razorpay.** {*;} > > > > -optimizations !method/inlining/* > > > > -keepclasseswithmembers class * { > > public void onPayment*(...); > > } > > ``` > [accordion] 4 Coupon Handling > > Since this is an SDK integration, Shopify coupons will not auto-apply like they do on the website. You must explicitly pass coupon codes to Magic Checkout. When initialising Magic Checkout, include the coupon code in the prefill options: > > ```javascript theme={null} > const options = { > key: 'rzp_live_XXXXXX', > order_id: 'order_EKwxwAgItmmXdp', > // ... other options > > prefill: { > coupon_code: 'MY_COUPON_NAME', // Coupon from your cart to auto-apply > }, > }; > > // Initialize Magic Checkout with options > MagicCheckout.open(options); > ``` > > Your app captures the coupon applied on the cart page, then passes the coupon code in the `prefill.coupon_code` field. The SDK internally calls `applyCoupon('MY_COUPON_NAME')`, and if the coupon is valid, it is automatically applied in Magic Checkout. > [accordion] 5 Add Checkout Class in MainActivity.java (Android Only) > > Add the Checkout class to the ArrayList in the MainActivity class in `{{projectDir}}/android/src/main/MainActivity.java`. Below is the sample code: > > ```java Add Checkout Class theme={null} > import com.ionicframework.capacitor.Checkout; > > public class MainActivity extends BridgeActivity { > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > > registerPlugin(Checkout.class); > } > } > ``` > > Check the [Capacitor 6.0 Official Updates](https://capacitorjs.com/docs/updating/6-0). > [accordion] 6 Add Checkout Code > > Add the Pay button on your web page using the checkout code given below. The checkout page is displayed when the customers click the Pay button. > > > [accordion] 6.1 Code to Add Pay Button > > > > Add the Checkout code to your project. Ensure that you pass the `order_id` that you received in response to the first step. > > > > ```javascript Checkout Code theme={null} > > import { Checkout } from 'capacitor-razorpay'; > > @Component({ > > selector: 'app-home', > > templateUrl: 'home.page.html', > > styleUrls: ['home.page.scss'], > > }) > > export class HomePage { > > constructor(private alertController: AlertController) {} > > async payWithRazorpay(){ > > const options = { > > key: '[YOUR_KEY_ID]', > > amount: '50000', > > description: 'Great offers', > > image: 'https://i.imgur.com/3g7nmJC.jpg', > > order_id: 'order_Cp10EhSaf7wLbS',//Order ID generated in Step 1 > > currency: 'INR', > > name: 'Acme Corp', > > prefill: { > > email: '', > > contact: '9000090000' > > }, > > theme: { > > color: '#3399cc' > > }, > > 'show_coupons': true // magic checkout > > } > > try { > > let data = (await Checkout.open(options)); > > console.log(data.response+"AcmeCorp"); > > console.log(JSON.stringify(data)) > > } catch (error) { > > //it's paramount that you parse the data into a JSONObject > > let errorObj = JSON.parse(error['code']) > > alert(errorObj.description); > > alert(errorObj.code); > > alert(errorObj.reason); > > alert(errorObj.step); > > alert(errorObj.source); > > alert(errorObj.metadata.order_id); > > alert(errorObj.metadata.payment_id); > > } > > async presentAlert(response: string){ > > // let responseObj = JSON.parse(response) > > console.log("message"+ response['razorpay_payment_id']); > > const alert = await this.alertController.create({ > > message:response['razorpay_payment_id'], > > backdropDismiss: true, > > }); > > await alert.present(); > > } > > } > > ``` > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > [accordion] 6.2 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > [accordion] 7 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. > [accordion] 8 Complete Checkout Call > > After a successful payment, call the complete checkout API to create the order in Shopify. You must make the call from the callback handler implemented when importing the react SDK. Ensure you redirect the user to the `order_status_url` to show them the order success page on Shopify. > > `POST /1cc/shopify/complete?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/1cc/shopify/complete?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "razorpay_payment_id": "pay_Rk3b76fSqXXXXX", > "razorpay_order_id": "order_Rk3UmCXXW5XXXX" > }' > ``` > > ```json Response theme={null} > { > "id": 65157213390123, > "order_id": "#32697", > "payment_id": "pay_Rk3b76fSqXXXXX", > "payment_method": "netbanking", > "payment_currency": "INR", > "total_amount": 659430, > "total_tax": "543.91", > "shipping_fee": 700, > "cod_fee": 0, > "promotions": [ > { > "reference_id": "Auto Order Amount Discount", > "code": "Auto Order Amount Discount", > "type": "automatic", > "value": 100000, > "source": "shopify" > } > ], > "shipping_country": "in", > "customer_details": { > "email": "", > "contact": "", > "shipping_address": { > "name": "", > "line1": "123 Main Street", > "city": "Bengaluru", > "state": "KARNATAKA", > "zipcode": "560049", > "country": "in" > } > }, > "order_status_url": "https://your-store.myshopify.com/orders/...", > "is_new_customer": false > } > ``` > > > [accordion] Request Parameters > > > > `razorpay_payment_id` *mandatory* > > : `string` Unique payment identifier. Format: `pay_` followed by 14 characters. > > > > `razorpay_order_id` *mandatory* > > : `string` Unique order identifier from Step 1.2. Format: `order_` followed by 14 characters. > > > [accordion] Response Parameters > > > > `id` > > : `integer` Unique Shopify order identifier. For example, `65157213390123`. > > > > `order_id` > > : `string` Human-readable order number. For example, `#32697`. > > > > `payment_id` > > : `string` Razorpay payment identifier. For example, `pay_Rk3b76fSqXXXXX`. > > > > `payment_method` > > : `string` Payment method used. Possible values include: > > > > * `netbanking` > > * `upi` > > * `card` > > * `wallet` > > > > `payment_currency` > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > `total_amount` > > : `integer` Total order amount in smallest currency unit (paise). For example, `659430` for โ‚น6594.30. > > > > `total_tax` > > : `string` Total tax amount as string. For example, `543.91`. > > > > `shipping_fee` > > : `integer` Shipping charges in smallest currency unit (paise). For example, `700` for โ‚น7. > > > > `cod_fee` > > : `integer` Cash on Delivery fee in smallest currency unit (paise). For example, `0` indicates no COD fee. > > > > `promotions` > > : `array` Array of applied promotions/discounts. > > > > `reference_id` > > : `string` Internal reference for the promotion. > > > > `code` > > : `string` Promotion code used. > > > > `type` > > : `string` Type of promotion. Possible values: > > > > * `automatic`: Automatically applied discount. > > * `coupon`: Coupon-based discount. > > > > `value` > > : `integer` Discount value in smallest currency unit (paise). For example, `100000` for โ‚น1000. > > > > `source` > > : `string` Source of the promotion. For example, `shopify`. > > > > `shipping_country` > > : `string` Country code for shipping destination. For example, `in`. > > > > `customer_details` > > : `object` Complete customer information. > > > > `email` > > : `string` Customer's email address. > > > > `contact` > > : `string` Customer's phone number. > > > > `shipping_address` > > : `object` Complete shipping address information. > > > > `name` > > : `string` Recipient name. > > > > `line1` > > : `string` Address line 1. > > > > `city` > > : `string` City name. > > > > `state` > > : `string` State name. > > > > `zipcode` > > : `string` Postal code. > > > > `country` > > : `string` Country code. For example, `in`. > > > > `order_status_url` > > : `string` Shopify order status page URL for customer. > > > > `is_new_customer` > > : `boolean` Whether this is a new customer's first order. Possible values: > > > > * `true`: New customer's first order. > > * `false`: Existing customer order. ## 2. Test Integration Check the following checklist below: * Shopify cart creation is working correctly. * Checkout id is generated successfully. * Order id is created with analytics parameters. * Magic Checkout SDK opens without errors. * Coupons apply correctly via prefill. * Payment flow completes successfully. * Complete Checkout API creates order in Shopify. * Order appears in Shopify Admin with correct details. * Additional attributes appear correctly in Shopify order. ## Error Handling | Error Scenario | Recommended Action | | - | - | | Invalid cart token | Ensure Shopify cart exists before [Step 1.1](#1-create-a-checkout-id). | | Payment not captured | Verify payment status before complete checkout. | | Invalid signature | Regenerate signature using Razorpay's signature verification. | | Coupon invalid | Handle error callback and notify user. | > [!WARNING] > > **Fallback to Shopify Checkout** > > If any Magic Checkout API fails, redirect users to the standard Shopify checkout to ensure customers can still complete their purchase. ## Support For integration support, reach out to your Razorpay account manager or raise a request with our [support team](https://razorpay.com/support/#request). # Integrate Magic Checkout on Flutter App - Shopify Source: https://razorpay.com/docs/payments/magic-checkout/shopify/custom/flutter-integration Steps to integrate Magic Checkout on your Flutter app using the Razorpay Flutter Standard SDK - Shopify integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your Flutter application when using Shopify as your e-commerce platform. ## Prerequisites * Ensure you enable [Magic Checkout](/docs/payments/magic-checkout/troubleshooting-faqs#how-do-i-check-if-magic-checkout-is-enabled-on-my-account) on your account. * Integrate [Magic Checkout With Shopify Store](/docs/payments/magic-checkout/shopify). * Integrate with [Flutter Integration](/docs/payments/magic-checkout/flutter-integration). * Generate [Live API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. > [card] [1. Build Integration](/docs/payments/magic-checkout/shopify/custom/flutter-integration#1-build-integration) > > Integrate with Flutter App for Shopify. > [card] [2. Test Integration](/docs/payments/magic-checkout/shopify/custom/flutter-integration#2-test-integration) > > Test the integration by making a test payment. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Create a Checkout id > > Generate a unique cart identifier to initiate the Magic Checkout process. > > > [!NOTE] > > > > **Important** > > > > Ensure you create the Shopify cart before making this request as the cart token must be included in the payload. > > `POST /magic/checkout/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/checkout/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "cart": { > "token": "ashgad?key=abasab", > "note": null, > "attributes": {}, > "item_count": 1, > "items": [ > { > "id": 100000000001, > "quantity": 1, > "product_id": 832938123321, > "variant_id": 100000000001, > "properties": {} > } > ] > } > }' > ``` > > ```json Response theme={null} > { > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "tax_details": { > "total_tax": 0, > "taxes_included": true > } > } > ``` > > > [accordion] Request Parameters > > > > `cart` *mandatory* > > : `object` Complete cart object from Shopify. > > > > `cart.token` *mandatory* > > : `string` Unique cart token from Shopify cart creation. > > > > `cart.note` *optional* > > : `string|null` Customer notes or special instructions. > > > > `cart.attributes` *optional* > > : `object` Custom attributes for the cart (key-value pairs). > > > > `cart.item_count` *mandatory* > > : `integer` Total number of items in the cart. > > > > `cart.items` *mandatory* > > : `array` Array of cart items. > > > > `cart.items[].id` *mandatory* > > : `integer` Unique item identifier. > > > > `cart.items[].quantity` *mandatory* > > : `integer` Quantity of the item. > > > > `cart.items[].product_id` *mandatory* > > : `integer` Shopify product identifier. > > > > `cart.items[].variant_id` *mandatory* > > : `integer` Shopify variant identifier. > > > > `cart.items[].properties` *optional* > > : `object` Custom item properties. > > > [accordion] Response Parameters > > > > `shopify_checkout_id` > > : `string` Unique checkout identifier for Shopify integration. > > > > `tax_details` > > : `object` Tax information for the checkout. > > > > `total_tax` > > : `integer` Total tax amount in smallest currency unit (paise). > > > > `taxes_included` > > : `boolean` Whether taxes are included in item prices. Possible values: > > > > * `true`: Taxes are included in item prices. > > * `false`: Taxes are separate from item prices. > [accordion] 2 Create Order id on Server > > Create a Razorpay order id required for the payment modal. This API requires the `shopify_checkout_id` from [Step 1.1](#1-create-a-checkout-id). > > `POST /magic/order/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/order/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: */*" \ > -H "Origin: https://api.razorpay.com" \ > -d '{ > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "ga_id": "GA1.1.xxxxxxx.xxxxxxxx", > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "", > "event_source_url": "https://your-store.com/" > }, > "utm_parameters": { > "landing_page_url": "https://your-store.com/", > "user_agent": "Mozilla/5.0 (Linux; Android 12; SM-G991B)..." > }, > "analytics": { > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "" > }, > "ga4": { > "session_ids": { > "_ga_XXXXXXXXXX": "GS1.1.xxxxxxxx.x.x.x.x.x" > }, > "client_id": "GA1.1.xxxxxxxx.xxxxxxxx" > }, > "google_ads": { > "gclid": "", > "wbraid": "", > "gbraid": "" > }, > "source_url": "https://your-store.com/" > } > }' > ``` > > ```json Response theme={null} > { > "preferences": null, > "order_id": "order_EKwxwAgItmmXdp" > } > ``` > > > [accordion] Request Parameters > > > > `shopify_checkout_id` *mandatory* > > : `string` Checkout id from [Step 1.1](#1-create-a-checkout-id). > > > > `ga_id` *optional* > > : `string` Google Analytics client identifier. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics parameters. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `event_source_url` *optional* > > : `string` Source URL for the event. > > > > `utm_parameters` *optional* > > : `object` UTM tracking parameters. > > > > `landing_page_url` *optional* > > : `string` Landing page URL. > > > > `user_agent` *optional* > > : `string` Browser user agent string. > > > > `analytics` *optional* > > : `object` Comprehensive analytics data. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics configuration. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `ga4` *optional* > > : `object` Google Analytics 4 configuration. > > > > `session_ids` *optional* > > : `object` GA4 session identifiers. > > > > `client_id` *optional* > > : `string` GA4 client identifier. > > > > `google_ads` *optional* > > : `object` Google Ads tracking parameters. > > > > `gclid` *optional* > > : `string` Google Click Identifier. > > > > `wbraid` *optional* > > : `string` Web-to-app measurement parameter. > > > > `gbraid` *optional* > > : `string` Google Ads Broad match parameter. > > > > `source_url` *optional* > > : `string` Source URL for analytics. > > > [accordion] Response Parameters > > > > `preferences` > > : `object|null` Customer preferences. Returns `null` if no preferences are set. > > > > `order_id` > > : `string` Unique Razorpay order identifier. For example, `order_EKwxwAgItmmXdp`. > [accordion] 3 Install Razorpay Flutter Plugin > > [Download the plugin](https://pub.dev/packages/razorpay_flutter) from Pub.dev. > > Add the below code to `dependencies` in your app's `pubspec.yaml` > > ```yml Add Dependencies theme={null} > razorpay_flutter: 1.4.0 > ``` > > > [accordion] Add Proguard Rules (Android Only) > > > > If you are using Proguard for your builds, you need to add the following lines to the Proguard files: > > > > ```java Add Proguard Rules theme={null} > > -keepattributes *Annotation* > > -dontwarn com.razorpay.** > > -keep class com.razorpay.** {*;} > > -optimizations !method/inlining/ > > -keepclasseswithmembers class * { > > public void onPayment*(...); > > } > > ``` > > > > Know more about [Proguard rules](https://github.com/razorpay/razorpay-flutter/issues/42#issuecomment-550161626). > > > [accordion] Get Packages > > > > Run `flutter packages get` in the root directory of your app. > > > > > [!NOTE] > > > > > > **Minimum Version Requirement** > > > > > > * For **Android**, ensure that the minimum API level for your app is 19 or higher. > > > * For **iOS**, ensure that the minimum deployment target for your app is iOS 10.0 or higher. Also, do not forget to enable bitcode for your project. > [accordion] 4 Import Package and Create Razorpay Instance > > Use the below code to import the `razorpay_flutter.dart` file to your project. > > ```yml Import Package theme={null} > import 'package:razorpay_flutter/razorpay_flutter.dart'; > ``` > > Use the below code to create a Razorpay instance. > > ```yml Instantiate theme={null} > _razorpay = Razorpay(); > ``` > [accordion] 5 Attach Event Listeners > > The plugin uses event-based communication and emits events when payments fail or succeed. > > The event names are exposed via the constants `EVENT_PAYMENT_SUCCESS`, `EVENT_PAYMENT_ERROR` and `EVENT_EXTERNAL_WALLET` from the `Razorpay` class. > > Use the `on(String event, Function handler)` method on the `Razorpay` instance to attach event listeners. > > ```yml Attach Event Listeners theme={null} > _razorpay.on(Razorpay.EVENT_PAYMENT_SUCCESS, _handlePaymentSuccess); > _razorpay.on(Razorpay.EVENT_PAYMENT_ERROR, _handlePaymentError); > _razorpay.on(Razorpay.EVENT_EXTERNAL_WALLET, _handleExternalWallet); > ``` > > The handlers would be defined in the class as: > > ```yml Handlers theme={null} > void _handlePaymentSuccess(PaymentSuccessResponse response) { > // Do something when payment succeeds > } > > void _handlePaymentError(PaymentFailureResponse response) { > // Do something when payment fails > } > > void _handleExternalWallet(ExternalWalletResponse response) { > // Do something when an external wallet is selected > } > ``` > > To clear event listeners, use the `clear` method on the `Razorpay` instance. > > ```yml Clear Event Listeners theme={null} > _razorpay.clear(); // Removes all listeners > ``` > [accordion] 6 Coupon Handling > > Since this is an SDK integration, Shopify coupons will not auto-apply like they do on the website. You must explicitly pass coupon codes to Magic Checkout. When initialising Magic Checkout, include the coupon code in the prefill options: > > ```javascript theme={null} > const options = { > key: 'rzp_live_XXXXXX', > order_id: 'order_EKwxwAgItmmXdp', > // ... other options > > prefill: { > coupon_code: 'MY_COUPON_NAME', // Coupon from your cart to auto-apply > }, > }; > > // Initialize Magic Checkout with options > MagicCheckout.open(options); > ``` > > Your app captures the coupon applied on the cart page, then passes the coupon code in the `prefill.coupon_code` field. The SDK internally calls `applyCoupon('MY_COUPON_NAME')`, and if the coupon is valid, it is automatically applied in Magic Checkout. > [accordion] 7 Add Checkout Options > > Pass the Checkout options. Ensure that you pass the `order_id` that you received in the response of the previous step. > > ```yml Checkout Options theme={null} > var options = { > 'key': '', > 'amount': 50000, > 'currency': 'INR', > 'name': '', > 'order_id': 'order_EMBFqjDHEEn80l', // Generate order_id using Orders API > 'description': 'Fine T-Shirt', > 'timeout': 60, // in seconds > 'prefill': { > 'contact': '', > 'email': '' > }, > 'show_coupons': true // magic checkout > }; > ``` > > > [accordion] Checkout Options > > > > You must pass these parameters in Checkout to initiate the payment. > > > > `key` *mandatory* > > : `string` API Key ID generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` Payment amount in the smallest currency subunit. For example, if the amount to be charged is , enter `222250` in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to accept a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to accept a payment of 295, pass the value as 295. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > As per payment guidelines, you should pass the last decimal number as 0 for three decimal currency payments. For example, if you want to charge a customer 99.991 KD for a transaction, you should pass the value for the amount parameter as `99990` and not `99991`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. See the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Razorpay has added support for zero decimal currencies, such as JPY, and three decimal currencies, such as KWD, BHD, and OMR, allowing businesses to accept international payments in these currencies. Know more about [Currency Conversion](/docs/payments/international-payments/currency-conversion) (May 2024). > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order ID generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > >
    > >
  • `card`
  • > >
  • `netbanking`
  • > >
  • `wallet`
  • > >
  • `upi`
  • > >
  • `emi`
  • > >
> > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `subscription_id` *optional* > > : `string` If you are accepting recurring payments using Razorpay Checkout, you should pass the relevant `subscription_id` to the Checkout. Know more about [Subscriptions on Checkout](/docs/api/payments/subscriptions-custom#checkout-integration). > > > > `subscription_card_change` *optional* > > : `boolean` Permit or restrict customer from changing the card linked to the subscription. You can also do this from the [hosted page](/docs/payments/subscriptions/payment-retries#update-payment-method-on-our-hosted-page). Possible values: > > > > * `true`: Allow the customer to change the card from Checkout. > > * `false` (default): Do not allow the customer to change the card from Checkout. > > > > `recurring` *optional* > > : `boolean` Determines if you are accepting [recurring (charge-at-will) payments on Checkout](/docs/api/payments/recurring-payments) via instruments such as emandate, paper NACH and so on. Possible values: > > > > * `true`: You are accepting recurring payments. > > * `false` (default): You are not accepting recurring payments. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. Know more about how to [configure payment methods on Razorpay standard checkout](/docs/payments/payment-gateway/web-integration/standard/configure-payment-methods). > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > [accordion] 7.1 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > [accordion] 8 Open Checkout > > Use the below code to open the Razorpay checkout. > > ```yml Open Razorpay Checkout theme={null} > _razorpay.open(options); > ``` > [accordion] 9 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. > [accordion] 10 Complete Checkout Call > > After a successful payment, call the complete checkout API to create the order in Shopify. You must make the call from the callback handler implemented when importing the react SDK. Ensure you redirect the user to the `order_status_url` to show them the order success page on Shopify. > > `POST /1cc/shopify/complete?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/1cc/shopify/complete?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "razorpay_payment_id": "pay_Rk3b76fSqXXXXX", > "razorpay_order_id": "order_Rk3UmCXXW5XXXX" > }' > ``` > > ```json Response theme={null} > { > "id": 65157213390123, > "order_id": "#32697", > "payment_id": "pay_Rk3b76fSqXXXXX", > "payment_method": "netbanking", > "payment_currency": "INR", > "total_amount": 659430, > "total_tax": "543.91", > "shipping_fee": 700, > "cod_fee": 0, > "promotions": [ > { > "reference_id": "Auto Order Amount Discount", > "code": "Auto Order Amount Discount", > "type": "automatic", > "value": 100000, > "source": "shopify" > } > ], > "shipping_country": "in", > "customer_details": { > "email": "", > "contact": "", > "shipping_address": { > "name": "", > "line1": "123 Main Street", > "city": "Bengaluru", > "state": "KARNATAKA", > "zipcode": "560049", > "country": "in" > } > }, > "order_status_url": "https://your-store.myshopify.com/orders/...", > "is_new_customer": false > } > ``` > > > [accordion] Request Parameters > > > > `razorpay_payment_id` *mandatory* > > : `string` Unique payment identifier. Format: `pay_` followed by 14 characters. > > > > `razorpay_order_id` *mandatory* > > : `string` Unique order identifier from Step 1.2. Format: `order_` followed by 14 characters. > > > [accordion] Response Parameters > > > > `id` > > : `integer` Unique Shopify order identifier. For example, `65157213390123`. > > > > `order_id` > > : `string` Human-readable order number. For example, `#32697`. > > > > `payment_id` > > : `string` Razorpay payment identifier. For example, `pay_Rk3b76fSqXXXXX`. > > > > `payment_method` > > : `string` Payment method used. Possible values include: > > > > * `netbanking` > > * `upi` > > * `card` > > * `wallet` > > > > `payment_currency` > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > `total_amount` > > : `integer` Total order amount in smallest currency unit (paise). For example, `659430` for โ‚น6594.30. > > > > `total_tax` > > : `string` Total tax amount as string. For example, `543.91`. > > > > `shipping_fee` > > : `integer` Shipping charges in smallest currency unit (paise). For example, `700` for โ‚น7. > > > > `cod_fee` > > : `integer` Cash on Delivery fee in smallest currency unit (paise). For example, `0` indicates no COD fee. > > > > `promotions` > > : `array` Array of applied promotions/discounts. > > > > `reference_id` > > : `string` Internal reference for the promotion. > > > > `code` > > : `string` Promotion code used. > > > > `type` > > : `string` Type of promotion. Possible values: > > > > * `automatic`: Automatically applied discount. > > * `coupon`: Coupon-based discount. > > > > `value` > > : `integer` Discount value in smallest currency unit (paise). For example, `100000` for โ‚น1000. > > > > `source` > > : `string` Source of the promotion. For example, `shopify`. > > > > `shipping_country` > > : `string` Country code for shipping destination. For example, `in`. > > > > `customer_details` > > : `object` Complete customer information. > > > > `email` > > : `string` Customer's email address. > > > > `contact` > > : `string` Customer's phone number. > > > > `shipping_address` > > : `object` Complete shipping address information. > > > > `name` > > : `string` Recipient name. > > > > `line1` > > : `string` Address line 1. > > > > `city` > > : `string` City name. > > > > `state` > > : `string` State name. > > > > `zipcode` > > : `string` Postal code. > > > > `country` > > : `string` Country code. For example, `in`. > > > > `order_status_url` > > : `string` Shopify order status page URL for customer. > > > > `is_new_customer` > > : `boolean` Whether this is a new customer's first order. Possible values: > > > > * `true`: New customer's first order. > > * `false`: Existing customer order. #### Pass Additional Attributes to Shopify Orders Shopify orders support Tags and Additional Attributes (note attributes). Include the attributes in the Shopify cart's attributes object before initiating checkout: ```javascript theme={null} // When creating/updating Shopify cart const cartPayload = { cart: { token: "your_cart_token", note: "Customer special instructions", attributes: { "Source": "Mobile App", "App Version": "2.1.0", "Campaign": "Summer Sale 2025", "Custom Field": "Your custom value" }, item_count: 1, items: [/* ... */] }, key: "rzp_live_XXXXXX" }; ``` These attributes will flow through to the Shopify order and appear in the additional attributes section in Shopify Admin. ## 2. Test Integration Check the following checklist below: * Shopify cart creation is working correctly. * Checkout id is generated successfully. * Order id is created with analytics parameters. * Magic Checkout SDK opens without errors. * Coupons apply correctly via prefill. * Payment flow completes successfully. * Complete Checkout API creates order in Shopify. * Order appears in Shopify Admin with correct details. * Additional attributes appear correctly in Shopify order. ## Error Handling | Error Scenario | Recommended Action | | - | - | | Invalid cart token | Ensure Shopify cart exists before [Step 1.1](#1-create-a-checkout-id). | | Payment not captured | Verify payment status before complete checkout. | | Invalid signature | Regenerate signature using Razorpay's signature verification. | | Coupon invalid | Handle error callback and notify user. | > [!WARNING] > > **Fallback to Shopify Checkout** > > If any Magic Checkout API fails, redirect users to the standard Shopify checkout to ensure customers can still complete their purchase. ## Support For integration support, reach out to your Razorpay account manager or raise a request with our [support team](https://razorpay.com/support/#request). # Integrate Magic Checkout on iOS App - Shopify Source: https://razorpay.com/docs/payments/magic-checkout/shopify/custom/ios-integration Steps to integrate Magic Checkout on your iOS app using the Razorpay iOS Standard SDK - Shopify integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your iOS application when using Shopify as your e-commerce platform. ## Prerequisites * Ensure you enable [Magic Checkout](/docs/payments/magic-checkout/troubleshooting-faqs#how-do-i-check-if-magic-checkout-is-enabled-on-my-account) on your account. * Integrate [Magic Checkout With Shopify Store](/docs/payments/magic-checkout/shopify). * Integrate with [iOS Integration](/docs/payments/magic-checkout/ios-integration). * Generate [Live API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. > [card] [1. Build Integration](/docs/payments/magic-checkout/shopify/custom/ios-integration#1-build-integration) > > Integrate with iOS App for Shopify. > [card] [2. Test Integration](/docs/payments/magic-checkout/shopify/custom/ios-integration#2-test-integration) > > Test the integration by making a test payment. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Create a Checkout id > > Generate a unique cart identifier to initiate the Magic Checkout process. > > > [!NOTE] > > > > **Important** > > > > Ensure you create the Shopify cart before making this request as the cart token must be included in the payload. > > `POST /magic/checkout/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/checkout/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "cart": { > "token": "ashgad?key=abasab", > "note": null, > "attributes": {}, > "item_count": 1, > "items": [ > { > "id": 100000000001, > "quantity": 1, > "product_id": 832938123321, > "variant_id": 100000000001, > "properties": {} > } > ] > } > }' > ``` > > ```json Response theme={null} > { > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "tax_details": { > "total_tax": 0, > "taxes_included": true > } > } > ``` > > > [accordion] Request Parameters > > > > `cart` *mandatory* > > : `object` Complete cart object from Shopify. > > > > `cart.token` *mandatory* > > : `string` Unique cart token from Shopify cart creation. > > > > `cart.note` *optional* > > : `string|null` Customer notes or special instructions. > > > > `cart.attributes` *optional* > > : `object` Custom attributes for the cart (key-value pairs). > > > > `cart.item_count` *mandatory* > > : `integer` Total number of items in the cart. > > > > `cart.items` *mandatory* > > : `array` Array of cart items. > > > > `cart.items[].id` *mandatory* > > : `integer` Unique item identifier. > > > > `cart.items[].quantity` *mandatory* > > : `integer` Quantity of the item. > > > > `cart.items[].product_id` *mandatory* > > : `integer` Shopify product identifier. > > > > `cart.items[].variant_id` *mandatory* > > : `integer` Shopify variant identifier. > > > > `cart.items[].properties` *optional* > > : `object` Custom item properties. > > > [accordion] Response Parameters > > > > `shopify_checkout_id` > > : `string` Unique checkout identifier for Shopify integration. > > > > `tax_details` > > : `object` Tax information for the checkout. > > > > `total_tax` > > : `integer` Total tax amount in smallest currency unit (paise). > > > > `taxes_included` > > : `boolean` Whether taxes are included in item prices. Possible values: > > > > * `true`: Taxes are included in item prices. > > * `false`: Taxes are separate from item prices. > [accordion] 2 Create Order id on Server > > Create a Razorpay order id required for the payment modal. This API requires the `shopify_checkout_id` from [Step 1.1](#1-create-a-checkout-id). > > `POST /magic/order/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/order/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: */*" \ > -H "Origin: https://api.razorpay.com" \ > -d '{ > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "ga_id": "GA1.1.xxxxxxx.xxxxxxxx", > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "", > "event_source_url": "https://your-store.com/" > }, > "utm_parameters": { > "landing_page_url": "https://your-store.com/", > "user_agent": "Mozilla/5.0 (Linux; Android 12; SM-G991B)..." > }, > "analytics": { > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "" > }, > "ga4": { > "session_ids": { > "_ga_XXXXXXXXXX": "GS1.1.xxxxxxxx.x.x.x.x.x" > }, > "client_id": "GA1.1.xxxxxxxx.xxxxxxxx" > }, > "google_ads": { > "gclid": "", > "wbraid": "", > "gbraid": "" > }, > "source_url": "https://your-store.com/" > } > }' > ``` > > ```json Response theme={null} > { > "preferences": null, > "order_id": "order_EKwxwAgItmmXdp" > } > ``` > > > [accordion] Request Parameters > > > > `shopify_checkout_id` *mandatory* > > : `string` Checkout id from [Step 1.1](#1-create-a-checkout-id). > > > > `ga_id` *optional* > > : `string` Google Analytics client identifier. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics parameters. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `event_source_url` *optional* > > : `string` Source URL for the event. > > > > `utm_parameters` *optional* > > : `object` UTM tracking parameters. > > > > `landing_page_url` *optional* > > : `string` Landing page URL. > > > > `user_agent` *optional* > > : `string` Browser user agent string. > > > > `analytics` *optional* > > : `object` Comprehensive analytics data. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics configuration. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `ga4` *optional* > > : `object` Google Analytics 4 configuration. > > > > `session_ids` *optional* > > : `object` GA4 session identifiers. > > > > `client_id` *optional* > > : `string` GA4 client identifier. > > > > `google_ads` *optional* > > : `object` Google Ads tracking parameters. > > > > `gclid` *optional* > > : `string` Google Click Identifier. > > > > `wbraid` *optional* > > : `string` Web-to-app measurement parameter. > > > > `gbraid` *optional* > > : `string` Google Ads Broad match parameter. > > > > `source_url` *optional* > > : `string` Source URL for analytics. > > > [accordion] Response Parameters > > > > `preferences` > > : `object|null` Customer preferences. Returns `null` if no preferences are set. > > > > `order_id` > > : `string` Unique Razorpay order identifier. For example, `order_EKwxwAgItmmXdp`. > [accordion] 3 Import Razorpay iOS Standard SDK Library > > You can import the Razorpay iOS Standard SDK library using any of these ways: > > > [tab] Cocoapod > > > > Refer to our [Cocoapod](https://cocoapods.org/pods/razorpay-pod) (bitcode enabled) pod. > > > [tab] Manual > > > > 1. Download the SDK and unzip it. > > 2. Open your project in XCode and go to **file** under **Menu**. Select **Add files to "yourproject"**. > > 3. Select **Razorpay.xcframework** in the directory you just unzipped. > > 4. Select the **Copy items if needed** checkbox. > > 5. Click **Add**. > > 6. Navigate to **Target settings โ†’ General** and add the **Razorpay.xcframework** in both **Embedded Binaries** and **Linked Frameworks and Libraries**. > > > [tab] Objective-C > > > > If you are building an **Objective-C** project, follow the steps given for Swift and the additional steps given below: > > > > 1. Go to **Project Settings** and select **Build Settings - All and Combined**. > > 2. Set the **Always Embed Swift Standard Libraries** option to **TRUE**. > > > > Ensure that you have the framework added in both **Embedded Binaries** and **Linked Frameworks and Libraries** under **Target settings - General**. > > > [accordion] Xcode 11 > > > > Ensure that you have the framework added in **Frameworks, Libraries, and Embed Content** under **Target settings - General**. Change `Embed status` from - `Do not Embed` to `Embed & Sign`. \\ > > > > Watch the GIF to see how to add Frameworks, Libraries and Embed Content. > > > > ![add Frameworks, Libraries and Embed Content](https://razorpay.com/docs/build/browser/assets/images/ios-embed-framework.gif) > [accordion] 4 Initialise Razorpay iOS Standard SDK > > To initialise Razorpay iOS Standard SDK, you need the following: > > * API keys. You can generate this from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > > [!WARNING] > > > > **Watch Out!** > > > > API keys should not be hardcoded in the app. Must be sent from your backend as app-related metadata fetch. > > * A delegate that implements `RazorpayPaymentCompletionProtocol` or `RazorpayPaymentCompletionProtocolWithData`. > > > [!WARNING] > > > > **Watch Out!** > > > > * For Swift version 5.1+, ensure that you declare `var razorpay: RazorpayCheckout!`. > > > > * For versions lower than 5.1, use `var razorpay: Razorpay!`. > > > > * Alternatively, you can use the following alias and retain the variable as Razorpay. \\ > > > > `typealias Razorpay = RazorpayCheckout` > > ```swift ViewController.swift theme={null} > import Razorpay > > class ViewController: UIViewController, RazorpayPaymentCompletionProtocol { > > // typealias Razorpay = RazorpayCheckout > > var razorpay: RazorpayCheckout! > override func viewDidLoad() { > super.viewDidLoad() > razorpay = RazorpayCheckout.initWithKey(razorpayTestKey, andDelegate: self) > } > override func viewWillAppear(_ animated: Bool) { > super.viewWillAppear(animated) > self.showPaymentForm() > } > } > ``` > > ```objectivec ViewController.m theme={null} > #import > //- typedef RazorpayCheckout Razorpay; > > @interface ViewController () { > RazorpayCheckout *razorpay; > . > . > - (void)viewDidLoad { > [super viewDidLoad]; > . > . > razorpay = [RazorpayCheckout initWithKey:@"YOUR_PUBLIC_KEY" andDelegate:self]; > } > } > ``` > [accordion] 5 Coupon Handling > > Since this is an SDK integration, Shopify coupons will not auto-apply like they do on the website. You must explicitly pass coupon codes to Magic Checkout. When initialising Magic Checkout, include the coupon code in the prefill options: > > ```javascript theme={null} > const options = { > key: 'rzp_live_XXXXXX', > order_id: 'order_EKwxwAgItmmXdp', > // ... other options > > prefill: { > coupon_code: 'MY_COUPON_NAME', // Coupon from your cart to auto-apply > }, > }; > > // Initialize Magic Checkout with options > MagicCheckout.open(options); > ``` > > Your app captures the coupon applied on the cart page, then passes the coupon code in the `prefill.coupon_code` field. The SDK internally calls `applyCoupon('MY_COUPON_NAME')`, and if the coupon is valid, it is automatically applied in Magic Checkout. > [accordion] 6 Pass Payment Options and Display Checkout Form > > Call `RazorpayCheckout.checkIntegration(withMerchantKey: )` to check the health of integration. This will also let you know if the SDK version is outdated. The opinionated alerting is displayed only when it is running on simulators. > > Add the following code to your `ViewController` or wherever you want to initialise payments: > > ```swift ViewController.swift theme={null} > internal func showPaymentForm(){ > let options: [String:Any] = [ > "key": "YOUR_KEY_ID", > "amount": "100", //This is in currency subunits. 100 = 100 paise= INR 1. > "currency": "INR",//We support more that 92 international currencies. > "description": "purchase description", > "order_id": "order_DBJOWzybf0sJbb", > "image": "https://cdn.razorpay.com/logos/F9Yhfb7ZXjXmIQ_medium.jpg", > "name": "business or product name", > "prefill": [ > "contact": "", > "email": "" > ], > "show_coupons": true, //magic checkout > "theme": [ > "color": "#F37254" > ] > ] > razorpay.open(options) > } > ``` > > ```objectivec ViewController.m theme={null} > - (void)showPaymentForm { // called by your app > NSDictionary *options = @{ > @"key": @"YOUR_KEY_ID", > @"amount": @"1000", //This is in currency subunits. 1000 = 1000 paise= INR 10. > // all optional other than amount. > @"currency": @"INR", //We support more that 92 international currencies. > @"image": @"https://url-to-image.jpg", > @"name": @"business or product name", > @"description": @"purchase description", > @"order_id": @"order_4xbQrmEoA5WJ0G", > @"prefill" : @{ > @"email": @"", > @"contact": @"" > }, > @"show_coupons": @"true", //magic checkout > @"theme": @{ > @"color": @"#F37254" > } > }; > [razorpay open:options]; > } > ``` > > > [!NOTE] > > > > **Optional Parameter - displayController** > > > > When the optional parameter- displayController, is specified, the Razorpay controller is pushed onto this controller's navigation controller if present or presented on this controller if absent. > > > > ``` > > razorpay.open(options, displayController: self) > > ``` > > > [accordion] Checkout Options > > > > `key` *mandatory* > > : `string` API key id generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` The amount to be paid by the customer in currency subunits. For example, if the amount is โ‚น500, enter `50000`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. Length must be of 3 characters. > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order id generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > > * `card` > > * `netbanking` > > * `wallet` > > * `upi` > > * `cod` > > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `show_coupons` *optional* > > : `boolean` Determines whether to show the coupons to customer on the checkout. Possible values: > > > > * `true` (default): Enables the Coupon feature. > > * `false`: Disables the Coupon feature. > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > You must pass these parameters in Checkout to initiate the payment. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To support theme colour in the progress bar, please pass HEX colour values only. > > > [accordion] 6.1 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > [accordion] 7 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. > [accordion] 8 Complete Checkout Call > > After a successful payment, call the complete checkout API to create the order in Shopify. You must make the call from the callback handler implemented when importing the react SDK. Ensure you redirect the user to the `order_status_url` to show them the order success page on Shopify. > > `POST /1cc/shopify/complete?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/1cc/shopify/complete?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "razorpay_payment_id": "pay_Rk3b76fSqXXXXX", > "razorpay_order_id": "order_Rk3UmCXXW5XXXX" > }' > ``` > > ```json Response theme={null} > { > "id": 65157213390123, > "order_id": "#32697", > "payment_id": "pay_Rk3b76fSqXXXXX", > "payment_method": "netbanking", > "payment_currency": "INR", > "total_amount": 659430, > "total_tax": "543.91", > "shipping_fee": 700, > "cod_fee": 0, > "promotions": [ > { > "reference_id": "Auto Order Amount Discount", > "code": "Auto Order Amount Discount", > "type": "automatic", > "value": 100000, > "source": "shopify" > } > ], > "shipping_country": "in", > "customer_details": { > "email": "", > "contact": "", > "shipping_address": { > "name": "", > "line1": "123 Main Street", > "city": "Bengaluru", > "state": "KARNATAKA", > "zipcode": "560049", > "country": "in" > } > }, > "order_status_url": "https://your-store.myshopify.com/orders/...", > "is_new_customer": false > } > ``` > > > [accordion] Request Parameters > > > > `razorpay_payment_id` *mandatory* > > : `string` Unique payment identifier. Format: `pay_` followed by 14 characters. > > > > `razorpay_order_id` *mandatory* > > : `string` Unique order identifier from Step 1.2. Format: `order_` followed by 14 characters. > > > [accordion] Response Parameters > > > > `id` > > : `integer` Unique Shopify order identifier. For example, `65157213390123`. > > > > `order_id` > > : `string` Human-readable order number. For example, `#32697`. > > > > `payment_id` > > : `string` Razorpay payment identifier. For example, `pay_Rk3b76fSqXXXXX`. > > > > `payment_method` > > : `string` Payment method used. Possible values include: > > > > * `netbanking` > > * `upi` > > * `card` > > * `wallet` > > > > `payment_currency` > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > `total_amount` > > : `integer` Total order amount in smallest currency unit (paise). For example, `659430` for โ‚น6594.30. > > > > `total_tax` > > : `string` Total tax amount as string. For example, `543.91`. > > > > `shipping_fee` > > : `integer` Shipping charges in smallest currency unit (paise). For example, `700` for โ‚น7. > > > > `cod_fee` > > : `integer` Cash on Delivery fee in smallest currency unit (paise). For example, `0` indicates no COD fee. > > > > `promotions` > > : `array` Array of applied promotions/discounts. > > > > `reference_id` > > : `string` Internal reference for the promotion. > > > > `code` > > : `string` Promotion code used. > > > > `type` > > : `string` Type of promotion. Possible values: > > > > * `automatic`: Automatically applied discount. > > * `coupon`: Coupon-based discount. > > > > `value` > > : `integer` Discount value in smallest currency unit (paise). For example, `100000` for โ‚น1000. > > > > `source` > > : `string` Source of the promotion. For example, `shopify`. > > > > `shipping_country` > > : `string` Country code for shipping destination. For example, `in`. > > > > `customer_details` > > : `object` Complete customer information. > > > > `email` > > : `string` Customer's email address. > > > > `contact` > > : `string` Customer's phone number. > > > > `shipping_address` > > : `object` Complete shipping address information. > > > > `name` > > : `string` Recipient name. > > > > `line1` > > : `string` Address line 1. > > > > `city` > > : `string` City name. > > > > `state` > > : `string` State name. > > > > `zipcode` > > : `string` Postal code. > > > > `country` > > : `string` Country code. For example, `in`. > > > > `order_status_url` > > : `string` Shopify order status page URL for customer. > > > > `is_new_customer` > > : `boolean` Whether this is a new customer's first order. Possible values: > > > > * `true`: New customer's first order. > > * `false`: Existing customer order. #### Pass Additional Attributes to Shopify Orders Shopify orders support Tags and Additional Attributes (note attributes). Include the attributes in the Shopify cart's attributes object before initiating checkout: ```javascript theme={null} // When creating/updating Shopify cart const cartPayload = { cart: { token: "your_cart_token", note: "Customer special instructions", attributes: { "Source": "Mobile App", "App Version": "2.1.0", "Campaign": "Summer Sale 2025", "Custom Field": "Your custom value" }, item_count: 1, items: [/* ... */] }, key: "rzp_live_XXXXXX" }; ``` These attributes will flow through to the Shopify order and appear in the additional attributes section in Shopify Admin. ## 2. Test Integration Check the following checklist below: * Shopify cart creation is working correctly. * Checkout id is generated successfully. * Order id is created with analytics parameters. * Magic Checkout SDK opens without errors. * Coupons apply correctly via prefill. * Payment flow completes successfully. * Complete Checkout API creates order in Shopify. * Order appears in Shopify Admin with correct details. * Additional attributes appear correctly in Shopify order. ## Error Handling | Error Scenario | Recommended Action | | - | - | | Invalid cart token | Ensure Shopify cart exists before [Step 1.1](#1-create-a-checkout-id). | | Payment not captured | Verify payment status before complete checkout. | | Invalid signature | Regenerate signature using Razorpay's signature verification. | | Coupon invalid | Handle error callback and notify user. | > [!WARNING] > > **Fallback to Shopify Checkout** > > If any Magic Checkout API fails, redirect users to the standard Shopify checkout to ensure customers can still complete their purchase. ## Support For integration support, reach out to your Razorpay account manager or raise a request with our [support team](https://razorpay.com/support/#request). # Integrate Magic Checkout on React Native Android App - Shopify Source: https://razorpay.com/docs/payments/magic-checkout/shopify/custom/react-native-android-integration Steps to integrate Magic Checkout on your React Native Android app using the Razorpay React Native Android Standard SDK - Shopify integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your React Native Android application when using Shopify as your e-commerce platform. ## Prerequisites * Ensure you enable [Magic Checkout](/docs/payments/magic-checkout/troubleshooting-faqs#how-do-i-check-if-magic-checkout-is-enabled-on-my-account) on your account. * Integrate [Magic Checkout With Shopify Store](/docs/payments/magic-checkout/shopify). * Integrate with [React Native: Android Integration](/docs/payments/magic-checkout/react-native-android-integration). * Generate [Live API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. > [!NOTE] > > **Handy Tips** > > The **compileSdkVersion** is the version of Android. Increase the value of **minSdkVersion** to at least 19 in the build.gradle file in the Android folder to work with the latest Android SDK Build Tools version. Using it with a lower **minSdkVersion** version will lead to errors. > [card] [1. Build Integration](/docs/payments/magic-checkout/shopify/custom/react-native-android-integration#1-build-integration) > > Integrate with React Native Android App for Shopify. > [card] [2. Test Integration](/docs/payments/magic-checkout/shopify/custom/react-native-android-integration#2-test-integration) > > Test the integration by making a test payment. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Create a Checkout id > > Generate a unique cart identifier to initiate the Magic Checkout process. > > > [!NOTE] > > > > **Important** > > > > Ensure you create the Shopify cart before making this request as the cart token must be included in the payload. > > `POST /magic/checkout/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/checkout/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "cart": { > "token": "ashgad?key=abasab", > "note": null, > "attributes": {}, > "item_count": 1, > "items": [ > { > "id": 100000000001, > "quantity": 1, > "product_id": 832938123321, > "variant_id": 100000000001, > "properties": {} > } > ] > } > }' > ``` > > ```json Response theme={null} > { > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "tax_details": { > "total_tax": 0, > "taxes_included": true > } > } > ``` > > > [accordion] Request Parameters > > > > `cart` *mandatory* > > : `object` Complete cart object from Shopify. > > > > `cart.token` *mandatory* > > : `string` Unique cart token from Shopify cart creation. > > > > `cart.note` *optional* > > : `string|null` Customer notes or special instructions. > > > > `cart.attributes` *optional* > > : `object` Custom attributes for the cart (key-value pairs). > > > > `cart.item_count` *mandatory* > > : `integer` Total number of items in the cart. > > > > `cart.items` *mandatory* > > : `array` Array of cart items. > > > > `cart.items[].id` *mandatory* > > : `integer` Unique item identifier. > > > > `cart.items[].quantity` *mandatory* > > : `integer` Quantity of the item. > > > > `cart.items[].product_id` *mandatory* > > : `integer` Shopify product identifier. > > > > `cart.items[].variant_id` *mandatory* > > : `integer` Shopify variant identifier. > > > > `cart.items[].properties` *optional* > > : `object` Custom item properties. > > > [accordion] Response Parameters > > > > `shopify_checkout_id` > > : `string` Unique checkout identifier for Shopify integration. > > > > `tax_details` > > : `object` Tax information for the checkout. > > > > `total_tax` > > : `integer` Total tax amount in smallest currency unit (paise). > > > > `taxes_included` > > : `boolean` Whether taxes are included in item prices. Possible values: > > > > * `true`: Taxes are included in item prices. > > * `false`: Taxes are separate from item prices. > [accordion] 2 Create Order id on Server > > Create a Razorpay order id required for the payment modal. This API requires the `shopify_checkout_id` from [Step 1.1](#1-create-a-checkout-id). > > `POST /magic/order/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/order/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: */*" \ > -H "Origin: https://api.razorpay.com" \ > -d '{ > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "ga_id": "GA1.1.xxxxxxx.xxxxxxxx", > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "", > "event_source_url": "https://your-store.com/" > }, > "utm_parameters": { > "landing_page_url": "https://your-store.com/", > "user_agent": "Mozilla/5.0 (Linux; Android 12; SM-G991B)..." > }, > "analytics": { > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "" > }, > "ga4": { > "session_ids": { > "_ga_XXXXXXXXXX": "GS1.1.xxxxxxxx.x.x.x.x.x" > }, > "client_id": "GA1.1.xxxxxxxx.xxxxxxxx" > }, > "google_ads": { > "gclid": "", > "wbraid": "", > "gbraid": "" > }, > "source_url": "https://your-store.com/" > } > }' > ``` > > ```json Response theme={null} > { > "preferences": null, > "order_id": "order_EKwxwAgItmmXdp" > } > ``` > > > [accordion] Request Parameters > > > > `shopify_checkout_id` *mandatory* > > : `string` Checkout id from [Step 1.1](#1-create-a-checkout-id). > > > > `ga_id` *optional* > > : `string` Google Analytics client identifier. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics parameters. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `event_source_url` *optional* > > : `string` Source URL for the event. > > > > `utm_parameters` *optional* > > : `object` UTM tracking parameters. > > > > `landing_page_url` *optional* > > : `string` Landing page URL. > > > > `user_agent` *optional* > > : `string` Browser user agent string. > > > > `analytics` *optional* > > : `object` Comprehensive analytics data. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics configuration. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `ga4` *optional* > > : `object` Google Analytics 4 configuration. > > > > `session_ids` *optional* > > : `object` GA4 session identifiers. > > > > `client_id` *optional* > > : `string` GA4 client identifier. > > > > `google_ads` *optional* > > : `object` Google Ads tracking parameters. > > > > `gclid` *optional* > > : `string` Google Click Identifier. > > > > `wbraid` *optional* > > : `string` Web-to-app measurement parameter. > > > > `gbraid` *optional* > > : `string` Google Ads Broad match parameter. > > > > `source_url` *optional* > > : `string` Source URL for analytics. > > > [accordion] Response Parameters > > > > `preferences` > > : `object|null` Customer preferences. Returns `null` if no preferences are set. > > > > `order_id` > > : `string` Unique Razorpay order identifier. For example, `order_EKwxwAgItmmXdp`. > [accordion] 3 Install Razorpay React Native SDK > > Install the SDK using the following `npm` command in the **Terminal** window. If you are using Windows, use **Git Bash** instead of the **Command Prompt** window. Ensure you run this code within your React Native project folder in the **Terminal** window. > > ```javascript Installation Code theme={null} > //using npm > $ npm install react-native-razorpay --save > ``` > > Additionally, run the code given below if you are using `yarn` or `expo`: > > ```javascript Installation Code using yarn theme={null} > // using yarn > $ yarn add react-native-razorpay > ``` > > ```javascript Installation Code using expo theme={null} > // for expo > $ npx expo install react-native-razorpay > ``` > [accordion] 4 Run React Native App > > Run the React Native app.\\ > > ```javascript Run theme={null} > npx react-native run-android > ``` > > This links the SDK with your React Native project. > > > [accordion] Expo Application > > > > After adding the `react-native-razorpay` package, use the option to prebuild the app. This generates the **android** platform folders in the project to use native-modules. > > > > ```javascript Run theme={null} > > npx expo prebuild > > ``` > > > > The application is installed on the device/emulator. > > > > ```javascript theme={null} > > npx expo run:[android] --device > > ``` > [accordion] 5 Coupon Handling > > Since this is an SDK integration, Shopify coupons will not auto-apply like they do on the website. You must explicitly pass coupon codes to Magic Checkout. When initialising Magic Checkout, include the coupon code in the prefill options: > > ```javascript theme={null} > const options = { > key: 'rzp_live_XXXXXX', > order_id: 'order_EKwxwAgItmmXdp', > // ... other options > > prefill: { > coupon_code: 'MY_COUPON_NAME', // Coupon from your cart to auto-apply > }, > }; > > // Initialize Magic Checkout with options > MagicCheckout.open(options); > ``` > > Your app captures the coupon applied on the cart page, then passes the coupon code in the `prefill.coupon_code` field. The SDK internally calls `applyCoupon('MY_COUPON_NAME')`, and if the coupon is valid, it is automatically applied in Magic Checkout. > [accordion] 6 Add Razorpay Checkout Options to .js File > > To integrate the Razorpay Checkout with your React Native app, you must add the Checkout Display Options in the **.js** file. > > Open the **.js** file in your project folder and perform the following: > > 1. Import the `RazorpayCheckout` module to your component. > > ```javascript Import Razorpay Checkout Module theme={null} > import RazorpayCheckout from 'react-native-razorpay'; > ``` > > 2. Call the `RazorpayCheckout.open` method with the payment options. The method returns a JS Promise where the `then` part corresponds to a successful payment and the `catch` part corresponds to payment failure. > > Add the following code: > > ```javascript Checkout Options theme={null} > { > var options = { > description: 'Credits towards consultation', > image: 'https://i.imgur.com/3g7nmJC.jpg', > currency: 'INR', > key: '', > amount: '5000', > name: 'Acme Corp', > order_id: 'order_EKwxwAgItmmXdp',//Replace this with order_id from Step 1.2 > prefill: { > email: '', > contact: '', > name: '', > coupon_code: 'MY_COUPON_NAME' // Coupon from your cart to auto-apply (as explained in Step 1.6) > }, > show_coupons: true, // magic checkout > theme: {color: '#53a20e'} > } > RazorpayCheckout.open(options).then((data) => { > // handle success > alert(`Success: ${data.razorpay_payment_id}`); > }).catch((error) => { > // handle failure > alert(`Error: ${error.code} | ${error.description}`); > }); > }}> > ``` > > > [accordion] Checkout Options > > > > `key` *mandatory* > > : `string` API key id generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` The amount to be paid by the customer in currency subunits. For example, if the amount is โ‚น500, enter `50000`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. Length must be of 3 characters. > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order id generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > > * `card` > > * `netbanking` > > * `wallet` > > * `upi` > > * `cod` > > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `show_coupons` *optional* > > : `boolean` Determines whether to show the coupons to customer on the checkout. Possible values: > > > > * `true` (default): Enables the Coupon feature. > > * `false`: Disables the Coupon feature. > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > > > * `ben`: Bengali > > > > * `hi`: Hindi > > > > * `mar`: Marathi > > > > * `guj`: Gujarati > > > > * `tam`: Tamil > > > > * `tel`: Telugu > > > > You must pass these parameters in Checkout to initiate the payment. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > To support theme colour in the progress bar, please pass HEX colour values only. > [accordion] 7 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. > [accordion] 8 Complete Checkout Call > > After a successful payment, call the complete checkout API to create the order in Shopify. You must make the call from the callback handler implemented when importing the react SDK. Ensure you redirect the user to the `order_status_url` to show them the order success page on Shopify. > > `POST /1cc/shopify/complete?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/1cc/shopify/complete?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "razorpay_payment_id": "pay_Rk3b76fSqXXXXX", > "razorpay_order_id": "order_Rk3UmCXXW5XXXX" > }' > ``` > > ```json Response theme={null} > { > "id": 65157213390123, > "order_id": "#32697", > "payment_id": "pay_Rk3b76fSqXXXXX", > "payment_method": "netbanking", > "payment_currency": "INR", > "total_amount": 659430, > "total_tax": "543.91", > "shipping_fee": 700, > "cod_fee": 0, > "promotions": [ > { > "reference_id": "Auto Order Amount Discount", > "code": "Auto Order Amount Discount", > "type": "automatic", > "value": 100000, > "source": "shopify" > } > ], > "shipping_country": "in", > "customer_details": { > "email": "", > "contact": "", > "shipping_address": { > "name": "", > "line1": "123 Main Street", > "city": "Bengaluru", > "state": "KARNATAKA", > "zipcode": "560049", > "country": "in" > } > }, > "order_status_url": "https://your-store.myshopify.com/orders/...", > "is_new_customer": false > } > ``` > > > [accordion] Request Parameters > > > > `razorpay_payment_id` *mandatory* > > : `string` Unique payment identifier. Format: `pay_` followed by 14 characters. > > > > `razorpay_order_id` *mandatory* > > : `string` Unique order identifier from Step 1.2. Format: `order_` followed by 14 characters. > > > [accordion] Response Parameters > > > > `id` > > : `integer` Unique Shopify order identifier. For example, `65157213390123`. > > > > `order_id` > > : `string` Human-readable order number. For example, `#32697`. > > > > `payment_id` > > : `string` Razorpay payment identifier. For example, `pay_Rk3b76fSqXXXXX`. > > > > `payment_method` > > : `string` Payment method used. Possible values include: > > > > * `netbanking` > > * `upi` > > * `card` > > * `wallet` > > > > `payment_currency` > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > `total_amount` > > : `integer` Total order amount in smallest currency unit (paise). For example, `659430` for โ‚น6594.30. > > > > `total_tax` > > : `string` Total tax amount as string. For example, `543.91`. > > > > `shipping_fee` > > : `integer` Shipping charges in smallest currency unit (paise). For example, `700` for โ‚น7. > > > > `cod_fee` > > : `integer` Cash on Delivery fee in smallest currency unit (paise). For example, `0` indicates no COD fee. > > > > `promotions` > > : `array` Array of applied promotions/discounts. > > > > `reference_id` > > : `string` Internal reference for the promotion. > > > > `code` > > : `string` Promotion code used. > > > > `type` > > : `string` Type of promotion. Possible values: > > > > * `automatic`: Automatically applied discount. > > * `coupon`: Coupon-based discount. > > > > `value` > > : `integer` Discount value in smallest currency unit (paise). For example, `100000` for โ‚น1000. > > > > `source` > > : `string` Source of the promotion. For example, `shopify`. > > > > `shipping_country` > > : `string` Country code for shipping destination. For example, `in`. > > > > `customer_details` > > : `object` Complete customer information. > > > > `email` > > : `string` Customer's email address. > > > > `contact` > > : `string` Customer's phone number. > > > > `shipping_address` > > : `object` Complete shipping address information. > > > > `name` > > : `string` Recipient name. > > > > `line1` > > : `string` Address line 1. > > > > `city` > > : `string` City name. > > > > `state` > > : `string` State name. > > > > `zipcode` > > : `string` Postal code. > > > > `country` > > : `string` Country code. For example, `in`. > > > > `order_status_url` > > : `string` Shopify order status page URL for customer. > > > > `is_new_customer` > > : `boolean` Whether this is a new customer's first order. Possible values: > > > > * `true`: New customer's first order. > > * `false`: Existing customer order. #### Pass Additional Attributes to Shopify Orders Shopify orders support Tags and Additional Attributes (note attributes). Include the attributes in the Shopify cart's attributes object before initiating checkout: ```javascript theme={null} // When creating/updating Shopify cart const cartPayload = { cart: { token: "your_cart_token", note: "Customer special instructions", attributes: { "Source": "Mobile App", "App Version": "2.1.0", "Campaign": "Summer Sale 2025", "Custom Field": "Your custom value" }, item_count: 1, items: [/* ... */] }, key: "rzp_live_XXXXXX" }; ``` These attributes will flow through to the Shopify order and appear in the additional attributes section in Shopify Admin. ## 2. Test Integration Check the following checklist below: * Shopify cart creation is working correctly. * Checkout id is generated successfully. * Order id is created with analytics parameters. * Magic Checkout SDK opens without errors. * Coupons apply correctly via prefill. * Payment flow completes successfully. * Complete Checkout API creates order in Shopify. * Order appears in Shopify Admin with correct details. * Additional attributes appear correctly in Shopify order. ## Error Handling | Error Scenario | Recommended Action | | - | - | | Invalid cart token | Ensure Shopify cart exists before [Step 1.1](#1-create-a-checkout-id). | | Payment not captured | Verify payment status before complete checkout. | | Invalid signature | Regenerate signature using Razorpay's signature verification. | | Coupon invalid | Handle error callback and notify user. | > [!WARNING] > > **Fallback to Shopify Checkout** > > If any Magic Checkout API fails, redirect users to the standard Shopify checkout to ensure customers can still complete their purchase. ## Support For integration support, reach out to your Razorpay account manager or raise a request with our [support team](https://razorpay.com/support/#request). # Integrate Magic Checkout on React Native iOS App - Shopify Source: https://razorpay.com/docs/payments/magic-checkout/shopify/custom/react-native-ios-integration Steps to integrate Magic Checkout on your React Native iOS app using the Razorpay React Native iOS Standard SDK - Shopify integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your React Native iOS application when using Shopify as your e-commerce platform. ## Prerequisites * Ensure you enable [Magic Checkout](/docs/payments/magic-checkout/troubleshooting-faqs#how-do-i-check-if-magic-checkout-is-enabled-on-my-account) on your account. * Integrate [Magic Checkout With Shopify Store](/docs/payments/magic-checkout/shopify). * Integrate with [React Native: iOS Integration](/docs/payments/magic-checkout/react-native-ios-integration). * Generate [Live API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. > [card] [1. Build Integration](/docs/payments/magic-checkout/shopify/custom/react-native-ios-integration#1-build-integration) > > Integrate with React Native iOS App for Shopify. > [card] [2. Test Integration](/docs/payments/magic-checkout/shopify/custom/react-native-ios-integration#2-test-integration) > > Test the integration by making a test payment. ## 1. Build Integration Follow the steps given below: > [!WARNING] > > **Watch Out!** > > If you use M1 MacBook, you need to make [these changes](/docs/payments/magic-checkout/react-native-ios-integration#m1-macbook-changes) in your `podfile`. > [accordion] 1 Create a Checkout id > > Generate a unique cart identifier to initiate the Magic Checkout process. > > > [!NOTE] > > > > **Important** > > > > Ensure you create the Shopify cart before making this request as the cart token must be included in the payload. > > `POST /magic/checkout/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/checkout/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "cart": { > "token": "ashgad?key=abasab", > "note": null, > "attributes": {}, > "item_count": 1, > "items": [ > { > "id": 100000000001, > "quantity": 1, > "product_id": 832938123321, > "variant_id": 100000000001, > "properties": {} > } > ] > } > }' > ``` > > ```json Response theme={null} > { > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "tax_details": { > "total_tax": 0, > "taxes_included": true > } > } > ``` > > > [accordion] Request Parameters > > > > `cart` *mandatory* > > : `object` Complete cart object from Shopify. > > > > `cart.token` *mandatory* > > : `string` Unique cart token from Shopify cart creation. > > > > `cart.note` *optional* > > : `string|null` Customer notes or special instructions. > > > > `cart.attributes` *optional* > > : `object` Custom attributes for the cart (key-value pairs). > > > > `cart.item_count` *mandatory* > > : `integer` Total number of items in the cart. > > > > `cart.items` *mandatory* > > : `array` Array of cart items. > > > > `cart.items[].id` *mandatory* > > : `integer` Unique item identifier. > > > > `cart.items[].quantity` *mandatory* > > : `integer` Quantity of the item. > > > > `cart.items[].product_id` *mandatory* > > : `integer` Shopify product identifier. > > > > `cart.items[].variant_id` *mandatory* > > : `integer` Shopify variant identifier. > > > > `cart.items[].properties` *optional* > > : `object` Custom item properties. > > > [accordion] Response Parameters > > > > `shopify_checkout_id` > > : `string` Unique checkout identifier for Shopify integration. > > > > `tax_details` > > : `object` Tax information for the checkout. > > > > `total_tax` > > : `integer` Total tax amount in smallest currency unit (paise). > > > > `taxes_included` > > : `boolean` Whether taxes are included in item prices. Possible values: > > > > * `true`: Taxes are included in item prices. > > * `false`: Taxes are separate from item prices. > [accordion] 2 Create Order id on Server > > Create a Razorpay order id required for the payment modal. This API requires the `shopify_checkout_id` from [Step 1.1](#1-create-a-checkout-id). > > `POST /magic/order/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/order/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: */*" \ > -H "Origin: https://api.razorpay.com" \ > -d '{ > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "ga_id": "GA1.1.xxxxxxx.xxxxxxxx", > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "", > "event_source_url": "https://your-store.com/" > }, > "utm_parameters": { > "landing_page_url": "https://your-store.com/", > "user_agent": "Mozilla/5.0 (Linux; Android 12; SM-G991B)..." > }, > "analytics": { > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "" > }, > "ga4": { > "session_ids": { > "_ga_XXXXXXXXXX": "GS1.1.xxxxxxxx.x.x.x.x.x" > }, > "client_id": "GA1.1.xxxxxxxx.xxxxxxxx" > }, > "google_ads": { > "gclid": "", > "wbraid": "", > "gbraid": "" > }, > "source_url": "https://your-store.com/" > } > }' > ``` > > ```json Response theme={null} > { > "preferences": null, > "order_id": "order_EKwxwAgItmmXdp" > } > ``` > > > [accordion] Request Parameters > > > > `shopify_checkout_id` *mandatory* > > : `string` Checkout id from [Step 1.1](#1-create-a-checkout-id). > > > > `ga_id` *optional* > > : `string` Google Analytics client identifier. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics parameters. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `event_source_url` *optional* > > : `string` Source URL for the event. > > > > `utm_parameters` *optional* > > : `object` UTM tracking parameters. > > > > `landing_page_url` *optional* > > : `string` Landing page URL. > > > > `user_agent` *optional* > > : `string` Browser user agent string. > > > > `analytics` *optional* > > : `object` Comprehensive analytics data. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics configuration. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `ga4` *optional* > > : `object` Google Analytics 4 configuration. > > > > `session_ids` *optional* > > : `object` GA4 session identifiers. > > > > `client_id` *optional* > > : `string` GA4 client identifier. > > > > `google_ads` *optional* > > : `object` Google Ads tracking parameters. > > > > `gclid` *optional* > > : `string` Google Click Identifier. > > > > `wbraid` *optional* > > : `string` Web-to-app measurement parameter. > > > > `gbraid` *optional* > > : `string` Google Ads Broad match parameter. > > > > `source_url` *optional* > > : `string` Source URL for analytics. > > > [accordion] Response Parameters > > > > `preferences` > > : `object|null` Customer preferences. Returns `null` if no preferences are set. > > > > `order_id` > > : `string` Unique Razorpay order identifier. For example, `order_EKwxwAgItmmXdp`. > [accordion] 3 Install Razorpay React Native SDK > > Install the SDK using the following `npm` command in the **Terminal** window. If you are using Windows, please use **Git Bash** instead of the **Command Prompt** window. Ensure that you run this code within your React Native project folder in **Terminal** window. > > ```javascript Installation Code theme={null} > //using npm > $ npm install react-native-razorpay --save > ``` > > Additionally, run the code given below if you are using `yarn` or `expo`: > > ```javascript Installation Code using yarn theme={null} > // using yarn > $ yarn add react-native-razorpay > ``` > > ```javascript Installation Code using expo theme={null} > // for expo > $ npx expo install react-native-razorpay > ``` > [accordion] 4 Open Podfile and Update Platform Version > > Navigate to the **ios** folder and open **Podfile**. You can do this using the following code. > > ```javascript Open Podfile theme={null} > $ cd ios && open podfile > ``` > > Change the platform version from `9.0` to `10.0` in the Podfile. > > ![](https://razorpay.com/docs/build/browser/assets/images/react-native-change_platform_version_podfile.jpg) > [accordion] 5 Install Pods Using Cocoapods > > Install pods after updating the iOS platform. This will install all pods in the Podfile at the exact versions.\\ > > ```javascript Cocoapod Step theme={null} > pod install && cd .. > ``` > [accordion] 6 Run React Native App > > Run the React Native app. > > ```javascript Run App theme={null} > npx react-native run-ios > ``` > > > [accordion] Expo Application > > > > After adding the `react-native-razorpay` package, use the option to prebuild the app. This generates the **iOS** platform folders in the project to use native-modules. > > > > ```javascript Run theme={null} > > npx expo prebuild > > ``` > > > > The application is installed on the device/emulator. > > > > ```javascript theme={null} > > npx expo run:[ios] --device > > ``` > [accordion] 7 Coupon Handling > > Since this is an SDK integration, Shopify coupons will not auto-apply like they do on the website. You must explicitly pass coupon codes to Magic Checkout. When initialising Magic Checkout, include the coupon code in the prefill options: > > ```javascript theme={null} > const options = { > key: 'rzp_live_XXXXXX', > order_id: 'order_EKwxwAgItmmXdp', > // ... other options > > prefill: { > coupon_code: 'MY_COUPON_NAME', // Coupon from your cart to auto-apply > }, > }; > > // Initialize Magic Checkout with options > MagicCheckout.open(options); > ``` > > Your app captures the coupon applied on the cart page, then passes the coupon code in the `prefill.coupon_code` field. The SDK internally calls `applyCoupon('MY_COUPON_NAME')`, and if the coupon is valid, it is automatically applied in Magic Checkout. > [accordion] 8 Add Razorpay Checkout Options to .js File > > To integrate the Razorpay Checkout with your React Native app, you must add the Checkout Display Options in the **.js** file. > > Open the **.js** file in your project folder and perform the following: > > 1. Import the `RazorpayCheckout` module to your component. > > ```javascript Import Razorpay Checkout Module theme={null} > import RazorpayCheckout from 'react-native-razorpay'; > ``` > > 2. Call the `RazorpayCheckout.open` method with the payment options. The method returns a JS Promise where the `then` part corresponds to a successful payment and the `catch` part corresponds to payment failure. > > ```javascript Checkout Options theme={null} > { > var options = { > description: 'Credits towards consultation', > image: 'https://i.imgur.com/3g7nmJC.jpg', > currency: 'INR', > key: '', > amount: '50000', > name: 'Acme Corp', > order_id: 'order_DslnoIgkIDL8Zt',// Replace this with an order_id created using Orders API. > prefill: { > email: '', > contact: '9191919191', > name: '' > }, > show_coupons: true, // magic checkout > theme: {color: '#53a20e'} > } > RazorpayCheckout.open(options).then((data) => { > // handle success > alert(`Success: ${data.razorpay_payment_id}`); > }).catch((error) => { > // handle failure > alert(`Error: ${error.code} | ${error.description}`); > }); > }}> > ``` > > > [accordion] Checkout Options > > > > `key` *mandatory* > > : `string` API key id generated from the Dashboard. > > > > `amount` *mandatory* > > : `integer` The amount to be paid by the customer in currency subunits. For example, if the amount is โ‚น500, enter `50000`. > > > > `currency` *mandatory* > > : `string` The currency in which the payment should be made by the customer. Length must be of 3 characters. > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `description` *optional* > > : `string` Description of the purchase item shown on the Checkout form. It should start with an alphanumeric character. > > > > `image` *optional* > > : `string` Link to an image (usually your business logo) shown on the Checkout form. Can also be a **base64** string if you are not loading the image from a network. > > > > `order_id` *mandatory* > > : `string` Order id generated via [Orders API](/docs/api/orders). > > > > `prefill` > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customerโ€™s phone number in the `contact` parameter of the JSON request's `prefill` object. Format: +(country code)(phone number). Example: "contact": "+919000090000". > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be prefilled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `method` *optional* > > : `string` Pre-selection of the payment method for the customer. Will only work if `contact` and `email` are also prefilled. Possible values: > > > > * `card` > > * `netbanking` > > * `wallet` > > * `upi` > > * `cod` > > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `show_coupons` *optional* > > : `boolean` Determines whether to show the coupons to customer on the checkout. Possible values: > > > > * `true` (default): Enables the Coupon feature. > > * `false`: Disables the Coupon feature. > > > > `theme` > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user. If `retry` is `false`, the `ondismiss` function is triggered when checkout closes, even after a failure. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted. > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment with the suggested next best option. > > > > `customer_id` *optional* > > : `string` Unique identifier of customer. Used for: > > > > * [Local saved cards feature](/docs/payments/payment-methods/cards/features/saved-cards#manage-saved-cards). > > * Static bank account details on Checkout in case of [Bank Transfer payment method](/docs/payments/payment-methods/bank-transfer). > > > > `remember_customer` *optional* > > : `boolean` Determines whether to allow saving of cards. Can also be configured via the [Dashboard](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout). Possible values: > > > > * `true`: Enables card saving feature. > > * `false` (default): Disables card saving feature. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as read-only. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `hidden` > > : `object` Hides the contact details. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as optional. Possible values: > > > > * `true`: Customer will not be able to view this field. > > * `false` (default): Customer will be able to view this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read OTP for cards and netbanking pages. Applicable from Android SDK version 1.5.9 and above. Possible values: > > > > * `true`: OTP is auto-read. > > * `false` (default): OTP is not auto-read. > > > > `allow_rotation` *optional* > > : `boolean` Used to rotate payment page as per screen orientation. Applicable from Android SDK version 1.6.4 and above. Possible values: > > > > * `true`: Payment page can be rotated. > > * `false` (default): Payment page cannot be rotated. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. > > > > `display` > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > > > > You must pass these parameters in Checkout to initiate the payment. > > > [accordion] 8.1 Enable UPI Intent on iOS *(Optional)* > > > > Provide your customers with a better payment experience by enabling UPI Intent on your app's Checkout form. In the UPI Intent flow: > > > > 1. Customer selects UPI as the payment method in your iOS app. A list of UPI apps supporting the intent flow is displayed. For example, PhonePe, Google Pay and Paytm. > > 2. Customer selects the preferred app. The UPI app opens with pre-populated payment details. > > 3. Customer enters their UPI PIN to complete their transactions. > > 4. Once the payment is successful, the customer is redirected to your app or website. > > > > To enable this in your iOS integration, you must make the following changes in your app's info.plist file. > > > > ```xml info.plist theme={null} > > LSApplicationQueriesSchemes > > > > tez > > phonepe > > paytmmp > > credpay > > mobikwik > > in.fampay.app > > bhim > > amazonpay > > navi > > kiwi > > payzapp > > jupiter > > omnicard > > icici > > popclubapp > > sbiyono > > myjio > > slice-upi > > bobupi > > shriramone > > indusmobile > > kotakbank > > snapmint > > freecharge > > navipay > > whatsapp-consumer > > postpe > > super > > lxme > > scapia > > curieapp > > > > ``` > > > > Know more about [UPI Intent and its benefits](/docs/payments/payment-methods/upi/upi-intent). > [accordion] 9 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. > [accordion] 10 Complete Checkout Call > > After a successful payment, call the complete checkout API to create the order in Shopify. You must make the call from the callback handler implemented when importing the react SDK. Ensure you redirect the user to the `order_status_url` to show them the order success page on Shopify. > > `POST /1cc/shopify/complete?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/1cc/shopify/complete?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "razorpay_payment_id": "pay_Rk3b76fSqXXXXX", > "razorpay_order_id": "order_Rk3UmCXXW5XXXX" > }' > ``` > > ```json Response theme={null} > { > "id": 65157213390123, > "order_id": "#32697", > "payment_id": "pay_Rk3b76fSqXXXXX", > "payment_method": "netbanking", > "payment_currency": "INR", > "total_amount": 659430, > "total_tax": "543.91", > "shipping_fee": 700, > "cod_fee": 0, > "promotions": [ > { > "reference_id": "Auto Order Amount Discount", > "code": "Auto Order Amount Discount", > "type": "automatic", > "value": 100000, > "source": "shopify" > } > ], > "shipping_country": "in", > "customer_details": { > "email": "", > "contact": "", > "shipping_address": { > "name": "", > "line1": "123 Main Street", > "city": "Bengaluru", > "state": "KARNATAKA", > "zipcode": "560049", > "country": "in" > } > }, > "order_status_url": "https://your-store.myshopify.com/orders/...", > "is_new_customer": false > } > ``` > > > [accordion] Request Parameters > > > > `razorpay_payment_id` *mandatory* > > : `string` Unique payment identifier. Format: `pay_` followed by 14 characters. > > > > `razorpay_order_id` *mandatory* > > : `string` Unique order identifier from Step 1.2. Format: `order_` followed by 14 characters. > > > [accordion] Response Parameters > > > > `id` > > : `integer` Unique Shopify order identifier. For example, `65157213390123`. > > > > `order_id` > > : `string` Human-readable order number. For example, `#32697`. > > > > `payment_id` > > : `string` Razorpay payment identifier. For example, `pay_Rk3b76fSqXXXXX`. > > > > `payment_method` > > : `string` Payment method used. Possible values include: > > > > * `netbanking` > > * `upi` > > * `card` > > * `wallet` > > > > `payment_currency` > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > `total_amount` > > : `integer` Total order amount in smallest currency unit (paise). For example, `659430` for โ‚น6594.30. > > > > `total_tax` > > : `string` Total tax amount as string. For example, `543.91`. > > > > `shipping_fee` > > : `integer` Shipping charges in smallest currency unit (paise). For example, `700` for โ‚น7. > > > > `cod_fee` > > : `integer` Cash on Delivery fee in smallest currency unit (paise). For example, `0` indicates no COD fee. > > > > `promotions` > > : `array` Array of applied promotions/discounts. > > > > `reference_id` > > : `string` Internal reference for the promotion. > > > > `code` > > : `string` Promotion code used. > > > > `type` > > : `string` Type of promotion. Possible values: > > > > * `automatic`: Automatically applied discount. > > * `coupon`: Coupon-based discount. > > > > `value` > > : `integer` Discount value in smallest currency unit (paise). For example, `100000` for โ‚น1000. > > > > `source` > > : `string` Source of the promotion. For example, `shopify`. > > > > `shipping_country` > > : `string` Country code for shipping destination. For example, `in`. > > > > `customer_details` > > : `object` Complete customer information. > > > > `email` > > : `string` Customer's email address. > > > > `contact` > > : `string` Customer's phone number. > > > > `shipping_address` > > : `object` Complete shipping address information. > > > > `name` > > : `string` Recipient name. > > > > `line1` > > : `string` Address line 1. > > > > `city` > > : `string` City name. > > > > `state` > > : `string` State name. > > > > `zipcode` > > : `string` Postal code. > > > > `country` > > : `string` Country code. For example, `in`. > > > > `order_status_url` > > : `string` Shopify order status page URL for customer. > > > > `is_new_customer` > > : `boolean` Whether this is a new customer's first order. Possible values: > > > > * `true`: New customer's first order. > > * `false`: Existing customer order. #### Pass Additional Attributes to Shopify Orders Shopify orders support Tags and Additional Attributes (note attributes). Include the attributes in the Shopify cart's attributes object before initiating checkout: ```javascript theme={null} // When creating/updating Shopify cart const cartPayload = { cart: { token: "your_cart_token", note: "Customer special instructions", attributes: { "Source": "Mobile App", "App Version": "2.1.0", "Campaign": "Summer Sale 2025", "Custom Field": "Your custom value" }, item_count: 1, items: [/* ... */] }, key: "rzp_live_XXXXXX" }; ``` These attributes will flow through to the Shopify order and appear in the additional attributes section in Shopify Admin. ## 2. Test Integration Check the following checklist below: * Shopify cart creation is working correctly. * Checkout id is generated successfully. * Order id is created with analytics parameters. * Magic Checkout SDK opens without errors. * Coupons apply correctly via prefill. * Payment flow completes successfully. * Complete Checkout API creates order in Shopify. * Order appears in Shopify Admin with correct details. * Additional attributes appear correctly in Shopify order. ## Error Handling | Error Scenario | Recommended Action | | - | - | | Invalid cart token | Ensure Shopify cart exists before [Step 1.1](#1-create-a-checkout-id). | | Payment not captured | Verify payment status before complete checkout. | | Invalid signature | Regenerate signature using Razorpay's signature verification. | | Coupon invalid | Handle error callback and notify user. | > [!WARNING] > > **Fallback to Shopify Checkout** > > If any Magic Checkout API fails, redirect users to the standard Shopify checkout to ensure customers can still complete their purchase. ## Support For integration support, reach out to your Razorpay account manager or raise a request with our [support team](https://razorpay.com/support/#request). # Integrate Magic Checkout on Headless - Shopify Website Source: https://razorpay.com/docs/payments/magic-checkout/shopify/custom/web-integration-nextjs Steps to integrate Magic Checkout on your headless Shopify website using a custom React (Next.JS) frontend. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to integrate the Razorpay Magic Checkout on your React (Next.JS) Website when using Shopify as your e-commerce platform. This integration treats the platform as Shopify while using a custom frontend, allowing unified order management in Shopify admin. ## Prerequisites * Ensure you enable [Magic Checkout](/docs/payments/magic-checkout/troubleshooting-faqs#how-do-i-check-if-magic-checkout-is-enabled-on-my-account) on your account. * Integrate [Magic Checkout With Shopify Store](/docs/payments/magic-checkout/shopify). * Generate [Live API Keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. > [!WARNING] > > **Watch Out!** > > Before you start this integration, the Razorpay Integration Team must connect your Shopify store with your Razorpay MID by creating the Magic app on the store and linking it to the MID. You can access the APIs only after the store is connected and authorisation is complete. Until then, API requests return an `Authorization Failed` error. > [card] [1. Build Integration](/docs/payments/magic-checkout/shopify/custom/web-integration-nextjs#1-build-integration) > > Integrate with React (Next.JS) Website for Shopify. > [card] [2. Test Integration](/docs/payments/magic-checkout/shopify/custom/web-integration-nextjs#2-test-integration) > > Test the integration by making a test payment. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Create a Checkout id > > Generate a unique cart identifier to initiate the Magic Checkout process. > > > [!NOTE] > > > > **Important** > > > > Ensure you create the Shopify cart before making this request as the cart token must be included in the payload. > > `POST /magic/checkout/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/checkout/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: application/json" \ > -d '{ > "cart": { > "token": "ashgad?key=abasab", > "note": null, > "attributes": {}, > "item_count": 1, > "items": [ > { > "id": 100000000001, > "quantity": 1, > "product_id": 832938123321, > "variant_id": 100000000001, > "properties": {} > } > ] > } > }' > ``` > > ```json Response theme={null} > { > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "tax_details": { > "total_tax": 0, > "taxes_included": true > } > } > ``` > > > [accordion] Request Parameters > > > > `cart` *mandatory* > > : `object` Complete cart object from Shopify. > > > > `cart.token` *mandatory* > > : `string` Unique cart token from Shopify cart creation. > > > > `cart.note` *optional* > > : `string|null` Customer notes or special instructions. > > > > `cart.attributes` *optional* > > : `object` Custom attributes for the cart (key-value pairs). > > > > `cart.item_count` *mandatory* > > : `integer` Total number of items in the cart. > > > > `cart.items` *mandatory* > > : `array` Array of cart items. > > > > `cart.items[].id` *mandatory* > > : `integer` Unique item identifier. > > > > `cart.items[].quantity` *mandatory* > > : `integer` Quantity of the item. > > > > `cart.items[].product_id` *mandatory* > > : `integer` Shopify product identifier. > > > > `cart.items[].variant_id` *mandatory* > > : `integer` Shopify variant identifier. > > > > `cart.items[].properties` *optional* > > : `object` Custom item properties. > > > [accordion] Response Parameters > > > > `shopify_checkout_id` > > : `string` Unique checkout identifier for Shopify integration. > > > > `tax_details` > > : `object` Tax information for the checkout. > > > > `total_tax` > > : `integer` Total tax amount in smallest currency unit (paise). > > > > `taxes_included` > > : `boolean` Whether taxes are included in item prices. Possible values: > > > > * `true`: Taxes are included in item prices. > > * `false`: Taxes are separate from item prices. > [accordion] 2 Create Order id on Server > > Create a Razorpay order id required for the payment modal. This API requires the `shopify_checkout_id` from [Step 1.1](#1-create-a-checkout-id). > > `POST /magic/order/shopify?key_id=rzp_live_XXXXXX` > > ```bash Request theme={null} > curl -X POST https://api.razorpay.com/v1/magic/order/shopify?key_id=rzp_live_XXXXXX \ > -H "Content-Type: application/json" \ > -H "Accept: */*" \ > -H "Origin: https://api.razorpay.com" \ > -d '{ > "shopify_checkout_id": "gid://shopify/Cart/ashgad?key=abasab", > "ga_id": "GA1.1.xxxxxxx.xxxxxxxx", > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "", > "event_source_url": "https://your-store.com/" > }, > "utm_parameters": { > "landing_page_url": "https://your-store.com/", > "user_agent": "Mozilla/5.0 (Linux; Android 12; SM-G991B)...", > "utm_campaign": "feeding_bottle_sp", > "utm_content": "ct", > "utm_medium": "product_sync", > "utm_source": "google" > }, > "analytics": { > "fb_analytics": { > "external_id": "unique_fb_external_id", > "fbp": "fb.1.xxxxxxx.xxxxxxxx", > "fbc": "" > }, > "ga4": { > "session_ids": { > "_ga_XXXXXXXXXX": "GS1.1.xxxxxxxx.x.x.x.x.x" > }, > "client_id": "GA1.1.xxxxxxxx.xxxxxxxx" > }, > "source_url": "https://your-store.com/" > } > }' > ``` > > ```json Response theme={null} > { > "preferences": null, > "order_id": "order_EKwxwAgItmmXdp" > } > ``` > > > [accordion] Request Parameters > > > > `shopify_checkout_id` *mandatory* > > : `string` Checkout id from [Step 1.1](#1-create-a-checkout-id). > > > > `ga_id` *optional* > > : `string` Google Analytics client identifier. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics parameters. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `event_source_url` *optional* > > : `string` Source URL for the event. > > > > `utm_parameters` *optional* > > : `object` UTM tracking parameters. > > > > `landing_page_url` *optional* > > : `string` Landing page URL. > > > > `user_agent` *optional* > > : `string` Browser user agent string. > > > > `analytics` *optional* > > : `object` Comprehensive analytics data. > > > > `fb_analytics` *optional* > > : `object` Facebook Analytics configuration. > > > > `external_id` *optional* > > : `string` Unique external id for Facebook tracking. > > > > `fbp` *optional* > > : `string` Facebook browser pixel id. > > > > `fbc` *optional* > > : `string` Facebook click id. > > > > `ga4` *optional* > > : `object` Google Analytics 4 configuration. > > > > `session_ids` *optional* > > : `object` GA4 session identifiers. > > > > `client_id` *optional* > > : `string` GA4 client identifier. > > > > `source_url` *optional* > > : `string` Source URL for analytics. > > > [accordion] Response Parameters > > > > `preferences` > > : `object|null` Customer preferences. Returns `null` if no preferences are set. > > > > `order_id` > > : `string` Unique Razorpay order identifier. For example, `order_EKwxwAgItmmXdp`. > [accordion] 3 Integrate Magic Checkout Web SDK > > After successfully creating the order id, integrate the Magic Checkout Web SDK to display the payment interface and handle the checkout process. > > > [accordion] 3.1 Load the Magic Checkout Script > > > > You can add the Razorpay Magic Checkout script to your Next.JS application in two ways: > > > > > [tab] Using next/script (Recommended) > > > > > > ```javascript JavaScript theme={null} > > > // In your _app.js or specific page component > > > import Script from 'next/script'; > > > > > > export default function App({ Component, pageProps }) { > > > return ( > > > <> > > > > > > > ``` > > > > ```html Handler Functions (JS) Checkout Code theme={null} > > > > > > > > ``` > > > [accordion] Checkout Options > > > > `key` *mandatory* > > : `string` API Key id generated from the Razorpay Dashboard. > > > > `one_click_checkout` *mandatory* > > : `boolean` Specifies whether to initiate Magic Checkout or Standard Checkout. Possible values: > > > > * `true`: Initiates Magic Checkout. > > * `false` (default): Initiates Standard Checkout. > > > > `name` *mandatory* > > : `string` Your Business/Enterprise name shown on the Checkout form. For example, **Acme Corp**. > > > > `order_id` *mandatory* > > : `string` Order id generated via [Orders API](/docs/api/orders). > > > > `show_coupons` *optional* > > : `boolean` Determines whether to show the coupons to customer on the checkout. Possible values: > > > > * `true` (default): Enables the Coupon feature. > > * `false`: Disables the Coupon feature. > > > > `prefill` *optional* > > : `object` You can prefill the following details at Checkout. > > > > > [!NOTE] > > > > > > **Boost Conversions and Minimise Drop-offs** > > > > > > * Autofill customer contact details, especially phone number to ease form completion. Include customer's phone number in the `contact` parameter of the JSON request's `prefill` object. (Format: +(country code)(phone number). Example: "contact": "+919000090000"). > > > * This is not applicable if you do not collect customer contact details on your website before checkout, have Shopify stores or use any of the no-code apps. > > > > `name` *optional* > > : `string` Cardholder's name to be pre-filled if customer is to make card payments on Checkout. For example, **Gaurav Kumar**. > > > > `email` *optional* > > : `string` Email address of the customer. > > > > `contact` *optional* > > : `string` Phone number of the customer. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. This is particularly important while prefilling `contact` of customers with phone numbers issued outside India. **Examples**: > > > > * +14155552671 (a valid non-Indian number) > > * +919977665544 (a valid Indian number). \ > > If 9977665544 is entered, `+91` is added to it as +919977665544. > > > > `coupon_code` *optional* > > : `string` Automatically applies relevant coupon as soon as the checkout modal opens. > > > > `prediscount` *optional* > > : `array` Custom discounts to display in the checkout order summary. Use this to show applied coupons, gift cards or loyalty points before the customer completes payment. > > > > `label` *mandatory* > > : `string` Display name for the discount (for example: `WELCOME20`, `Gift Card (ABC123-XYZ789)`). Labels exceeding character limits will be trimmed with `...`. > > > > `value` *mandatory* > > : `string` Discount amount with currency symbol in rupees format (for example: `โ‚น200`). Must include currency symbol and be in rupees, not paise. > > > > `gift_card_applied` *optional* > > : `boolean` Set to `true` when the discount represents a gift card. This ensures proper UI display and tracking. Possible values: > > > > * `true`: Discount is treated as a gift card with specialised UI display. > > * `false` (default): Discount is treated as a regular coupon or promotional discount. > > > > `promotional_tag` *optional* > > : `array` Promotional badges to display on specific products in the checkout. > > > > `tag` *mandatory* > > : `string` Promotional text to display (maximum 15 characters). For examples: `free`, `bestseller`, `limited`. > > > > `variant_id` *mandatory* > > : `string` Product variant id where the promotional tag should be displayed. Must match the variant\_id from your order line items. > > > > `notes` *optional* > > : `object` Set of key-value pairs that can be used to store additional information about the payment. It can hold a maximum of 15 key-value pairs, each 256 characters long (maximum). > > > > `theme` *optional* > > : `object` Thematic options to modify the appearance of Checkout. > > > > `color` *optional* > > : `string` Enter your brand colour's HEX code to alter the text, payment method icons and CTA (call-to-action) button colour of the Checkout form. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > This is an on-demand feature. Please raise a request with your SPOC or our [Support team](https://razorpay.com/support/#request) to get it activated on your Razorpay account. > > > > `backdrop_color` *optional* > > : `string` Enter a HEX code to change the Checkout's backdrop colour. > > > > `modal` *optional* > > : `object` Options to handle the Checkout modal. > > > > `backdropclose` *optional* > > : `boolean` Indicates whether clicking the translucent blank space outside the Checkout form should close the form. Possible values: > > > > * `true`: Closes the form when your customer clicks outside the checkout form. > > * `false` (default): Does not close the form when customer clicks outside the checkout form. > > > > `escape` *optional* > > : `boolean` Indicates whether pressing the **escape** key should close the Checkout form. Possible values: > > > > * `true` (default): Closes the form when the customer presses the **escape** key. > > * `false`: Does not close the form when the customer presses the **escape** key. > > > > `handleback` *optional* > > : `boolean` Determines whether Checkout must behave similar to the browser when back button is pressed. Possible values: > > > > * `true` (default): Checkout behaves similarly to the browser. That is, when the browser's back button is pressed, the Checkout also simulates a back press. This happens as long as the Checkout modal is open. > > * `false`: Checkout does not simulate a back press when browser's back button is pressed. > > > > `confirm_close` *optional* > > : `boolean` Determines whether a confirmation dialog box should be shown if customers attempts to close Checkout. Possible values: > > > > * `true`: Confirmation dialog box is shown. > > * `false` (default): Confirmation dialog box is not shown. > > > > `ondismiss` *optional* > > : `function` Used to track the status of Checkout and abandonment analytics. You can pass a modal object with `ondismiss: function()\{\}` as options. This function is called when the modal is closed by the user without completing payment. > > > > `animation` *optional* > > : `boolean` Shows an animation before loading of Checkout. Possible values: > > > > * `true`(default): Animation appears. > > * `false`: Animation does not appear. > > > > `callback_url` *optional* > > : `string` Customers will be redirected to this URL on successful payment. Ensure that the domain of the Callback URL is allowlisted (also known as whitelisted). > > > > `redirect` *optional* > > : `boolean` Determines whether to post a response to the event handler post payment completion or redirect to Callback URL. `callback_url` must be passed while using this parameter. Possible values: > > > > * `true`: Customer is redirected to the specified callback URL in case of payment failure. > > * `false` (default): Customer is shown the Checkout popup to retry the payment. > > > > `timeout` *optional* > > : `integer` Sets a timeout on Checkout, in seconds. After the specified time limit, the customer will not be able to use Checkout. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Some browsers may pause `JavaScript` timers when the user switches tabs, especially in power saver mode. This can cause the checkout session to stay active beyond the set timeout duration. > > > > `readonly` *optional* > > : `object` Marks fields as read-only. > > > > `contact` *optional* > > : `boolean` Used to set the `contact` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `email` *optional* > > : `boolean` Used to set the `email` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `name` *optional* > > : `boolean` Used to set the `name` field as readonly. Possible values: > > > > * `true`: Customer will not be able to edit this field. > > * `false` (default): Customer will be able to edit this field. > > > > `send_sms_hash` *optional* > > : `boolean` Used to auto-read Razorpay OTPs for login. Applicable from Android SDK version 1.6.34 and above. Possible values: > > > > * `true` (default): OTP is auto-read. > > * `false`: OTP is not auto-read. > > > > `retry` *optional* > > : `object` Parameters that enable retry of payment on the checkout. > > > > `enabled` *optional* > > : `boolean` Determines whether the customers can retry payments on the checkout. Possible values: > > > > * `true` (default): Enables customers to retry payments. > > * `false`: Disables customers from retrying the payment. > > > > `max_count` *optional* > > : `integer` The number of times the customer can retry the payment. We recommend you to set this to 4. Having a larger number here can cause loops to occur. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Web Integration does not support the `max_count` parameter. It is applicable only in Android and iOS SDKs. > > > > `config` *optional* > > : `object` Parameters that enable checkout configuration. > > > > `display` *optional* > > : `object` Child parameter that enables configuration of checkout display language. > > > > `language` *optional* > > : `string` The language in which checkout should be displayed. Possible values: > > > > * `en`: English > > * `ben`: Bengali > > * `hi`: Hindi > > * `mar`: Marathi > > * `guj`: Gujarati > > * `tam`: Tamil > > * `tel`: Telugu > [accordion] 7 Verify Payment Signature > > This is a mandatory step to confirm the authenticity of the details returned to the Checkout form for successful payments. > > > [accordion] To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > * `order_id`: Retrieve the `order_id` from your server. Do not use the `razorpay_order_id` returned by Checkout. > > * `razorpay_payment_id`: Returned by Checkout. > > * `key_secret`: Available in your server. The `key_secret` that was generated from the [Dashboard](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys). > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `order_id` to construct a HMAC hex digest as shown below: > > > > ```html HMAC Hex Digest theme={null} > > generated_signature = hmac_sha256(order_id + "|" + razorpay_payment_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. > > > [accordion] Generate Signature on Your Server > > > > Given below is the sample code for payment signature verification: > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String secret = "EnLs21M47BllR3X8PSFtjtbd"; > > > > JSONObject options = new JSONObject(); > > options.put("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.put("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.put("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > boolean status = Utils.verifyPaymentSignature(options, secret); > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->utility->verifyPaymentSignature(array('razorpay_order_id' => $razorpayOrderId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_signature' => $razorpaySignature)); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > payment_response = { > > razorpay_order_id: 'order_IEIaMR65cu6nz3', > > razorpay_payment_id: 'pay_IH4NVgf4Dreq1l', > > razorpay_signature: '0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f' > > } > > Razorpay::Utility.verify_payment_signature(payment_response) > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.utility.verify_payment_signature({ > > 'razorpay_order_id': razorpay_order_id, > > 'razorpay_payment_id': razorpay_payment_id, > > 'razorpay_signature': razorpay_signature > > }) > > ``` > > > > ```c .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > Dictionary options = new Dictionary(); > > options.Add("razorpay_order_id", "order_IEIaMR65cu6nz3"); > > options.Add("razorpay_payment_id", "pay_IH4NVgf4Dreq1l"); > > options.Add("razorpay_signature", "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"); > > > > Utils.verifyPaymentSignature(options); > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > var { validatePaymentVerification, validateWebhookSignature } = require('./dist/utils/razorpay-utils'); > > validatePaymentVerification({"order_id": razorpayOrderId, "payment_id": razorpayPaymentId }, signature, secret); > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > params := map[string]interface{}{ > > "razorpay_order_id": "order_IEIaMR65cu6nz3", > > "razorpay_payment_id": "pay_IH4NVgf4Dreq1l", > > } > > > > signature := "0d4e745a1838664ad6c9c9902212a32d627d68e917290b0ad5f08ff4561bc50f"; > > secret := "EnLs21M47BllR3X8PSFtjtbd"; > > utils.VerifyPaymentSignature(params, signature, secret) > > ``` > > > [accordion] Post Signature Verification > > > > After you have completed the integration, you can [set up webhooks](/docs/webhooks/setup-edit-payments), make test payments, replace the test key with the live key and integrate with other [APIs](/docs/api). > > Here are the links to our [SDKs](/docs/payments/payment-gateway/web-integration/standard#client-libraries) for the supported platforms. > [accordion] 8 Verify Payment Status > > Verify the payment status using the APIs and webhooks. > > > [tab] Fetch Payment API > > > > You can fetch the payment details using the [Fetch Payments API](/docs/api/payments/fetch-with-id). > > > > The different payment states are given below: > > > > | Payment State | Description | > > | - | - | > > | `created` | When the customer starts the payment. | > > | `pending` | When the customer finally places the order. | > > | `authorized` | The payment moves to the failed state if money is not captured within 45 days. It moves to the captured state when you confirm that the money is received. | > > | `captured` | When you receive the money. | > > | `refunded` | When the refund request is initiated. | > > | `failed` | When the payment is failed. | > > > [tab] Webhooks > > > > You should [set up webhooks](/docs/webhooks/setup-edit-payments) on the Razorpay Dashboard to receive notifications when certain events occur. > > > > #### Orders Events > > > > We recommend you to subscribe to these orders events: > > > > | Webhook Event | Description | > > | - | - | > > | **order.created** | Triggered when an order is successfully created. | > > | **order.placed** | Triggered when a COD order is successfully placed. | > > | **order.paid** | Triggered when a prepaid order has been successfully completed. | > > | **order.expired** | Triggered when an order has expired. | > > > > #### Payments Events > > > > We recommend you to subscribe to these payments events: > > > > | Webhook Event | Description | > > | - | - | > > | **payment.pending** | Triggered when a COD payment is moved to pending state. | > > | **payment.captured** | Triggered when a payment is successfully captured. | > > | **payment.failed** | Triggered when a payment fails. | > > > > #### Fulfillment Events > > > > We recommend you to subscribe to these fulfillment events: > > > > | Webhook Event | Description | > > | - | - | > > | **fulfillment.to\_be\_shipped** | Triggered when the business needs to act on the order | > > | **fulfillment.ready\_to\_ship** | Triggered when the order needs to be picked by the logistics partner. | > > | **fulfillment.in\_transit** | Triggered when the order is picked by the logistics partner. | > > | **fulfillment.rto** | Triggered when the order is returned to origin because of customer unavailability or decline. | > > | **fulfillment.delivered** | Triggered when the order is delivered. | > > | **fulfillment.customer\_refunded** | Triggered when the order is picked for return as part of the refund. | > [accordion] 9 Perform Post Payment Processing > > Based on the response, you can handle post-payment processing on your end. > > > [!WARNING] > > > > **Timeout Handling** > > > > If no API call is made within 45 seconds, our background job will assume there is a network drop off and will proceed to place the order on Shopify automatically. > > > [accordion] Fetch an Order > > > > Use the Fetch Orders API to retrieve order details, including customer information, address, shipping method and promotions of a particular order: > > > > `GET v1/orders/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET]\ > > -X GET https://api.razorpay.com/v1/orders/order_R1yDkxyIuKXXXX \ > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > import com.razorpay.Order; > > import com.razorpay.RazorpayClient; > > import com.razorpay.RazorpayException; > > try { > > Order order = razorpay.Orders.fetch(""); > > } catch (RazorpayException e) { > > // Handle Exception > > System.out.println(e.getMessage()); > > } > > ``` > > > > ```python Python theme={null} > > # do easy_install razorpay or > > # pip install razorpay > > > > import razorpay > > razorpay.Client(auth=("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]")) > > > > order_id = > > resp = client.order.fetch(order_id) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->order->fetch($orderId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('key_id', 'key_secret') > > > > order = Razorpay::Order.fetch('order_R1yDkxyIuKXXXX') > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.orders.fetch(orderId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("", "") > > > > body, err := client.Order.Fetch("", nil, nil) > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 507000, > > "amount_paid": 0, > > "amount_due": 507000, > > "currency": "INR", > > "receipt": "#30567", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "placed", > > "attempts": 0, > > "notes": { > > "cart_id": "hWN2Am4BGnQrizKE3hzeQaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/hf5Q?key=14bbbce35b8", > > "shopify_order_id": "6302119854247" > > }, > > "created_at": 1756045901, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 5000, > > "shipping_fee": 7000, > > "customer_details": { > > "contact": "+919100000000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > }, > > "billing_address": { > > "city": "Bengaluru", > > "contact": "+919100000000", > > "country": "in", > > "line1": "Houseno:24", > > "line2": "Andree Road, Bheemanna Garden, Shanti Nagar", > > "name": "Gaurav Kumar", > > "state": "KARNATAKA", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "560001" > > } > > }, > > "line_items_total": 600000, > > "tax_details": { > > "total_tax": 4128, > > "taxes_included": true > > } > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "order_R1yDkxyIuKXXXX", > > "entity": "order", > > "amount": 100700, > > "amount_paid": 100700, > > "amount_due": 0, > > "currency": "INR", > > "receipt": "#30414", > > "offers": [ > > "offer_QXwkRH1bOvXXXX", > > "offer_QXwoP07qnHXXXX", > > "offer_QYrcJ29gBCXXXX", > > "offer_QZDsVyMNzDXXXX", > > "offer_QtfwFTZYkGXXXX", > > "offer_Qtg3UsQyZaXXXX" > > ], > > "status": "paid", > > "attempts": 1, > > "notes": { > > "cart_id": "hWN1TcwL?key=1a3a5a7c", > > "storefront_id": "gid://shopify/Cart/hIkey=af7c7800", > > "flits_cart_token": "hWcwL?key=1a3741dc_8740f5_175447", > > "shopify_order_id": "6266036191399" > > }, > > "created_at": 1754466155, > > "description": null, > > "checkout": null, > > "promotions": [ > > { > > "code": "orderOff", > > "type": "cart_value", > > "value": 10000, > > "description": "order off", > > "reference_id": "offer_ORnSr9d2eAXXXX" > > } > > ], > > "cod_fee": 0, > > "shipping_fee": 700, > > "customer_details": { > > "billing_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "billing_address", > > "zipcode": "110057" > > }, > > "contact": "+919000090000", > > "email": "gaurav.kumar@example.com", > > "shipping_address": { > > "city": "South West Delhi", > > "contact": "+919000090000", > > "country": "in", > > "id": "Qb3BljuFFoXXXX", > > "line1": "12", > > "line2": "Qutab Garh, Rama Krishna Puram", > > "name": "Gaurav Kumar", > > "state": "Delhi", > > "tag": "Home", > > "type": "shipping_address", > > "zipcode": "110057" > > } > > }, > > "line_items_total": 110000, > > "tax_details": { > > "total_tax": 0, > > "taxes_included": true > > } > > } > > ``` > > > > Know more about the [Orders API.](/docs/api/orders) > > > > > [!NOTE] > > > > > > **Order Status** > > > > > > Check the order status for the following: > > > > > > * Prepaid orders: `paid`. > > > * COD orders: `placed`. > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the order to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `order`. > > > > > > `amount` > > > : `integer` Total order amount in the smallest currency unit (paise). > > > > > > `amount_paid` > > > : `integer` Amount paid towards the order in paise. For prepaid orders, this shows the actual amount paid. For COD orders, this is `0` until payment is collected. > > > > > > `amount_due` > > > : `integer` Outstanding amount due in paise. For prepaid orders, this shows any remaining balance. For COD orders, this equals the `amount` field until payment is collected. > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `receipt` > > > : `string` Receipt identifier for internal reference. For example, `#30567`. > > > > > > `offers` > > > : `array` Array of offer IDs applied to the order. > > > > > > `status` > > > : `string` Current status of the order. Possible values: > > > > > > * `placed`: Order placed but payment pending (COD orders). > > > * `paid`: Order placed and payment completed (prepaid orders). > > > * `cancelled`: Order cancelled. > > > * `refunded`: Order refunded. > > > > > > `attempts` > > > : `integer` Number of payment attempts made for this order. For example, `1`. > > > > > > `notes` > > > : `object` Custom notes added to the order containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `shopify_order_id` > > > : `string` Shopify order reference. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the order was created. For example, `1756045901`. > > > > > > `description` > > > : `string|null` Order description. Returns `null` if no description is provided. > > > > > > `checkout` > > > : `string|null` Checkout identifier. Returns `null` if not applicable. > > > > > > `promotions` > > > : `array` Array of promotion objects applied to the order. > > > > > > `code` > > > : `string` Promotion code used. For example, `orderOff`. > > > > > > `type` > > > : `string` Type of promotion. For example, `cart_value`. > > > > > > `value` > > > : `integer` Discount value in paise. For example, `10000` for โ‚น100. > > > > > > `description` > > > : `string` Human-readable promotion description. > > > > > > `reference_id` > > > : `string` Internal reference for the promotion. > > > > > > `cod_fee` > > > : `integer` Cash on Delivery charges in paise. For COD orders, this contains the fee amount (for example, `5000` for โ‚น50). For prepaid orders, this is `0`. > > > > > > `shipping_fee` > > > : `integer` Shipping charges in paise. For example, `700` for โ‚น7. > > > > > > `customer_details` > > > : `object` Customer information. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `shipping_address` > > > : `object` Complete shipping address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for delivery. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Recipient name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `shipping_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `billing_address` > > > : `object` Complete billing address information. > > > > > > `city` > > > : `string` City name. > > > > > > `contact` > > > : `string` Contact number for billing. > > > > > > `country` > > > : `string` Country code. For example, `in`. > > > > > > `id` > > > : `string` Address identifier (optional). > > > > > > `line1` > > > : `string` Address line 1. > > > > > > `line2` > > > : `string` Address line 2. > > > > > > `name` > > > : `string` Account holder name. > > > > > > `state` > > > : `string` State name. > > > > > > `tag` > > > : `string` Address tag. For example, `Home`. > > > > > > `type` > > > : `string` Address type. Value is `billing_address`. > > > > > > `zipcode` > > > : `string` Postal code. > > > > > > `line_items_total` > > > : `integer` Total value of line items in paise before adding shipping fees and COD fees, after applying promotions. For example, `60000` for โ‚น600. > > > > > > `tax_details` > > > : `object` Tax information. > > > > > > `total_tax` > > > : `integer` Total tax amount in paise. For example, `4128`. > > > > > > `taxes_included` > > > : `boolean` Indicates whether taxes are included in the item prices. Possible values: > > > > > > * `true`: Taxes are included in item prices. > > > * `false`: Taxes are separate from item prices. > > > [accordion] Fetch a Payment > > > > Use the Fetch Payments API to retrieve comprehensive payment details, including transaction status, payment method, customer information, settlement details, and the associated order information for a specific payment: > > > > `GET v1/payments/:id` > > > > ```bash Curl theme={null} > > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] > > -X GET https://api.razorpay.com/v1/payments/pay_R1yFlWQar3XXXX > > ``` > > > > ```java Java theme={null} > > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > > > String paymentId = "pay_R1yFlWQar3XXXX"; > > > > Payment payment = razorpay.payments.fetch(paymentId); > > ``` > > > > ```python Python theme={null} > > import razorpay > > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > > > client.payment.fetch(paymentId) > > ``` > > > > ```go Go theme={null} > > import ( razorpay "github.com/razorpay/razorpay-go" ) > > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > > > paymentId := "pay_R1yFlWQar3XXXX" > > > > body, err := client.Payment.Fetch(paymentId, nil, nil) > > ``` > > > > ```php PHP theme={null} > > $api = new Api($key_id, $secret); > > > > $api->payment->fetch($paymentId); > > ``` > > > > ```ruby Ruby theme={null} > > require "razorpay" > > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > > > paymentId = "pay_R1yFlWQar3XXXX" > > > > Razorpay::Payment.fetch(paymentId) > > ``` > > > > ```javascript Node.js theme={null} > > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > > > instance.payments.fetch(paymentId) > > ``` > > > > ```csharp .NET theme={null} > > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Payment payment = client.Payment.Fetch(paymentId); > > ``` > > > > ```json Response: COD Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 55700, > > "currency": "INR", > > "status": "pending", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "cod", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": false, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": null, > > "email": "gaurav.kumar@example.com", > > "contact": "+919100000000", > > "notes": { > > "cart_id": "hWN2QaXc?key=2b3cad31", > > "storefront_id": "gid://shopify/Cart/h?key=14bbf59ce35b8" > > }, > > "fee": null, > > "tax": null, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": {}, > > "created_at": 1756046099, > > "receiver_type": null > > } > > ``` > > > > ```json Response: Prepaid Orders theme={null} > > { > > "id": "pay_R1yFlWQar3XXXX", > > "entity": "payment", > > "amount": 90630, > > "currency": "INR", > > "status": "captured", > > "order_id": "order_R1yDkxyIuKXXXX", > > "invoice_id": null, > > "international": false, > > "method": "upi", > > "amount_refunded": 0, > > "refund_status": null, > > "captured": true, > > "description": null, > > "card_id": null, > > "bank": null, > > "wallet": null, > > "vpa": "gaurav.kumar@exampleupi", > > "email": "gaurav.kumar@example.com", > > "contact": "+919000090000", > > "notes": { > > "cart_id": "hWNsVrcwL?key=1a3a457ddc", > > "storefront_id": "gid://shopify/Cart/hWv3e8?key=af707", > > "flits_cart_token": "hWrcwL?key=1a3a5a70f5_17547", > > "optimizer_provider_name": "razorpay" > > }, > > "fee": 0, > > "tax": 0, > > "error_code": null, > > "error_description": null, > > "error_source": null, > > "error_step": null, > > "error_reason": null, > > "acquirer_data": { > > "rrn": "727947422583", > > "upi_transaction_id": "1F723677C679EF578A95" > > }, > > "created_at": 1754466271, > > "receiver_type": null, > > "upi": { > > "vpa": "gaurav.kumar@exampleupi" > > } > > } > > ``` > > > > Know more about the [Payments API](/docs/api/payments). > > > > > [accordion] Path Parameter > > > > > > `id` *mandatory* > > > : `string` Unique identifier of the payment to be retrieved. > > > > > [accordion] Response Parameters > > > > > > `id` > > > : `string` Unique identifier of the payment. For example, `pay_R1yFlWQar3XXXX`. > > > > > > `entity` > > > : `string` Type of entity. Value is `payment`. > > > > > > `amount` > > > : `integer` Payment amount in the smallest currency unit (paise). For COD payments, this includes the COD fee (for example, `55700` for โ‚น557). For prepaid payments, this equals the captured amount (for example, `90630` for โ‚น906.30). > > > > > > `currency` > > > : `string` The 3-letter ISO currency code. For example, `INR`. > > > > > > `status` > > > : `string` Current status of the payment. Possible values: > > > > > > * `pending`: Payment pending collection (COD orders). > > > * `captured`: Payment successfully captured (prepaid orders). > > > * `authorized`: Payment authorized but not captured. > > > * `failed`: Payment attempt failed. > > > > > > `order_id` > > > : `string` Unique identifier of the associated order. For example, `order_R1yDkxyIuKXXXX`. > > > > > > `invoice_id` > > > : `string|null` Unique identifier of the associated invoice. Returns `null` if no invoice is linked. > > > > > > `international` > > > : `boolean` Indicates whether this is an international payment. Possible values: > > > > > > * `true`: International payment. > > > * `false`: Domestic payment. > > > > > > `method` > > > : `string` Payment method used. Possible values include: > > > > > > * `cod` > > > * `upi` > > > * `card` > > > * `netbanking` > > > * `wallet` > > > > > > `amount_refunded` > > > : `integer` Amount refunded in paise. For example, `0` indicates no refund has been processed. > > > > > > `refund_status` > > > : `string|null` Current refund status. Returns `null` if no refund is applicable. Possible values: > > > > > > * `partial`: Partial refund processed. > > > * `full`: Full refund processed. > > > > > > `captured` > > > : `boolean` Indicates whether the payment has been captured. Possible values: > > > > > > * `true`: Payment has been captured. > > > * `false`: Payment has not been captured. > > > > > > `description` > > > : `string|null` Payment description. Returns `null` if no description is provided. > > > > > > `card_id` > > > : `string|null` Unique identifier of the card used for payment. Returns `null` for non-card payments. > > > > > > `bank` > > > : `string|null` Bank identifier for netbanking payments. Returns `null` for other payment methods. > > > > > > `wallet` > > > : `string|null` Wallet provider identifier. Returns `null` for non-wallet payments. > > > > > > `vpa` > > > : `string|null` Virtual Payment Address for UPI payments. For example, `gaurav.kumar@exampleupi`. Returns `null` for non-UPI payments. > > > > > > `email` > > > : `string` Customer's email address. > > > > > > `contact` > > > : `string` Customer's phone number. > > > > > > `notes` > > > : `object` Custom notes added to the payment containing integration-specific data. > > > > > > `cart_id` > > > : `string` Shopping cart identifier. > > > > > > `storefront_id` > > > : `string` Storefront system identifier. > > > > > > `flits_cart_token` > > > : `string` Flits integration token (optional). > > > > > > `optimizer_provider_name` > > > : `string` Payment optimizer provider name (optional). > > > > > > `fee` > > > : `integer|null` Processing fee charged in paise. For example, `0` indicates no fee. Returns `null` for COD payments. > > > > > > `tax` > > > : `integer|null` Tax amount on processing fee in paise. For example, `0` indicates no tax. Returns `null` for COD payments. > > > > > > `error_code` > > > : `string|null` Error code if payment failed. Returns `null` for successful payments. > > > > > > `error_description` > > > : `string|null` Human-readable error description. Returns `null` for successful payments. > > > > > > `error_source` > > > : `string|null` Source of the error. Returns `null` for successful payments. > > > > > > `error_step` > > > : `string|null` Step at which error occurred. Returns `null` for successful payments. > > > > > > `error_reason` > > > : `string|null` Reason for the error. Returns `null` for successful payments. > > > > > > `acquirer_data` > > > : `object` Data from the payment acquirer. > > > > > > `rrn` > > > : `string` Retrieval Reference Number from the acquirer (optional). > > > > > > `upi_transaction_id` > > > : `string` UPI transaction identifier from the acquirer (optional). > > > > > > `created_at` > > > : `integer` Unix timestamp indicating when the payment was created. For example, `1756046099`. > > > > > > `receiver_type` > > > : `string|null` Type of receiver for the payment. Returns `null` if not applicable. > > > > > > `upi` > > > : `object` UPI-specific payment details (only present for UPI payments). > > > > > > `vpa` > > > : `string` Virtual Payment Address used for the UPI payment. > [accordion] 10 Analytics Integration (Advanced Feature) > > Track customer journey events to understand customer behavior and optimise conversion rates. > > Magic Checkout provides detailed analytics events that help you analyse the checkout funnel and identify optimisation opportunities. > > ```javascript theme={null} > // Use the same Razorpay instance for analytics > var rzp1 = new Razorpay(options); > > // Register analytics event listener > rzp1.on('mx-analytics', function(data) { > if (data && data.event) { > console.log('Analytics Event:', data.event, data); > > // Send to your analytics platform > sendToAnalytics(data); > } > }); > > function sendToAnalytics(eventData) { > // Example: Send to Google Analytics > if (typeof gtag !== 'undefined') { > gtag('event', eventData.event, { > 'event_category': 'Magic Checkout', > 'event_label': eventData.paymentMode, > 'value': eventData.latestTotal > }); > } > > // Example: Send to your custom analytics > fetch('/analytics-endpoint', { > method: 'POST', > headers: { 'Content-Type': 'application/json' }, > body: JSON.stringify(eventData) > }); > } > ``` > > #### Events > > | Event | Description | Triggered | > | - | - | - | > | `initiate` | Checkout started | Customer opens checkout modal | > | `otp_initiated` | Phone verification | Customer enters phone number | > | `payment_initiated` | Payment attempt | Customer clicks pay button | > | `checkout_abandoned` | Checkout closed | Customer exits without paying | > | `coupon_applied` | Discount applied | Valid coupon code used | > | `payment_failed` | Payment unsuccessful | Payment attempt fails | > > Use these examples to implement event tracking and purchase analytics: > > > [tab] Event Handling > > > > Track checkout journey events as they occur: > > > > ```javascript theme={null} > > rzp1.on('mx-analytics', function(data) { > > switch(data.event) { > > case 'initiate': > > console.log('Checkout opened for amount:', data.totalAmount); > > break; > > > > case 'payment_initiated': > > console.log('Payment started via:', data.paymentMethod); > > break; > > > > case 'payment_failed': > > console.log('Payment failed for order:', data.totalAmount); > > // Show retry message or track failure reasons > > break; > > > > case 'checkout_abandoned': > > console.log('Customer left after:', data.time_since_open, 'milliseconds'); > > // Track abandonment funnel for optimisation > > break; > > > > case 'coupon_applied': > > console.log('Coupon applied:', data.couponCode, 'Discount:', data.couponDiscountValue); > > break; > > } > > }); > > ``` > > > [tab] Purchase Tracking > > > > Track successful payment completion in your handler function: > > > > ```javascript theme={null} > > "handler": function(response) { > > // Payment successful > > console.log('Purchase completed:', response); > > > > // Track purchase event > > sendToAnalytics({ > > event: 'purchase', > > payment_id: response.razorpay_payment_id, > > order_id: response.razorpay_order_id, > > amount: /* your order amount */, > > currency: 'INR' > > }); > > > > // Redirect to success page > > window.location.href = '/payment-success?payment_id=' + response.razorpay_payment_id; > > } > > ``` ## Go-Live Best Practices Before going live, make sure to check the following: * If you configured the above settings in Test Mode, ensure you replicate them in Live Mode. * Ensure you use API keys generated in Live Mode. * If you have multiple Razorpay accounts, ensure you use the Live key from the correct account you intend to go live with. ### Related Information [Troubleshoot and FAQs](/docs/payments/magic-checkout/troubleshooting-faqs#web) # Magic Checkout Analytics Event Reference Source: https://razorpay.com/docs/payments/magic-checkout/web/analytics-event-reference Complete reference for Magic Checkout analytics events, payload schemas and field definitions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India This page is a technical reference for all Magic Checkout analytics events. For setup instructions, see the [Magic Checkout Analytics Integration](/docs/payments/magic-checkout/web/analytics-integration) guide. ## Common Payload Fields Every `mx-analytics` event payload contains the following base fields. Event-specific additional fields are documented under each event in the [Event Reference](#event-reference). > [accordion] List of fields > > `event` > : `string` The event name (for example, `"initiate"`, `"payment_initiated"`). > > `paymentMode` > : `string` Payment mode. Currently it is always `"online"`. > > `lineItems` > : `LineItem[]` Cart items at the time the event fired. See [LineItem Schema](#lineitem-schema). > > `totalAmount` > : `number` Original cart total in paise (before shipping or discounts). > > `latestTotal` > : `number` Current order total in paise, reflecting any applied discounts and shipping. > > `shippingAmount` *optional* > : `number` Shipping cost in paise. Undefined if not yet calculated. > > `couponDiscountValue` > : `number` Discount applied by an active coupon in paise. 0 if no coupon is active. > > `isScriptCouponApplied` > : `boolean` Whether an automatic/script-based discount is applied. > > `currency` > : `string` Transaction currency code (for example, `"INR"`). > > `phone` > : `string` Customer's phone number. Empty string if not yet available. > > `email` > : `string` Customer's email address. Empty string if not yet available. > > `first_name` > : `string` Customer's first name. Empty string if not yet available. > > `last_name` > : `string` Customer's last name. Empty string if not yet available. > > `state` > : `string` Customer's state. Empty string if address not yet selected. > > `city` > : `string` Customer's city. Empty string if address not yet selected. > [!NOTE] > > **Important Payload Information** > > * **Field Naming Conventions**: Payloads use mixed casing based on their source. Amount and mode fields (for example, `latestTotal`, `paymentMode`) use **camelCase** as they originate from JavaScript. Customer identity and address fields (for example, `first_name`, `state_code`) use **snake\_case** as they originate from backend API responses. > > * **Currency Format**: All amounts are represented in paise (integers). To get the value in Rupees, divide by 100 (for example, 49900 = โ‚น499.00). > > * **Progressive Data Population**: Customer fields are populated in stages. `phone` and `email` appear after contact entry. However, `first_name`, `last_name`, `state` and `city` remain empty strings until the `address_info_submitted` event fires. > > * After `address_info_submitted` fires, additional fields โ€”`state_code`, `country_name`, `zipcode`, `line1` and `line2`โ€” become available in all subsequent payloads. > > * The `country_name` field actually contains a 2-letter country code (for example, "in") rather than the full name of the country. ## LineItem Schema Each object in the `lineItems` array reflects what was passed in `line_items` when creating the order. All fields are optional as not every integration populates every field. > [accordion] List of Fields > > `name` *optional* > : `string` Product name. > > `description` *optional* > : `string` Product description. May be an empty string. > > `image_url` *optional* > : `string | null` Product image URL. > > `price` *optional* > : `number` Original price in paise. > > `offer_price` *optional* > : `number` Effective/offer price in paise. > > `quantity` *optional* > : `number` Quantity in cart. > > `tax_amount` *optional* > : `number` Tax amount in paise. > > `variant_id` *optional* > : `string` Product variant identifier. > > `sku` *optional* > : `string` Product SKU. > > `title` *optional* > : `string` Alternate product name (used by some integrations). > > `id` *optional* > : `string | number` Generic product/item identifier. > > `product_id` *optional* > : `string | number` Product identifier. > > `discount` *optional* > : `number` Discount amount in paise. > > `product_url` *optional* > : `string` Relative URL to the product page. > > `brand` *optional* > : `string` Product brand. > > `vendor` *optional* > : `string` Product vendor. ## Address Schema The `address` object is present in `address_selected` and `address_added` events. > [accordion] Fields for address\_selected (saved address) > > `id` > : `string` Unique address identifier. > > `entity_id` > : `string` Internal Razorpay identifier. > > `entity_type` > : `string` Internal Razorpay identifier. > > `type` > : `string` Address type, for example, `"shipping_address"`. > > `primary` > : `boolean` Indicates whether this is the customer's primary address. > > `name` > : `string` Full name on the address. > > `line1` > : `string` Address line 1. > > `line2` > : `string` Address line 2. May be empty. > > `zipcode` > : `string` Postal or ZIP code. > > `city` > : `string` City. > > `state` > : `string` State name. > > `country` > : `string` 2-letter country code, for example, `"in"` for India. > > `contact` > : `string` Phone number associated with this address. > > `tag` > : `string` Address label, for example, `"Home"` or `"Work"`. > > `landmark` > : `string` Landmark. Empty string if not provided. > [accordion] Fields for address\_added (new address from form) > > Server-assigned fields (`id`, `entity_id`, `entity_type`, `primary`, `type`) are absent because the address is not yet saved. Two additional form-specific fields are present: > > `name` > : `string` Full name on the address. > > `line1` > : `string` Address line 1. > > `line2` > : `string` Address line 2. May be empty. > > `zipcode` > : `string` Postal or ZIP code. > > `city` > : `string` City. > > `state` > : `string` State name. > > `country` > : `string` 2-letter country code, for example, `"in"` for India. > > `contact` > : `string` Phone number associated with this address. > > `tag` > : `string` Address label, for example, `"Home"` or `"Work"`. > > `landmark` > : `string` Landmark. Empty string if not provided. > > `save_my_address` > : `boolean` Indicates whether the customer opted to save this address. > > `new_shipping_address_cta` > : `any` Internal form field. ## Event Reference Events are listed in the order they typically occur during a customer journey. > [tab] Login and OTP Events > > > [accordion] initiate > > > > **When it fires:** The Magic Checkout modal opens. > > > > **Additional fields:** None beyond common fields. > > > > ```json Example Payload theme={null} > > { > > "event": "initiate", > > "paymentMode": "online", > > "lineItems": [ > > { > > "name": "Product Name", > > "description": "Product description", > > "image_url": "https://example.com/image.jpg", > > "price": 49900, > > "offer_price": 49900, > > "quantity": 1, > > "tax_amount": 0, > > "variant_id": "123456789", > > "sku": "SKU-001" > > } > > ], > > "totalAmount": 49900, > > "latestTotal": 49900, > > "couponDiscountValue": 0, > > "isScriptCouponApplied": false, > > "currency": "INR", > > "phone": "+91XXXXXXXXXX", > > "email": "customer@example.com", > > "state": "", > > "city": "", > > "first_name": "", > > "last_name": "" > > } > > ``` > > > [accordion] contact\_input\_entered > > > > **When it fires:** The customer enters their phone number or email address in the contact input field. > > > > **Additional fields:** None beyond common fields. The `phone` or `email` fields in the common payload reflect what the customer entered. > > > [accordion] otp\_initiated > > > > **When it fires:** An OTP is sent to the customer's phone number. > > > > **Additional fields:** > > > > `otp_verified` > > : `boolean` Always `false`. The OTP is sent but not yet verified. > > > > ```json Example Payload theme={null} > > { > > "event": "otp_initiated", > > "otp_verified": false, > > "paymentMode": "online", > > "phone": "+91XXXXXXXXXX", > > "email": "customer@example.com", > > "state": "", > > "city": "", > > "first_name": "", > > "last_name": "", > > "totalAmount": 49900, > > "latestTotal": 49900, > > "couponDiscountValue": 0, > > "isScriptCouponApplied": false, > > "currency": "INR" > > } > > ``` > > > [accordion] otp\_submitted > > > > **When it fires:** The customer submits an OTP and it is accepted. This event does not fire on a failed OTP attempt. > > > > **Additional fields:** > > > > `otp_verified` > > : `boolean` Always `true`. This event fires only on successful verification. > > > > ```json Example Payload theme={null} > > { > > "event": "otp_submitted", > > "otp_verified": true, > > "paymentMode": "online", > > "phone": "+91XXXXXXXXXX", > > "email": "customer@example.com", > > "state": "", > > "city": "", > > "first_name": "", > > "last_name": "", > > "totalAmount": 49900, > > "latestTotal": 49900, > > "couponDiscountValue": 0, > > "isScriptCouponApplied": false, > > "currency": "INR" > > } > > ``` > > > [accordion] otp\_skipped > > > > **When it fires:** The customer skips the OTP verification step when the skip option is available. > > > > **Additional fields:** None beyond common fields. > > > [accordion] user\_data > > > > **When it fires:** The customer's identity is confirmed and their profile data is available. This is the earliest event where `phone`, `email`, `first_name` and `last_name` are reliably populated. > > > > This event fires multiple times in a session: at login completion, when the customer proceeds from the address step and when payment is initiated. Each emission reflects the most current customer data. > > > > **Additional fields:** None beyond common fields. > > > > ```json Example Payload theme={null} > > { > > "event": "user_data", > > "paymentMode": "online", > > "phone": "+91XXXXXXXXXX", > > "email": "customer@example.com", > > "state": "West Bengal", > > "city": "Kolkata", > > "first_name": "Jane", > > "last_name": "Doe", > > "totalAmount": 49900, > > "latestTotal": 49900, > > "couponDiscountValue": 0, > > "isScriptCouponApplied": false, > > "currency": "INR" > > } > > ``` > [tab] Address Events > > > [accordion] address\_selected > > > > **When it fires:** The customer selects a saved address from their address book and serviceability for that address is confirmed. > > > > This event fires only when the selected address changes. Selecting the same address again does not re-fire the event. > > > > **Additional fields:** > > > > `address` > > : `Address` The selected address. See [Address Schema](#address-schema). > > > [accordion] address\_added > > > > **When it fires:** The customer submits a new address through the address form. > > > > **Additional fields:** > > > > `address` > > : `Address` The newly added address. See [Address Schema](#address-schema). > > > [accordion] pincode\_entered > > > > **When it fires:** The customer enters a pincode in the address form. This event fires on blur of the pincode field. > > > > **Additional fields:** > > > > `pinCode` > > : `string` The pincode value entered by the customer. > > > [accordion] address\_info\_submitted > > > > **When it fires:** Address information is finalised. This event fires in three scenarios: > > > > 1. The customer submits a new address form. > > 2. The customer confirms an existing saved address. > > 3. On checkout open, if the customer is already logged in and has a saved address on file. > > > > After this event fires, subsequent event payloads include `state_code`, `country_name`, `zipcode`, `line1` and `line2` at the top level, in addition to `state` and `city`. > > > > **Additional fields:** None beyond common fields. > > > [accordion] shipping\_selected > > > > **When it fires:** The customer confirms their address and the checkout proceeds to the payment screen. > > > > **Additional fields:** > > > > `name` *optional* > > : `string` Shipping method name. > > > > `shipping_fee` *optional* > > : `number` Shipping cost in paise. > > > > `cod` *optional* > > : `boolean` Indicates whether COD is available for this shipping method. > > > > `cod_fee` *optional* > > : `number` COD fee in paise. > > > > `id` *optional* > > : `string` Shipping method identifier. > > > > These fields (`name`, `shipping_fee`, `cod`, `cod_fee`, `id`) are present only in the standard checkout flow. In a quick-buy flow where payment occurs without an address step, this event fires without these fields. > > > > ```json Example Payload - Standard Flow theme={null} > > { > > "event": "shipping_selected", > > "name": "Standard Delivery", > > "shipping_fee": 0, > > "cod": false, > > "cod_fee": 0, > > "id": "standard", > > "paymentMode": "online", > > "phone": "+91XXXXXXXXXX", > > "email": "customer@example.com", > > "state": "", > > "city": "", > > "first_name": "", > > "last_name": "", > > "totalAmount": 49900, > > "latestTotal": 49900, > > "shippingAmount": 0, > > "couponDiscountValue": 0, > > "isScriptCouponApplied": false, > > "currency": "INR" > > } > > ``` > [tab] Coupon Events > > > [accordion] payment\_page\_reached > > > > **When it fires:** The customer arrives at the payment method selection screen. > > > > **Additional fields:** None beyond common fields. > > > [accordion] coupon\_applied > > > > **When it fires:** The customer applies a coupon code and it is accepted. > > > > **Additional fields:** > > > > `appliedCouponCode` > > : `string` The coupon code that was successfully applied. > > > > `amountBeforeDisc` > > : `number` Cart total before the discount, in paise. > > > > `amountAfterDisc` > > : `number` Cart total after the discount, in paise. Same as `latestTotal`. > > > > The `couponDiscountValue` field in the common payload also reflects the discount amount in paise. > > > > ```json Example Payload theme={null} > > { > > "event": "coupon_applied", > > "appliedCouponCode": "SAVE10", > > "amountBeforeDisc": 49900, > > "amountAfterDisc": 39900, > > "paymentMode": "online", > > "couponDiscountValue": 10000, > > "latestTotal": 39900, > > "totalAmount": 49900, > > "isScriptCouponApplied": false, > > "currency": "INR", > > "phone": "+91XXXXXXXXXX", > > "email": "customer@example.com", > > "state": "West Bengal", > > "city": "Kolkata", > > "first_name": "Jane", > > "last_name": "Doe" > > } > > ``` > > > [accordion] coupon\_failed > > > > **When it fires:** The customer attempts to apply a coupon code and it is rejected. > > > > **Additional fields:** > > > > `couponCode` > > : `string` The coupon code the customer attempted to use. > > > > `errorMsg` > > : `string` The reason the coupon was rejected. > > > > ```json Example Payload theme={null} > > { > > "event": "coupon_failed", > > "couponCode": "SAVE10", > > "errorMsg": "coupon not applicable for this order", > > "paymentMode": "online", > > "couponDiscountValue": 0, > > "latestTotal": 49900, > > "totalAmount": 49900, > > "isScriptCouponApplied": false, > > "currency": "INR", > > "phone": "+91XXXXXXXXXX", > > "email": "customer@example.com", > > "state": "West Bengal", > > "city": "Kolkata", > > "first_name": "Jane", > > "last_name": "Doe" > > } > > ``` > [tab] Payment Events > > > [!WARNING] > > > > **Important** > > > > Do not use `mx-analytics` events to confirm payment. Always verify payments server-side using `razorpay_signature`. These events are for analytics instrumentation only. > > > [accordion] payment\_initiated > > > > **When it fires:** The customer selects a payment method and taps pay, initiating a payment attempt. > > > > **Additional fields:** > > > > `paymentMethod` > > : `string` The payment method selected. Possible values: `"upi"`, `"card"`, `"netbanking"`, `"wallet"`, `"emi"`, `"cod"`. > > > > ```json Example Payload theme={null} > > { > > "event": "payment_initiated", > > "paymentMethod": "upi", > > "paymentMode": "online", > > "phone": "+91XXXXXXXXXX", > > "email": "customer@example.com", > > "state": "West Bengal", > > "city": "Kolkata", > > "first_name": "Jane", > > "last_name": "Doe", > > "totalAmount": 49900, > > "latestTotal": 49900, > > "shippingAmount": 0, > > "couponDiscountValue": 0, > > "isScriptCouponApplied": false, > > "currency": "INR" > > } > > ``` > > > [accordion] payment\_failed > > > > **When it fires:** A payment attempt fails due to reasons such as bank decline, UPI timeout, or insufficient funds. > > > > **Additional fields:** > > > > `failureReason` > > : `string` Description of why the payment failed. > > > > ```json Example Payload theme={null} > > { > > "event": "payment_failed", > > "failureReason": "Payment failed due to insufficient funds", > > "paymentMode": "online", > > "phone": "+91XXXXXXXXXX", > > "email": "customer@example.com", > > "state": "West Bengal", > > "city": "Kolkata", > > "first_name": "Jane", > > "last_name": "Doe", > > "totalAmount": 49900, > > "latestTotal": 49900, > > "shippingAmount": 0, > > "couponDiscountValue": 0, > > "isScriptCouponApplied": false, > > "currency": "INR" > > } > > ``` > > > [accordion] checkout\_abandoned > > > > **When it fires:** The customer closes the Magic Checkout modal without completing payment. > > > > **Additional fields:** > > > > `time_since_open` > > : `number` Milliseconds elapsed between checkout open and the moment of abandonment. ## Event Behavior Notes > [accordion] When do mx-analytics events fire? > > These events only fire for Magic Checkout. If Magic Checkout features are not enabled on your account, `mx-analytics` events will not be emitted. > [accordion] When are customer fields populated? > > Customer fields start as empty strings and are populated progressively as the customer advances through the flow. `user_data` is the earliest event where all identity fields are reliably complete. > [accordion] How often does user\_data fire? > > `user_data` fires multiple times per session: at login confirmation, after address is confirmed and when payment is initiated. > [accordion] Can payment events fire multiple times? > > `payment_initiated` and `payment_failed` can fire multiple times in one session if the customer retries after a failure. > [accordion] Is there an event for failed OTP attempts? > > `otp_submitted` only fires on a successful OTP. There is no event for a failed OTP attempt. > [accordion] Does address\_selected fire on every selection? > > `address_selected` will not fire if the same address is selected twice. It only fires when the selection changes. > [accordion] When does address\_info\_submitted fire? > > `address_info_submitted` fires in three scenarios: new address submitted, existing address confirmed and automatically on checkout open for an already-logged-in customer with a saved address. > [accordion] Are shipping\_selected fields always present? > > `shipping_selected` fields (`name`, `shipping_fee`, `cod`, `cod_fee`, `id`) are absent in the quick-buy flow where the customer pays without going through an address step. > [accordion] When does checkout\_abandoned fire? > > `checkout_abandoned` fires only when checkout closes without a successful payment. If payment succeeds, the handler callback fires instead. # Magic Checkout Analytics Integration Source: https://razorpay.com/docs/payments/magic-checkout/web/analytics-integration Capture Magic Checkout analytics events and forward them to your analytics platform using the Razorpay JS SDK. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Magic Checkout emits analytics events at key points in a customer's purchase journey. This guide covers how native platform businesses can listen to these events and use them to power their own analytics pipelines (for example, Google Analytics 4, Mixpanel, Clevertap and so on). This guide is for businesses integrated with Razorpay using the native integration (that is, directly using the Razorpay JS SDK on your own website, not via Shopify or other platform plugins). If you are on Shopify, refer to the Shopify-specific analytics setup instead. ## Prerequisites * You have a working Magic Checkout integration using the Razorpay JS SDK. * Your analytics tool (GA4, Mixpanel and so on) is already initialised on the page before the checkout is opened. ## How It Works Magic Checkout communicates analytics events to your page via the Razorpay SDK instance: 1. You create a Razorpay instance with your checkout options. 2. You register a listener on the `mx-analytics` event before opening the checkout. 3. As the customer progresses through checkout, events fire through the `mx-analytics` listener. 4. When payment succeeds, the `handler` callback fires (not `mx-analytics`). > [!WARNING] > > **Watch Out!** > > The purchase (payment success) event is delivered via the `handler` callback in your checkout options, not through `mx-analytics`. All other events come through `mx-analytics`. ## Integration Steps Follow these steps to integrate Magic Checkout analytics into your website. ### Step 1: Create the Razorpay Instance Create a new Razorpay instance with your checkout options. The `handler` callback is where you capture successful payment events for your analytics. ```javascript New Razorpay Instance theme={null} const checkoutOptions = { key: 'YOUR_KEY_ID', order_id: 'order_XXXXXXXXXXXXXXXXX', name: 'Your Store Name', // ... rest of your checkout options handler: function (response) { // Called when payment is successfully completed. // Trigger your analytics purchase event here. console.log('Payment successful:', response.razorpay_payment_id); }, }; const rzpInstance = new window.Razorpay(checkoutOptions); ``` ### Step 2: Register the Analytics Listener Register the `mx-analytics` listener on your Razorpay instance before you call `rzpInstance.open()`. This listener receives all checkout analytics events except payment success. ```javascript Register mx-analytics Listener theme={null} rzpInstance.on('mx-analytics', function (data) { if (!data || !data.event) return; // Handle events based on data.event and the corresponding payload. // See the Event Reference for the full list of events and their payloads. console.log('[Magic Analytics]', data.event, data); }); rzpInstance.open(); ``` ## Payment Success (Purchase Event) Payment success is not delivered via the `mx-analytics` listener. It is delivered through the `handler` callback defined in your `checkoutOptions`. The `handler` is called immediately after a successful payment with the following payload: `razorpay_payment_id` : `string` Unique identifier of the successful payment (for example, `"pay_XXXXXXXXXXXXXXXXX"`). `razorpay_order_id` : `string` The order id associated with this payment. Always present for Magic Checkout since an order is required. `razorpay_signature` : `string` HMAC-SHA256 signature for server-side payment verification. Always present for Magic Checkout. ```javascript Handler theme={null} handler: function (response) { // Use response.razorpay_payment_id for analytics // Use response.razorpay_order_id for analytics // Use response.razorpay_signature for server-side verification ONLY; do not log or send to analytics console.log('Purchase complete:', response.razorpay_payment_id); } ``` > [!WARNING] > > **Watch Out!** > > Always verify the payment on your server using `razorpay_signature` before fulfilling the order. Do not rely solely on the client-side handler for order confirmation. ## Full Integration Example ```javascript Example theme={null} const checkoutOptions = { key: 'YOUR_KEY_ID', order_id: 'order_XXXXXXXXXXXXXXXXX', name: 'Your Store Name', description: 'Order #1234', amount: 49900, // in paise handler: function (response) { console.log('Purchase:', response.razorpay_payment_id); }, }; const rzpInstance = new window.Razorpay(checkoutOptions); rzpInstance.on('mx-analytics', function (data) { if (!data || !data.event) return; // Handle events based on data.event and the corresponding payload. // See the Event Reference for the full list of events and their payloads. console.log('[Magic Analytics]', data.event, data); }); rzpInstance.open(); ``` ## Forward Events to Your Analytics Platform The `mx-analytics` listener delivers raw event data to your page. It is your responsibility to forward this data to your analytics platform of choice, using whatever event names and payload structure that platform expects. Below is an example of how you might forward Magic Checkout events to Google Analytics 4 (GA4). This is illustrative only; the event names and parameters shown are one possible mapping. Adapt them to match your own platform and tracking requirements. ```javascript Example GA4 Integration theme={null} rzpInstance.on('mx-analytics', function (data) { if (!data || !data.event) return; var currency = data.currency || 'INR'; var value = (data.latestTotal || 0) / 100; // convert paise to rupees var items = (data.lineItems || []).map(function (item) { return { item_id: item.sku || item.id || '', item_name: item.name || item.title || '', item_brand: item.brand || item.vendor || '', item_variant: String(item.variant_id || ''), price: ((item.offer_price || item.price || 0) / 100).toFixed(2), quantity: item.quantity || 1, }; }); switch (data.event) { case 'initiate': gtag('event', 'begin_checkout', { currency: currency, value: value, items: items }); break; case 'payment_initiated': gtag('event', 'add_payment_info', { currency: currency, value: value, items: items, payment_type: data.paymentMethod }); break; case 'coupon_applied': gtag('event', 'select_promotion', { coupon: data.appliedCouponCode }); break; case 'checkout_abandoned': gtag('event', 'checkout_abandoned', { currency: currency, value: value }); break; // Map other events as needed for your platform } }); ``` > [!NOTE] > > **Handy Tips** > > The event names (`begin_checkout`, `add_payment_info` and so on) above are GA4's recommended e-commerce event names. Your platform may use different conventions; refer to your analytics provider's documentation for the correct event taxonomy. This example covers only a subset of events; refer to the [Event Reference](/docs/payments/magic-checkout/web/analytics-event-reference) for the complete list. ## Next Steps Once you get the events from Razorpay, you can further integrate and forward the data to required tracking platform (such as GA4, GTM, Meta Ads and so on)ย by constructing the payload in the format specified by the platform. For the full list of events, payload schemas and field definitions, see the [Magic Checkout Analytics Event Reference](/docs/payments/magic-checkout/web/analytics-event-reference). # Integrate Magic Checkout With WooCommerce Website Source: https://razorpay.com/docs/payments/magic-checkout/woocommerce Steps to integrate Magic Checkout on your WooCommerce Website. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [WooCommerce Integration Changelog](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to the WooCommerce Integration with Magic Checkout (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/magic-checkout/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about WooCommerce Integration. Follow the steps given below to integrate Razorpay Magic Checkout with your WooCommerce Website. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. > [!WARNING] > > **Watch Out!** > > If you are integrating with our plugin for the first time, refer to the [FAQs](/docs/payments/magic-checkout/troubleshooting-faqs#woocommerce). ## Integration Steps Follow the steps given below: > [accordion] Enable Features on Razorpay Dashboard > > To configure settings on Razorpay Dashboard: > > 1. Log in to the [WordPress account](https://wordpress.com/log-in) and navigate to **Settings** โ†’ **General**. > 2. Copy the **WordPress Address** or **Site Address**. > > ![Copy the checkout URL](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-url.jpg) > 3. Log in to the Razorpay Dashboard and navigate to **Magic Checkout**. > 4. Select **WooCommerce** from the drop-down list. Paste the **WordPress Address** or **Site Address** in the **Domain hyperlink** field. > > ![Enter WooCommerce domain hyperlink on Magic Checkout Settings](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-settings-domain-hyperlink.jpg) > [accordion] Enable Features on WordPress Dashboard > > To configure settings on WordPress Dashboard: > > 1. Log in to your **WordPress account** and activate the **Razorpay plugin** in the WordPress Plugin Manager. > 2. Log in to your **WooCommerce account**, navigate to **Settings** and click the **Payments** tab. > 3. In the **Payments** tab, scroll down to **Razorpay** and click **Manage** to edit the settings. > > ![Edit the settings on the WooCommerce Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-razorpay-edit.jpg) > > * **Activate Magic Checkout**: Enable Magic Checkout to start displaying Magic Checkout instead of Native Checkout. Disable it to use Native Checkout. > > ![Enable Magic Checkout](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-other-settings.jpg) > > * **Activate Test Mode**: Enable Test mode to test the flow without impacting customers. This will show the button only to users who have admin permissions. > > * **Activate Buy Now Button**: Display the Buy Now button on the product display page. Customers can directly purchase a single product by clicking the **Buy Now** button on the product display page and they will be directed to the Checkout for the payment. Only the Add to Cart button will appear to the customers if this is not selected. > > ![Activate the Buy Now button](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-buy-now.jpg) > > * **Activate Mini Cart Checkout**: Display the Mini Cart Checkout button. Once a customer adds a product to the cart, they can hover over the cart and proceed to the Checkout section by clicking the **Checkout** button. > > ![Activate the Mini Cart Checkout](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-mini-cart.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > * Before accepting live payments, test the Buy Now, Mini Cart, and Checkout buttons to ensure the integration works as expected. > > In case of any queries, contact our [support team](https://razorpay.com/support/). > > * Webhooks are auto-configured when you enter and save the API key ID and secret on the plugin settings page. You need to verify if webhooks are enabled on your [Razorpay Dashboard](/docs/payments/magic-checkout/troubleshooting-faqs#how-can-i-verify-if-webhooks-are-enabled). However, for versions lower than 3.5.0, you need to [configure webhooks manually](/docs/payments/magic-checkout/troubleshooting-faqs#my-webhooks-are-not-auto-configured-since-i-am-not-using-the-upgraded-version-of-woocommerce-how-do-i-manually-configure-webhooks). > [accordion] Accept Live Payments > > Disable the Test mode enabled in [Step 2](https://razorpay.com/docs/payments/magic-checkout/woocommerce#enable-features-on-wordpress-dashboard:~:text=use%20Native%20Checkout.-,Activate%20Test%20Mode,-%3A%20Enable%20Test%20mode) and click **Save Settings** to accept live payments. > > ![Disable the test mode enabled previously](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-test-disable.jpg) > [!NOTE] > > **Handy Tips** > > To disable Magic Checkout, refer to our [FAQs](/docs/payments/magic-checkout/troubleshooting-faqs#can-i-disable-magic-checkout). ## Next Steps ## Next Steps After successfully integrating your WooCommerce website with Magic Checkout, you can perform the following configurations on the Razorpay Dashboard to suit your business needs: * [Cash on Delivery](/docs/payments/magic-checkout/woocommerce/features#cash-on-delivery): Enable COD and configure rules for specific locations, products, and order amounts, catering to customer preferences and logistical needs to increase sales. * [RTO](/docs/payments/magic-checkout/woocommerce/features#rto): Use automated COD intelligence or manual review to decide whether to offer COD based on customer buying history, thus reducing RTO rates. * [Convert COD Orders to Prepaid](/docs/payments/magic-checkout/woocommerce/features#convert-cod-orders-to-prepaid): Encourage COD customers to switch to prepaid by offering discounts or incentives, reducing cash handling risks. * [Shipping Options](/docs/payments/magic-checkout/woocommerce/features#shipping-options): Set up shipping rates at the product, zone and method levels to optimise costs and improve delivery efficiency. * [International Shipping](/docs/payments/magic-checkout/woocommerce/features#international-shipping): Allow customers to enter international PIN codes, expanding your market reach globally. * [Coupons](/docs/payments/magic-checkout/woocommerce/features#coupons): Provide discounts via coupons to enhance engagement and reduce cart abandonment. * [Google and Facebook Analytics](/docs/payments/magic-checkout/woocommerce/features#google-and-facebook-analytics): Integrate Google and Facebook Analytics for insights into customer behaviour and optimised marketing strategies. ### Related Information [Troubleshooting and FAQs](/docs/payments/magic-checkout/troubleshooting-faqs#woocommerce) # Configure WooCommerce Options Source: https://razorpay.com/docs/payments/magic-checkout/woocommerce/features Configure COD and shipping charges, COD intelligence, coupons, international shipping and more on your Razorpay Magic Checkout and WooCommerce Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You have various configuration options available on your Razorpay and WooCommerce Dashboard. You can perform the following configurations to suit your business needs: * [Cash on Delivery](#cash-on-delivery) * [RTO](#rto) * [Convert COD Orders to Prepaid](#convert-cod-orders-to-prepaid) * [Shipping Options](#shipping-options) * [International Shipping](#international-shipping) * [Coupons](#coupons) * [Separate Billing Address](#separate-billing-address) * [Capture and Validate GSTIN](#capture-and-validate-gstin) * [Capture Order Instructions](#capture-order-instructions) * [Gift Card Settings](#gift-card-settings) * [Google and Facebook Analytics](#google-and-facebook-analytics) ## Cash on Delivery You can use this setting to enable COD on your store and configure the rules for selectively showing COD to customers based on specific locations, products, order amounts and more. > [accordion] To enable COD settings: > > 1. Log in to the Razorpay Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > > 2. Select **WooCommerce** from the **Platform** drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > > 3. Navigate to the **COD Settings** โ†’ **COD Setup**. > > 4. Enable **COD as a payment option**. > > ![COD settings](https://razorpay.com/docs/build/browser/assets/images/magic-wooc-enable-cod.jpg) > > 5. Select the **Type of setting**. > > > [accordion] Basic > > > > These COD settings are based on the cart value and zones, applicable for all the products irrespective of the product categories. > > Follow the steps given below: > > > > 1. Configure the **Cart order value** by selecting an option based on your requirement: > > * **Charge COD Fee**: Charge a COD fee to customers who opt for the COD payment method. You can configure the order range and set a corresponding **Fee** accordingly. > > 1. Click **+ Add slabs**. > > 2. Enter the minimum and maximum order value for which the fee should apply. > > 3. Enter the **Delivery price**. For example, if the **Min Order Value** is โ‚น400, the **Max Order Value** is โ‚น1000, and the Fee is โ‚น50, a โ‚น50 COD fee is applied to any order value in this range. > > 4. Click **Save slabs**. > > > > ![Create COD eligibility slabs with COD charges](https://razorpay.com/docs/build/browser/assets/images/magic-wooc-cod-slabs.jpg) > > 5. Click **+ Add rate slabs** if you want to create more slabs. > > * **Free COD**: No COD charge will apply within the configured order range. The customer cannot view the COD payment method if an order value does not fall within the configured range. > > 1. Click **+ Add slabs**. > > > > 2. Enter the minimum and maximum order value for which no COD charge should apply. For example, if the **Min Order Value** is โ‚น800 and the **Max Order Value** is โ‚น1200, the COD charge will not apply if the order value falls in this range. > > > > 3. Click **Save slab**. > > > > ![Create COD eligibility slabs](https://razorpay.com/docs/build/browser/assets/images/magic-wooc-free-cod.jpg) > > > > 4. Click **+ Create more slabs** to create more slabs. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > In the **Basic** type of setting, you cannot create overlapping slabs. For example, if you have already set a slab with a minimum order value of โ‚น200 and a maximum order value of โ‚น600, you cannot add another slab within that range, such as a minimum order value of โ‚น300 and a maximum order value of โ‚น500. > > > > 2. In the **COD zones** section, click **+ Add zones** to create shipping zones where COD is applicable. > > > > 3. Enter the **Zone name**. > > > > 4. Select the country, state, and city where the COD charges configured in the previous step should be applicable. Click **Confirm**. > > > > ![Create COD zones](https://razorpay.com/docs/build/browser/assets/images/magic-wooc-cod-zone.jpg) > > > > 5. Click **Save & apply**. > > > > 6. Navigate to **Manual Zipcode upload** and click **Upload ZIP codes** to offer COD only to specific ZIP codes. > > > > ![Upload ZIP codes to offer COD only to specific ZIP codes](https://razorpay.com/docs/build/browser/assets/images/magic-wooc-cod-shipping-pincode.jpg) > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > * Download the sample CSV file. > > > * Enter the ZIP codes as individual rows in column 1. > > > * Upload the file in .CSV format. Maximum file size supported is 50 MB. > > > > 7. Drag the file or click **click to upload**. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > * You can only upload one file at a time. Uploading another file will overwrite the older file. > > > * You cannot edit an uploaded file; you can only delete it and upload a new file. > > > [accordion] Advanced > > > > Configure COD settings based on the cart value and zones applicable to specific product categories. Follow the steps given below: > > > > 1. In the **Cart order value** section, click **+ Add slabs**. > > > > 2. Enter the minimum and maximum order value for which the fee should apply. > > > > 3. Enter the **Delivery price**. For example, if the **Min Order Value** is โ‚น400, the **Max Order Value** is โ‚น1000, and the fee is โ‚น50, a โ‚น50 COD fee will apply to any order value in this range. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > If you do not want to charge a COD fee, you can create slabs and enter โ‚น0 as the delivery price. > > > > 4. Click **Save slab**. > > > > ![Create advanced COD eligibility slabs](https://razorpay.com/docs/build/browser/assets/images/magic-shopify-advanced-cod-slabs.jpg) > > 5. Click **+ Create more slabs** if you want to create more slabs. > > 6. In the **COD zones** section, click **+ Add zones** to create shipping zones where COD is applicable. > > 7. Enter the **Zone name**. > > 8. Select the country, state, and city where you want to apply COD charges configured in the previous step. Click **Confirm**. > > 9. You can configure COD based on either the zone or product categories. > > * **Zone Configuration**: Manage applicable COD slabs and rates for different zones. > > 1. Click **+ Set zone configuration**. > > > > ![Set zone configuration](https://razorpay.com/docs/build/browser/assets/images/magic-shopif-zone-config.jpg) > > 2. Select the slabs based on your requirement and click **Save configuration**. It is mandatory to configure all the zones you create. The COD charge applies to each zone based on the slabs you select. > > > > ![Select zone-wise COD slabs](https://razorpay.com/docs/build/browser/assets/images/magic-shopify-zone-cod-slabs.jpg) > > 3. Click **Save & apply**. > > * **Product categories**: Create **Product categories** to establish custom rates or zone restrictions for different categories. > > 1. Enable the **Product categories** setting. Once you enable this setting, the **Zone configuration** field will not appear. > > 2. Click **+ Add categories**. > > > > ![Add product categories](https://razorpay.com/docs/build/browser/assets/images/magic-shopify-product-cat.jpg) > > 3. Enter the **Category name**. > > 4. Select the products of your choice that you want to add to the category and click **Confirm**. You cannot add the same product in different categories. > > 5. Click **+ Create more categories** if you want to add more product categories. > > 6. Click **+ Set category configuration** to configure the zones and slabs for each category. > > > > ![Set category configuration](https://razorpay.com/docs/build/browser/assets/images/magic-shopify-product-cat-config.jpg) > > 7. Select the serviceable zone for the selected category and choose the slabs based on your requirements. For example, if you want to set configurations for the product category, Topwear, select the order range for this category on which COD should apply for each zone. > > 8. Click **Save configuration**. It is mandatory to configure slabs for all the zones you create. > > > > ![Config zone and slabs for each category](https://razorpay.com/docs/build/browser/assets/images/magic-shopify-category-config.jpg) > > 9. Click **Save & apply**. > > ### Feature > > > [accordion] Block List > > > > You can create a blocklist for high-risk customers who often return products on delivery, resulting in damaged products during transit, high returns, refund issues, and more.\\ > > > > The customers mentioned in the blocklist based on the order phone number, email ID, device IP and shipping zip code will **not** be eligible for COD. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > * Only the **Owner** and **Admin** roles have access to this feature. > > > * Blocklist will work only if you enable COD as a payment option. > > > > Follow the steps given below: > > > > 1. Log in to the Razorpay Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > > 2. Select **WooCommerce** from the platform drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > > 3. Navigate to **COD Setup** โ†’ **Block List**. > > 4. Click **+ Add New Blocklist**. > > 5. You can either upload a list or enter it manually. > > * **To upload a list**: > > 1. Download the **sample file**. > > 2. Add the required data to the file. A maximum of 1M rows are acceptable in the file. > > 3. Upload the file in .CSV format. Maximum file size supported is 50 MB. > > * **To manually enter the list**: > > 1. Select the **Type** from the drop-down list. > > > > 2. Enter the values. You can enter up to 20 values by separating them with a comma based on the **type**. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Enter the values in a valid format as given below: > > > > > > * **Phone number**: 10-digit phone number with the country code. For example, +919000090000. > > > * **Zip code**: 6-digit zip code. > > > * **Device IP**: For example, 123.123.123.123. > > > > 6. Click **Confirm**. > > > > ![Confirm](https://razorpay.com/docs/build/browser/assets/images/cod-blocklist-confirm.jpg) > > 7. A pop-up page appears with the list of items added. Review the list and click **Add To Blocklist**. > > > > The orders that fall under this list will not be eligible for COD. ## RTO You can either opt for the automated option by enabling COD intelligence or manually review COD orders. > [accordion] COD Intelligence > > Enable **COD Intelligence** to detect incorrect/non-serviceable addresses. This allows Magic Checkout to decide whether to show a particular customer the cash-on-delivery option based on their buying history, thus increasing the delivery percentage and reducing RTO rates. To enable COD intelligence: > > 1. Log in to the Razorpay Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > 2. Select **WooCommerce** from the platform drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > 3. Navigate to **RTO Reduction Setup** โ†’ **RTO Reduction**. > 4. Toggle on **COD Intelligence** and click **Enable COD Intelligence** in the confirmation pop-up modal. > > ![Enable COD intelligence](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-cod-enable-shopify.jpg) > > You can disable **COD Intelligence** if required. This will enable the COD option for all the customers, including those considered risky by Magic Checkout. Once you enable COD intelligence, the **RTO Analytics** tab will appear. Know more about [RTO Analytics](/docs/payments/magic-checkout/analytics/rto). > > > [!NOTE] > > > > **Handy Tips** > > > > * Magic Checkout automatically disables the cash on delivery option in case of high-risk customers who often return products on delivery resulting in damaged products during transit, high returns, refund issues, and so on. > > * You must enable COD Intelligence if you opt for RTO protection. > [accordion] Manually Review COD Orders > > You can manually review COD orders to filter out potential RTO orders and, based on our insights, decide whether to offer customers the COD option. > > 1. Log in to the Razorpay Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > 2. Select **WooCommerce** from the platform drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > 3. Navigate to **RTO Reduction Setup** โ†’ **RTO Reduction**. > 4. Toggle on **Manually review COD orders**. > > ![Enable manual Review](https://razorpay.com/docs/build/browser/assets/images/magic-enable-manual-review.jpg) > 5. Enter the **Consumer Key** and **Secret**. Follow the steps given below to generate API keys: > 1. Log in to the [WordPress account](https://wordpress.com/log-in) and navigate to **WooCommerce** โ†’ **Settings**. > 2. Navigate to **Advanced** โ†’ **REST API**. > > ![REST APIs](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-rest-apis.jpg) > 3. Click **Add Key**. > 4. Enter the required details and click **Generate API key**. > 5. Copy the API keys and paste them onto the Razorpay Dashboard. Click **Submit**. > > ![Submit keys](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-submit-keys.jpg) > 6. Click **Enable manual review**. > > Once you enable manual review, you can review the COD orders and take necessary actions. Refer to the [COD Orders](/docs/payments/magic-checkout/order-settings/review-cod-orders#review-cod-orders) section for more information. ## Convert COD Orders to Prepaid With Magic Checkout, you can urge customers who chose cash on delivery while placing an order to convert COD orders to prepaid by offering discounts or incentives post-order placement. Converting orders to prepaid can help you increase order commitment, reduce RTO, streamline operations and enhance customer trust. Know how to [convert COD orders to prepaid](/docs/payments/magic-checkout/order-settings/prepay-cod). > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Write to us at [magic-checkout-support@razorpay.com](mailto:magic-checkout-support@razorpay.com) to get this feature enabled for your account. ## Shipping Options Following are the configuration options available under shipping: > [accordion] Method 1: Razorpay Dashboard *(Recommended)* > > You can use this setting to configure the shipping rates at a product, zone and method level for your customers. > > > [!WARNING] > > > > **Watch Out!** > > > > If you configure the shipping setting on the Razorpay Dashboard, any shipping setting configured on any plugins or your ecommerce platform will not apply. > > To configure the shipping options based on your requirement: > > 1. Log in to the Razorpay Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > > 2. Select **WooCommerce** from the **Platform** drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > > 3. Navigate to **Shipping Setup**. You can either select **Magic Shipping** or **WooCommerce** as the **Shipping Type**. > > 4. Click **Add Profile** in the **Custom Shipping Profile** section. > > ![Navigate to Shipping settings on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/magic-shipping-settings.jpg) > > 5. Click **+ Add category** in the **Product categories** section. > > ![Add product categories to configure shipping](https://razorpay.com/docs/build/browser/assets/images/magic-wooc-shipping-category.jpg) > > 6. Enter the **Category name** and select the products of your choice. You cannot add the same product in other categories. Click **Confirm**. > > 7. Click **+ Add zones** in the **Shipping zone** section to create zones where shipping is applicable. > > 8. Enter the **Zone name** and select the country, state, and city of your choice. > > ![Add shipping zones to determine the shipping charges for each zone](https://razorpay.com/docs/build/browser/assets/images/wooc-add-shipping-zone.jpg) > > 9. Click **+ Upload ZIP codes** to offer shipping only to specific ZIP codes. You can either upload the ZIP codes in this profile or in the default shipping profile. > > > [!NOTE] > > > > **Handy Tips** > > > > * Download the sample CSV file. > > * Enter the ZIP codes as individual rows in column 1. > > * Upload the file in .CSV format. Maximum file size supported is 50 MB. > > * Uploaded ZIP codes are compatible only with Basic COD settings. > > 10. Drag the file or click **click to upload**. > > > [!WARNING] > > > > **Watch Out!** > > > > * You can only upload one file at a time. Uploading another file will overwrite the older file. > > * You cannot edit an uploaded file; you can only delete it and upload a new file. > > 11. Click **+ Add shipping method** and configure the **Shipping method & rate** for all the shipping zones added in the previous step. > > ![Configure the shipping rates for each zone](https://razorpay.com/docs/build/browser/assets/images/wooc-shipping-method.jpg) > > 12. Enter the **Delivery Name** and **Description** of your choice which will appear to your customers on Magic Checkout. > > 13. Enter the **Rate** for the delivery and enable the **COD availability** if you want to show the cash on delivery payment option on checkout at the shipping method level. > > 14. Configure the Shipping slab based on the **Amount** and **Weight** of the product and enter the minimum and maximum values respectively. For example, enter the minimum-maximum value as โ‚น500-โ‚น900. If the amount of the product falls in that range, a shipping rate is applicable on the product. > > ![Configure the shipping method](https://razorpay.com/docs/build/browser/assets/images/wooc-configure-shipping-method.jpg) > > 15. Enter the delivery estimated timeline for the customers which appears on checkout. > > 16. Click **Confirm**. > > ![Configure the shipping method](https://razorpay.com/docs/build/browser/assets/images/wooc-configure-shipping-delivery.jpg) > > 17. Once you configure all the shipping zones, click **Go Back**. > > 18. Click **+ Set Default profile** in the **Default Shipping Profile (Mandatory)** section. Follow all the steps from 7 to 15 to configure the profile. > > > [!WARNING] > > > > **Watch Out!** > > > > * It is mandatory to configure the default shipping profile. > > * By default, the shipping settings configured is applicable for products which **do not** belong to any other shipping profile. > > 19. If you selected **Magic Shipping** as the **Shipping Type** above, enable **Magic Shipping** below on the Dashboard. To confirm the action, click **Yes, enable**. > > > [!WARNING] > > > > **Watch Out!** > > > > * Once you enable **Magic Shipping**, it surpasses all shipping configurations from any plugins or your ecommerce platform and prioritise our configurations. > > > > ![Enable Shipping settings on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/wooc-magic-enable-shipping-settings.jpg) > > * You will get a pop-up if you have not opted for [COD Engine](/docs/payments/magic-checkout/woocommerce/features#cash-on-delivery) and [COD order to prepaid](/docs/payments/magic-checkout/woocommerce/features#convert-cod-orders-to-prepaid). Enter the **Consumer Key** and **Secret**. Follow the steps given below to generate API keys: > > 1. Log in to the [WordPress account](https://wordpress.com/log-in) and navigate to **WooCommerce** โ†’ **Settings**. > > 2. Navigate to **Advanced** โ†’ **REST API** and click **Add Key**. > > 3. Enter the required details and click **Generate API key**. Copy the API keys and paste them onto the Razorpay Dashboard. Click **Submit**. > > > > ![Submit keys](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-submit-keys.jpg) > [accordion] Method 2: WooCommerce Dashboard > > For the shipping cost to reflect on the Checkout, ensure all the shipping zones are added. To add the shipping zones: > > 1. Log in to your [WordPress account](https://wordpress.com/log-in). > > 2. Navigate to **WooCommerce** โ†’ **Settings** and click the **Shipping** tab. > > ![Shipping settings](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-navigate.jpg) > > 3. Add the appropriate **Shipping Zones** and the respective **Shipping Method**. > > > [!NOTE] > > > > **Handy Tips** > > > > Add the shipping charges if required; otherwise, the order will process for free shipping. > > > [!WARNING] > > > > **Watch Out!** > > > > Magic Checkout does not support multiple shipping methods for a region. For example, if you have enabled free shipping and flat rate shipping methods for a particular region, then Magic Checkout will only consider free shipping as the shipping method. > > ![Shipping Zone and methods](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-shipping-zone.jpg) > > 4. Enable COD for the shipping methods, if required. Navigate to **WooCommerce** โ†’ **Settings** and click the **Payments** tab. > > ![Shipping Zone](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-woocommerce-payments.jpg) > 5. Scroll down to **Cash on Delivery** and select the **Enable cash on delivery** check box. \ > Add the same shipping methods in the **Enable for shipping methods** field to enable COD for shipping methods and click **Save changes**. > > ![Shipping method COD](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-shipping-method-cod.jpg) > > ### Shipping Charges > > You can configure shipping charges based on the location or cart amount via Woocommerce plugins such as [Table rate shipping](https://woocommerce.com/products/table-rate-shipping/) and [Advanced free shipping](https://wordpress.org/plugins/woocommerce-advanced-free-shipping/). > [accordion] Logistics Partners > > You can integrate Magic Checkout with following logistics partners to easily fetch delivery status details. This is a mandatory step if you have opted for [RTO protection](/docs/payments/magic-checkout/woocommerce/features#rto): > > * [Shiprocket](/docs/payments/magic-checkout/rto-reduction/logistics-partners/shiprocket) > * [Delhivery](/docs/payments/magic-checkout/rto-reduction/logistics-partners/delhivery) > * [iThink Logistics](/docs/payments/magic-checkout/rto-reduction/logistics-partners/ithink-logistics) > * [Unicommerce](/docs/payments/magic-checkout/rto-reduction/logistics-partners/unicommerce) > * [ClickPost](/docs/payments/magic-checkout/rto-reduction/logistics-partners/clickpost) > > ![Logistics partners](https://razorpay.com/docs/build/browser/assets/images/magic-logistics-connect.jpg) ## International Shipping You can allow customers to enter an international zipcode for delivery. > [accordion] To enable international shipping: > > 1. Log in to > the Razorpay Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > 2. Select **WooCommerce** from the **Platform** drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > 3. Navigate to **Shipping Setup** and enable **International Shipping**. > > ![enable international shipping for customers](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-int-shipping.jpg) ## Coupons You can offer discounts to your customers by adding coupons. > [accordion] To add coupons: > > 1. Log in to your [WordPress account](https://wordpress.com/log-in). > > 2. Navigate to **Marketing** โ†’ **Coupons**. > > 3. Click **Add Coupons** or select a coupon from the list. > > 4. Add a **Description** for the coupon. > > > [!NOTE] > > > > **Handy Tips** > > > > Step 4 is mandatory and the coupon will reflect on Checkout only if a description is added. > > ![](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-coupon.jpg) > > 5. In the Razorpay Dashboard, navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > > 6. Select **WooCommerce** from the **Platform** drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > > 7. In the **Checkout Setup** tab, the **Coupon Settings** fields are auto-filled. If you want to show all the available coupons directly on Magic Checkout, enable **Auto fetch coupon**. > > ![Enable Auto Fetch coupons to show all the available coupons on Magic Checkout](https://razorpay.com/docs/build/browser/assets/images/magic-auto-fetch-coupons.jpg) > > 8. Click **Save settings**. > > > [!NOTE] > > > > **Handy Tips** > > > > If you want to display specific coupons on checkout instead of all, you can provide a list of coupons you would like us to whitelist. Write to us at [magic-checkout-support@razorpay.com](mailto:magic-checkout-support@razorpay.com) and include the coupon names and descriptions. ## Separate Billing Address You can collect the customer's **Billing Address** separately from the **Shipping address**. > [accordion] To collect the billing address separately: > > 1. Log in to > the Razorpay Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > 2. Select **WooCommerce** from the **Platform** drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > 3. Navigate to **Checkout Setup**, enable **Capture billing address** and click **Save settings**. > > ![enable separate billing address capture for customers](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-billing-add.jpg) ## Capture and Validate GSTIN You can capture and validate your customer's GST details from the Dashboard. > [accordion] To capture and validate GSTIN details: > > 1. Log in to > the Razorpay Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > 2. Select **WooCommerce** from the **Platform** drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > 3. Navigate to **Checkout Setup**, enable **Capture GSTIN?** and click **Save settings**. > > ![Capture customers GST details](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-wooc-gstin.jpg) > 4. To validate the GSTIN entered by your customers at checkout, contact our [Support team](https://razorpay.com/support/#request) to enable GSTIN validation for your account. > 5. After the customers place an order, you can view the GST details on WooCommerce and the Razorpay Dashboard. > * **WooCommerce Dashboard**: On the WooCommerce Dashboard, navigate to **WooCommerce** โ†’ **Orders**. Select the required order number and view the details on right-hand side. > * **Razorpay Dashboard**: On the Razorpay Dashboard, navigate to **Transactions** โ†’ **Orders** and select the required **Order Id** to view the details. > [accordion] Customer Experience > > Once GSTIN validation is enabled for your account, your customers can validate their GST details directly at checkout: > > 1. On the order summary screen, the customer clicks **Add** next to **GST Number**. > 2. A **GSTIN Number** pop-up appears. > 3. The customer enters their GSTIN and clicks **Verify**. > * If the GSTIN is invalid, an error message is displayed asking the customer to enter a valid GSTIN number. > * If the GSTIN is valid, the GST-registered address is automatically set as the billing address. > > ![GSTIN on checkout](https://razorpay.com/docs/build/browser/assets/images/magic-config-gstin.jpg) ## Capture Order Instructions You can enable your customers to enter order instructions if any at the checkout. For example, customer may want a particular order to be expedited. To capture order instructions: > [accordion] To capture order instructions: > > 1. Log in to > the Razorpay Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > 2. Select **WooCommerce** from the **Platform** drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > 3. Navigate to **Checkout Setup**, enable **Capture order instructions?** and click **Save settings**. > > ![Capture customer order instructions if any](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-wooc-order-instructions.jpg) > 4. After the customers place an order, you can view the GST details on WooCommerce and the Razorpay Dashboard. > * **WooCommerce Dashboard**: On the WooCommerce Dashboard, navigate to **WooCommerce** โ†’ **Orders**. Select the required order number and view the details on right-hand side. > * **Razorpay Dashboard**: On the Razorpay Dashboard, navigate to **Transactions** โ†’ **Orders** and select the required **Order Id** to view the details. ## Gift Card Settings You can enable various gift card options for your customers from the Dashboard. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Write to us at [magic-checkout-support@razorpay.com](mailto:magic-checkout-support@razorpay.com) to get this feature enabled for your account. > [!WARNING] > > **Watch Out!** > > This feature is not available for Shopify Basic and Advanced users. > [accordion] To enable gift card settings: > > 1. Log in to > the Razorpay Dashboard and navigate to **Magic Checkout** โ†’ **Setup & Settings** โ†’ **Platform Settings**. > 2. Select **WooCommerce** from the **Platform** drop-down list. Paste the [WordPress Address or Site Address](/docs/payments/magic-checkout/woocommerce#enable-features-on-razorpay-dashboard) in the **Domain hyperlink** field and click **Next**. > 3. Navigate to **Checkout Setup** and enable **Pay with gift card**. > 4. Once you enable the gift card settings, you can also enable the following options **if required**: > * **Pay with multiple gift cards**: Allow your customers to pay with multiple gift cards at once. > * **Restrict paying with coupon and gift card together**: Restrict your customers from using both coupon and gift card together while making a payment. > * **Restrict buying gift cards with existing gift cards**: Restrict your customers from purchasing gift cards using existing gift cards. > * **Restrict customers from clubbing gift cards with COD**: Restrict the usage of gift cards if your customers avail of the cash on delivery option. > > ![Configure the gift card options if required](https://razorpay.com/docs/build/browser/assets/images/magic-wooc-gift-config.jpg) > > 5. Click **Save Settings**. ## Google and Facebook Analytics Activate Google and Facebook Analytics based on your requirement to track orders. > [accordion] To activate Google and Facebook analytics: > > 1. Log in to the [WordPress account](https://wordpress.com/log-in) and navigate to **Woocommerce** โ†’ **Settings**. > 2. Click **Payments**. > 3. In the Payments tab, scroll down to **Razorpay** and click **Manage** to edit the settings. > 4. Scroll towards the end and activate Google and Facebook analytics based on your requirement. > > ![enable google and facebook analytics](https://razorpay.com/docs/build/browser/assets/images/magic-checkout-other-settings3.jpg) > 5. Click **Save changes**. ### Related Information [Troubleshooting and FAQs](/docs/payments/magic-checkout/troubleshooting-faqs#woocommerce) # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/open-cart/troubleshooting-faqs Troubleshoot common errors and find answers to frequently asked questions about OpenCart Ecommerce Plugin integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] My Webhooks are not auto-configured since I am not using the upgraded version of OpenCart. How do I manually configure webhooks? > > To set up webhooks: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings** section, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Click **+ Add New Webhook**. > > ![](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-1.jpg) > 4. In the **Webhook Setup** pop-up page: > 1. Enter the **URL** where you want to receive the webhook payload when an event is triggered. We recommended using an HTTPS URL. > > > [!NOTE] > > > > **Handy Tips** > > > > You can set up to **10 URLs** to receive Webhook notifications. Webhooks can only be delivered to public URLs. If you attempt to save a localhost endpoint as part of a webhook setup, you will notice an error. Know more about [testing Webhooks on an application running on localhost](/docs/webhooks/validate-test#application-running-on-localhost). > > 1. Enter a **Secret** for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about [how to validate webhooks](/docs/webhooks/validate-test). > > > [!NOTE] > > > > **Handy Tips** > > > > * When setting up the webhook, you will be asked to specify a secret. Using this secret, you can validate that the webhook is from Razorpay. Entering the secret is optional but recommended. The secret should never be exposed publicly. > > * The webhook secret does not need to be the merchant secret key provided by Razorpay. > > 1. In the **Alert Email** field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook deactivation notifications to this email address. > 2. Select the required events from the list of **Active Events**. > > ![](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-2.jpg) > 3. Click **Create Webhook**. > 4. After you set up a webhook, it appears on the list of webhooks. \\ > [accordion] How can I verify if webhooks are enabled? > > To verify if webhooks are enabled: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings**, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Select the relevant webhook **URL**. > 4. On the right panel, check if the status for `payment.authorized`, `refund.created` and `virtual_account.credited` is enabled. > > ![List of webhooks created](https://razorpay.com/docs/build/browser/assets/images/plugin-webhook-faq.jpg) > > List of Events to Subscribe > > You must subscribe to the following events: > > | OpenCart Plugin Version | Webhook Events Supported | > | - | - | > | OpenCart 1.5 | None | > | OpenCart 2.x | `order.paid` | > | OpenCart 3.x | `order.paid` and `payment.authorized` | > [accordion] What troubleshooting procedures should be carried out prior to initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Reinstall the Razorpay Opencart plugin and ensure that your system meets all the requirements mentioned [here](/docs/payments/payment-gateway/ecommerce-plugins/open-cart/integration-steps). > 2. We recommend you to keep your Razorpay Opencart plugin up to date. You can find the latest versions [here](https://github.com/razorpay/razorpay-opencart/releases). > 3. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * Razorpay Opencart plugin version (4, 3, 2, or 1.5) > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Staging website credentials (login URL, login id, and password) > [accordion] Does the Open-Cart plugin support 3 or 0 decimal unit currencies? > > The Open-Cart plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). # PrestaShop Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/prestashop Check the prerequisites before you integrate your PrestaShop website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Prestashop Changelog](/docs/payments/changelog#prestashop) > > Discover new features, updates and deprecations related to the Razorpay Prestashop plugin (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/prestashop/troubleshooting-faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay PrestaShop plugin. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. [Video Tutorial](https://www.youtube.com/embed/CTjA7fwOEys?si=HER--F3MzRuR775X) Video Tutorial Watch the video before you start integrating the PrestaShop plugin with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/prestashop/integration-steps) > > Check the steps to integrate the PrestaShop plugin with Payment Gateway. ## Supported Versions We support the following versions: PrestaShop 8.1.x, PrestaShop 8.0.x, PrestaShop 1.7.x and PrestaShop 1.6.x. **Upgrade Notice** * Release 2.5.4 supports PrestaShop 1.7.x, 8.0.x, and 8.1.x. * Release 2.0.0 removes support for PHP versions 5.6.0 and lower. * Release 2.0.0 removes theme support. Use the PrestaShop Dashboard to configure the checkout theme color. ## Supported Products Razorpay PrestaShop Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | x | ## Support * Queries: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-prestashop/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/prestashop/integration-steps Steps to integrate your PrestaShop website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow the steps given below to integrate Razorpay Payment Gateway with your PrestaShop website.\ > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/prestashop/integration-steps#1-build-integration) > > Install and configure the PrestaShop plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/prestashop/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/prestashop/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with PrestaShop Website](https://www.youtube.com/embed/CTjA7fwOEys?si=HER--F3MzRuR775X) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Installation and Configuration > > 1. Download the Source code zip file of the required version of the plugin from the Releases section in GitHub. > * For PrestaShop 1.6, download releases tagged 1.x.y. The latest release for PrestaShop 1.6 is [version 1.3.1](https://github.com/razorpay/razorpay-prestashop/releases/download/1.3.1/razorpay.zip). > * For PrestaShop 1.7, download releases tagged 2.x.y. The latest release for PrestaShop 1.7 is [version 2.5.3](https://github.com/razorpay/razorpay-prestashop/releases/download/2.5.3/razorpay.zip). > * For PrestaShop 8.0 and 8.1, download releases tagged 2.x.y. The latest release for PrestaShop 8.0 and 8.1 is [version 2.5.4](https://github.com/razorpay/razorpay-prestashop/releases). > > 2. Log in to your [PrestaShop account](https://addons.prestashop.com/en/). > > ![Prestashop Login](https://razorpay.com/docs/build/browser/assets/images/prestashop-login.jpg) > > 3. Navigate to the **Modules** tab and click **Add a New Module**. > > 4. Click **Browse** to open the Windows search on your computer. Select the ZIP file that you have downloaded and click **OK**. > > 5. Click **Upload this Module**. > > 6. Click **Install** to install the module. > > 7. Click **Configure** to configure the module. > > > [!WARNING] > > > > **Watch Out!** > > > > If the store is open while the module is not fully configured, deactivate it by clicking the green check. Reactivate the store by clicking the red X after the module configuration. > > > [!NOTE] > > > > **Handy Tips** > > > > Webhook is auto-configured when you enter and save the API key ID and secret on the plugin settings page. You need to verify if webhooks are enabled on your Razorpay [Dashboard](/docs/payments/payment-gateway/ecommerce-plugins/prestashop/troubleshooting-faqs#how-can-i-verify-if-webhooks-are-enabled). However, for versions lower than 2.5.0, you need to [configure webhooks manually](/docs/payments/payment-gateway/ecommerce-plugins/prestashop/troubleshooting-faqs#my-webhooks-are-not-auto-configured-since-i-am-not-using-the-upgraded-version-of-prestashop-how-do-i-manually-configure-webhooks). > > If you face any errors, refer to the [PrestaShop guide](https://addons.prestashop.com/en/content/21-how-to). ## 2. Test Integration After the integration is complete, a **Pay** button will appear on your web page/app. You need to click the button and make a test transaction to ensure that the integration is working as expected. You can start accepting actual payments from your customers once the test is successful. You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > You can track the payment status from the Dashboard or by polling APIs. > > > [tab] Verify Payment Status From Dashboard > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/prestashop/troubleshooting-faqs Troubleshoot common errors and find answers to frequently asked questions about PrestaShop Ecommerce Plugin integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] My Webhooks are not auto-configured since I am not using the upgraded version of PrestaShop. How do I manually configure webhooks? > > To set up webhooks: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings** section, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Click **+ Add New Webhook**. > > ![](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-1.jpg) > 4. In the **Webhook Setup** pop-up page: > 1. Enter the **URL** where you want to receive the webhook payload when an event is triggered. We recommended using an HTTPS URL. > > > [!NOTE] > > > > **Handy Tips** > > > > You can set up to **10 URLs** to receive Webhook notifications. Webhooks can only be delivered to public URLs. If you attempt to save a localhost endpoint as part of a webhook setup, you will notice an error. Know more about [testing webhooks on an application running on localhost](/docs/webhooks/validate-test#application-running-on-localhost). > > 2. Enter a **Secret** for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about [how to validate webhooks](/docs/webhooks/validate-test). > > > [!NOTE] > > > > **Handy Tips** > > > > * When setting up the webhook, you will be asked to specify a secret. Using this secret, you can validate that the webhook is from Razorpay. Entering the secret is optional but recommended. The secret should never be exposed publicly. > > * The webhook secret does not need to be the merchant secret key provided by Razorpay. > > 3. In the **Alert Email** field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook deactivation notifications to this email address. > 4. Select the required events from the list of **Active Events**. > 5. Click **Create Webhook**. > > ![](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-2.jpg) > 6. After you set a webhook, it appears on the list of webhooks. \\ > [accordion] How can I verify if webhooks are enabled? > > To verify if webhooks are enabled: > > 1. Log in to the Razorpay Dashboard and navigate to **Account & Settings**. > 2. In the **Website and app settings**, click **Webhooks**. > > ![Navigate to Webhooks](https://razorpay.com/docs/build/browser/assets/images/account-settings-webhooks.jpg) > 3. Select the relevant webhook **URL**. > 4. On the right panel, check if the status for `payment.authorized`, `refund.created` and `virtual_account.credited` is enabled. > > ![List of webhooks created](https://razorpay.com/docs/build/browser/assets/images/plugin-webhook-faq.jpg) > [accordion] What troubleshooting procedures should be carried out prior to initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Reinstall the Razorpay Prestashop plugin and ensure that your system meets all the requirements mentioned [here](/docs/payments/payment-links/whatsapp-bot#installation-and-configuration). > 2. We recommend you to keep your Razorpay Prestashop plugin up to date. You can find the latest versions [here](https://github.com/razorpay/razorpay-prestashop/releases). > 3. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * Razorpay Prestashop plugin version (PrestaShop 1.7.x, PrestaShop 1.6.x) > * PHP version > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Staging website credentials (login URL, login id, and password) > [accordion] Does the Prestashop plugin support 3 or 0 decimal unit currencies? > > The Prestashop plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). > [accordion] Why is the PAY button not visible when Razorpay is selected as a payment method? > > If the PAY button is not visible. Follow the steps given below: > > 1. Verify if the Razorpay scripts are loading. > * Place an order and select **Razorpay** as the payment option. > * Right-click on the page and choose **Inspect** โ†’ **Sources**. > * Check if **script.js** and **checkout.js** are loading under the loaded modules. > > ![Prestashop Razorpay pay button inspect](https://razorpay.com/docs/build/browser/assets/images/prestashop-script-checkout.jpg) > 2. If the scripts are not loading check hook configuration in Prestashop database: > * Open the Prestashop database and navigate to the **hook\_alias** table. > * Ensure that the name `displayHeader` has the alias set to `Header`. > 3. Update Razorpay module code (if the above step didn't work): > * In the Razorpay module code, ensure the hook name matches your alias name (e.g., `displayHeader` or its custom alias and function name as `hookDisplayHeader`). > > * Re-zip the Razorpay module and re-install it in your Prestashop.\\ > > Following these steps should make the Pay button appear correctly. If the issue persists, contact our [Support team](https://razorpay.com/support/). # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/shopify-cod Steps to integrate the Razorpay Payment Gateway with Shopify - Cash on Delivery. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [!WARNING] > > **Watch Out!** > > This is an on-demand feature. Write to us at [magic-checkout-support@razorpay.com](mailto:magic-checkout-support@razorpay.com) to integrate Razorpay - Cash on Delivery with your Shopify website. **Before you proceed:** * Sign up for [Razorpay account](https://dashboard.razorpay.com/signup) * Sign up for a [Shopify account](https://www.shopify.in). Follow the steps given below to integrate your Shopify website with the Razorpay - Cash on Delivery plugin. > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/shopify-cod#1-build-integration) > > Install and configure the Shopify COD plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/shopify-cod#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/shopify-cod#3-go-live-checklist) > > Check the go-live checklist. ## 1. Build Integration Follow the steps given below: > [accordion] 1 Integration Steps > > > [!NOTE] > > > > **Handy Tips** > > > > If you are an existing Razorpay user, you can directly begin the integration process from step 4. > > 1. [Sign up](https://dashboard.razorpay.com/signup?) for a Razorpay account. > > 2. Submit your KYC, and if we need any further clarification, we will reach out to you on WhatsApp, SMS and email. Once our team completes KYC verification and you are enabled to accept payments, we will send a confirmation on WhatsApp, SMS and email. > > 3. Create a [Shopify account](https://www.shopify.in). > > 4. **Install** [Razorpay - Cash on Delivery](https://apps.shopify.com/razorpay-cash-on-delivery) from the Shopify app store. > > ![Shopify App Install](https://razorpay.com/docs/build/browser/assets/images/shopify-store-cod-install.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > If you have multiple stores, select the store for which you want to install Razorpay - Cash on Delivery. > > 5. You will be redirected to Shopify home screen. Click **Install app**. > > ![Shopify Install](https://razorpay.com/docs/build/browser/assets/images/shopify-cod-install.jpg) > > You will be redirected to a landing page. Click **I am an existing user**. > > ![Existing Merchant Shopify](https://razorpay.com/docs/build/browser/assets/images/shopify-cod-existing-merchant.jpg) > > 6. Scroll down and click **Login**. Log in to the Razorpay Dashboard. > > > [!NOTE] > > > > **Handy Tips** > > > > Make sure you log in with **owner** credentials to connect Razorpay with Shopify successfully. > > ![Shopify login](https://razorpay.com/docs/build/browser/assets/images/shopify-login-v2.gif) > > 7. Click **Activate Razorpay - Cash on Delivery** on the activation screen on your Shopify Dashboard. \\ > > ![Shopify Authorize](https://razorpay.com/docs/build/browser/assets/images/cod-activate-rzp-new.jpg) > > Razorpay - Cash on Delivery now appears as a Payment Gateway on your Shopify Store checkout.\\ > > ![Shopify Checkout](https://razorpay.com/docs/build/browser/assets/images/shopify-cod-v2-checkout.jpg) > > This completes your integration. For more information, see [Shopify FAQs](/docs/payments/payment-gateway/ecommerce-plugins/shopify/faqs). ## 2. Test Integration After the integration is complete, follow the steps given below: > [accordion] 1 Enable Test Mode in Shopify Dashboard > > After the integration is complete, you need to ensure the integration is working as expected. You can start accepting actual payments once the test mode transaction is successful.\\ > > Follow the steps given below to test a transaction: > > 1. Log in to [Shopify store](https://accounts.shopify.com/lookup?rid=f19e1541-cd24-4856-a398-156d2ed5d56f). > 2. Navigate to **Settings** โ†’ **Payments**. > 3. Click **Manage** on the Razorpay - Cash on Delivery app on the **Supported payment methods** section. > > ![Shopify go live v2](https://razorpay.com/docs/build/browser/assets/images/shopify-cod-go-live-v2.jpg) > 4. Select **Enable test mode** and click **Save**. > > ![Shopify go live v2 save test](https://razorpay.com/docs/build/browser/assets/images/shopify-cod-go-live-test.jpg) > [accordion] 2 Make a Test Payment > > 1. Click **Buy it now**. > > ![Shopify checkout](https://razorpay.com/docs/build/browser/assets/images/buy-now-shopify-cod.jpg) > 2. Fill in your **Contact** and **Delivery** details. > > ![Shopify contact details](https://razorpay.com/docs/build/browser/assets/images/cod-shipping-contact-details.jpg) > > Select **Cash on Delivery** as Payment method and select **Billing address**. > > ![Shopify contact details](https://razorpay.com/docs/build/browser/assets/images/shopify-cod-shipping-contact-details1.jpg) > 3. Click **Pay now** and the order is placed. > [accordion] 3 Verify Payment Status > > You can track the payment status from the Razorpay Dashboard, subscribe to the Webhook event or poll our APIs. > > **Verify Payment Status From Dashboard** > > 1. Log in to the Dashboard and navigate to **Transactions** โ†’ **Payments**. > 2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Switch from Test mode to Live mode > > You can perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the installation and integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > To switch from **Test Mode** to **Live Mode**: > > 1. Log in to your [Shopify store](https://accounts.shopify.com/lookup?rid=f19e1541-cd24-4856-a398-156d2ed5d56f). > 2. Navigate to **Settings** โ†’ **Payments**. > 3. On the **Supported payment methods** section, click **Manage** on the **Razorpay - Cash on Delivery** app. > > ![Shopify go live v2](https://razorpay.com/docs/build/browser/assets/images/shopify-cod-go-live-v2.jpg) > 4. Clear **Enable test mode** and click **Save**. > > ![Shopify go live v2 save](https://razorpay.com/docs/build/browser/assets/images/shopify-cod-go-live-test.jpg) > > You can now start accepting actual payments on your Shopify store. ## Support Queries: If you have queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/) ### Related Information [Shopify - Razorpay Secure](/docs/payments/payment-gateway/ecommerce-plugins/shopify) # WHMCS Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/whmcs Check the prerequisites before you integrate your WHMCS website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [WHMCS Changelog](/docs/payments/changelog#whmcs) > > Discover new features, updates and deprecations related to the Razorpay WHMCS plugin (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/whmcs/faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay WHMCS plugin. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. ## Supported Versions We support the following versions of WHMCS: WHMCS 6, WHMCS 7 and WHMCS 8. [Video Tutorial](https://www.youtube.com/embed/BjRz4vg38gA?si=CcfeDmiI1JDsue-i) Video Tutorial Watch the video before you start integrating the WHMCS plugin with Payment Gateway. > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/whmcs/integration-steps) > > Check the steps to integrate the WHMCS plugin with Payment Gateway. ## Supported Products Razorpay WHMCS Plugin is only supported on Web Standard Checkout and the following products: | Payment Gateway | Route | Subscriptions | | - | - | - | | โœ“ | x | x | ## Support * Queries: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-whmcs/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/whmcs/faqs Find answers to frequently asked questions about WHMCS plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] My customer made a payment on my WHMCS site. However, the payment is in the authorized state and did not get captured. The payment status is not reflecting on WHMCS. How to resolve this? > > * Cause: This error occurs with Modulesgarden-enabled WHMCS installation. Modulesgarden plugins update `system_url` from example.com to example.com/, which changes the URL from `"example.com/modules/gateways/callback/razorpay.php"` to `"example.com/modules/gateways/callback/razorpay.php"`. > Due to this, the HTTP POST request stops working. > > * Resolution: To solve this issue, remove "/" in `"/modules/gateways/callback/razorpay.php"`. > [accordion] What troubleshooting procedures should be carried out prior to initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Reinstall the Razorpay WHMCS plugin and ensure that your system meets all the requirements mentioned [here](/docs/payments/payment-gateway/ecommerce-plugins/whmcs/integration-steps). > 2. We recommend you to keep your Razorpay WHMCS plugin up to date. You can find the latest versions [here](https://github.com/razorpay/razorpay-whmcs/releases). > 3. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * Razorpay WHMCS plugin version > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Staging website credentials (login URL, login id, and password) > [accordion] Does the WHMCS plugin support 3 or 0 decimal unit currencies? > > The WHMCS plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/whmcs/integration-steps Steps to integrate your WHMCS website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow the steps given below to integrate Razorpay Payment Gateway with your WHMCS website. > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/whmcs/integration-steps#1-build-integration) > > Install and configure the WordPress plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/whmcs/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/whmcs/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to integrate Razorpay Payment Gateway with WHMCS Website](https://www.youtube.com/embed/BjRz4vg38gA) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Installation and Configuration > > 1. Ensure you have installed the latest version of WHMCS. > 2. Download the Source code zip file of the required version of the plugin from the Releases section in GitHub. > * If you are using WHMCS 5, download the release tagged [version 1.0.3](https://github.com/razorpay/razorpay-whmcs/releases/tag/v1.0.3). > * If you are using WHMCS 6, 7 or 8, download the release tagged [version 2.0.1](https://github.com/razorpay/razorpay-whmcs/releases/tag/2.0.1). > 3. Unzip and upload the repository contents to your WHMCS Installation directory. That is, the contents of the module folder from the repository go into the module folder of your WHMCS Installation directory. > 4. Log in to your site as the WHMCS administrator. This is done by adding `/admin` to the URL where you have installed WHMCS, for example, `www.example.com/whmcs/admin`. > 5. Navigate to **Setup** โ†’ **Payments** โ†’ **Payment Gateways**. > 6. Select Razorpay from the drop-down list and **Activate** it. > 7. Enter the \[KEY\_ID] and \[KEY\_SECRET]. You can generate these from your Razorpay Dashboard. > 8. Set **Convert for Processing** to INR if your store has a different default currency. In this case, update the Exchange Rate in your currency management settings. > 9. Click **Save Changes**. > [accordion] 2 Configure Webhooks > > To receive webhook notifications, you should configure webhooks on your WHMCS site and the Razorpay Dashboard. > > > [tab] WHMCS Site > > > > To set up webhooks in the WHMCS site: > > > > 1. Log in to your site as the WHMCS administrator. > > 2. Navigate to **System Settings** โ†’ **Payment Gateways**. > > 3. Click **Manage Existing Gateways**. > > 4. Select the **Enable Webhook** option. > > 5. Copy the URL that appears on the screen. In the Razorpay Dashboard, configure this URL in **Accounts & Settings** โ†’ **Webhooks**. Know more about how to [setup webhooks](/docs/webhooks). > > 6. Enter the secret. > > > > ![Setting up Webhooks on WHMCS site](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-whmcs-whmcs-webhooks.jpg) > > > [tab] Dashboard > > > > To set up webhooks in the Razorpay Dashboard: > > > > 1. Log in to the Razorpay Dashboard. > > 2. Navigate to **Accounts & Settings** โ†’ **Webhooks**. > > 3. Click + Add New Webhook. > > 4. In the Webhook Setup modal: > > * Paste the URL copied from the WHMCS site. > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > Webhooks can only be delivered to public URLs. You will notice an error if you attempt to save a localhost endpoint as part of a webhook setup. Know about [validating and testing webhooks for alternatives to localhost](/docs/webhooks/validate-test#test-webhooks). > > > > * Enter the Secret you provided on the WHMCS site. The secret is used to validate where the webhook is from Razorpay. Do not expose the secret publicly. Know about how to [validate webhooks](/docs/webhooks/validate-test#validate-webhooks). > > > > * In the **Alert Email field**, enter the email address to which notifications must be sent in case of webhook failure. > > > > * Select the `order.paid` event from the list of **Active Events**. > > > > 5. Click **Create Webhook**. > > > > ![Setting up Webhooks on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-whmcs-rzp-webhooks.jpg) ## 2. Test Integration After the integration, a **Pay** button will appear on your web page/app. You need to click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual payments from your customers once the test is successful. You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). # WordPress Plugin Prerequisites Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/wordpress Check the prerequisites before you integrate your WordPress website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [card] [Wordpress Changelog](/docs/payments/changelog#wordpress) > > Discover new features, updates and deprecations related to the Razorpay Wordpress integration (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/payment-gateway/ecommerce-plugins/wordpress/faqs) > > Troubleshoot common error scenarios and find answers to frequently asked questions about the Razorpay WordPress plugin. **Before you proceed:** * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the [API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration. ## Supported Versions * You must be updated to WordPress v3.0.1 or higher. * If you are using WooCommerce with your WordPress site, use the [WooCommerce plugin](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce). [Video Tutorial](https://www.youtube.com/embed/a1mAm6EiZ6I?si=7t31YdhUjNS0MHRH) Video Tutorial Watch the video before you start integrating the Wordpress plugin with Payment Gateway > [card] [Integration Steps](/docs/payments/payment-gateway/ecommerce-plugins/wordpress/integration-steps) > > Check the steps to integrate the Wordpress plugin with Payment Gateway ## Support * Queries: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-quick-payments). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # Troubleshooting & FAQs Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/wordpress/faqs Find answers to frequently asked questions about WordPress plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] I am unable to view the custom fields under the screen options menu. What should I do? > > In case the custom fields do not appear under the **Screen Option** menu: > > * Check if the [Advanced Custom Fields plugin](https://www.google.com/url?q=https://wordpress.org/plugins/advanced-custom-fields/\&sa=D\&source=docs\&ust=1681120916936709\&usg=AOvVaw1OBFrHD68J87tNpMeGNIfp) is activated on your website. If yes, then deactivate it from your WordPress plugins list. > * Or add the following code to your WordPress themeโ€™s **functions.php** file: > > ```php Add custom fields theme={null} > add_filter('acf/settings/remove_wp_meta_box', '__return_false'); > ``` > [accordion] What troubleshooting procedures should be carried out prior to initiating a support ticket? > > Follow the troubleshooting steps given below: > > 1. Reinstall the Razorpay Quick Payments plugin. > 2. We recommend you to keep your WordPress and Razorpay Quick Payments plugins up to date. You can find the latest versions [here](https://github.com/razorpay/razorpay-quick-payments/releases). > 3. Ensure your current theme is compatible with the Razorpay Quick Payments plugin. If not, switch to the default WordPress theme and provide us with the name of your current theme. > 4. If the issue persists after following these steps, contact our [Support team](https://razorpay.com/support/). Provide the following information while creating a ticket: > * WordPress version > * Razorpay Quick Payments plugin version > * PHP version > * WordPress theme > * Steps to reproduce the issue (Screen recording/Screenshots) > * Error logs, if any > * Staging website credentials (login URL, login id, and password) > [accordion] Does the Wordpress plugin support 3 or 0 decimal unit currencies? > > The Wordpress plugin currently supports only currencies that use 2 decimal units. For example: USD, EUR, INR. It does not support currencies with 0 decimal (for example, JPY) or 3 decimal units (for example, BHD). # Integration Steps Source: https://razorpay.com/docs/payments/payment-gateway/ecommerce-plugins/wordpress/integration-steps Steps to integrate your WordPress website with Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Follow the steps given below to integrate Razorpay Payment Gateway with your WordPress website. > [card] [1. Build Integration](/docs/payments/payment-gateway/ecommerce-plugins/wordpress/integration-steps#1-build-integration) > > Install and configure the WordPress plugin. > [card] [2. Test Integration](/docs/payments/payment-gateway/ecommerce-plugins/wordpress/integration-steps#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-Live Checklist](/docs/payments/payment-gateway/ecommerce-plugins/wordpress/integration-steps#3-go-live-checklist) > > Check the go-live checklist. [How to Integrate Razorpay Payment Gateway on WordPress Website](https://www.youtube.com/embed/a1mAm6EiZ6I) ## 1. Build Integration Follow the steps given below: > [accordion] 1 Installation and Configuration > > > [!WARNING] > > > > **Watch Out!** > > > > This plugin does not support dynamic amount calculation from your webpage. You can accept only fixed amounts using this plugin. Explore our [WooCommerce plugin](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce) or [Payment Button plugin](/docs/payments/payment-button/supported-platforms/wordpress) for your use case. > > 1. [Download the plugin](https://wordpress.org/plugins/razorpay-quick-payments/) from the WordPress Plugin Directory. > 2. Open your WordPress site and navigate to **Plugins** โ†’ **Add New**. > 3. Upload the plugin. > > ![Upload plugin screen](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-wordpress-upload-plugin.jpg) > 4. Click **Activate Plugin**. > > ![Activate plugin](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-wordpress-activate-plugin.jpg) > 5. Click **Settings**. > > ![Plugin settings](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-wordpress-click-settings.jpg) > 6. Make the following changes in the **Edit Settings** screen: > 1. Select **Enable Razorpay Payment Module**. > 2. Edit **Title** and **Description** as required. > 3. Add your \[KEY\_ID] and \[KEY\_SECRET]. These can be generated from your Razorpay Dashboard. > 4. Set the **Payment Action** to **Authorize and Capture** to auto-capture payments. > 5. Click **Save Changes**. > > ![Razorpay PG save settings](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-wordpress-edit-settings.jpg) > [accordion] 2 Add Custom Fields > > 1. In your WordPress site, open the page or blog post where you want the button to appear. > > 2. Click the more icon and select **Preferences**. > > ![Select Preferences](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-wordpress-options.jpg) > > 3. Click **Panels** and enable the **Custom Fields** checkbox in the **Additional** section. Now you will have the option to add custom fields on your page/blog post. > > ![Preferences custom fields](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-wordpress-custom-fields.jpg) > > 4. Scroll down the current page till you see the **Custom fields** section. > > ![Custom field section](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-wordpress-custom-fields-scroll.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > If you are using WordPress 4.8 or later, the custom fields can be added via **Screen Option**. If you are still not able to view the custom field, refer to the [FAQs](/docs/payments/payment-gateway/ecommerce-plugins/wordpress/faqs#i-am-unable-to-view-the-custom-fields-under-the-screen-options-menu-what-should-i-do). > > 1. Add the following three custom fields as metadata: > 1. amount (in INR). > 2. name (name of the product). > 3. description (description of the product that is being sold). > > ![Custom fields amount name description](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-wordpress-custom-fields-added.jpg) > > 1. Add the `[RZP]`(shortcode indicated by square brackets) in the content section to display the **Pay with Razorpay** button anywhere. > > ![RZP shortcode](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-wordpress-shortcode.jpg) > > 2. Publish or update the page. The page appears with the **Pay with Razorpay** button. > > ![Razorpay checkout](https://razorpay.com/docs/build/browser/assets/images/ecommerce-plugins-wordpress-checkout.gif) > > > [!WARNING] > > > > **Watch Out!** > > > > If the payment button does not appear, ensure the Button script is placed inside the `
` tag. This issue might be caused by certain cache plugins (for example, SpeedyCache) or Optimizer plugins (for example, SiteGround Optimizer). To resolve it, please deactivate these plugins. Once they are deactivated, the payment button should work properly. ## 2. Test Integration After the integration, a **Pay** button will appear on your web page/app. You need to click the button and make a test transaction to ensure the integration works as expected. You can start accepting actual payments from your customers once the test is successful. ![Pay with Razorpay button](https://razorpay.com/docs/build/browser/assets/images/wordpress-pay.jpg) You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. > [accordion] Supported Payment Methods > > After the integration is complete, a **Pay** button appears on your webpage/app. > > ![Test integration on your webpage/app](https://razorpay.com/docs/build/browser/assets/images/test-int.gif) > > Click the button and make a test transaction to ensure the integration is working as expected. You can start accepting actual payments from your customers once the test transaction is successful. > > > [!WARNING] > > > > **Watch Out!** > > > > This is a mock payment page that uses your test API keys, test card and payment details. > > > > * Ensure you have entered only your [Test Mode API keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) in the Checkout code. > > * Test mode features a mock bank page with **Success** and **Failure** buttons to replicate the live payment experience. > > * No real money is deducted due to the usage of test API keys. This is a simulated transaction. > > Following are all the payment modes that the customer can use to complete the payment on the Checkout. Some of them are available by default, while others may require approval from us. Raise a request from the Dashboard to enable such payment methods. > > | Payment Method | Code | Availability | > | - | - | - | > | [Debit Card](/docs/payments/payment-methods/cards) | `debit` | โœ“ | > | [Credit Card](/docs/payments/payment-methods/cards) | `credit` | โœ“ | > | [Netbanking](/docs/payments/payment-methods/netbanking) | `netbanking` | โœ“ | > | [UPI](/docs/payments/payment-methods/upi) | `upi` | โœ“ | > | EMI - [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi) and [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi) | `emi` | โœ“ | > | [Wallet](/docs/payments/payment-methods/wallets) | `wallet` | โœ“ | > | [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) | `cardless_emi` | Requires [Approval](https://razorpay.com/support). | > | [Bank Transfer](/docs/payments/payment-methods/bank-transfer) | `bank_transfer` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Emandate](/docs/payments/recurring-payments/emandate/integrate) | `emandate` | Requires [Approval](https://razorpay.com/support) and Integration. | > | [Pay Later](/docs/payments/payment-methods/pay-later) | `paylater` | Requires [Approval](https://razorpay.com/support). | > > You can make test payments using one of the payment methods configured at the Checkout. > > > [accordion] Netbanking > > > > You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the bank login portals. > > > > Check the list of [supported banks](/docs/payments/payment-methods/netbanking#supported-banks). > > > [accordion] UPI > > > > You can enter one of the following UPI IDs: > > > > * `success@razorpay`: To make the payment successful. > > * `failure@razorpay`: To fail the payment. > > > > Check the list of [supported UPI flows](/docs/payments/payment-methods/upi). > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. > > > [accordion] Cards > > > > You can use the following test cards to test transactions for your integration in Test Mode. > > > > ### Domestic Cards > > > > Use the following test cards for Indian payments: > > > > | Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Visa | 4100 2800 0000 1007 | Use a random CVV and any future date ^^^^^ | > > | Mastercard | 5500 6700 0000 1002 | | > > | RuPay | 6527 6589 0000 1005 | | > > | Diners | 3608 280009 1007 | | > > | Amex | 3402 560004 01007 | | > > > > #### Error Scenarios > > > > Use these test cards to simulate payment errors. See the [complete list](/docs/payments/payments/test-card-details#error-scenarios) of error test cards with detailed scenarios. > > Check the following lists: > > > > * [Supported Card Networks](/docs/payments/payment-methods/cards). > > * [Cards Error Codes](/docs/errors/payments/cards). > > > > ### International Cards > > > > Use the following test cards to test international payments. Use any valid expiration date in the future in the MM/YY format and any random CVV to create a successful payment. > > > > | Card Network | Card Number | CVV & Expiry Date | > > | - | - | - | > > | Mastercard | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | Use a random CVV and any future date ^^ | > > | Visa | 4012 8888 8888 1881 | | > > > > Check the list of [supported card networks](/docs/payments/payment-methods/cards). > > > [accordion] Wallet > > > > You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment `success` or a `failure`. Since this is Test Mode, we will not redirect you to the wallet login portals. > > > > Check the list of [supported wallets](/docs/payments/payment-methods/wallets#supported-wallets). > [accordion] Verify Payment Status > > > [!NOTE] > > > > **Handy Tips** > > > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > > > [accordion] You can track the payment status in three ways: > > > > > [tab] Verify Status from Dashboard > > > > > > To verify the payment status from the Razorpay Dashboard: > > > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > > > [tab] Subscribe to Webhook Events > > > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > > > #### Example > > > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > > > [tab] Poll APIs > > > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ## 3. Go-live Checklist Follow these steps before taking the integration live: > [accordion] 1 Accept Live Payments > > Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > > > [!WARNING] > > > > **Watch Out!** > > > > Ensure you are switching your test API keys with API keys generated in Live Mode. > > To generate API Keys in Live Mode on your Razorpay Dashboard: > > 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. > 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. > 3. Download the keys and save them securely. > 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. > [accordion] 2 Payment Capture > > After payment is `authorized`, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time. > > > [!WARNING] > > > > **Watch Out** > > > > * You should deliver the products or services to your customers only after the payment is captured. Razorpay automatically refunds all the uncaptured payments. > > * You can track the payment status using our [Fetch a Payment API](/docs/api/payments/fetch-with-id) or webhooks. > > > [tab] Auto-capture Payments (Recommended) > > > > Authorized payments can be automatically captured. You can auto-capture all payments [using global settings](/docs/payments/payments/capture-settings#auto-capture-all-payments) on the Razorpay Dashboard. Know more about [capture settings for payments](/docs/payments/payments/capture-settings). > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > Payment capture settings work only if you have integrated with Orders API on your server side. Know more about the [Orders API](/docs/api/orders/create). > > > [tab] Manually Capture Payments > > > > Each authorized payment can also be captured individually. You can manually capture payments using [Payment Capture API](/docs/api/payments/capture) or [Dashboard](/docs/payments/payments/dashboard#manually-capture-payments). Know more about [capture settings for payments](/docs/payments/payments/capture-settings). # About Payment Links Source: https://razorpay.com/docs/payments/payment-links Create Razorpay Payments Links and share them with your customers from the Razorpay Dashboard or using APIs and start accepting payments. Check the advantages, payment methods, international currency support and more. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Razorpay Payment Links let you accept payments without a website or app. Generate a unique link from your [Dashboard](/docs/payments/payment-links/create) or via [APIs](/docs/api/payments/payment-links/create-standard) and share it with customers via email, SMS, or social media. Customers can use these links to pay securely and easily. You can manage all Payment Links directly from the Dashboard - create, cancel, duplicate, search, or update them. You can also get instant notifications by subscribing to Webhook events. Most of these actions can also be performed using APIs. [Watch this video to know more about Payment Links.](https://www.youtube.com/embed/nPpua5Cs-6k?si=s-Jc7qeGklVWo6ET) [Watch this video to know more about Payment Links.](https://www.youtube.com/watch?v=nPpua5Cs-6k) [Watch this video about Payment Links in Hindi.](https://www.youtube.com/embed/pWgJa-d2vzg?si=zVsSc0nsboFWjrIF) [Watch this video about Payment Links in Hindi.](https://www.youtube.com/watch?v=pWgJa-d2vzg) ## Advantages
  • **Create-to-Collect in a matter of minutes**: Create Payment Links easily with a few clicks and share them with customers.
  • **Automatic sharing of link**: The customers receive a Payment Link on SMS or email using which they can quickly pay.
  • **Set expiry date**: Set due dates for Payment Links after which the links expire.
  • **Partial payments**: Allow your customers to make [partial payments](/docs/payments/payment-links/partial-payments). You can also decide the first installment amount to be paid by customers in case of partial payments.
  • **Set reminders**: Send automated SMS to your customers to remind them about outstanding payments.
  • **Easy integration using APIs**: Seamlessly integrate Payment Links with your systems using APIs.
## List of Supported Payment Methods **Online Payment** \ Customers can make online payments using [Card](/docs/payments/payment-methods/cards), [UPI](/docs/payments/payment-methods/upi), [NetBanking](/docs/payments/payment-methods/netbanking), [Wallet](/docs/payments/payment-methods/wallets/amazon-pay), [EMI](/docs/payments/payment-methods/emi/debit-card-emi), [Pay Later](/docs/payments/payment-methods/pay-later) and [Bank Transfer](/docs/payments/payment-links/bank-transfer) options. ## International Currency Support You can create Payment Links in any of the supported [international currencies](/docs/payments/international-payments#supported-currencies) using the Dashboard or APIs. ### Address Verification System If you are accepting international payments, you can use Razorpay's Address Verification System (AVS). AVS verifies if a customer's billing address (postal code and the billing street address) matches the billing address on file with the card issuer. Based on the response from the issuer, Razorpay will accept or cancel the transaction. This helps in the prevention of fraud in international payments. Know more about [Address Verification System](/docs/payments/international-payments/address-verification-system). ## Get Started Ensure you have a [Razorpay account](/docs/payments/set-up). Log in to the Dashboard and click Payment Links. ## Integrate With Existing Systems You can easily integrate Razorpay Payment Links with your existing order management and billing solution using the Dashboard. With API integration, a Payment Link can be created as soon as an order is created on your order management systems. ## Supported Platforms Razorpay Payment Links is supported on the following platforms: > [tab] Standard Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | > [tab] Custom Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | x | x | x | x | #### Related Information
  • [How Payment Links Work](/docs/payments/payment-links/how-it-works)
  • [Standard Payment Links](/docs/payments/payment-links/standard)
  • [UPI Payment Links](/docs/payments/payment-links/upi)
  • [Payment Links States](/docs/payments/payment-links/states)
  • [Create a Payment Link](/docs/payments/payment-links/create)
  • [Payment Links APIs](/docs/payments/payment-links/apis)
  • [FAQs](/docs/payments/payment-links/faqs)
# Create Payment Links in Batches Source: https://razorpay.com/docs/payments/payment-links/batch Generate Razorpay Payment Links in bulk using the Batch Upload feature. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can generate and process Payment Links in batches on the Dashboard and save time, eliminating the hassle of creating multiple individual links. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ## Workflow > [accordion] Download Batch File Format > > Download the sample batch file from the Dashboard. The batch file is a simple **.xlsx** or **.csv** file. > > ![Download Sample file from Dashboard](https://razorpay.com/docs/build/browser/assets/images/batch-pl-download.jpg) > [accordion] Add Payment Details in Batch File > > > [!NOTE] > > > > **Handy Tips** > > > > * The size of a batch file can be up to 10 MB. You can add up to 50,000 rows in a particular file. The Payment Links are processed in the same sequence as listed in the file. > > * The Field names/headers in a batch should not be modified. Modifications can cause upload failure. > > Watch this video to see how to add payment details in the batch file. > > [YouTube video player](https://www.youtube.com/embed/aMsG7zDLbww) > > The batch file contains all the necessary details to create Payment Links. Given below are the required fields for creating a batch file: > > `Reference Id` *optional* > : Enter a unique number for each Payment Link. This is mapped to the `receipt` value provided while creating an Order on your server-side. This field has a limit of 40 characters. > > `Customer Name` *optional* > : Name of the customer. This field has a limit of 40 characters. > > `Customer Email` *optional* > : Email address of the customer. > > `Customer Contact` *optional* > : Contact number of the customer. You can enter domestic as well as international numbers. The expected format of the phone number is `+ {country code}{phone number}`. If the country code is not specified, `91` will be used as the default value. > > `Upi Link` *mandatory* > : Determines the type of Payment Link to be created. Possible values: > > * `0`: Indicates a Standard Payment Link will be created. > * `1`: Indicates a UPI Payment Link will be created. > > `Currency` *optional* > : Defaults to `INR`. We also accept payments in international currencies. > > `Amount` *mandatory* > : Amount to be paid by the customer in currency subunits. That is, if currency selected is 'INR', the amount must be in paise. For example, enter 29995 for an amount of โ‚น299.95. The minimum amount should be โ‚น100, that is 10000. > > `Description` *mandatory* > : Brief description of the Payment Link. > > `Expire by` *optional* > : Date and Time at which the Payment Link expires. Supported formats:\ > `DD-MM-YYYY HH:mm:ss` (For example, 14-12-2018 18:45:00)\ > `DD-MM-YYYY HH:mm`\ > `DD-MM-YYYY`\\ > > `Partial Payment` *optional* > : Indicates whether partial payments are enabled. Set to `1` to enable partial payments and `0` to disable.\\ > > > [!NOTE] > > > > **Handy Tips**\ > > Partial payments are not allowed for UPI Payment Links. > > `First Payment Min Amount (In Paise)` *optional* > : Minimum amount to be paid by the customer as the first partial payment. For example, if an amount of โ‚น7,000 is to be received from the customer in two installments of #1 - โ‚น5,000 and #2 - โ‚น2,000, you can set this value as `500000`. > > `Notes` *optional* > : The notes object is a set of key-value pairs used to store additional information about the entity. It can hold a maximum of 15 key-value pairs, each 255 characters long (maximum). > > Ensure that the date format does not get modified. Watch this video to see how to fix date formatting issues: > > ![Fix date formatting issues in batch file](https://razorpay.com/docs/build/browser/assets/images/payment-links-batch-batch-pl.gif) > [accordion] Upload Batch File on Dashboard > > **To upload a batch file:** > > 1. Navigate to **Payment Links** โ†’ **Batch Uploads**. > 2. Click the **Click here to upload** button. > > ![Upload batch file button on Dashboard](https://razorpay.com/docs/build/browser/assets/images/pl-batch-upload-click.jpg) > > 3. On the pop-up page, drag and drop the file over the highlighted area. Alternatively, click the **Click to Upload** option to select your file from your system. > > ![Batch upload page with Click to Upload button](https://razorpay.com/docs/build/browser/assets/images/batch_pl.jpg) > > The file is validated and uploaded to the Razorpay server. After the file is successfully uploaded, a snippet view of the file is displayed in the **Batch Upload** pop-up page. > > #### Add Details to Batch Upload Pop-up Page > > **To add details to Batch upload:** > > 1. Enter a relevant file name in the **BATCH FILE NAME** field. > 2. Select **Send auto reminders** if you want to send automatic reminders for all Payment Links. By default, reminders are not enabled during batch creation of Payment Links. > 3. Follow these steps to determine whether the links should be sent immediately or later. Also, select the medium of link sharing: > > * If you want to send links immediately, select **via SMS** and/or **via Email** next to the **NOTIFY** check box options and click **Create**. > * If you want to send them later, do not select any medium and click **Create**. > > ![Add details to batch upload pop-up page](https://razorpay.com/docs/build/browser/assets/images/batch_create_pl.jpg) > > Know how to [handle errors](/docs/payments/smart-collect/update-expiry/bulk#step-5-handle-errors) that occur during batch upload. > [accordion] Perform Post-batch Creation Actions > > After the batch is created, you can see a **Batch Created Successfully** pop-up page. Click **Close** and reload the page. The newly created batch file will appear in the list of **Batch Uploads**. > > The **Batch Uploads** screen displays the following fields: > > ![Perform Post batch creation actions page](https://razorpay.com/docs/build/browser/assets/images/payment-links-batch-screen.jpg) > > | Field | Descriptions | > | - | - | > | Batch ID | Unique identifier of a batch upload. | > | Batch Name | Name of the batch file. | > | Count | The number of processed rows in a batch. | > | Status | Current [state](#batch-file-states) of the batch file. | > | Actions | The operations you can perform on a particular batch file. For example, Download Report File and Send all links. | > > Watch this video to see how to generate the batch file report: > > [YouTube video player](https://www.youtube.com/embed/IobQMjW0XUs) > > **To view more details about the batch file:** > > 1. Click the **Download** button to download the **Batch File Report**. This report provides you with details of the links created. Also, it displays any errors that occurred during the process. > > > [accordion] Batch File States > > > > The batch file states are explained in the table given below: > > > > | State | Description | > > | - | - | > > | **Created** | You have successfully uploaded the file. No action has been performed on the file by us. | > > | **Processing** | We are processing the file. | > > | **Processed** | The file has been processed by us. | > > > > > [!NOTE] > > > > > > **Handy Tips** > > > > > > * The **Processed** state does not mean all rows in the file were successfully processed. It just means the file was successfully processed, with or without errors. > > > * Download the **Bulk Upload** report to check for errors. You can correct these errors and upload the data again in another file. > > 2. Click the Batch ID to view the **Total rows processed**, **Payment Links created**, and the number of **Paid** and **Expired** links. You can also view the **Status** and **Created At** information of the batch. The details of individual Payment Links created from the batch are also displayed here. > > ![Batch file status page](https://razorpay.com/docs/build/browser/assets/images/batch_details.jpg) > > > [accordion] Send Unsent Payment Links > > > > After a batch is successfully created and is in the **Processed** state, you can see either an **All links sent** or a **Send all links** option under the **Actions** based on your notification choice above. > > > > To send the Payment Links: \\ > > > > 1. Click the **Send all links** button. > > 2. Select **Send SMS** and/or **Send Email** on the **Send Reminder?** pop-up page that appears. > > 3. Click **Yes, Send all**. This enables Razorpay to process and issue Payment Links to their respective recipients as defined in the batch file. > [accordion] Handle Errors > > Batch file errors are detected during file upload. You can also download the batch file report after the upload to check for errors. > > A processed batch file does not necessarily mean that all Payment Links were created successfully. There is a chance that a few Payment Links did not get created because of certain issues in the entered data. For example, data was missing in a few fields. > > Download the **Batch Report** to understand the reason for the error. This contains the following additional fields to help you check if a Payment Link was issued for a row or not. > > | Additional Fields | Datatype | Description | > | - | - | - | > | Status | *string/null* | This indicates the processing status of the row. It can either be "success" or "failed". | > | Payment Link ID | *string/null* | The unique identifier of the Payment Link. This is null/empty if there are errors during the creation. | > | Payment Link Short URL | *string/null* | The URL of the Payment Link. This is null/empty if there are errors during the creation. | > | Error Code | *string/null* | In case of an error, this column has an error code. | > | Error Description | *string/null* | In case of an error, this column has the error message. | > > To fix the errors, make the required changes and re-upload the batch file. > > Watch this video to see how to handle errors found on the batch file report. > > [YouTube video player](https://www.youtube.com/embed/N2_lrWc-rEw) ### Related Information * [How Payment Links Work](/docs/payments/payment-links/how-it-works) * [Payment Links States](/docs/payments/payment-links/states) * [Create a Payment Link](/docs/payments/payment-links/create) * [FAQs](/docs/payments/payment-links/faqs) # Cancel a Payment Link Source: https://razorpay.com/docs/payments/payment-links/cancel Cancel Payment Links that are in the created state from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can cancel Payment Links issued to your customers. Your customers will not be able to make payments using the cancelled links. > [!NOTE] > > **Handy Tips** > > You can only cancel Payment Links that are in the `created` state. ## Cancel a Payment Link From Dashboard Watch this video to see how to cancel a Payment Link.\ [YouTube video player](https://www.youtube.com/embed/m8L41QL7Dlg?si=PVZdSIB7ctmRkZ9U) To cancel a Payment Link: \ 1. Log in to the Dashboard. 2. Navigate to **Payment Links**. 3. Click on the Payment Link you want to cancel. 4. Click **Cancel Link**. 5. Click **Yes, Cancel**. ## Cancel a Payment Link Using API You can cancel a Payment Link in `created` state using [this](/docs/api/payments/payment-links/cancel-standard) API. #### Related Information
  • [Create a Payment Link](/docs/payments/payment-links/create)
  • [FAQs](/docs/payments/payment-links/faqs)
  • [Payment Links APIs](/docs/payments/payment-links/apis)
# Create a Payment Link Source: https://razorpay.com/docs/payments/payment-links/create Create Standard Payment Links and UPI Payment Links. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can create 2 types of Payment Links using the Razorpay Dashboard: * [Standard Payment Links](#create-a-standard-payment-link-from-dashboard) * [UPI Payment Links](#create-a-upi-payment-link-from-dashboard) ## Create a Standard Payment Link From Dashboard You can create a Standard Payment Link to accept payments from your customers. When you create a Payment Link, it moves to **Issued** state by default. Watch this video to see how to create a Standard Payment Link.\ [YouTube video player](https://www.youtube.com/embed/_FrOVkuqGVo) > [accordion] To create a Standard Payment Link: > > 1. Log in to the Dashboard. > 2. Go to the **PAYMENT PRODUCTS** section and click **Payment Links**. > 3. Click **+ Create Payment Link**. > 4. Enter the required details in the Standard Payment Link pop-up page. > >
    >
  • **Amount** (Mandatory): Select the currency and amount for the Payment Link. For example, select `โ‚น` and enter`1000` for โ‚น1,000. You can also accept payments in [international currencies](/docs/payments/international-payments#supported-currencies).
  • >
  • **Payment For** (Optional): Enter a description entered. For example, `School fees for Gaurav Kumar - Class XII B`.
  • >
  • **Customer Details** (Optional): Enter the customer's email and phone number. For example, `9876543210` and `gaurav.kumar@example.com`.
  • >
  • **Notify via Email** (Optional): Select this option if you want us to send the Payment Link to the customer via email. Available only if you have entered the customer's email.
  • \ > Customers receive email in the following format: > > ![Payment link email format](https://razorpay.com/docs/build/browser/assets/images/payment-link-email-templete.jpg) > >
  • **Notify via SMS** (Optional): Select this option if you want us to send the Payment Link to the customer via SMS. Available only if you have entered the customer's phone number. \ > Customers receive SMS in the following format: > For example, `Acme Corp has requested payment of INR 100. You can pay through this link: https://rzp.io/rzp/D6W1Xk3u - Razorpay`
  • >
  • **Reference Id** (Optional): Provide a unique reference number for the link. For example, `Adbb001`.
  • > >
  • **Link Expiry** (Optional): The date and time at which the Payment Link should expire.
  • >
  • **Notes** (Optional): Provide the internal notes for the Payment Link. For example:\ >
    • Title (key): Acme Corp.
    • Description (value): Birthday cake Feb.
  • >
  • Review the details and click **Create Payment Link**.
  • >
## Create a UPI Payment Link From Dashboard You can create a UPI Payment Link to collect funds from your customers via the Dashboard. When you create a Payment Link, it moves to the **Issued** state by default. Watch this video to see how to create a UPI Payment Link.\ [YouTube video player](https://www.youtube.com/embed/aBLKnhu-J14?si=sxFruRjb96YUQi0L) > [accordion] To create a UPI Payment Link: > > 1. Log in to the Dashboard. > 2. Navigate to **Payment Links**. > 3. Click **Create Payment Link**. > 4. Click **UPI Payment Link**. > 5. Enter the required details in the UPI Payment Link pop-up page. > >
    >
  • **Amount** (Mandatory): Select the currency and amount for the Payment Link. For example, select `โ‚น` and enter`1000` for โ‚น1,000.
  • >
  • **Payment For**: Enter a description entered. For example, `School fees for Gaurav Kumar - Class XII B`.
  • >
  • **Customer Details**: Enter the customer's email and phone number. For example, `9876543210` and `gaurav.kumar@example.com`.
  • >
  • **Notify via Email** (Optional): Select this option if you want us to send the Payment Link to the customer via email. Available only if you have entered the customer's email.
  • \ > Customers receive email in the following format: > > ![Payment link email format](https://razorpay.com/docs/build/browser/assets/images/payment-link-email-templete.jpg) > >
  • **Notify via SMS** (Optional): Select this option if you want us to send the Payment Link to the customer via SMS. Available only if you have entered the customer's phone number. \ > Customers receive SMS in the following format: > For example, `Acme Corp has requested payment of INR 100. You can pay through this link: https://rzp.io/rzp/D6W1Xk3u - Razorpay`
  • >
  • **Reference Id**: Provide a unique reference number for the link. For example, `Adbb001`.
  • >
  • **Link Expiry**: The date and time at which the Payment Link should expire.
  • >
  • **Internal Notes**: Provide the internal notes for the Payment Link. For example:
    • Title (key): Acme Corp.
    • Description (value): Birthday cake Feb.
  • >
> 6. Review the details and click **Create Payment Link**. > > After a UPI Payment Link created, it appears in the list of Payment Links. ## Make Test Payments for Payment Links > [!NOTE] > > **Handy Tips** > > We recommend you to create Payment Links in **Test Mode** for testing purposes. > [!WARNING] > > **Test Mode Limit** > > In test mode, you can create up to 30 Payment Links per business. If you need to create more than 30 Payment Links for testing purposes, contact [Razorpay Support](https://razorpay.com/support/). > [accordion] To make test payments for Payment Links: > > 1. Log in to the Dashboard. > 2. Navigate to **Payment Links**. > 3. Select the Payment Links you wish to test. > 4. Copy the link URL and open it in your browser. > > ![Payment Link Test Payment](https://razorpay.com/docs/build/browser/assets/images/pl-dashboard-test-payment.jpg) > 5. Select the payment method of your choice and proceed with the payment. > 6. Select **Success** or **Failure**, depending on which flow you wish to test. > > ![Test Payment Success or Failure Flow](https://razorpay.com/docs/build/browser/assets/images/pl-test-payment-success.jpg) > 7. You should see a confirmation message depending on the flow you have selected. > > ![image title](https://razorpay.com/docs/build/browser/assets/images/pl-test-payments-success.jpg) ## Create a Payment Link Using API You can create a Payment Link using: * [Create a Standard Payment Link API](/docs/api/payments/payment-links/create-standard) * [Create a UPI Payment Link API](/docs/api/payments/payment-links/create-upi) #### Related Information * [FAQs](/docs/payments/payment-links/faqs) * [Payment Links APIs](/docs/payments/payment-links/apis) # Customise Payment Links Source: https://razorpay.com/docs/payments/payment-links/customise Customise the Payment Links payment request page using Razorpay APIs. Make changes to the payment details and checkout sections. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can send standard Payment Links to customers via email and SMS. When customers click on the link, they are redirected to a page hosted by us where they can complete the payment. The payment request page consists of two sections: * **Payment Details**: Displays details about the payment description, expiry date, payable amount and in case of partial payments, partial amount paid and due. * **Checkout**: Displays the **Phone** and **Email** fields and list the various payment methods available. ![payment links payment request page](https://razorpay.com/docs/build/browser/assets/images/payment-links-customize-pl_original.jpg) You can customise this hosted page as per your brand and business requirements. For example, you may display only specific payment methods, change the color of Checkout, and so on. > [!NOTE] > > **Handy Tips** > > * This feature is not available for UPI Payment Links. > * You can only customise the payment request page using API. It is not possible to do this from the Dashboard. ## Customise Payment Links Using API You can customise the payment request page to suit your business requirements. You can do this by passing the customisation parameters in the Create Payment Links API request. Shown below is an example of a **customised payment request page**. You can customise the field labels in the **Payment Details** section and modify the look-and-feel of the **Checkout** in the payment request page to meet your brand and business requirements. ![payment links customized payment request page](https://razorpay.com/docs/build/browser/assets/images/payment-links-customize-sample_custom_checkout.jpg) As you can see, the labels in the Payment Details section have been renamed, while the Checkout displays only two payment methods instead of the default four. ### Checkout Section You can customise the following fields in the checkout section: * [Implement thematic changes in Payment Links checkout section](/docs/api/payments/payment-links/checkout-theme) * [Change business name](/docs/api/payments/payment-links/change-business-name) * [Customise payment methods - options and method parameters](/docs/api/payments/payment-links/customise-payment-methods) * [Customise payment methods - options and config parameters](/docs/api/payments/payment-links/customise-options-config) #### Related Information * [Payment Links APIs](/docs/api/payments/payment-links) * [FAQs](/docs/payments/payment-links/faqs) # Duplicate a Payment Link Source: https://razorpay.com/docs/payments/payment-links/duplicate Duplicate a Payment Link from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can duplicate an existing Payment Link from the Dashboard. This saves you time and effort when creating multiple links to be sent to different customers. You can duplicate links in any state. Know more about [Payment Link states](/docs/payments/payment-links/states). ## Duplicate a Payment Link From Dashboard Watch this video to see how to make a duplicate of a Payment Link.\ [YouTube video player](https://www.youtube.com/embed/l9nYCZ6L1rQ) To duplicate a Payment Link: 1. Log in to the Dashboard. 2. Navigate to **Payment Links**. 3. Click on the Payment Link you want to duplicate. The details appear on the right panel. 4. Click the duplicate icon. 5. Edit the required fields on the **Create Payment Link** screen. For example, customer details, receipt number and notes. 6. Click **Create Payment Link**. #### Related Information * [Create a Payment Link](/docs/payments/payment-links/create) * [FAQs](/docs/payments/payment-links/faqs) # Edit a Payment Link Source: https://razorpay.com/docs/payments/payment-links/edit Know how to edit Payment Links. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can edit Payment Links issued to customers. Given below are the different operations that you can perform based on the state of the Payment Link: | Action | Issued | Partially Paid | Paid | Cancelled | Expired | | - | - | - | - | - | - | | Enable/disable Partial Payments | โœ“ | x | x | x | x | | Add/edit Reference ID | โœ“ | x | x | x | x | | Add/edit Expiry Date | โœ“ | x | x | x | x | | Add/edit Notes | โœ“ | โœ“ | โœ“ | โœ“ | โœ“ | | Disable Reminders | โœ“ | x | x | x | x | ## Edit a Payment Link From Dashboard Watch this video to see how to edit a Payment Link.\ [YouTube video player](https://www.youtube.com/embed/rMeOZFe72_I) To edit a Payment Link: 1. Log in to the Dashboard. 2. Navigate to **Payment Links**. 3. Click the **Payment Link** you want to edit. The details of the **Payment Link** appear on the right panel. 4. Add/edit the fields you want. ### Disable Reminders by Editing Payment Link To disable reminders by editing Payment Link: 1. Log in to Dashboard and navigate to **Payment Links**. 2. Click a **Payment Link ID** to view its details in the side panel appears. 3. Enable or disable **Send auto reminders** for the Payment Link. ![](https://razorpay.com/docs/build/browser/assets/images/payment-links-reminders-disable-reminder-pl-edit.jpg) ## Edit a Payment Link Using API You can edit a Payment Link using: * [Update a Standard Payment Link API](/docs/api/payments/payment-links/update-standard) * [Update a UPI Payment Link API](/docs/api/payments/payment-links/update-upi) #### Related Information
  • [Create a Payment Link](/docs/payments/payment-links/create)
  • [FAQs](/docs/payments/payment-links/faqs)
  • [Payment Links APIs](/docs/payments/payment-links/apis)
# How Payment Link Works Source: https://razorpay.com/docs/payments/payment-links/how-it-works Create Payment Links and send them to customers to receive payments and perform other actions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Understand the complete end-to-end flow about how you can use Razorpay Payment Links. ![payment link flow](https://razorpay.com/docs/build/browser/assets/images/payment-links-pl-workflow.jpg) ## Workflow The steps given below give a detailed view on the lifecycle of a Payment Link. > [accordion] Step 1: Create a Payment Link > > [Create a Payment Link](/docs/payments/payment-links/create) by providing all the required details. You can set an expiry date and enable partial payments. > > > [!NOTE] > > > > **Handy Tips** > > > > You can [update](/docs/payments/payment-links/edit) or create a [duplicate](/docs/payments/payment-links/duplicate) Payment Link. > > > > **Payment Links APIs** \\ > > > > * [Create a Payment Link](/docs/api/payments/payment-links/create-standard) > > * [Edit a Payment Link](/docs/api/payments/payment-links/update-standard) > > * [Cancel a Payment Link](/docs/api/payments/payment-links/cancel-standard) > [accordion] Step 2: Send a Payment Link > > Send a Payment Link to a customer via email and/or SMS. The customer receives the link via SMS and email. They can open the link and pay using one of the available [payment methods](/docs/payments/payment-links#list-of-supported-payment-methods). > [accordion] Step 3: Receive Payments > > The customer clicks the Payment Link and tries to make the payment. > > * The customer makes the payment. If [partial payment](/docs/payments/payment-links/partial-payments) is enabled, the customer can choose the amount to be paid. > * The customer chooses the mode of payment. > > The customer makes a successful payment. The Payment Link is marked as `paid` or `partially` paid. You receive a notification about the payment. > > > [!NOTE] > > > > **Handy Tips** > > > > After the payment is captured, the amount is settled to your account as per the settlement schedule. Know more about [payments](/docs/payments/payments), [settlements](/docs/payments/settlements) [, refunds](/docs/payments/refunds) and [disputes](/docs/payments/disputes). > [accordion] Step 4: Track Payment Links and Reports > > * **Notifications:** You receive notifications regarding activity on Payment Links via emails and webhook. Know more about [subscribing to Webhooks](/docs/payments/payment-links/subscribe-to-webhooks). > * **Track Payments:** Track payments made against the issued Payment Links on Dashboard. Click **Payment Links** from the left menu. All the links are listed with their status under Payment Links. > * **Reports:** Detailed insights can be gained using reports and real-time data on the Dashboard. These reports can then be used for accounting and reconciliation purposes. Know more about [reports](/docs/payments/dashboard/reports/list-of-reports#payment-links). #### Related Information
  • [Payment Links](/docs/payments/payment-links)
  • [FAQs](/docs/payments/payment-links/faqs)
  • [Payment Links APIs](/docs/payments/payment-links/apis)
# Enable Partial Payments Source: https://razorpay.com/docs/payments/payment-links/partial-payments Enable partial payments for Payment Links issued to customers from the Dashboard or APIs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can configure the Standard Payment Links to receive partial payments from your customer for a particular order. ## When to Use Partial Payments The **Partial Payment** feature comes in handy while dealing with large transactions, where the customer finds paying the total amount in parts more convenient than paying the entire amount upfront. > [!NOTE] > > **Handy Tips** > > This feature is not available for UPI Payment Links. #### Example A tourism company, Acme Corp. offers expensive travel packages. As per the company's payment terms, a fixed booking amount should be collected from the customer before making any tour reservations. With the **Partial Payments** feature, Acme Corp. issues a Payment Link using which the customer pays the booking amount for an order. The customer can make multiple payments for the remaining balance amount for the same order using the same Payment Link. ## How Partial Payments Work Here is how Partial Payments work: ![partial payment workflow](https://razorpay.com/docs/build/browser/assets/images/payment-links-partial-payments.jpg) 1. You create a Payment Link of . 2. The customer chooses to pay an amount of out of the due amount mentioned in the Payment Link. 3. Since the customer pays less than the due amount, the Payment Link would show `partially_paid` status until the amount due is zero or until the link gets `expired` or `canceled`. 4. After the full amount has been paid, the status of the Payment Link changes to `paid`. Just like any other payment, each partial payment would have a unique `payment_id`, but will be tied to the same `order_id`, thereby allowing customers to easily make multiple payments for the same order using the same **Payment Link**. This makes it easier to track the status of a particular order. Know more about [Payment Links States](/docs/payments/payment-links/states). ## Enable Partial Payments From Dashboard You can enable partial payments while creating the Payment Link. You can also edit an issued Payment Link to allow partial payments. > [tab] During Creation > > Watch this video to see how to enable partial payments while creating the Payment Links.\\ > > [YouTube video player](https://www.youtube.com/embed/9f9bMw5rxEY) > > To enable partial payments during Payment Link creation: > > 1. Log in to the Dashboard. > 2. Navigate to **Payment Links**. > 3. Click **+ Create Payment Link**. > 4. Enter the necessary details such as **Amount** and **Payment For**. > 5. Select the **Enable Partial Payments** option. > 6. Click **Create Payment Link**. > [tab] Once Issued > > To enable partial payments after Payment Link is issued: > > 1. Log in to the Dashboard. > 2. Navigate to **Payment Links**. > 3. Click on the Payment Link for which you want to enable/disable partial payments. > 4. Select the **Enable Partial Payment** option. > > ![enable partial payments](https://razorpay.com/docs/build/browser/assets/images/payment-links-partial-payments-once-issued.jpg) ### Enable Partial Payments Using API Use the **`accept_partial`** parameter to enable partial payments for Payment Links using the [Create a Standard Payment Link API](/docs/api/payments/payment-links/create-standard). #### Related Information
  • [How Payment Links Work](/docs/payments/payment-links/how-it-works)
  • [Payment Links States](/docs/payments/payment-links/states)
  • [Create a Payment Link](/docs/payments/payment-links/create)
  • [FAQs](/docs/payments/payment-links/faqs)
  • [Payment Links APIs](/docs/payments/payment-links/apis)
# Send Reminders Source: https://razorpay.com/docs/payments/payment-links/reminders Enable or disable reminders for Payment Links. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can send your customers automated SMS and email reminders for Payment Links. Setting reminders helps you to: * Increase the number of paid Payment Links. * Reduce cost and manual effort required to collect payments. * Reduce the number of days taken by your customer to make the payment. ## Types of Reminders Following are the various types of reminders you can set for Payment Links: * [For all Payment Links](#set-reminders-for-all-payment-links): This is an account-level setting for all Payment Links where the Payment Link reminder is sent at similar time intervals. For example, 2 days after creation or 3 days before expiry. * [For an individual Payment Link](#set-reminders-for-individual-payment-links): Enable reminders for specific Payment Links. * [For Payment Links created using bulk upload](#set-reminders-for-bulk-payment-links): Enable reminders for Payment Links created using bulk upload. ## Set Reminders for All Payment Links This is an account-level setting. If enabled, all Payment Links have the same reminder configurations. > [accordion] To set reminders for all Payment Links: > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **Payments and refunds** โ†’ **Reminders**. > 3. Enable the **Payment Links Reminders** toggle. > 4. Configure reminders for links with and without an expiry date. You can set a maximum of 3 reminders. > 5. Select the channel to send the reminders โ€” SMS, email, or both. > > ![Payment Links Reminders](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-reminders_enabled.jpg) > [!WARNING] > > **Watch Out!** > > Customers will receive the reminder email or SMS only if their contact and email details were provided when the Payment Link was created. Know more about [creating Payment Links](/docs/payments/payment-links/create). > [accordion] Payment Links With Expiry Date > > If you have set an expiry date for the Payment Link, you can configure a maximum of three reminders based on the expiry date. For example, if you have issued a Payment Link with an `expiry date of 30 Nov 2024`, you can set three reminders: > > | Expiry Date | Reminders to be sent | > | - | - | > | 30 Nov 2024 | 3 days before expiry date - `27 Nov 2024` 2 days before expiry date - `28 Nov 2024` 1 day before expiry date - `29 Nov 2024` | > > ![](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-reminders_expiry_pl.jpg) > [accordion] Payment Links Without Expiry Date > > If you have not set any expiry date for the Payment Link, you can configure a maximum of three reminders to be sent after the issued date. For example, if you have `issued a Payment Link on 25 Nov 2024`, you can set three reminders: > > | Issued Date | Reminders to be sent | > | - | - | > | 25 Nov 2024 | 3 days after issued date - `28 Nov 2024` 7 days after issued date - `02 Dec 2024` 10 days after issued date - `05 Dec 2024` | > > ![](https://razorpay.com/docs/build/browser/assets/images/dashboard-guide-reminders_pl_issued_date.jpg) ## Advanced Settings Select the **Channels** through which the reminders must be sent. Available channel options are SMS and email. > [!NOTE] > > **Handy Tips** > > Reminders are sent only between 11AMโ€“12PM and 3PMโ€“5PM. ## Set Reminders For Individual Payment Links You can enable or disable reminders for individual Payment Links. > [accordion] During Payment Link Creation > > To enable reminders while creating a Payment Link: > > 1. Log in to the Dashboard. > 2. Navigate to **Payment Links**. > 3. Click **+ Create Payment Link**. > 4. Enter the necessary details such as **Amount** and **Payment For**. > 5. Enable the **Send auto reminders** option. > 6. Click **Create Payment Link** to create the Payment Link. > > ![Enable or disable reminders when creating a Payment Link](https://razorpay.com/docs/build/browser/assets/images/payment-links-auto-reminders.jpg) > [accordion] After Payment Link is Issued > > You can edit the Payment Link and enable or disable reminders after issuing it. > > To enable or disable reminders by editing a Payment Link: > > 1. Log in to the Dashboard. > 2. Navigate to **Payment Links**. > 3. Click the Payment Link for which you want to enable or disable reminders. The details of the Payment Link appear on the right pane. > 4. Enable or disable the **Send auto reminders** option. > > ![Edit reminders for an issued Payment Link](https://razorpay.com/docs/build/browser/assets/images/payment-links-send-auto-reminders.jpg) ## Set Reminders For Bulk Payment Links You can set reminders for Payment Links when creating them via bulk upload. > [!NOTE] > > **Handy Tips** > > By default, reminders are not enabled during batch creation of Payment Links. ![Reminders for bulk uploads](https://razorpay.com/docs/build/browser/assets/images/payment-links-bulk-reminders.jpg) Know more about enabling or disabling reminders when creating [Payment Links using Bulk Upload](/docs/payments/payment-links/batch#:~:text=Send%20auto%20reminders). ## Send Reminders Using API You can send reminders for Payment Links to customers using the API. Reminders are enabled by default during Payment Link creation. * `reminder_enable` parameter in [Create a Standard Payment Link API](/docs/api/payments/payment-links/create-standard) * `reminder_enable` parameter in [Create a UPI Payment Link API](/docs/api/payments/payment-links/create-upi) #### Related Information * [How Payment Links Work](/docs/payments/payment-links/how-it-works) * [Payment Link States](/docs/payments/payment-links/states) * [Create a Payment Link](/docs/payments/payment-links/create) * [Payment Links APIs](/docs/api/payments/payment-links) * [FAQs](/docs/payments/payment-links/faqs) # Resend a Payment Link Source: https://razorpay.com/docs/payments/payment-links/resend Resend a Payment Link via email and SMS to a customer. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can resend Payment Links in the **Issued** state to your customer. ## Resend Payment Links From Dashboard Watch this video to see how to resend Payment Links to your customers.\ [YouTube video player](https://www.youtube.com/embed/hFnSPMHQy_U) To resend a Payment Link: 1. Log in to the Dashboard. 2. Navigate to **Payment Links**. 3. Select the Payment Link which you wish to resend. The details appear on the right-side pane. 4. Click the resend icon. ![resend icon](https://razorpay.com/docs/build/browser/assets/images/payment-links-resend-icon.jpg) 1. Select the modes (Email or SMS or both) in which you want to resend the Payment Link. ![resend mode](https://razorpay.com/docs/build/browser/assets/images/payment-links-resend-mode.jpg) 1. Click **Send Link**. ## Resend Payment Links Using API You can resend a Payment Link in `issued` state using [this](/docs/api/payments/payment-links/resend) API. #### Related Information * [Payment Links States](/docs/payments/payment-links/states) * [Create a Payment Link](/docs/payments/payment-links/create) * [FAQs](/docs/payments/payment-links/faqs) * [Subscribe to Webhooks](/docs/payments/payment-links/subscribe-to-webhooks) # Search a Payment Link Source: https://razorpay.com/docs/payments/payment-links/search Search for a Payment Link using the various search filters. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can search for Payment Links on the Dashboard by specifying various filters. Know more about [Payment Link states](/docs/payments/payment-links/states). ## Search a Payment Link From Dashboard To search a Payment Link: 1. Log in to the Dashboard. 2. Go to the **PAYMENT PRODUCTS** section and click **Payment Links**. 3. In the list of Payment Links that appears, search for the link by specifying filters. ![Search for a payment link](https://razorpay.com/docs/build/browser/assets/images/payment-links-search-pl.jpg) | Filter | Description | | - | - | | Payment Link Status | The status of the Payment Link. | | Payment Link ID | Unique identifier of the Payment Link. | | Batch Id | Unique identifier of the batch as part of which you created the Payment Link. | | Reference Id | Unique reference number of the Payment Link. | | Customer Contact | Registered contact of the customer. | | Customer Email | Email address of the customer. | | Notes | Additional information stored in the Customer Notes field while creating the Payment Link. | | Payment Link Type | The type of Payment Link. You can use this filter to search for Standard or UPI Payment Links. | | Duration | The time range within which the Payment Link was created. | ## Search a Payment Link Using API * [View the list of all Payment Links API](/docs/api/payments/payment-links/fetch-all-standard) * [View the details of a Payment Link using Payment Link Id API](/docs/api/payments/payment-links/fetch-id-standard) #### Related Information * [Payment Links States](/docs/payments/payment-links/states) * [Create a Payment Link](/docs/payments/payment-links/create) * [FAQs](/docs/payments/payment-links/faqs) # Standard Payment Links Source: https://razorpay.com/docs/payments/payment-links/standard Create Standard Payment Links and share them with your customers through SMS and emails. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can send the Standard Payment Links as URLs to customers through SMS and emails. Customers can open these URLs and make payments using netbanking, cards, wallets, UPI and bank transfer payment methods. You can also use [UPI Payment Links](/docs/payments/payment-links/upi) to receive UPI payments. ## Payment Link States Know about the different [Standard Payment Link states](/docs/payments/payment-links/states#standard-payment-links). ## Create Create a Standard Payment Link from the [Dashboard](/docs/payments/payment-links/create#create-a-standard-payment-link-from-dashboard) or using our [APIs](/docs/api/payments/payment-links/create-standard). ## Standard Payment Link Vs. UPI Payment Link You can also use [UPI Payment Links](/docs/payments/payment-links/upi) to receive UPI payments. The table below lists the applicable features for Standard and [UPI Payment Links](/docs/payments/payment-links/upi): | Features | Standard Payment Links | UPI Payment Links | | - | - | - | | Reminders for Payment Links | โœ” | โœ” | | Partial Payments | โœ” | โœ˜ | | Bulk Upload | โœ” | โœ” | | Customise Payment Links | โœ” | โœ˜ | | Offers on Payment Links | โœ” | โœ˜ | | Receive Payments via Bank Transfer | โœ” | โœ˜ | ## Customer Interaction Watch this video to see the customer flow for Standard Payment Links.\ #### Related Information
  • [How Payment Links Work](/docs/payments/payment-links/how-it-works)
  • [Payment Links States](/docs/payments/payment-links/states)
  • [UPI Payment Links](/docs/payments/payment-links/upi)
  • [Create a Payment Link](/docs/payments/payment-links/create)
  • [FAQs](/docs/payments/payment-links/faqs)
  • [Payment Links APIs](/docs/payments/payment-links/apis)
# Payment Link States Source: https://razorpay.com/docs/payments/payment-links/states List of states of a Razorpay Payment Link and their significance. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States A Payment Link starts in the `issued` state and moves through several states in its life cycle. The life cycle differs for [Standard](#standard-payment-links) and [UPI](#upi-payment-links) Payment Links. ## Standard Payment Links After a Standard Payment Link is created, you can track its status on your Dashboard on the Payment Link page. The diagram given below illustrates the life cycle of a Payment Link. ![Standard Payment Link States](https://razorpay.com/docs/build/browser/assets/images/payment-links-standard-link-cycle.jpg) The table below lists the various states and their descriptions in the Payment Link life cycle: | Status | Description | Next Steps | | - | - | - | | Created | Indicates that the Payment Link has been created. Know more about [creating a Payment Link](/docs/payments/payment-links/create#create-a-standard-payment-link-from-dashboard). | Start accepting payments by sending the Payment Link to the customers. | | Partially Paid | Indicates that the customer has made a partial payment against the Payment Link. Know more about [enabling partial payments for Payment Links.](/docs/payments/payment-links/partial-payments) | Send a reminder to the customer to pay the next instalment. Know more about [sending reminders.](/docs/payments/payment-links/reminders) | | Paid | Indicates that the Payment Link has been paid in full. | NA | | Cancelled | Indicates that you have cancelled the Payment Link. Know more about [cancelling Payment Links.](/docs/payments/payment-links/cancel) | Customers can no longer pay using this Payment Link. Create a new Payment Link to start accepting payments (if required). | | Expired | Indicates that the Payment Link has expired. You can set the expiry date and time while creating the Payment Link. Know more about [creating a Payment Link.](/docs/payments/payment-links/create#create-a-standard-payment-link-from-dashboard) | This link is no longer accessible to the customers. Create a new Payment Link to start accepting payments (If required). | > [!NOTE] > > **Handy Tips** > > * You cannot delete a Payment Link. However, you can cancel it. Know more about [cancelling Payment Links](/docs/payments/payment-links/cancel). > * You can cancel a Payment Link only if it is in the `issued` state. You cannot cancel Payment Links in the `partially_paid` or `paid` state. ## UPI Payment Links After you create a UPI Payment Link, you can track its status on your Dashboard on the **Payment Links** page. The diagram given below illustrates the life cycle of a UPI Payment Link. ![life cycle - upi payment links](https://razorpay.com/docs/build/browser/assets/images/payment-links-upi-link-cycle.jpg) The table below lists the various states and their descriptions in the UPI Payment Link life cycle: | Status | Description | Next Steps | | - | - | - | | Created | Indicates that the Payment Link has been created. Know more about [creating a UPI Payment Link](/docs/payments/payment-links/create#create-a-standard-payment-link-from-dashboard). | Start accepting payments by sending the Payment Link to the customers. | | Paid | Indicates that the Payment Link has been paid in full. | NA | | Cancelled | Indicates that you have cancelled the Payment Link. Know more about [cancelling Payment Links](/docs/payments/payment-links/cancel). | Customers can no longer pay using this Payment Link. Create a new Payment Link to start accepting payments (If required). | | Expired | The payment link has expired. You can set the expiry date and time while creating the payment link. Know more about [creating a UPI Payment Link](/docs/payments/payment-links/create#create-a-upi-payment-link-from-dashboard). | This link is no longer accessible to the customers. Create a new Payment Link to start accepting payments (if required). | > [!NOTE] > > **Partial Payments Not Supported** > > UPI Payment Links do not support partial payments. Hence, the `partially_paid` state does not exist. #### Related Information
  • [How Payment Links Work](/docs/payments/payment-links/how-it-works)
  • [Create a Payment Link](/docs/payments/payment-links/create)
  • [FAQs](/docs/payments/payment-links/faqs)
  • [Payment Links APIs](/docs/payments/payment-links/apis)
# UPI Payment Links Source: https://razorpay.com/docs/payments/payment-links/upi Check how to create UPI Payment Link to accept UPI payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can send the UPI Payment Links as URLs to your customers to accept UPI payments. When the customers click on the URL, a list of UPI apps installed on their mobile device is displayed. Customers can select the UPI app of their choice to complete the payment. You can also use [Standard Payment Links](/docs/payments/payment-links/standard) to receive payments using payment methods such as netbanking, cards and UPI. > [!NOTE] > > **Handy Tips** > > * This feature works only on Android mobile devices. > * UPI Payment Links will work only in **Live Mode**. > * **Enable Partial Payments** feature is not applicable for UPI Payment Links. ## Advantages * UPI is a popular payment method that helps customers to make quick payments. * Customers do not have to enter card details, netbanking login details, thus avoiding manual errors and failed payments. * UPI payments have a high success rate compared to other payment methods. ## Supported Features UPI Payment Links support the following features: [Reminders](/docs/payments/payment-links/reminders) and [Batch Upload](/docs/payments/payment-links/batch). ## Payment Link States Know about the different [UPI Payment Link states](/docs/payments/payment-links/states#upi-payment-links). ## Create Create a UPI Payment Link from the [Dashboard](/docs/payments/payment-links/create#create-a-upi-payment-link-from-dashboard) or using the [APIs](/docs/api/payments/payment-links/create-upi). ## Customer Interaction Watch this video to see the customer flow for UPI Payment Links.\ ## UPI Apps Preinstalled/Not Installed > [tab] UPI Apps Preinstalled > > Watch this video to see how the UPI Payment Link works when your customers have UPI apps installed on their devices. > > ![UPI Payment Link - customer interaction with preinstalled upi apps](https://razorpay.com/docs/build/browser/assets/images/payment-links-upi-payment.gif) > [tab] UPI Apps not Installed > > Watch this video to see how the UPI Payment Link works when your customers do not have UPI apps installed on their devices. > > ![UPI Payment Link - customer interaction without upi apps](https://razorpay.com/docs/build/browser/assets/images/payment-links-upi-pl-no-apps.gif) > > Your customer can install any UPI app and try again to make the payment. ### Paid, Expired or Cancelled Payment Links When customers attempt payment for paid, expired or cancelled Payment Links, the respective statuses are displayed. They are not allowed to make payments using such links. ![UPI Payment Link - other upi payment statuses](https://razorpay.com/docs/build/browser/assets/images/payment-links-upi-status.jpg) #### Related Information * [How Payment Links Work](/docs/payments/payment-links/how-it-works) * [Payment Links States](/docs/payments/payment-links/states) * [Standard Payment Links](/docs/payments/payment-links/standard) * [Create a Payment Link](/docs/payments/payment-links/create) * [FAQs](/docs/payments/payment-links/faqs) # Payment Links Use Cases Source: https://razorpay.com/docs/payments/payment-links/use-cases Explore the diverse use cases of Razorpay Payment Links, a robust payment collection solution for businesses. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Explore how Razorpay Payment Links simplify direct payments, providing a frictionless transaction experience for customers and efficient revenue collection for businesses across various industries. > [card] [Retail](/docs/payments/payment-links/use-cases#retail) > [card] [Freelancing & Professional Services](/docs/payments/payment-links/use-cases#freelancing-and-professional-services) > [card] [Hospitality](/docs/payments/payment-links/use-cases#hospitality) > [card] [Education](/docs/payments/payment-links/use-cases#education) > [card] [Healthcare](/docs/payments/payment-links/use-cases#healthcare) > [card] [Securities & Wealth Management](/docs/payments/payment-links/use-cases#securities-and-wealth-management) > [accordion] Retail > > Acme Electronics uses Razorpay Payment Links to offer customers a direct payment option for online orders, in-store pickups, and after-sales services. Here is how Payment Links help Acme: > > * Create-to-Collect in Minutes: Generate and share Payment Links with customers quickly after an order is placed, simplifying the checkout process. > * Automatic Link Sharing: Send Payment Links via SMS or email, enabling customers to pay with ease. > * Set Expiry Dates: Encourage prompt payments by setting an expiration date for each Payment Link. > * Partial Payments: Offer customers the option to make partial payments, adding flexibility for higher-priced items or services. > * Easy API Integration: Integrate Payment Links seamlessly with your sales systems for a streamlined process. > * Set Reminders: Automatically remind customers of outstanding payments, ensuring a higher collection rate. > [accordion] Freelancing and Professional Services > > Acme Freelancers leverage Razorpay Payment Links to bill clients for completed projects, ad-hoc tasks, or retainers. Here is how Payment Links help Acme: > > * Project Milestone Payments: Send Payment Links at various project stages, ensuring timely compensation. > * Ad-Hoc Tasks: Quickly generate and send a Payment Link for immediate payment, useful for rush jobs or extra tasks. > * Retainer Services: Collect monthly retainer fees easily through Payment Links. > * Automatic Payment Reminders: Set up automated SMS reminders for due payments, reducing the need for manual follow-ups. > [accordion] Hospitality > > Acme Hotels employs Razorpay Payment Links to facilitate bookings, additional service charges, and event reservations. Here is how Payment Links help Acme: > > * Room Bookings: Guests receive a Payment Link to secure their booking, streamlining the reservation process. > * Additional Services: Easily send Payment Links for room upgrades or special requests, enhancing the guest experience. > * Event Reservations: Manage event bookings efficiently by sending Payment Links for immediate confirmation. > * Payment Link Expiration: Set deadlines for event reservation payments to manage capacity and planning. > [accordion] Education > > AcmeHorizon Academy uses Razorpay Payment Links to collect tuition, fees for extra-curricular activities, and donations. Here is how Payment Links help AcmeHorizon: > > * Tuition Fee Collection: Simplify fee payments by creating Payment Links in batches and sending parents a direct Payment Link for each term's tuition. Send your customers automated SMS and email reminders for Payment Links. > * Extracurricular Activities: Send Payment Links for additional classes or events, making it easier for parents to pay for their children's activities. > * Fundraising and Donations: Facilitate the donation process for school fundraising efforts with easily shareable Payment Links. > [accordion] Healthcare > > Acme Clinics optimise patient billing by using Razorpay Payment Links for consultations, procedures, and health packages. Here is how Payment Links help Acme Clinics: > > * Consultation Fees: Patients can pay for their appointments via Payment Links, confirming their slots conveniently. > * Medical Procedures: After treatment, patients receive a Payment Link to settle their bills without the need to queue. > * Health and Wellness Packages: Offer special health packages that patients can pay for through a Payment Link, right from their phone or computer. > [accordion] Securities and Wealth Management > > Acme Securities validates bank accounts to accept payments from customers throughout their journey. Here is how Payment Links can help: > > * Initial Funding: Send a Payment Link to new customers after they've finished onboarding, making it easy for them to add funds and begin trading. > * Demat Account Activation: If a payment fails during the demat account creation process, you can send a Payment Link to prevent the customer from dropping off. > * Top-Up Reminders: Notify customers when their trading account balance is low and use a Payment Link to help them quickly add more funds. # Create Payment Links on WhatsApp Source: https://razorpay.com/docs/payments/payment-links/whatsapp-bot Add the Payment Links WhatsApp bot on your Smartphone. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡บ๐Ÿ‡ธ United States Install the Razorpay WhatsApp Bot for Payment Links and accept payments from your customers by creating and sharing Payment Links to them directly from WhatsApp. ## Installation and Configuration > [!NOTE] > > **Handy Tips** > > If you lose all your contacts or misplace your mobile phone, you can recover access to the WhatsApp bot by following this process: > Send a text message saying `Create 100` to this phone number: `+91 6364900106`. Please ensure you send this message from your number registered on WhatsApp. 1. Log in to the Dashboard and navigate to the **App Store**. 2. Select the **Payment Links Bot**. ![Select Payment Links Bot](https://razorpay.com/docs/build/browser/assets/images/pl-app-store-whatsapp-bot.jpg) 3. Click **Install**. ![Install Payment Links Bot](https://razorpay.com/docs/build/browser/assets/images/pl-whatsapp-bot-install.jpg) 4. You will receive a welcome message on the mobile number which is associated with your Razorpay Admin account. ![Install Payment Links Bot](https://razorpay.com/docs/build/browser/assets/images/pl-whatsapp-welcome.jpg) 5. To create a Payment Link, Send `Create `. Eg. Send `Create 100` to create a Payment Link of INR 100. ![Install Payment Links Bot](https://razorpay.com/docs/build/browser/assets/images/pl-whatsapp-create.jpg) 6. You will receive the Payment Link from Razorpay which can now be shared with your customers. ![Install Payment Links Bot](https://razorpay.com/docs/build/browser/assets/images/pl-whatsapp-result.jpg) # About Razorpay - Payments on WhatsApp Source: https://razorpay.com/docs/payments/whatsapp Integrate your WhatsApp Business Account with Razorpay to provide a smooth payment experience entirely within WhatsApp. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay - Payments on WhatsApp enables a seamless and secure payment experience completely within WhatsApp. Your customers can order, pay using their preferred payment method and easily track their orders in one place, without leaving the app. ## Advantages * **Powerful Razorpay Checkout** \ Accept payments using over 100 [payment methods](/docs/payments/payment-methods) including UPI, domestic and international cards, netbanking paylater, and EMI. Enjoy industry-leading conversion rates with our saved cards, direct checkout with UPI apps and native OTP features. * **Fully immersive payment experience to boost conversions** \ Our swift checkout experience blends with the conversation to offer a smooth flow, thereby improving conversion rates and reducing drop-offs. * **Quick and easy integration** \ Integrate and go live in just a few hours. Payments received on WhatsApp will reflect on the linked Razorpay account, and your current settlement schedule will continue. ## Get Started To get started, [integrate Razorpay with your WhatsApp Business Account](/docs/payments/whatsapp/integrate). # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/whatsapp/faqs Find answers to common questions about Razorpay Payments on WhatsApp, including integration steps, supported payment methods and how to enable in-app payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] What is Razorpay Payments on WhatsApp? > > Razorpay Payments on WhatsApp is a native in-app payment experience that enables your customers to complete transactions without leaving the WhatsApp chat. Customers can pay using their preferred payment methods including cards, UPI, netbanking, wallets and EMI options, all within the conversation flow. > [accordion] How do I integrate my Razorpay account with WhatsApp? > > The integration involves two main steps: > > **Step 1: Integrate with WhatsApp Business API** \\ > > You must first [integrate with WhatsApp Business API](/docs/payments/whatsapp/integrate) through a Business Solution Provider (BSP). If you have not done this yet, you can fill out [Razorpay's BSP inquiry form](https://form.typeform.com/to/ZpLyqJnU) or check [Meta's Partner Directory](https://www.facebook.com/business/partner-directory/search?solution_type=messaging) to find a suitable BSP. > > **Step 2: Link Razorpay Account with WhatsApp** \\ > > The linking process depends on your WhatsApp Business Account (WABA) ownership: > > * [Self-Owned WABA](/docs/payments/whatsapp/integrate#self-owned-waba) > * [BSP-Owned WABA](/docs/payments/whatsapp/integrate#bsp-owned-waba-obo-model) > [accordion] What types of payments are supported on WhatsApp? > > Razorpay WhatsApp integration supports only one-time payments. Recurring payments and subscriptions mandates are not supported through the WhatsApp channel. > [accordion] I want to send payment reminders to my clients via WhatsApp. What integration do I need? > > You need to integrate Razorpay with WhatsApp Business API. This requires two main steps: > > 1. Obtain access to WhatsApp Business API through a Business Solution Provider (BSP). > 2. Link your Razorpay account with your WhatsApp Business Account to enable payment functionalities. # Integration Steps Source: https://razorpay.com/docs/payments/whatsapp/integrate Steps to integrate Razorpay with your WhatsApp Business Account to accept Razorpay payments on WhatsApp. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India To enable Razorpay - Payments on WhatsApp: 1. [Integrate with WhatsApp Business API](#1-integrate-with-whatsapp-business-api) 2. [Link Razorpay Account to WhatsApp](#2-link-razorpay-account-with-whatsapp) ## 1. Integrate With WhatsApp Business API You must integrate with the WhatsApp Business API through a Business Service Provider (BSP) to accept Payments on WhatsApp. > [accordion] WhatsApp Business API and BSPs > > * WhatsApp Business API provides automated messaging, chatbots, and customisation features. You can send messages in bulk and create customised messaging experiences with chatbots. If you have already integrated with WhatsApp Business API, you will see a green tick next to your business name. > > ![Integrated with WhatsApp Business API](https://razorpay.com/docs/build/browser/assets/images/whatsapp-api-integrated.jpg) > * BSPs are a worldwide community of third-party solution providers for the WhatsApp Business Platform. BSPs assist you in communicating with your clients on the WhatsApp Business Platform for approved use cases such as customer service and time-sensitive, customised notifications. The steps differ based on the current status of your WhatsApp Business API integration. ### New to WhatsApp Business API If you have not integrated with WhatsApp Business APIs, you can: * Fill [this form](https://form.typeform.com/to/ZpLyqJnU?typeform-source=www.google.com), and we will help you find a fully integrated BSP to integrate and go live with just a few clicks. * Refer to the [Meta Partner directory](https://www.facebook.com/business/partner-directory/search?solution_type=messaging\&ref=fmp_about_solution_card\&capabilities=Payments\&countries=IN\&platforms=whatsapp) to find a suitable BSP. ### Already Integrated With WhatsApp Business API Razorpay has partnered with major BSPs in the country, enabling effortless integration with only a few steps. To integrate with us, contact your BSP to integrate your Razorpay account with the WhatsApp Business API. If your BSP does not offer Razorpay integration, ask them to contact the Meta team. ## 2. Link Razorpay Account With WhatsApp After integrating with the WhatsApp Business API through a BSP, you need to link your Razorpay account with WhatsApp. The steps differ based on who owns the WhatsApp Business Account (WABA). * [Self-Owned WABA](#self-owned-waba) * [BSP-Owned WABA (OBO model)](#bsp-owned-waba-obo-model) ### Self-Owned WABA If you use a self-owned WABA, follow the below steps to link your Razorpay account with WhatsApp. 1. Log in to your Facebook Business Manager account. 2. Create a **Direct Pay Method**. 3. On the form, fill in details and give the method a name. This will be used to make API calls. 4. Select **Payment Gateway** as the option and choose **Razorpay** in the drop-down menu. 5. On submission, you will be redirected to Razorpay. Log in and allow Meta to request payments on your behalf. Know more about [linking self-owned WABA with Razorpay](https://developers.facebook.com/docs/whatsapp/on-premises/payments-api/payments-in/pg#direct-or-embedded-signups). ### BSP-Owned WABA (OBO Model) If you use a BSP-owned WABA, below is the workflow to link your Razorpay account with WhatsApp. 1. The BSP logs in to WhatsApp Manager. 2. Creates a **Direct Pay Method** and selects **Razorpay** as the payment gateway. 3. Shares the link generated with the business that will redirect them to Razorpay. 4. The business logs in and allows Meta to request payments on their behalf. The business must log in using the Facebook Business Manager account linked to the WABA. Know more about [linking BSP-owned WABA with Razorpay](https://developers.facebook.com/docs/whatsapp/on-premises/payments-api/payments-in/pg#on-behalf-of--obo--signups). ## Next Steps After linking your Razorpay account with WhatsApp, you must integrate with [On-premises API](https://developers.facebook.com/docs/whatsapp/on-premises/payments-api/payments-in/pg) or [Cloud API](https://developers.facebook.com/docs/whatsapp/cloud-api/payments-api/payments-in/pg), based on your use case. # About Razorpay Widgets Source: https://razorpay.com/docs/payments/widgets Integrate with Widgets offered by Razorpay to improve conversion rates. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Discover the power of Razorpay Widgets to boost conversion rates and create a delightful shopping experience for your customers and grow your business. * [Razorpay Trusted Business Widget](/docs/payments/widgets/trusted-business): You can seamlessly embed the widget on your website with just two integration steps to enhance trust. It provides information about your business's legitimacy and product/service quality, effectively reducing doubt and minimising drop-offs. * [Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget): Spread awareness about the affordability-based payment options (such as EMI, Cardless EMI, and Pay Later) and offers available to your customers even before they reach checkout to educate them and reduce cart abandonment. # Razorpay Buyer Protection Source: https://razorpay.com/docs/payments/widgets/buyer-protection Enhance your customers' shopping experience with Razorpay Buyer Protection. Customers can initiate free claims and receive full reimbursement based on eligibility and provided details. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Buyer Protection Changelog](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to the Buyer Protection (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/widgets/buyer-protection/faqs) > > Find answers to frequently asked questions about Razorpay Buyer Protection. The Razorpay Buyer Protection Program ensures the safety of your customers' purchases. It offers customers added assurance and protection when using our platform in accordance with our terms and conditions outlined in the user agreement. Customers can initiate a claim at **no cost**. If eligible, the program provides a full reimbursement of the transaction value to the customer. Razorpay reserves the right to determine the validity and eligibility of claims based on the program's criteria and any relevant information shared during the resolution process. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Fill in the [form](https://razorpay.typeform.com/to/YpJfvpE6#name=xxxxx) or raise a request with our [support team](https://razorpay.com/support/) to get this feature enabled on your account. ## Parties Involved | Term | Description | | - | - | | Seller | The business that lists products on their website or app and is affiliated with Razorpay. | | Buyer | Customers who purchase products from sellers. | | Razorpay | The platform through which buyers can initiate claims. | ## Advantages for Sellers * **Increase in Customer Conversion** \ By showcasing that your customers' purchases are protected, you build trust and reassure them of safety against fraudulent activities. This trust encourages customers to complete their purchases, resulting in higher conversion rates. * **Improved ROI** \ Higher conversion rates, increased prepaid orders, and better customer retention lead to significant profit growth. Confident customers and fewer drop-offs contribute to a substantial return on investment. * **Boost in Prepaid Orders** \ With the added assurance, customers are more inclined to choose prepaid payment options. This trust encourages them to make upfront payments, reducing cart abandonment. * **Customer Retention and Repeat Purchases** \ A secure purchasing experience builds customer trust and loyalty over time. Satisfied customers are more likely to return for future transactions, increasing repeat purchases and improving retention. ### Integration You can integrate the widget on your [Shopify Store](/docs/payments/widgets/buyer-protection/shopify). ### Related Information * [Money Back Promise](/docs/payments/widgets/buyer-protection/money-back-promise) * [FAQs](/docs/payments/widgets/buyer-protection/faqs) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/widgets/buyer-protection/faqs Find answers to frequently asked questions about Razorpay Buyer Protection. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ## Seller > [accordion] Why do I need Razorpay to offer Buyer Protection? Why cannot I offer purchase protection on my own? > > Razorpay processes millions of transactions daily, leveraging this extensive data to provide cost-effective customer protection. Our experience and established trust help us offer a higher level of protection and credibility that is difficult to achieve independently. > [accordion] How does Razorpay Buyer Protection benefit my business? > > Razorpay Buyer Protection enhances customer trust, leading to higher conversion rates and more prepaid orders. It also promotes repeat business, boosting customer loyalty and improving your return on investment. Know how Razorpay Buyer Protection [benefits your business](/docs/payments/widgets/buyer-protection#advantages-for-sellers). > [accordion] How do I sign up for Razorpay Buyer Protection? > > You can either fill in the [form](https://razorpay.typeform.com/to/YpJfvpE6#name=xxxxx) or raise a request with our [support team](https://razorpay.com/support/) to get this feature enabled on your account. ## Buyer > [accordion] What is the Razorpay Buyer Protection Program? > > The Razorpay Buyer Protection Program enhances your shopping experience by providing added assurance and protection when you make purchases through Razorpay. This program allows you to initiate claims and potentially receive a full reimbursement based on eligibility and provided information. > [accordion] Is there a cost to initiate a claim under Razorpay Buyer Protection? > > No, initiating a claim under the Razorpay Buyer Protection Program is free for buyers. > [accordion] What is the eligibility criteria for making a claim? > > Refer to the [terms and conditions.](https://razorpay.com/terms/money-back-promise/) > [accordion] How does the Razorpay Buyer Protection claim process work? > > The process works as follows: > > * You make a purchase and either receive incorrect/defective/damaged product or do not receive the product from the seller. > * If you want to return a product, first initiate the return process with the seller. If the return is denied, you must wait before filing a claim with Razorpay. > * If you do not receive the product, raise a complaint with the seller. If the seller refuses delivery, you must wait before initiating a claim with Razorpay. > * You initiate a claim with Razorpay, where eligibility is assessed and the seller's perspective is considered. > * Razorpay reviews your claim. > * If your claim is approved, Razorpay initiates and completes the refund. > Know more about the [Buyer Protection claim process and timelines](/docs/payments/widgets/buyer-protection/money-back-promise#how-it-works). > [accordion] Can I re-initiate a claim? > > If your claim is rejected, you cannot initiate it again. > [accordion] Where can I raise my claim? > > You can visit [Razorpay Support](https://razorpay.com/support/) to raise a claim. Ensure you refer to the [terms and conditions](https://razorpay.com/terms/money-back-promise/) before you begin. # Money Back Promise Program Source: https://razorpay.com/docs/payments/widgets/buyer-protection/money-back-promise Enhance your shopping with Money Back Promise Program; initiate free claims and secure full reimbursement based on eligibility and provided information. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Money Back Promise Program is designed to enhance your shopping experience. We provide buyers with added assurance and protection when making purchases through our platform, as outlined in our terms and conditions, which are part of the user agreement. As a buyer, you can initiate a claim for **free**. If eligible, Razorpay's Buyer Protection Program entitles you to a reimbursement of the full transaction value. Razorpay will determine, at its sole discretion, whether your claim amount and validity is eligible based on the programโ€™s eligibility requirements and any relevant information provided during the resolution process. > [!NOTE] > > **Terms and Conditions** > > Razorpay considers several factors to determine whether your claim is eligible. Before you begin, refer to the [terms and conditions](https://razorpay.com/terms/money-back-promise/). ## How It Works The following diagram displays the buyer journey and the respective timelines: ![Buyer Protection Claim Flow](https://razorpay.com/docs/build/browser/assets/images/buyer-protection-claim-flow.jpg) ## Initiate a Claim Follow the steps given below to initiate a claim: 1. Visit [Razorpay Support](https://razorpay.com/support/). 2. Click **Customer**. 3. In the **Track Payments** section, you can track with **phone number**. 4. Enter your phone number. Enter the OTP, select the **I'm not a robot** check box and click **Check Status**. > [!WARNING] > > **Watch Out!** > > If you are unable to check the status, your mobile number might be incorrect or not verified with us. Ensure your mobile number is correct. To verify your number, contact our [support team](https://razorpay.com/support/). ![Enter phone number to select the order to initiate claim](https://razorpay.com/docs/build/browser/assets/images/buyer-claim.gif) 5. A list of transactions backed by Razorpay Money Back Promise is displayed. Select the order you want to initiate a claim. 6. Scroll down to the **Covered by Razorpay Money Back Promise** section and click **Initiate Claim**. ![Click initiate claim](https://razorpay.com/docs/build/browser/assets/images/buyer-initiate-claim.jpg) 7. Upload the following documents: * **Proof of purchase** * **Bank debit slip indicative of purchase of item** * **Confirmation from Razorpay about transaction and the amount** * **Proof of communication with seller on the dispute** 8. Click **Submit**. ![Submit proofs to initiate claim](https://razorpay.com/docs/build/browser/assets/images/buyer-submit-proofs.jpg) > [!NOTE] > > **Handy Tips** > > Once your claim is approved, Razorpay will send you a payout link. Enter the bank account details where you want to receive the refund. ## Claim Statuses The following table lists the various states of a claim: ![Money Back Promise Program claim lifecycle](https://razorpay.com/docs/build/browser/assets/images/magic-buyer-protect-claim-cycle.jpg) > [accordion] Statuses and Descriptions > > | Status | Description | > | - | - | > | Claim Initiated | The initial state of a claim, indicating that the buyer has uploaded the required documents and submitted the claim. | > | Claim In-progress | The claim is currently under inspection and review. | > | Claim Approved | The claim has been approved. Once approved, the reimbursement amount is credited to the buyer's account. | > | Claim Cancelled | The claim has been cancelled by either the buyer or Razorpay and the reason for cancellation is specified. | > | Claim Rejected | The claim has been rejected and the reason for rejection is specified. | > > > [!WARNING] > > > > **Watch Out!** > > > > If a claim is rejected, the buyer cannot initiate the claim again. ### Related Information [FAQs](/docs/payments/widgets/buyer-protection/faqs) # Integrate Razorpay Buyer Protection With Shopify Source: https://razorpay.com/docs/payments/widgets/buyer-protection/shopify Enhance your customers' shopping experience with Razorpay Buyer Protection widget on your Shopify website's product page. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Razorpay Buyer Protection Widget on Shopify Changelog](/docs/payments/changelog#widgets) > > Discover new features, updates and deprecations related to RazorpayBuyer Protection Widget on Shopify (since Jan 2024). > [card] [Troubleshooting & FAQs](/docs/payments/widgets/buyer-protection/faqs) > > Find answers to frequently asked questions about Razorpay Buyer Protection. Integrate Razorpay Buyer Protection widget into your Shopify website's product pages. **Before you proceed:** * Sign up for a [Razorpay account](https://dashboard.razorpay.com/signup). * Log in to the Dashboard and [generate the API keys](/docs/api/authentication#generate-api-keys) in Live mode. * Sign up for a [Shopify account](https://www.shopify.in). > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Fill in the [form](https://razorpay.typeform.com/to/YpJfvpE6#name=xxxxx) or raise a request with our [support team](https://razorpay.com/support/) to get this feature enabled on your account. Follow these integration steps: > [card] [1. Build Integration](/docs/payments/widgets/buyer-protection/shopify#1-build-integration) > > Integrate Buyer Protection Widget > [card] [2. Test Integration](/docs/payments/widgets/buyer-protection/shopify#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/widgets/buyer-protection/shopify#3-go-live-checklist) > > Check the go-live checklist. > [accordion] Video Tutorial > > Watch this video to know how to integrate Razorpay Buyer Protection Widget on your Shopify Store. > > [Buyer Protection Widget Shopify Store](https://www.youtube.com/embed/Lyangg3UhXg?si=jk_5nrkVcwMixdRc) ## 1. Build Integration Follow the steps given below: 1. Log in to your [Shopify account](https://www.shopify.in). 2. Search for Razorpay Trusted Business or install the app directly from the [Shopify app store](https://apps.shopify.com/razorpay-trusted-badges). ![Shopify RTB App Install](https://razorpay.com/docs/build/browser/assets/images/shopify-rtb-app-install.jpg) > [!NOTE] > > **Handy Tips** > > * If you have multiple stores, select the store for which you want to install the Razorpay Trusted Business. > * In case you have already installed the app, navigate to **Apps** and search for **Razorpay Trusted Business** on the Shopify Dashboard. 3. After installing the app, you will be directed to your Shopify store. Enter your Razorpay Live API Key ID and click **Save**. This step is necessary to verify your eligibility for the widget. Know how to [generate API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. ![Live api key id](https://razorpay.com/docs/build/browser/assets/images/live-api-key-id.jpg) > [!NOTE] > > **Handy Tips** > > In case you are not redirected to the theme editor page, then navigate to **Online Store** in the **Sales channels** section and click **Themes**. Click **Customize**. > > ![Shopify theme editor page](https://razorpay.com/docs/build/browser/assets/images/shopify-widget-theme-editor.jpg) 4. You will be redirected to the Shopify product configuration page. Under the **Template** section, hover below the **Price** and click on the icon to **Add block**. We recommend adding the widget below the product price. 5. Navigate to **Apps** and select **rtb-widget** (Razorpay Trusted Business). The customers will be able to view the widget below the product price. ![Shopify default product page - buyer protect widget](https://razorpay.com/docs/build/browser/assets/images/buyer-protect.gif) 6. Click **Save** in the top right corner. #### Successful Activation Here is a glimpse of the default widget with offers and payment method options enabled. ![Glimpse of the default widget](https://razorpay.com/docs/build/browser/assets/images/widgets-buyer-protect.jpg) ## 2. Test Integration You can now preview and test the widget on the page where you integrated it. Follow the checklist: * **Widget Rendering**: Confirm that the RTB widget renders correctly on the decided location of the desired page. * **Widget Interaction**: Interact with the widget to verify that users can click the widget to access additional information on the RTB website. * **Responsive Design**: Resize the browser window or access the page on different devices to test the widget's responsiveness. * **Widget Loading**: Ensure the widget loads quickly and smoothly without causing any delays or disruptions on the page it is integrated. ## 3. Go-live Checklist You can now preview the widget on your product description page. Here is a glimpse of the default widget. > [accordion] On Web > > ![View the Buyer Protect widget on desktop](https://razorpay.com/docs/build/browser/assets/images/buyer-widget-desktop.jpg) > [accordion] On Mobile > > ![View the Buyer Protect widget on mobile](https://razorpay.com/docs/build/browser/assets/images/buyer-widget-mobile.jpg) ### Related Information * [Money Back Promise](/docs/payments/widgets/buyer-protection/money-back-promise) * [FAQs](/docs/payments/widgets/buyer-protection/faqs) # About Razorpay Trusted Business Widget Source: https://razorpay.com/docs/payments/widgets/trusted-business Enhance your business credibility with the Razorpay Trusted Business Widget. Boost customer confidence about your business's legitimacy and minimise drop-offs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay Trusted Business (RTB) Widget offers a simple solution to enhance trust and reduce drop-offs. You can seamlessly embed the widget on your website with two integration steps. This widget provides information about your business's legitimacy and product/service quality. It dynamically adjusts its content to match the purchase journey, product, business category, and individual customers, effectively reducing doubt and minimising drop-offs. ![View the RTB widget on desktop](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-desktop.jpg) > [accordion] Use Cases > > The Razorpay Trusted Business widget enhances sales and conversions by boosting authenticity, credibility, and transaction safety, reducing cart abandonment and hesitation. It provides transparent refund policies for a trustworthy customer experience for: > > * Ecommerce Business > * Educational Industry > * Banking, Financial Services and Insurance Industry > * Travel Industry > * Startup > * Micro Business and Freelancers > * NGO ## How it Works The following diagram depicts the customer journey after integrating the Razorpay Trusted Business widget on your website: ![RTB Widget Flow Diagram](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-flow.jpg) ## Prerequisites * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Generate the API Keys on the Dashboard. You can use the [Test Mode keys](/docs/api/authentication#live-mode-api-keys) to test the integration and preview the Widget. Later, switch to **Live Mode** on the Dashboard, generate the [Live API keys](/docs/api/authentication#live-mode-api-keys) and replace it with the test keys. * Check if you are [eligible](/docs/payments/payment-gateway/features/trusted-business#eligibility-requirements-for-razorpay-trusted-business-badge) for Razorpay Trusted Business on the Dashboard. > [!NOTE] > > **Handy Tips** > > * The widget appears on your website only if you are eligible for RTB. > * It renders only on domains you have whitelisted. Hence, ensure that the domains you wish to display the widget on are whitelisted with Razorpay. > * Domain Whitelisting happens during the onboarding process. If not, you can raise a request with our [Support team](https://razorpay.com/support/#request). * Currently, the RTB widget is supported on Web and [shopify](/docs/payments/widgets/trusted-business/rtb-widget-shopify). > [accordion] Where to place the Widget on your website? > > We recommend the following locations on your website to display the widget for better conversions: > > | Business Category | Location | > | - | - | > | Ecommerce Business | In the product details page near the:
  • Product image
  • Ratings
  • Offers
  • Buy Now or Add to Cart button
| > | Educational Industry | In the payment links near the:
  • Business name
  • Product amount
| > | Banking, Financial Services and Insurance Industry | In the repayment, investment, premium payment links and onboarding links near the:
  • Business name
  • Product amount
| > | Travel Industry |
  • In the landing page near the business name.
  • The checkout page near the product amount or booking details.
| > | Startup, Micro Business and Freelancers | In the pricing page and landing pages near the:
  • Business name
  • Product amount
| > | NGO | In the checkout page and landing page near the:
  • Business name
  • Product amount
| ## Integration Steps Follow these steps to integrate the RTB widget on your website: > [accordion] Step 1: Embed JS File in Website > > Use the following code to embed the JavaScript file into your website in the head section: > > ```javascript Embed JS theme={null} > > > ``` > [accordion] Step 2: Add Widget on Website > > Create a custom Razorpay Trusted Business widget HTML element based on where you want to place the widget and link the following code to your HTML file. Replace the key with your Test Key generated from the Dashboard. > > ```javascript Add Widget theme={null} > > ``` > > `key` *mandatory* > : `string` API Key id generated from the [Dashboard](/docs/api/authentication#generate-api-keys). For example, `rzp_test_XXXX00000XXXX`. ## Customise Widget > [accordion] Use the following code to customise the widget: > > ```java Customise theme={null} > > ``` > > `key` *mandatory* > : `string` API Key id generated from the [Dashboard](/docs/api/authentication#generate-api-keys). For example, `rzp_test_XXXX00000XXXX`. > > `dark-mode` *optional* > : `boolean` Enable or disable dark mode for the widget. Possible values: > > * `true`: Enable dark mode. > * `false` (default): Disable dark mode. > > `hide_attributes` *optional* > : `comma separated string` Hide any information you do not want to display on the widget and RTB website. Possible values: > > * `age`: Indicates your brand's historical presence and experience. > > * `transaction_history`: Your past transaction records and history. > > * `ratings_review`: User-generated ratings and reviews of your business and product. > > * `return_policy`: Your policy regarding product returns. > > * `user_testimonials`: Testimonials and endorsements from previous customers. > > * `purchase_protection`: Purchase protection-related details. > > * `serviceability_details`: Product/service availability and shipping-related details. > > * `social_media_details`: Your presence and activity on social media platforms. > > * `customer_support_details`: Contact and support information for customers. > > > [!NOTE] > > > > **Handy Tips** > > > > * By default, all the necessary information is displayed on the widget and RTB website. > > * Attributes provide valuable information to customers about your business. The algorithm determines the most effective attributes and what information should appear on the widget and RTB website to enhance conversions. ## Test Widget You can now preview and test the widget on the page you integrated it. > [accordion] Follow the checklist to test the integration: > > * **Widget Rendering**: Confirm that the RTB widget renders properly on the decided location of the desired page. > * **Widget Interaction**: Interact with the widget to verify that users can click the widget to access additional information on the RTB website. > * **Responsive Design**: Resize the browser window or access the page on different devices to test the widget's responsiveness. > * **Widget Loading**: Ensure the widget loads quickly and smoothly without causing any delays or disruptions on the page it is integrated. ## Go Live With Widget After you preview and test the widget on your Dashboard, switch to the live mode to generate live API keys. Replace the test keys with these live keys to take the integration live. Know more about [live API keys](/docs/api/authentication#live-mode-api-keys). Your customers can view the widget on your website. Once they click the widget, it redirects them them to the RTB website to access more information. * Here is a glimpse of the default widget: > [accordion] On Web > > ![View the RTB widget on desktop](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-desktop.jpg) > [accordion] On Mobile > > ![View the RTB widget on mobile](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-mobile.jpg) * Here is a glimpse of the RTB website: > [accordion] On Web > > ![Desktop view of the RTB website for more information](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-website-desktop.jpg) > [accordion] On Mobile > > ![Mobile view of the RTB website for more information](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-website-mobile.jpg) # Razorpay Trusted Business Widget | FAQs Source: https://razorpay.com/docs/payments/widgets/trusted-business/faqs Find answers to frequently asked questions about Razorpay Trusted Business Widget. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ## For Businesses > [accordion] What is Razorpay Trusted Business? How does it benefit me? > > Razorpay Trusted Business offers a trust badge to businesses to showcase their trustability and win consumer trust. This helps in improving customer confidence and hence reduces drop-offs in your buying journey. > [accordion] What is new in Razorpay Trusted Business Widget? > > Razorpay Trusted Business (RTB) is a badge on Razorpay's Checkout for a limited set of businesses. Additionally, we have launched a tamper-proof Razorpay Trusted Business Widget, which you can integrate into websites/apps, allowing you to showcase trust throughout the shopping journey instead of checkout. The eligibility criteria are upgraded to include more trust-worthy businesses to avail of RTB features. > [accordion] Why do I need Razorpay to offer this? Can I put a badge and offer purchase protection on my own? > > * Razorpay processes millions of transactions per day across millions of businesses. The intelligence gained through these transactions allows Razorpay to offer customer protection at a lower cost, which is primarily a risk problem. > * Razorpay offers several advantages developed over the years, such as consumer trust and strong brand awareness that makes customers feel secure and confident. > [accordion] How does Razorpay Trusted Business Widget benefit my business? > > RTB helps in improving your sales, reducing customer acquisition cost and reducing your return frauds. These are expected to improve your topline by 10% and net revenue by 15%. > [accordion] How do I sign up for Razorpay Trusted Business Widget? Are there any costs associated with these products? > > Check if you are [eligible](/docs/payments/payment-gateway/features/trusted-business#eligibility-requirements-for-razorpay-trusted-business-badge)for Razorpay Trusted Business on the Dashboard. If eligible, you can activate it for a nominal fee, depending on the nature and size of your business. If you are not eligible, you can follow the instructions on the Dashboard to make your business eligible. ## For Customers > [accordion] What is Razorpay Trusted Business Widget? > > Razorpay Trusted Business (RTB) is a suite of products provided by India's leading payment solutions provider, Razorpay. It is exclusively available to businesses exhibiting authenticity and secure payment systems. When you choose a business with the RTB, it indicates they have been assessed for authenticity and transaction safety, ensuring a smooth shopping experience and facilitating your purchase decision. > [accordion] How can I validate that a business is Razorpay Trusted? > > You can validate that a business is a Razorpay Trusted Business by clicking on the RTB icon in any of the RTB assets on the business's website. It will display the checks done on the business to determine their eligibility for RTB. > [accordion] How does Razorpay Trusted Business Widget benefit me as a customer? > > With 58% of online transactors in India experiencing money loss due to scams, RTB serves as the signal for trust on the internet, helping you identify businesses that are authentic and provide reliable services. # Integrate Razorpay Trusted Business Widget on Shopify Source: https://razorpay.com/docs/payments/widgets/trusted-business/rtb-widget-shopify Enhance brand trust, boost conversions, and display Razorpay Trusted Business widget on your Shopify website's product page. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Razorpay Trusted Business Widget on Shopify Changelog](/docs/payments/changelog#widgets) > > Discover new features, updates and deprecations related to Razorpay Trusted Business Widget on Shopify (since Jan 2024). Integrate Razorpay Trusted Business (RTB) widget into your Shopify website's product pages. [Download Plugin](https://apps.shopify.com/razorpay-trusted-badges) ## Get Started Follow the [integration steps](#integration-steps) to integrate the RTB on your [Shopify](https://www.shopify.in/) website. ## Prerequisites * Sign up for a [Razorpay account](https://dashboard.razorpay.com/signup). * Sign up for a [Shopify account](https://www.shopify.in). ## Integration Steps Follow these steps to proceed with the integration: > [card] [1. Build Integration](/docs/payments/widgets/trusted-business/rtb-widget-shopify#1-build-integration) > > Install the plugin. > [card] [2. Test Integration](/docs/payments/widgets/trusted-business/rtb-widget-shopify#2-test-integration) > > Test the RTB widget. > [card] [3. Go-Live Checklist](/docs/payments/widgets/trusted-business/rtb-widget-shopify#3-go-live-checklist) > > Check the go-live checklist. ### 1. Build Integration Follow the below steps to install the plugin: > [accordion] Install the Plugin > > > [!NOTE] > > > > **Handy Tips** > > > > If you are an existing Razorpay user, you can directly begin the integration process from step 4. > > 1. Create a [Razorpay Account](https://dashboard.razorpay.com/signup). > > 2. Submit your KYC, and if we need any further clarification, we will reach out to you on WhatsApp, SMS and email. Once our team completes KYC verification and you are enabled to accept payments, we will send a confirmation on WhatsApp, SMS and email. > > 3. Log in to your [Shopify account](https://www.shopify.in). > > 4. **Install** [Razorpay Trusted Business](https://apps.shopify.com/razorpay-trusted-badges) from the Shopify app store. > > ![Shopify RTB App Install](https://razorpay.com/docs/build/browser/assets/images/shopify-rtb-app-install.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > If you have multiple stores, select the store for which you want to install the RTB widget. > > 5. After installing the app, you will be directed to your Shopify store and asked to enter your Razorpay Live API Key ID. This step is necessary to verify your eligibility for the RTB badge. Know how to [generate API Keys](/docs/api/authentication#generate-api-keys) from the Dashboard. > 6. After getting your Live API Key ID, go to your Shopify store, enter your live key and click **Save**. If you are eligible, you will be redirected to your theme page. > > ![Live api key id](https://razorpay.com/docs/build/browser/assets/images/live-api-key-id.jpg) > 7. Perform the following steps on the theme page: > 1. Select the **Default product** from the drop-down list. > 2. Click **Add block** under **Product information** from the left menu. > > ![Shopify default product page add block](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-product-page-add-block.jpg) > 3. Select the **rtb-widget** to insert the RTB widget in your product page. > > ![Shopify default product page-widget](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-product-page-widget.jpg) > 8. The RTB widget appears on your product page. You can drag and drop it to relocate, depending on your requirements. Click **Save** at the top right of your screen after adjusting. > > ![Shopify RTB product screen](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-product-page.jpg) > 9. Visit your website, access one of the product pages, and preview the widget to see how it appears to your buyers. > > This completes your integration. ### 2. Test Integration You can now preview and test the widget on the page where you integrated it. Follow the checklist: * **Widget Rendering**: Confirm that the RTB widget renders correctly on the decided location of the desired page. * **Widget Interaction**: Interact with the widget to verify that users can click the widget to access additional information on the RTB website. * **Responsive Design**: Resize the browser window or access the page on different devices to test the widget's responsiveness. * **Widget Loading**: Ensure the widget loads quickly and smoothly without causing any delays or disruptions on the page it is integrated. ### 3. Go-live Checklist After previewing and testing the widget on your Shopify Dashboard, you must replace the test mode API keys with the live mode API keys. You can generate the [live mode API keys](/docs/api/authentication#live-mode-api-keys). from the Dashboard. Your customers can view the widget on your website. After they click the widget, it redirects them to the RTB website to access more information. * Here is a glimpse of the default widget: > [accordion] On Web > > ![View the RTB widget on desktop](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-desktop.jpg) > [accordion] On Mobile > > ![View the RTB widget on mobile](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-mobile.jpg) * Here is a glimpse of the RTB webpage: > [accordion] On Web > > ![Desktop view of the RTB website for more information](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-website-desktop.jpg) > [accordion] On Mobile > > ![Mobile view of the RTB website for more information](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-website-mobile.jpg) ## Support Queries: If you have queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/). # Integrate Razorpay Trusted Business Widget on WooCommerce Source: https://razorpay.com/docs/payments/widgets/trusted-business/rtb-widget-woocommerce Enhance brand trust, boost conversions, and display Razorpay Trusted Business widget on your WooCommerce website's product page. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Razorpay Trusted Business Widget on WooCommerce Changelog](/docs/payments/changelog#widgets) > > Discover new features, updates and deprecations related to Razorpay Trusted Business Widget on WooCommerce (since Jan 2024). Integrate Razorpay Trusted Business (RTB) widget into your WooCommerce website's product pages. [Download Plugin](https://github.com/razorpay/razorpay-woocommerce/releases) ## Get Started Follow the [integration steps](#integration-steps) to integrate the RTB widget on your [WooCommerce](https://woo.com/) website. ## Prerequisites * Sign up for a [Razorpay account](https://dashboard.razorpay.com/signup). * Set up your [WooCommerce store](https://woo.com/). ## Integration Steps Follow these steps to proceed with the integration: > [card] [1. Build Integration](/docs/payments/widgets/trusted-business/rtb-widget-woocommerce#1-build-integration) > > Install the plugin. > [card] [2. Test Integration](/docs/payments/widgets/trusted-business/rtb-widget-woocommerce#2-test-integration) > > Test the RTB widget. > [card] [3. Go-Live Checklist](/docs/payments/widgets/trusted-business/rtb-widget-woocommerce#3-go-live-checklist) > > Check the go-live checklist. ### 1. Build Integration Follow the below steps to install the plugin: > [accordion] Install the plugin > > > [!NOTE] > > > > **Handy Tips** > > > > If you are an existing Razorpay user, you can directly begin the integration process from step 3. > > 1. [Sign up](https://dashboard.razorpay.com/signup?) for a Razorpay account. > 2. Complete your KYC process. To confirm your successful activation or clarify any KYC queries, we will contact you via WhatsApp, SMS and email. > 3. From the Wordpress Plugins list, [install](https://wordpress.org/plugins/woo-razorpay/) the latest Razorpay for WooCommerce plugin with RTB widget. > 4. After you install the plugin, go to the plugin settings and enter the Razorpay [API Key](/docs/api/authentication#generate-api-keys) ID and secret. Click **save** to check eligibility for the RTB. > > ![Enter API key id and secret](https://razorpay.com/docs/build/browser/assets/images/woocommerce-enter-keyid-secret.jpg) > > If you are eligible, the option to enable the RTB widget will appear. Select the checkbox against **Enable RTB Widget?** and click **Save changes**. If you are not eligible, refer to our [eligibility requirements](/docs/payments/payment-gateway/features/trusted-business#eligibility-requirements-for-razorpay-trusted-business-badge). > > ![Enable RTB widget](https://razorpay.com/docs/build/browser/assets/images/enable-rtb-widget.jpg) > > This completes your integration. > > To verify the integration, visit your WooCommerce website and access any of your product pages. Preview the page to check how the RTB widget appears to your buyers. > > ![RTB widget demo page](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-demo-page.jpg) ### 2. Test Integration You can now preview and test the widget on the page where you integrated it. Follow the checklist: * **Widget Rendering**: Confirm that the RTB widget renders correctly on the decided location of the desired page. * **Widget Interaction**: Interact with the widget to verify that users can click the widget to access additional information on the RTB website. * **Responsive Design**: Resize the browser window or access the page on different devices to test the widget's responsiveness. * **Widget Loading**: Ensure the widget loads quickly and smoothly without causing any delays or disruptions on the page it is integrated. ### 3. Go-live Checklist After previewing and testing the widget on your Wordpress Dashboard, you must replace the test mode API keys with the live mode API keys. You can generate the [live mode API keys](/docs/api/authentication#live-mode-api-keys) from the Dashboard. Your customers can view the widget on your website. After they click the widget, it redirects them to the RTB website to access more information. * Here is a glimpse of the default widget: > [accordion] On Web > > ![View the RTB widget on desktop](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-desktop.jpg) > [accordion] On Mobile > > ![View the RTB widget on mobile](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-mobile.jpg) * Here is a glimpse of the RTB webpage: > [accordion] On Web > > ![Desktop view of the RTB website for more information](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-website-desktop.jpg) > [accordion] On Mobile > > ![Mobile view of the RTB website for more information](https://razorpay.com/docs/build/browser/assets/images/rtb-widget-website-mobile.jpg) ## Support Queries: If you have queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/). # About Invoices Source: https://razorpay.com/docs/payments/invoices Issue Razorpay Invoices to your customers from the Razorpay Dashboard or using APIs and start accepting payments. Check the Payment Methods and International Currency support and more. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia An Invoice is a digital document that summarises the details of an order or a transaction and allows customers to initiate payments. A typical invoice contains sale transaction information such as the name of the ordered products or services, quantities, price breakup, receipt number, customer information and so on. ## About Razorpay Invoices Use Razorpay Invoices to create, issue and track invoices, both via Dashboard and APIs. Once an invoice is issued, the customer can make the payment. ## Advantages * Flexible invoicing \ Create and add items sold, add detailed taxes, offer discounts on the invoice or individual items and add terms and conditions. * Unlimited invoices \ Create and send as many invoices as you want. You are charged when invoices get paid. * GST-compliant invoices \ Add GST, discounts and shipping details in the invoice, and Razorpay Invoicing solution does the necessary calculations. * Embedded payment link \ The customers receive a payment link on SMS or email using which they can easily pay. * Set expiry date \ Set due dates for invoices after which the invoices expire. * Partial payments \ You can allow your customers to make partial payments while creating the invoices from the Dashboard. * Easy integration using APIs \ The invoicing solution can be seamlessly integrated with existing billing and order management systems using APIs. * Download invoices \ Let your customers download a copy of the invoices for quick and easy references. * Access control \ You can create roles/teams for different levels of actions on invoices (create, view, edit and so on). Know more about [roles and actions](/docs/payments/dashboard/account-settings/manage-team). You can perform all the actions on invoices from the Dashboard - create, issue, cancel, duplicate, search, update or delete. You can also subscribe to Webhook events for immediate notifications. You can perform most of these actions using [APIs](/docs/payments/invoices/apis). ## List of Supported Payment Methods * Online Payment \ Customers can make online payments using [Card](/docs/payments/payment-methods/cards), [Netbanking](/docs/payments/payment-methods/netbanking), [UPI](/docs/payments/payment-methods/upi), [Pay Later](/docs/payments/payment-methods/pay-later), and **wallets**. ## International Currency Support You can create non-GST invoices in any of the [supported international currencies](/docs/payments/international-payments#supported-currencies) using the Dashboard or APIs. > [!WARNING] > > **Watch Out!** > > You cannot add tax rates for invoices created using international currencies. ### Supported Platforms Razorpay Invoices is supported on the following platforms: > [tab] Standard Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | > [tab] Custom Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | x | x | x | x | ## Address Verification System If you are accepting international payments, you can use Razorpay's Address Verification System (AVS). AVS verifies if a customer's billing address (postal code and the billing street address) matches the billing address on file with the card issuer. Based on the response from the issuer, Razorpay will accept or cancel the transaction. This helps in the prevention of fraud in international payments. Know more about [Address Verification System](/docs/payments/international-payments/address-verification-system). ## Get Started Log in to the Dashboard and click **Invoices**. ### Integrate With Existing Systems You can easily integrate Razorpay Invoices with your existing order management and billing solution. You can integrate using the Dashboard or using APIs. With API integration, an invoice can be created as soon as an order is created on your order management system. ### What Next Understand [how you can use Razorpay Invoices](/docs/payments/invoices/how-it-works) and the various [Invoice states](/docs/payments/invoices/states). ### Related Information * [How Invoices Work](/docs/payments/invoices/how-it-works) * [Invoices States](/docs/payments/invoices/states) * [Create an Invoice](/docs/payments/invoices/create) * [Issue an Invoice](/docs/payments/invoices/issue) * [Search an Invoice](/docs/payments/invoices/search) * [Update an Invoice](/docs/payments/invoices/update) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Delete an Invoice](/docs/payments/invoices/delete) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Download and Print an Invoice](/docs/payments/invoices/download-print) * [Subscribe to Webhooks](/docs/payments/invoices/subscribe-to-webhooks) * [Invoice APIs](/docs/payments/invoices/apis) # Invoice APIs Source: https://razorpay.com/docs/payments/invoices/apis List of Invoice APIs available to perform various actions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can use the Invoice APIs to perform various actions. You can perform all of these actions from the Dashboard as well. ## List of Invoice APIs The table below lists the various invoice APIs and gives a brief description of each API: | API | Description | | - | - | | [Create an invoice with Customer ID](/docs/api/payments/invoices/create-with-customer-id) | API to create a new invoice using Customer ID. | | [Create an invoice with details](/docs/api/payments/invoices/create-with-details) | API to create a new invoice using details. | | [Update an invoice](/docs/api/payments/invoices/update) | API to update an existing invoice | | [Issue an invoice](/docs/api/payments/invoices/issue) | API to issue a `draft` invoice to customers to make payments | | [Delete an invoice](/docs/api/payments/invoices/delete) | API to delete an existing `draft` invoice | | [Cancel an invoice](/docs/api/payments/invoices/cancel) | API to cancel an existing unpaid `issued` invoice | | [Fetch an invoice](/docs/api/payments/invoices/fetch-with-id) | API to view invoice details by providing the invoice id | | [Fetch all invoices](/docs/api/payments/invoices/fetch-all) | API to view a list of all the invoices or a list of all the invoices raised for a customer | | [Send an invoice](/docs/api/payments/invoices/resend) | API to resend `issued` invoices to customers to make payments | ### Related Information * [Create an Invoice](/docs/payments/invoices/create) * [Issue an Invoice](/docs/payments/invoices/issue) * [Search an Invoice](/docs/payments/invoices/search) * [Update an Invoice](/docs/payments/invoices/update) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Download and Print an Invoice](/docs/payments/invoices/download-print) * [Subscribe to Webhooks](/docs/payments/invoices/subscribe-to-webhooks) # Cancel an Invoice Source: https://razorpay.com/docs/payments/invoices/cancel Cancel an Invoice via Razorpay Dashboard or APIs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can cancel an unpaid invoice which is in `issued` state. A customer cannot make payments for the cancelled invoices. Know more about [invoice states](/docs/payments/invoices/states). ## Cancel an Invoice From Dashboard To cancel an invoice: 1. Log in to the Dashboard. 2. Click **Invoices**. 3. Search for the invoice that you want to cancel using the [search criteria](/docs/payments/invoices/search). You can cancel invoices that are in `draft` or `issued` state. 4. Select the **Invoice Id**. 5. On the right-hand side panel, click the **Cancel Invoice** button. 6. On the **Cancel Invoice?** dialog box, click **Yes, Cancel** to confirm the cancellation. ![cancel invoice dialog box](https://razorpay.com/docs/build/browser/assets/images/invoices-invoice-cancel.jpg) The cancelled invoices display a **Cancelled** status label. ## Cancel an Invoice Using APIs You can cancel an unpaid invoice in `issued`state using [this](/docs/api/payments/invoices) API. ### Related Information * [Invoices](/docs/payments/invoices) * [How Invoices Work](/docs/payments/invoices/how-it-works) * [Invoices States](/docs/payments/invoices/states) * [Create an Invoice](/docs/payments/invoices/create) * [Search an Invoice](/docs/payments/invoices/search) * [Update an Invoice](/docs/payments/invoices/update) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Delete an Invoice](/docs/payments/invoices/delete) * [Download and Print an Invoice](/docs/payments/invoices/download-print) # Create an Invoice Source: https://razorpay.com/docs/payments/invoices/create Create and save an Invoice. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia An Invoice is a digital document that summarises the details of an order or a transaction and allows customers to initiate payments. A typical invoice contains sale transaction information such as the name of the ordered products or services, quantities, price breakup, receipt number, customer information and so on. ### GST and Non-GST Invoices You can generate both GST-compliant and non-GST invoices from the Dashboard. > [!NOTE] > > **Handy Tips** > > If GSTIN is not provided before creating an invoice, the option to display **Tax Rate** on the invoice as per the **HSN/SAC code** of each item is not available. However, you can create GST-compliant invoices at any time by clicking the **GST Details** button on the main menu. > > ![Add GSTIN](https://razorpay.com/docs/build/browser/assets/images/invoices-gstin-add.gif) ### International Currency Support You can create non-GST invoices in any of the supported international currencies from the Dashboard. You cannot add tax rates for invoices created using international currencies. If the invoice is created using any of the supported international currencies, it is recommended to create the **Items** in the corresponding currency. #### Change Currency While creating an invoice, click **Change Currency** to select from the supported international currencies. On selecting the required currency, the rate of all the line items in the current invoice will be reset to 0. Know more about [List of supported international currencies.](/docs/payments/international-payments#supported-currencies) ## Create an Invoice From Dashboard > [!NOTE] > > **Configure Invoices** > > If you are using Razorpay Invoices for the first time, you need to set the Invoice Label as Step 1 and provide GSTIN number as Step 2 (for GST-compliant invoices) before you get started with creating your first invoice. You can create Non-GST compliant invoices if you do not provide GSTIN number. > > While creating an invoice, you can change the Invoice Label or create GST Enabled Invoices on the **New Invoice** page. Watch this video to know how to create an invoice. [YouTube video player](https://www.youtube.com/embed/tKZ2-s0LmXE?si=NGLVySsNDJPoz0X7) To create an invoice: 1. Log in to the Dashboard. 2. Click **Invoices** โ†’ **+Create Invoice**. 3. A new invoice draft is displayed with your company name and logo. 4. Enter a unique **Invoice #**. Provide a brief description or summary of the invoice. 5. Under the **BILLING TO** field, select a customer by searching from the list of existing customers. You can also [create a new customer while creating an invoice](#create-a-new-customer-while-creating-invoice) 6. Enter the **ISSUE DATE** of the invoice. By default, it takes today's date. Use the calendar icon if you want to select a different date as Issue Date. 7. Click the calendar icon to select the **EXPIRY DATE** of the invoice. The Expiry Date is the date after which the customer cannot pay for the invoice. You can keep this field blank, in such a case, there will not be any Expiry Date for the invoice. You cannot select an Expiry Date in past. 8. Under **BILLING ADDRESS**, the Billing Address as specified for the selected customer is displayed. You can change or remove this address and add a new address. 9. Under **SHIPPING ADDRESS**, click **Add Shipping Address**. The Shipping Address that was added while creating the customer is displayed. You can select the existing Shipping Address or click **Add new Address** to add a new Shipping Address. The newly added address is added to the list of saved Shipping Addresses for the customer. 10. Enter the **PLACE OF SUPPLY**. The Place of Supply is auto-populated based on the Shipping Address. You can also select a different State or Union Territory from the drop-down list. This field is displayed for GST-compliant invoices. This is a mandatory field as this determines the GST to be levied on the items. > [!WARNING] > > **Watch Out!** > > If the **PLACE OF SUPPLY**/**SHIPPING ADDRESS** is of a different state from the **BILLING ADDRESS**, the tax is computed as **IGST**, or it is divided into **CGST** and **SGST**. 1. Under **DESCRIPTION**, select an item, add the rate/item and the quantity. Click **Add Line Item** to add multiple items to the invoice. You can also [create a new item while creating an invoice](#create-a-new-item-while-creating-invoice) 2. In the **Add Customer Notes (Optional)** field, you can enter additional details, if any. You can add a maximum of 2048 characters in this field. 3. In the **Add Terms and Conditions (Optional)** field, you can add terms, if any. You can add a maximum of 2048 characters in this field. 4. Select **Enable Partial Payments** to accept multiple payments for the invoice. 5. Click **Save Invoice** to save the invoice as `draft`. You can also click **Finalize and Issue** to save the invoice and `issue` it to the selected customer. ![Create invoice from Dashboard](https://razorpay.com/docs/build/browser/assets/images/inv_cus_5.jpg) Click **All Invoices** on the top ribbon to view the newly created invoice in the list of all the invoices. Know more about [invoice states](/docs/payments/invoices/states). > [!NOTE] > > **Handy Tip** > > The GST details will be visible only if the **PLACE OF SUPPLY** is added. ### Create a New Customer While Creating Invoice You can also create a customer while creating an invoice. Click **+Create New Customer** which opens up a pop-up page. 1. Specify details of the customer, such as **Company/Individual Name**, **Email**, **Contact No.** and **GSTIN**. 2. Select the **Billing Address** check box to specify the Billing Address. 3. Next, specify the Shipping Address. If the Shipping Address is the same as Billing Address, select the **Same as Billing Address** check box. 4. Click **Create Customer**. The details of the newly created customer are auto-populated on the invoice draft. You can also click **Edit Customer** to make changes to the customer details. This customer will now be available to you for creating more invoices for this customer in future. This customer name is also displayed under the **Customers** menu. **Read More**: Know more about [customers](/docs/payments/customers). ![](https://razorpay.com/docs/build/browser/assets/images/invoices-inv_gst_1.jpg) ### Create a New Item While Creating Invoice You can also create a new item while creating an invoice. Click **+Create new Item** on the draft invoice which opens up a pop-up page. Specify details of the item, such as **Name**, **Rate per unit** and **Description**. For GST-compliant invoices, specify additional details: 1. Select the applicable **Tax Rate** for the item from the drop-down list. You cannot add tax rates for items created using international currencies. 2. **Add Cess** to the order amount. 3. Select **Tax Inclusive** if the item rate per unit includes the tax amount. Select **Tax Exclusive** if the taxes are in addition to the item rate per unit. 4. Enter the 6-8 characters **HSN** or 2-6 characters **SAC** code of the item. 5. Click **Add Item**. ![](https://razorpay.com/docs/build/browser/assets/images/invoices-inv_gst_4.jpg) > [!WARNING] > > **Watch Out!** > > When an item's attributes are modified while creating an invoice, the modified item cannot be reused. The item will then be referred as a **Line item**. In other words, a **Line Item** is created when an **Item** is used as a template, in order to customise its attributes. ## Create an Invoice Using API You can create an invoice for the items ordered on your website or app by a customer using [this](/docs/api/payments/invoices/create-with-customer-id/) API. However, you can create only non-GST invoices using this API. ## What Next If you have saved the invoice as `draft`, you should next [issue it](/docs/payments/invoices/issue) to the selected customer to receive payments. You can also choose to do any one of the following actions:\ * [Update invoice](/docs/payments/invoices/update) * [Duplicate invoice](/docs/payments/invoices/duplicate) * [Delete invoice](/docs/payments/invoices/delete) ### Related information * [Invoices](/docs/payments/invoices) * [Invoice States](/docs/payments/invoices/states) * [How Invoices Work](/docs/payments/invoices/how-it-works) * [Download or Print an Invoice](/docs/payments/invoices/download-print) * [Update an Invoice](/docs/payments/invoices/update) * [Issue an Invoice](/docs/payments/invoices/issue) * [Search an Invoice](/docs/payments/invoices/search) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Delete an Invoice](/docs/payments/invoices/delete) # Delete an Invoice Source: https://razorpay.com/docs/payments/invoices/delete Delete an Invoice using the Razorpay Dashboard or API. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can delete a `draft` invoice only. ## Delete an Invoice From Dashboard To delete an invoice: 1. Log in to the Dashboard. 2. Click **Invoices**. 3. Search for the invoice that you want to delete using the [search criteria](/docs/payments/invoices/search). You can delete invoices that are in the `draft` state only. 4. Select the **Invoice Id**. 5. On the right-hand side panel, click the **Delete Invoice** button. 6. On the **Delete Invoice?** dialog box, click **Yes, Delete** to confirm deletion. ![Delete Invoice](https://razorpay.com/docs/build/browser/assets/images/invoices-invoice-delete.jpg) The deleted invoices do not appear in the invoices list under **Invoices**. ## Delete an Invoice Using APIs You can delete an invoice in `draft` state using [this](/docs/api/payments/invoices/delete/) API. ### Related Information * [Invoices](/docs/payments/invoices) * [How Invoices Work](/docs/payments/invoices/how-it-works) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Create an Invoice](/docs/payments/invoices/create) * [Search an Invoice](/docs/payments/invoices/search) * [Update an Invoice](/docs/payments/invoices/update) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Download and Print an Invoice](/docs/payments/invoices/download-print) # Download and Print an Invoice Source: https://razorpay.com/docs/payments/invoices/download-print Download Invoices in PDF format and print them. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can download an invoice in PDF format and print it. To download an invoice as a PDF file or print it: 1. Log in to the Dashboard. 2. Click **Invoices** to open the list of invoices. 3. Copy the Payment Link ID of the invoice you want to download or print. 4. Paste it on the browser and open the invoice. 5. The invoice is displayed. Click any of the following: * **Download Invoice**: This downloads the invoice in PDF format. * **Print Invoice**: This opens the printer settings. Click the printer icon and complete the process. > [!NOTE] > > **Handy Tips** > > Customer details like name, mobile number, email, and so on will be hidden as Personal Identifiable Information (PII) when invoices are paid and downloaded in PDF format. ### Related Information * [Invoices](/docs/payments/invoices) * [How Invoices Work](/docs/payments/invoices/how-it-works) * [Invoices States](/docs/payments/invoices/states) * [Create an Invoice](/docs/payments/invoices/create) * [Search an Invoice](/docs/payments/invoices/search) * [Update an Invoice](/docs/payments/invoices/update) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Delete an Invoice](/docs/payments/invoices/delete) # Duplicate an Invoice Source: https://razorpay.com/docs/payments/invoices/duplicate Create copies of existing Invoices to save time and reduce errors. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can duplicate an existing invoice to save time and reduce errors. ## Duplicate an Invoice From Dashboard Watch this video to see how to create a duplicate of an invoice. [YouTube video player](https://www.youtube.com/embed/xJm010zbsKE) To duplicate an invoice: 1. Log in to the Dashboard. 2. Click on **Invoices**. 3. Search for the invoice for which you want to create a duplicate copy using the [search criteria](/docs/payments/invoices/search). 4. Click on the **Invoice ID**. 5. On the right-hand side panel, click the **Duplicate Invoice** button. ![Duplicate Invoice](https://razorpay.com/docs/build/browser/assets/images/duplicate_invoice.jpg) This duplicates the invoice. ## Edit a Newly Created Invoice To edit a newly created invoice: 1. In the **New Invoice** draft view, make the necessary changes. For example, you can choose a different **Item** or change the **billing address**. 2. Click **Save** to save the invoice as a `draft` or click **Finalize and Issue** to save and issue the invoice to the customer. ### Related Information * [Invoices](/docs/payments/invoices) * [How Invoices Work](/docs/payments/invoices/how-it-works) * [Invoice States](/docs/payments/invoices/states) * [Create an Invoice](/docs/payments/invoices/create) * [Issue an Invoice](/docs/payments/invoices/issue) * [Search an Invoice](/docs/payments/invoices/search) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Delete an Invoice](/docs/payments/invoices/delete) * [Download and Print an Invoice](/docs/payments/invoices/download-print) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/invoices/faqs Find answers to frequently asked questions about Razorpay Invoices. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia > [accordion] Can I raise GST-compliant invoices using Razorpay Invoices? > > Yes, you can raise both non-GST and GST-compliant invoices using Razorpay Invoices. You can use the Dashboard to create non-GST and GST compliant invoices. Using APIs, you can only create a non-GST invoice. Know more about [creating an invoice](/docs/payments/invoices/create). > [accordion] Can I raise invoices in international currency using Razorpay Invoices? > > Yes, you can create non-GST invoices in any of the [supported international currencies](/docs/payments/international-payments#supported-currencies) using the Dashboard or APIs. > [accordion] I have raised an invoice. How do I make changes to it? > > You can make any changes to an invoice in `draft` status. Know more about [updating an invoice](/docs/payments/invoices/update). > > > [!NOTE] > > > > **Handy Tips** > > > > If an invoice is issued to a customer, you can make only limited changes such as Expiry Date, Customer Comments and Terms and Conditions. If you need to make other changes to an `issued` invoice, [cancel the invoice](/docs/payments/invoices/cancel) and [create a new invoice](/docs/payments/invoices/create) with the revised details. However, you can cancel an **unpaid** issued invoice. > [accordion] I want to set a date by which the customer should make the payment. How do I do that? > > You can set an Expiry Date for invoices. The customer should make a payment against the invoice within this Expiry Date. The customer cannot make payments for an expired invoice. Know more about [setting Expiry Date for an invoice](/docs/payments/invoices/create#create-an-invoice-from-dashboard). > [accordion] What is the difference between Issue Date and Expiry Date? > > See: [Glossary](/docs/payments/invoices/glossary) > [accordion] The customer wants to make payments in parts. How do I raise such invoices? > > You can allow partial payments on invoices while raising an invoice or updating an invoice. The customers can also view the history of partial payments they have made by clicking the invoice link shared with them. Know more about [creating an invoice](/docs/payments/invoices/create) and [updating an invoice](/docs/payments/invoices/update). > [accordion] What are the various payment methods available to the customer? > > A wide range of payment options is available to the customer. Know more about [list of supported payment methods](/docs/payments/invoices#list-of-supported-payment-methods). > [accordion] Where do I track the invoices and their status? > > You get instant notifications about the invoices. You can also subscribe to webhook events and generate reports. Know more about [tracking invoices and viewing reports](/docs/payments/invoices/how-it-works#step-4-track-invoices-and-reports). > [accordion] The customer wants a hard copy of the invoice. > > Your customers can download a PDF copy of the invoice sent to them via email. Open the invoice and click **Download PDF**. > [accordion] Can I add more than one billing address for a customer? > > You can add a maximum of three billing addresses for one customer ID. > [accordion] What is the maximum permissible amount limit that can be accepted from payments across all Razorpay Invoices? > > The maximum permissible amount limit that can be accepted from payments across all Razorpay Invoices is โ‚น5,00,000, which cannot be increased. > [accordion] Can I use Razorpay to automatically generate invoices/receipts for customers after they complete payment on my mobile app or website? > > No, [Razorpay Invoices](/docs/payments/invoices) is designed to initiate and collect payments, not to generate accounting invoices or receipts after payment completion. # Glossary Source: https://razorpay.com/docs/payments/invoices/glossary A list of commonly used terms related to Razorpay Invoices. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia The following table lists all the commonly used terms and their definitions used in Invoices: | Term | Definition | | - | - | | Invoice | An Invoice is a digital document that summarises the details of an order or a transaction and allows customers to initiate payments. A typical invoice contains sale transaction information such as the name of the ordered products or services, quantities, price breakup, receipt number, customer information and so on. | | GSTIN | GST Identification Number | | CIN | Corporate Identity Number | | IGST | Integrated Goods and Service Tax | | SGST | State Goods and Service Tax | | CGST | Central Goods and Service Tax | | Expiry Date | The Expiry Date is the date after which the customer cannot pay for the invoice. | | Issue Date | The Issue Date is the date on which an invoice is issued and sent to the customer. | | Billing Address | The Billing Address is the address of the customer to be used for billing purposes. The Billing Address and Shipping Address may or may not be the same for a customer. | | Shipping Address | The Shipping Address is the address of the customer to which the ordered item will be shipped. The Billing Address and Shipping Address may or may not be the same for a customer. | | Place of Supply | The Place of Supply is the name of the state or the union territory to which the ordered item will be delivered. | | HSN Code | Harmonized System of Nomenclature code of a particular class of item/service under GST. HSN code is 8-character long | | SAC Code | Service Accounting Codes (SAC) of a particular class of item/service under GST. The character range of a SAC code can be from 2-6 characters. | | Tax Rate | The Tax Rate is the rate of tax applicable for a particular class of item as per the HSN/SAC code. | | Unit Price | The Unit Price is the price of a single item. | | Payment Link | A short URL added in the invoice notifications that are sent to the customers via email or SMS. The customers can click the link to make online payments. | # How Invoices Work Source: https://razorpay.com/docs/payments/invoices/how-it-works Create Invoices, send them to customers to receive payments and perform other actions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Given below is a complete end-to-end flow about how you can use Razorpay Invoices. ![Invoices Flow](https://razorpay.com/docs/build/browser/assets/images/invoices-invoices-flow-chart.jpg) ### Step 1: Create an Invoice [Create an invoice](/docs/payments/invoices/create) by providing all the required details. You can set an expiry date and enable partial payments. Save the invoice. The invoice is in `draft` status. Know more about [invoice states](/docs/payments/invoices/states). > [!NOTE] > > **Handy Tips** > > * You can [update](/docs/payments/invoices/update), [delete](/docs/payments/invoices/delete), or [create a duplicate](/docs/payments/invoices/duplicate) of an invoice in `draft` status. \\ > > * **Invoice APIs**: > * [Create an invoice](/docs/api/payments/invoices/create-with-customer-id) > * [Update an invoice](/docs/api/payments/invoices/update) > * [Delete an invoice](/docs/api/payments/invoices/delete) ### Step 2: Issue an Invoice [Issue an invoice](/docs/payments/invoices/issue) to a customer via email and/or sms. The customer receives a notification by email or sms with a payment link using which the customer can pay using one of the available [payment methods](/docs/payments/invoices#list-of-supported-payment-methods). > [!NOTE] > > **Handy Tips** > > Use the [Issue an Invoice API](/docs/api/payments/invoices/issue). ### Step 3: Receive Payments Customer clicks the payment link and tries to make the payment. * If [partial payments](/docs/payments/payment-links/partial-payments) payments was enabled, the customer chooses the amount to be paid. * The customer chooses the mode of payment: Pay Online or Pay via Bank Transfer Customer makes a successful payment. The invoice is marked as `paid` or `partially paid`. You receive a notification about the payment. > [!NOTE] > > **Handy Tips** > > After the payment is captured, the amount is settled to your account as per the settlement schedule. Know more about [payments](/docs/payments/payments), [settlements](/docs/payments/settlements), [refunds](/docs/payments/refunds) and [disputes](/docs/payments/disputes). ### Step 4: Track Invoices and Reports * Notifications \ You receive notifications regarding activity on invoices via SMS, emails and webhook. Know more about [subscribing to Webhooks](/docs/payments/invoices/subscribe-to-webhooks). * Track Payments \ Track payments made against the issued invoices on Dashboard. Click **Invoices** from the left menu. All the invoices are listed with their status under **Invoices**. * Reports \ Detailed insights can be gained using reports and real-time data on the Dashboard. These reports can then be used for accounting and reconciliation purposes. Know more about [reports](/docs/payments/dashboard/reports). ### Related Information * [Invoices](/docs/payments/invoices) * [Invoices States](/docs/payments/invoices/states) * [Create an Invoice](/docs/payments/invoices/create) * [Issue an Invoice](/docs/payments/invoices/issue) * [Search an Invoice](/docs/payments/invoices/search) * [Update an Invoice](/docs/payments/invoices/update) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Delete an Invoice](/docs/payments/invoices/delete) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Download and Print an Invoice](/docs/payments/invoices/download-print) * [Subscribe to Webhooks](/docs/payments/invoices/subscribe-to-webhooks) * [Invoice APIs](/docs/payments/invoices/apis) # Issue an Invoice Source: https://razorpay.com/docs/payments/invoices/issue Issue Invoices to customers and receive payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia A `draft` invoice can be issued to any one of the listed customers. Know more about [invoice states](/docs/payments/invoices/states). ## Issue an Invoice From Dashboard Watch this video to see how to issue an invoice. [YouTube video player](https://www.youtube.com/embed/Ed4K_gNJ800) To issue an invoice: 1. Log in to the Dashboard. 2. Click **Invoices**. 3. Search for the **Draft** invoice that you want to issue using the [search criteria](/docs/payments/invoices/search). 4. Select the **Invoice Id**. 5. On the right-hand side panel, click **Finalize and Issue**. 6. You can choose to send the invoice either by SMS or email or both by selecting the mobile number and email address. ![Select Medium to Send Invoices](https://razorpay.com/docs/build/browser/assets/images/invoices-invoice-issue.jpg) 7. Click **Issue Invoice**. ![Select Medium to Send Invoices](https://razorpay.com/docs/build/browser/assets/images/invoices-invoice-issue.jpg) This sends the invoice to the customer along with a short URL called **Payment Link** using which the customer can make the payment. ## Issue an Invoice Using API You can issue a `draft` invoice using [this](/docs/api/payments/invoices/issue/) API. ### Related Information * [Invoices](/docs/payments/invoices) * [How Invoices Work](/docs/payments/invoices/how-it-works) * [Invoices States](/docs/payments/invoices/states) * [Create an Invoice](/docs/payments/invoices/create) * [Search an Invoice](/docs/payments/invoices/search) * [Update an Invoice](/docs/payments/invoices/update) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Delete an Invoice](/docs/payments/invoices/delete) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Download and Print an Invoice](/docs/payments/invoices/download-print) * [Invoice APIs](/docs/payments/invoices/apis) # About Items Source: https://razorpay.com/docs/payments/invoices/items Create Items that can be billed using Razorpay Invoices. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Items are products or services that you can add to [Invoices](/docs/payments/invoices) and charge customers for. You can create an item on your Razorpay [Dashboard](/docs/payments/dashboard) from **Invoice** โ†’ **Items** or using [Items API](/docs/api/payments/invoices/create-item). When an item is created, it appears on the list of items in the Dashboard. ## Item Life Cycle | Status | Description | | - | - | | Active | Once created, an item is said to be in the active state. Items in this state can be added to an Invoice to be sent to customers. | | Inactive | An item can be marked inactive. Once in this state, the item cannot be added to an Invoice. | | Deleted | You cannot delete an item with which Invoices have been created already. You can only delete an item that has never been used before with an Invoice. | ## API and Dashboard Actions You can perform the following actions using Items APIs and on the Dashboard. | Actions | API Link | Dashboard Link | | - | - | - | | Create an item | [Link](/docs/api/payments/invoices/create-item) | [Link](/docs/payments/invoices/create) | | Update details of an item | [Link](/docs/api/payments/invoices/update-item) | [Link](/docs/payments/invoices/update) | | Retrieve details of items | [All items](/docs/api/payments/invoices/fetch-all-items) [Specific item](/docs/api/payments/invoices/fetch-with-id-item) | NA | | Delete an item | [Link](/docs/api/payments/invoices/delete-item) | [Link](/docs/payments/invoices/delete) | # Items Dashboard Source: https://razorpay.com/docs/payments/invoices/items/dashboard Create, update and delete Items using Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Items are products or services that you can add to [Invoices](/docs/payments/invoices) and charge to customers. You can create an item on your Dashboard from **Invoice** โ†’ **Items**. Once created, it appears on the list of items in the Dashboard. ## Create an Item To create an item via Dashboard: 1. Log in to the Dashboard. 2. Navigate to **Invoices** โ†’ **Items**. 3. Click **New Item**. 4. Enter the following: 1. **Name** 2. **Rate** 3. **Description** ![Create an item in dashboard fill details](https://razorpay.com/docs/build/browser/assets/images/items-add-item.jpg) Once an item is created, it will appear on the list of created item and also in the drop-down menu at the time of invoice creation. ![List of created items](https://razorpay.com/docs/build/browser/assets/images/items-item-list.jpg) ## Edit an Item To update the details of an item: 1. Navigate to **Invoices** โ†’ **Items**. 2. In the item list, click on the desired **Item Id**. ![](https://razorpay.com/docs/build/browser/assets/images/items-item-list.jpg) 3. In the **Edit Item** page, enter the following: 1. **Name** 2. **Rate** 3. **Description** 4. Click **Save**. ## Delete an Item To delete an item: 1. Navigate to **Invoices** โ†’ **Items**. 2. Hover over the desired item and click **delete**. ![Delete items option](https://razorpay.com/docs/build/browser/assets/images/items-delete-item.jpg) > [!WARNING] > > **Watch Out!** > > You cannot delete an item with which invoices have already been created. # Resend an Invoice Source: https://razorpay.com/docs/payments/invoices/resend Resend Invoices as a payment reminder or if the customer has not received the link. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can resend an invoice as a payment reminder or just in case the customer has not received the link. ## Resend an Invoice Using Dashboard Watch this video to see how to resend an invoice to a customer. [YouTube video player](https://www.youtube.com/embed/21fY3QlC4HE) 1. Log in to the Dashboard. Click on **Invoices**. 2. Search for the **Draft** invoice that you want to resend using the [search criteria](/docs/payments/invoices/search). 3. Select the **Invoice Id**. 4. An invoice in `issued` status cannot be updated. However, you can change the **EXPIRY DATE**, **CUSTOMER NOTES** and **TERMS AND CONDITIONS**. 5. On the right-hand side panel, click **Resend Invoice**. The invoice details along with the **Payment Link** is resent to the customer using which the customer can pay. ## Resend an Invoice Using API You can resend `issued` invoices using [this](/docs/api/payments/invoices/resend/) API. ### Related Information * [Invoices](/docs/payments/invoices) * [How Invoices Work](/docs/payments/invoices/how-it-works) * [Invoices States](/docs/payments/invoices/states) * [Create an Invoice](/docs/payments/invoices/create) * [Search an Invoice](/docs/payments/invoices/search) * [Update an Invoice](/docs/payments/invoices/update) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Delete an Invoice](/docs/payments/invoices/delete) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Download and Print an Invoice](/docs/payments/invoices/download-print) * [Invoice APIs](/docs/payments/invoices/apis) # Search an Invoice Source: https://razorpay.com/docs/payments/invoices/search Search for an Invoice. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can search for invoices (except those marked **Deleted**) on the Dashboard by specifying various filters. Know more about [invoice states](/docs/payments/invoices/states). ## Search an Invoice From Dashboard 1. Log in to the Dashboard. 2. Select **Invoices** from the left menu and search for an invoice under **Invoices** by specifying filters. ![Invoice List](https://razorpay.com/docs/build/browser/assets/images/invoices-invoices-list-view.jpg) | Filter | Description | | - | - | | Invoice Status | The status of the invoice | | Invoice Id | Unique identifier of the invoice | | Receipt No. | Receipt number of the invoice | | Customer Contact | Registered contact of the customer | | Customer Email | Email address of the customer | | Notes | Additional information stored in the `Customer Notes` field while creating the invoice. | | Currency Type | The type of currency used for creating an invoice. Indian Rupee or an international currency | ## Search an Invoice Using API * View the list of all the invoices or the invoices raised for a customer using the [Fetch Multiple Invoices API](/docs/api/payments/invoices/fetch-all). * View the details of an invoice by providing the invoice id using the [Fetch an Invoice API](/docs/api/payments/invoices/fetch-with-id). ### Related Information * [Invoices](/docs/payments/invoices) * [Invoices States](/docs/payments/invoices/states) * [Create an Invoice](/docs/payments/invoices/create) * [Update an Invoice](/docs/payments/invoices/update) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Delete an Invoice](/docs/payments/invoices/delete) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Download and Print an Invoice](/docs/payments/invoices/download-print) * [Invoice APIs](/docs/payments/invoices/apis) # Invoice States Source: https://razorpay.com/docs/payments/invoices/states List of various Invoice states and their significance. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia An invoice starts in the `draft` state and moves through several different states in its life cycle. ## Invoice States and Descriptions Given below is an illustration of the life cycle of an invoice. ![Invoice States](https://razorpay.com/docs/build/browser/assets/images/invoices-invoice-life-cycle.jpg) The table below lists the various states of an invoice and gives a brief description of each state: | Status | Description | | - | - | | `draft` | Indicates that the invoice has been created and saved. An invoice in this state is not issued and can be edited later. `Customer` and `item` fields are required to save an invoice. A saved invoice can be deleted. You cannot view a deleted draft invoice. Know more about [creating an invoice](/docs/payments/invoices/create). | | `issued` | Indicates that an invoice has been finalized and issued to the customer. An issued invoice cannot be deleted, but can be cancelled. You can edit the following information even after sending it to the customer: - Invoice # - Expiry Date - Customer Notes - Terms and Conditions - Enable or disable partial payment. Know more about [issuing an Invoice](/docs/payments/invoices/issue). | | `partially paid` | Indicates that the customer has made a partial payment against an invoice. After a payment has been made, you can neither delete nor cancel the invoice. You can only view the invoice and add internal notes to it. | | `paid` | Indicates that the customer has fully paid the invoice amount. `Paid` is the final state of an invoice. A `paid` invoice can only be viewed. You can neither delete nor cancel it. | | `expired` | Indicates that an invoice has expired. Once expired, the customer cannot make any payments against the invoice, and you cannot cancel or delete the invoice. You can view an expired invoice. | | `cancelled` | Indicates that you have cancelled the invoice. Though you can view the cancelled invoice, the customer cannot view the invoice or make payments against the invoice. You can only cancel an unpaid issued invoice. Know more about [cancelling an invoice](/docs/payments/invoices/cancel). | | `deleted` | This state indicates that the invoice has been deleted. You can only delete an invoice in the **draft** state and not in any other state. Know more about [deleting an invoice](/docs/payments/invoices/delete). | ### Related Information * [Invoices](/docs/payments/invoices) * [How Invoices Work](/docs/payments/invoices/how-it-works) * [Create an Invoice](/docs/payments/invoices/create) * [Issue an Invoice](/docs/payments/invoices/issue) * [Delete an Invoice](/docs/payments/invoices/delete) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Subscribe to Webhooks](/docs/payments/invoices/subscribe-to-webhooks) * [Download and Print an Invoice](/docs/payments/invoices/download-print) * [Invoice APIs](/docs/payments/invoices/apis) # Subscribe to Webhooks Source: https://razorpay.com/docs/payments/invoices/subscribe-to-webhooks Subscribe to various webhook events related to Invoices to receive instant notifications. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Subscribe to Webhook events relevant to invoices. To subscribe to webhook events: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **Webhooks** to subscribe to any of the events mentioned in the following section. ## Webhook Events and Descriptions | Webhook Events | Description | | - | - | | `invoice.partially_paid` | Triggered when a partial payment is made against an invoice. | | `invoice.paid` | Triggered when an invoice is successfully paid. | | `invoice.expired` | Triggered when an invoice expires. | Know more about [Webhooks](/docs/webhooks) and check the [sample payloads](/docs/webhooks/invoices). ### Related Information * [Invoices States](/docs/payments/invoices/states) * [Invoice APIs](/docs/payments/invoices/apis) # Update an Invoice Source: https://razorpay.com/docs/payments/invoices/update Edit an Invoice. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can only update a `draft` invoice. Know more about [invoice states](/docs/payments/invoices/states). ## Update an Invoice From Dashboard Watch this video to see how to update an invoice. [YouTube video player](https://www.youtube.com/embed/mTtf9jlYXd4) To update an invoice: 1. Log in to the Dashboard. 2. Click on **Invoices**. 3. Search for the **Draft** invoice that you want to update using the [search criteria](/docs/payments/invoices/search). 4. Select the **Invoice Id**. 5. The following information can be edited: * Customer details * Description * Expiry date of the invoice * Notes * Billing Address * Shipping Address * Partial payments * Label 6. Click **Save Invoice**. > [!WARNING] > > **Watch Out!** > > When an item's attributes are modified at the time of invoice creation, the modified item cannot be reused. The item will then be referred as a **Line item**. In other words, a **Line Item** is created when an **Item** is used as a template, in order to customise its attributes. The invoice now displays the updated details. ## Update an Invoice Using API You can update a `draft` invoice using [this](/docs/api/payments/invoices/update) API. ### Related Information * [Invoices](/docs/payments/invoices) * [Invoices States](/docs/payments/invoices/states) * [How Invoices Work](/docs/payments/invoices/how-it-works) * [Create an Invoice](/docs/payments/invoices/create) * [Issue an Invoice](/docs/payments/invoices/issue) * [Search an Invoice](/docs/payments/invoices/search) * [Duplicate an Invoice](/docs/payments/invoices/duplicate) * [Delete an Invoice](/docs/payments/invoices/delete) * [Cancel an Invoice](/docs/payments/invoices/cancel) * [Invoice APIs](/docs/payments/invoices/apis) * [Download and Print an Invoice](/docs/payments/invoices/download-print) # Invoices Use Cases Source: https://razorpay.com/docs/payments/invoices/use-cases Explore the diverse use cases of Razorpay Invoices. A robust system to issue invoices to your customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Unlock the potential of seamless invoicing with Razorpay Invoices, a comprehensive tool for creating, issuing, and tracking invoices with ease for businesses of all scales. Razorpay Invoices are engineered to streamline your billing process and are equipped with features to generate GST-compliant invoices, embed payment links, and offer detailed financial control. > [accordion] Freelance Services > > Acme at DesignWorks uses Razorpay Invoices to bill their clients for graphic design services, providing itemised invoices complete with taxes and discounts. > > **Benefits for Acme at DesignWorks**: > > > [accordion] Flexible Invoicing > > > > Craft detailed invoices with line items for different design services and applicable taxes. > > > [accordion] Partial Payments > > > > Offer clients the convenience to pay in instalments for larger project fees. > > > [accordion] GST-Compliant > > > > Automatically calculate and incorporate GST for compliant billing. > > > [accordion] Embedded Payment Link > > > > Clients receive invoices with an integrated payment link via email, streamlining the payment process. > [accordion] Consulting Agencies > > Acme Consulting issues Razorpay Invoices for their advisory services, adding specific terms and conditions pertinent to their consultancy. > > **Benefits for Acme Consulting**: > > > [accordion] Access Control > > > > Assign roles within the team for invoice management, ensuring that only authorised personnel can create or modify invoices. > > > [accordion] Downloadable Invoices > > > > Clients can download invoices for their records, facilitating ease of access and record-keeping. > > > [accordion] Real-time Notifications > > > > Receive updates as soon as invoices are viewed or paid, keeping cash flow management timely and updated. > [accordion] Small to Medium Enterprises (SMEs) > > Acme Supply leverages Razorpay Invoices to bill clients for hardware supplies, with detailed descriptions and the flexibility to add discounts. > > **Benefits for Acme Supply**: > > > [accordion] GST-Compliant Invoicing > > > > Automatically handle GST calculations, discounts, and add shipping details in a compliant manner. > > > [accordion] Downloadable Invoices > > > > Allow customers to download their invoices directly, ensuring transparency and trust. > > > [accordion] Real-Time Invoice Tracking > > > > Stay on top of payments with real-time tracking and notifications upon receipt of payment. # About Payment Button Source: https://razorpay.com/docs/payments/payment-button Accept payments from your customers using Razorpay Payment Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can start accepting payments on your website or blog with the Payment Button. Razorpay Payment Button provides a single line of code that you can embed on your website or blog to display the Payment Button, allowing customers to make payments easily. ![Payment Button on Website](https://razorpay.com/docs/build/browser/assets/images/payment-button-payment-button-website.jpg) ## Advantages * Saves your time and effort needed in a payment gateway integration. * Go from Create-to-Collect in a matter of minutes. * Test the changes immediately with the What You See Is What You Get (WYSIWYG) editor. * Flows with your branding guidelines, providing a flawless user experience. * Select from a range of templates that you can modify as per your need. ### List of Supported Payment Methods **Online Payment** \ Customers can make online payments using [Card](/docs/payments/payment-methods/cards), [Netbanking](/docs/payments/payment-methods/netbanking), [UPI](/docs/payments/payment-methods/upi), [Pay Later](/docs/payments/payment-methods/pay-later) and **wallets**. ### International Currency Support You can receive payments in any of the [supported international currencies](/docs/payments/international-payments#supported-currencies) from the Dashboard. #### Address Verification System If you are accepting international payments, you can use Razorpay's [Address Verification System (AVS)](/docs/payments/international-payments/address-verification-system). AVS verifies if a customer's billing address (postal code and the billing street address) matches the billing address on file with the card issuer. Based on the response from the issuer, Razorpay will accept or cancel the transaction. This helps in the prevention of fraud in international payments. ## Supported Platforms Razorpay Payment Button is supported on the following platforms: > [tab] Standard Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | > [tab] Custom Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | x | x | x | x | ### Related Information * [How Payment Button Works](/docs/payments/payment-button/how-it-works) * [Payment Button States](/docs/payments/payment-button/states) * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Button](/docs/payments/payment-button/custom) * [Manage Payment Button](/docs/payments/payment-button/manage) * [Prefill Amount Fields](/docs/payments/payment-button/manage/prefill-amount-fields) * [Search for a Payment Button](/docs/payments/payment-button/search) * [View Reports](/docs/payments/payment-button/view-reports) * [Subscribe to Webhooks](/docs/payments/payment-button/subscribe-to-webhooks) # Configure 80G-enabled Payment Button Receipt Source: https://razorpay.com/docs/payments/payment-button/80g-receipt Configure 80G compliant automatic and manual payment receipts for the payments made using your Razorpay Payment Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India If you are an NGO and using Razorpay Payment Button to accept donations from patrons, you can share payment receipts with 80G details for your customer after they make the payments. The payment receipts can be generated and shared [Automatically](#automated-receipt) or [Manually](#manual-receipt). Here is a sample PDF of the payment receipt. ![Example Receipt](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-receipt-80g-example.jpg) ## Automated Receipt Automatically generate payment receipts and send them to the customers through email and SMS using the details they provided at the time of payment. An auto-generated reference number is be added by Razorpay. Watch this video to see how to configure automated payment receipts. [YouTube video player](https://www.youtube.com/embed/HzgltIiL5lg) To configure automated payment receipts: 1. While creating or editing the Payment Button, select the **Payment Receipts** feature available on the top menu ribbon. 2. On the **Payment Receipts Settings** pop-up page, select **Send Automated Receipts**. 3. You can show an input field such as `Name`, `Address` and its associated value on the Receipt. 1. Enable the **Show an Input Field on Receipt** feature. 2. In the drop-down list, select one of the custom input fields such as `Name`, `Address` or `Landmark`, used on the Payment Button. For example, if you have selected `Name`, the patron's name `Gaurav Kumar` will appear on the payment receipt. 4. To issue receipts with 80-G details, enable the **Issue 80-G Receipts** option. 5. Use the **Click here** link to add relevant 80-G text to be displayed in the payment receipt. This opens the **Manage 80-G** pop-up page where you can add a description and upload the signature of the authorized signatory. 1. Enter the description. For example:\ Donation eligible for exemption under 80-G under IT Act 1861 .. with ID DIT(E)/2009-2010/W-110/15XX dated 24.09.2009 2. Upload an image of the signature in the **Authorized Signatory** field and click **Save**. 6. Click **Save**. ## Manual Receipt You can choose to send payment receipts to your customers manually. In this case, you must manually add a reference number to the receipt and share it with your customers. To configure manual payment receipts: 1. On the Payment Button creation pop-up page, select the **Payment Receipts** feature available on the top menu ribbon. 2. On the **Payment Receipts Settings** pop-up page, select **Send Manual Receipts**. 3. You can show an input field such as `Name`, `Address` and its associated value on the Receipt. 1. Enable the **Show an Input Field on Receipt** feature. 2. In the drop-down list, select one of the custom input fields such as `Name`, `Address` or `Landmark`, used on the Payment Button. For example, if you have selected `Name`, the patron's name `Gaurav Kumar` will appear on the payment receipt. 4. To issue receipts with 80-G details, enable the **Issue 80-G Receipts** option. 5. Use the **Click here** link to add relevant 80-G text to be displayed in the payment receipt. This opens the **Manage 80-G** modal where you can add a description and upload the signature of the authorized signatory. 1. Enter the description. For example:\ Donation eligible for exemption under 80-G under IT Act 1861 .. with ID DIT(E)/2009-2010/W-110/15XX dated 24.09.2009 2. Upload an image of the signature in the **Authorized Signatory** field and click **Save**. 6. Click **Done**. 7. Navigate to the page's **Transactions Details** section. All the payments made using the Payment Button are listed here. ![Transaction Details section with list of payments](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-transactions-send.jpg) 8. Click the Payment ID to view the payment details. 9. In the **Payment Receipt** field, click the **Send** button. 10. Enter a reference number for the receipt as per your business requirements. ![Enter reference number for manual receipt](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-manual-ref.jpg) 11. Click **Send**. > [accordion] Resend and Download Payment Receipt > > Watch this video to see how to resend and download a payment receipt. > > [YouTube video player](https://www.youtube.com/embed/me-gVlb09cQ) > > To resend and download a payment receipt: > > 1. Navigate to the button's **Transactions Details** page. All the payments made using the Payment Button are listed here. > 2. Click on the Payment ID to view the payment details. > 3. In the **Payment Receipt** field, click the **Send** button. This will resend the receipt to the customer. > 4. You can download the payment receipt using the **Download** button. > [accordion] Email Notification to Customers > > Payment receipts are sent to customers via email as a PDF attachment. The details entered by the customer while making the payment also appear on the email body. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-email.jpg) ### Related Information [Configure Generic Payment Button Receipt](/docs/payments/payment-button/receipt) # Add Facebook Pixel on Payment Success Page Source: https://razorpay.com/docs/payments/payment-button/add-fb-pixel Add your Facebook Pixel on your payment success page and track payments and conversions from your Facebook advertisements. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Integrate Facebook Pixel on your payment success page: * If you use Payment Buttons to accept payments from customers and redirect them to a success page post payment. * If you also advertise on Facebook and use Facebook Pixel to track conversions. This integration tracks and analyses ad conversion to payments. ## Prerequisites * [Create a Facebook Pixel](https://www.facebook.com/business/help/952192354843755?id=1205376682832142\&recommended_by=1700857106877546). * Create a payment success page on your domain and [add the Facebook Pixel to it](https://www.facebook.com/business/help/952192354843755?id=1205376682832142). ## Add Redirects to Measure Facebook Ads' Effectiveness Let us assume you run a website selling pet supplies. You attract customers using advertisements on Facebook and sell them pet products on your website using our Payment Button. To track and measure the effectiveness of these Facebook ads and how many of them convert into purchases, you need to add a redirect from your Payment Button to this success page. To add redirects: 1. Navigate to your Payment Button in the edit mode on the **Button Created Successfully** page. 2. Click **Configure** for the **Redirect URL and Custom Message**. 3. On the pop-up page, enable **Redirect URL**. 4. Add the redirect URL in the field. 5. Click **Save**. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-redirect.jpg) Every time a customer successfully completes a payment, they will be directed to the success page. Facebook pixel will track this event. ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) # Buy Now Button Source: https://razorpay.com/docs/payments/payment-button/buy-now Create a Buy Now Button, sell products and accept payments from customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can create a Buy Now button from the Dashboard and embed it on your website to accept payments from customers. This is useful in cases where you want to sell products on your online store. **Example** Suppose you are a pottery artist who sells hand-painted pottery articles to customers using your website. You can embed the Buy Now button on your online store to sell your products. Assume you sell the following product on your online store: | Product Name | Number of Items Available | Number of Items purchasable per user | Price per Item (in โ‚น) | | - | - | - | - | | Handpainted Coffee Mugs Set | 25 | 1 | 500 | You also offer gift wrapping for an additional cost of โ‚น30. ## Prerequisites * [Set up](/docs/payments/set-up#set-up-account) your Razorpay account. * Log in to the Dashboard. * The Dashboard has [test and live modes](/docs/payments/dashboard/test-live-modes). Payment Buttons created in the test mode do not appear in the live environment. **You must create a new Payment Button in live mode**. ## Create a Buy Now Button Watch this video to see how to create a Buy Now button. [YouTube video player](https://www.youtube.com/embed/L9gBd14joQ8) Below are the steps to create a Buy Pay button: 1. [Select a Template](#1-select-a-template) 2. [Add Button Details](#2-add-buy-now-button-details) ### 1. Select a Template 1.1 Log in to the Dashboard. 1.2. Go to the **PAYMENT PRODUCTS** section and click **Payment Button**. ![Dashboard Payment Buttons](https://razorpay.com/docs/build/browser/assets/images/payment-button-payment-button-dashboard.jpg) 1.3. Click **+ Create Payment Button**. 1.4. On the **Button Creation Wizard**, select the **Buy Now** button type. ![Select Payment Buttons type](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-buy-now.jpg) 1.5 Click **Use this template**. ### 2. Add Buy Now Button Details Configure these sections to create the Buy Now button: > [accordion] 1 Button Details > > On the **Button Details** pop-up page, enter the relevant information: > > 1. **Title**: Provide a name for the button. This name is for your internal reference and appears on the Dashboard. It **will not be visible** to customers. For example, **Handpainted Home and Kitchen Decor**. > 2. **Button Type**: If you want to change the button type, click the drop-down list and select one of the types. If the button type is switched mid-way, any information entered during creation will not be saved. > 3. **Button Label**: The text on the button to be displayed to customers. Please enter alphanumeric characters only. The maximum character limit is 20. An example for this is **Buy Now**. > 4. **Button Theme**: You can choose between the following themes: > * Razorpay Dark > * Razorpay Light > * Razorpay Outline > * Brand Color (This is the color configured by you on the Dashboard) > 5. Click **Next**. > > ![Payment Button Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-buy-now-create.jpg) > [accordion] 2 Amount Details > > You must use the amount fields to list your products. There are two types of amount fields available: **Fixed Price** and **Item with Quantity**. For the Payment Button in the example, you must create two amount fields with the following configurations: > > | Amount Field Name | Amount Field Type | Optional Item | > | - | - | - | > | Handpainted Coffee Mugs Set | Item with Quantity | Yes | > | Add Gift Wrap | Fixed Amount | Yes | > > To create the **Hand-painted Coffee Mugs** amount field: > > 1. Click **+Add Amount Field**. > > ![Payment Button amount details](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-amount-details-create.jpg) > 2. From the drop-down list, select **Item with Quantity** as the field type. > 3. On the pop-up page: > 1. Enter the label of the product as `Handpainted Coffee Mugs Set`. > 2. Click **+ Add Description** and enter details if required. > 3. Enter the amount as `500`. > > ![Amount Details - field label](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-amount-field-create.jpg) > 4. Click the more icon to view **Advanced Options**. > 1. Configure the Limit Quantity per Order, with `1` in **Min** and **Max** fields. This will prevent customers from ordering more than 1 item. > 2. Select **Item has Limited Stock** and enter the value as `25`. > > ![Amount Details - advanced options](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-advanced-options.jpg) > 5. Click **Save**. > 4. **Save** the field. > > ![Amount Details - Preview](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-amount-field-created.jpg) > > Now, let us create the **Add Gift Wrap** amount field. > > 1. Click **+Add Amount Field**. > 2. From the drop-down list, select **Fixed Amount** as the field type. > 3. On the pop-up page: > 1. Enter the label of the product as `Add Gift Wrap`. > 2. Click **+ Add Description** and enter details if required. > 3. Enter the amount as `30`. > 4. Click the arrow to view **Advanced Options** and disable **Item has Limited Stock**. > 5. Click **Save**. > 4. **Save** the field and click **Next**. > > ![Amount Details - Preview](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-all-amount-fields-complete.jpg) > [accordion] 3 Customer Details > > In the **Customer Details** section, configure the information that must be entered by the customer while making the payment. By default, `Email` and `Phone` must be entered. However, you can edit the labels of these fields. > > ![Enter customer details](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-customer-details-default.jpg) > > #### Custom Fields > > You can add more fields to collect additional data from the customer. Let us add two custom fields - **Name** and **Address**. > > To add **Name** input field: > > 1. Click **+ Add Input Field**. From the drop-down list that appears, select **Single Line Text**. > 2. On the pop-up page, enter the label for the custom field - `Name`. > 3. If required, add a description for the field. > 4. Click **Save**. > > Similarly, create the input field for **Address**. > > ![Customer Details - Custom field preview](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-customer-details-added.jpg) > > To proceed, click **Next**. > > The data entered by the customers will be available in the Transaction Details report. > [accordion] 4 Review and Create > > Review the details entered in the previous sections. You can click **Back** to navigate to the **Button Details**, **Amount Details** and **Customer Details** sections to make changes. > > 1. Click **Create Button**. > > ![Review and create the Payment Button](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-review-button.jpg) > > 2. After completing the steps, the button code appears. Copy this code and add it in your webpage. > > ![Payment Button created successfully](https://razorpay.com/docs/build/browser/assets/images/payment-button-pb-success.jpg) ## Embed Payment Button Code in Website The embed code generated on the Dashboard must be embedded in your website. After this is done, the Buy Now button appears on your website. Customers can click this button to: 1. Open Razorpay Checkout. 2. Select the products. 3. Add their name and address. 4. Complete the payment. You can embed this code on any webpage, be it a custom HTML site or one built on platforms such as WordPress, Wix or Google Sites. > [accordion] Example > > Let us embed the Buy Now button on an HTML page. > > 1. Create a blank HTML file on your system. > 2. Paste the embed code onto the page. > 3. Save this HTML page and open it on the browser. > > Your button is now been embedded in your website. > > ![Embed Payment Button Code GIF](https://razorpay.com/docs/build/browser/assets/images/payment-button-embed-min.gif) ## Make Test Payments Using the Payment Button To make a test payment using a payment button: 1. Select the payment button you wish to test from the Dashboard and click **Get Code**. 2. Click **Copy Code** to copy the code to your clipboard. ![Payment Button Code Selection](https://razorpay.com/docs/build/browser/assets/images/pb-button-code-select.jpg) 3. Test the Payment Button by adding the code to the [Payment Button Test Widget](https://cdn.razorpay.com/static/widget/test-payment-button.html). 4. Paste the code in the text box and click **Run Code**. 5. Click on the Payment Button that appears in the preview section. ![Payment Button Test Preview](https://razorpay.com/docs/build/browser/assets/images/pb-run-test-preview.jpg) 6. Enter the required details and click **PROCEED TO PAY**. 7. Select the payment method of your choice to proceed with the payment. > [tab] Cards > > You can use these [test card details](/docs/payments/payments/test-card-details#test-cards-for-indian-payments). > [tab] UPI > > You can use these [test UPI details](/docs/payments/payments/test-upi-details). > [tab] Netbanking > > You can select any bank for your test payment. Select **Success** or **Failure**, depending on which flow you wish to test. > > ![Test Payment Success or Failure Flow](https://razorpay.com/docs/build/browser/assets/images/pl-test-payment-success.jpg) 8. You should see a confirmation message depending on the flow you have selected. ![Payment Success](https://razorpay.com/docs/build/browser/assets/images/pb-payment-success.jpg) ### Customer Interaction Let us make a test transaction to check how the customer will interact with the button on your website. 1. Click the **Buy Now** button. 2. Select the product you want to buy and mark quantity as `1` and click **Next**. 3. Enter name, address, email and phone number and click **Next**. 4. Select a payment method, for example, card, and complete the payment. 5. The payment success screen is displayed and a confirmation email is sent to you. ![Customer interaction GIF](https://razorpay.com/docs/build/browser/assets/images/payment-button-customerpayment.gif) ## Post Payment Actions After the customer has successfully completed the payment, you can: > [card] [Send Payment Receipt](/docs/payments/payment-button/buy-now#send-payment-receipt) > [card] [Show Custom Message](/docs/payments/payment-button/buy-now#show-custom-message) > [card] [Redirect Your Customers](/docs/payments/payment-button/buy-now#add-a-redirect-url) ### Send Payment Receipt You can ensure that your customers receive payment receipts via email once they complete the payment. Know how to [send and download automated or manual payment receipts](/docs/payments/payment-button/receipt). If you are an NGO, you can [send and download payment receipts with 80-G information](/docs/payments/payment-button/80g-receipt). ### Show Custom Message You can show a custom message to your customers once they complete a payment. To show custom messages: 1. On the **Button Created Successfully** pop-up page, click **Configure** against **Redirect URL and Custom Message**. 2. On the pop-up page, enable **Show a custom message**. 3. Add the custom message in the field. 4. Click **Save**. ![Button Settings custom message](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-message.jpg) ### Add a Redirect URL You can redirect your customers to another page after they complete a payment. To redirect your customers: 1. On the **Button Created Successfully** pop-up page, click **Configure** against **Redirect URL and Custom Message**. 2. On the pop-up page, enable **Redirect URL**. 3. Add the redirect URL in the field. 4. Click **Save**. ![Button Settings redirect URL](https://razorpay.com/docs/build/browser/assets/images/payment-button-redirect.jpg) ## View Transaction Details on Dashboard You can view the payments as and when they are made in the [Transactions Details View](/docs/payments/payment-button/view-reports) of the page. ![Transaction details on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-transaction-detail.jpg) ## Export Report You can also export the report data into a CSV file. To export report data: 1. Log in to the Dashboard and navigate to **Payment Button**.\ 2. Select the relevant Payment Button. The Transactions Details View appears. 3. Click **Export All (CSV)** button. A .csv file is downloaded, where you can find a monthly report of all the payments made using your button. ## Settlement You will receive the payments in your bank account as per the settlement cycle agreed upon at the time of Razorpay account setup. Usually, this is T+2 days. In case of international payments, the settlement cycle is T+7 days. ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) * [Payment Button States](/docs/payments/payment-button/states) * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Button](/docs/payments/payment-button/custom) * [Manage Payment Button](/docs/payments/payment-button/manage) * [Prefill Amount Fields](/docs/payments/payment-button/manage/prefill-amount-fields) * [Search for a Payment Button](/docs/payments/payment-button/search) * [View Reports](/docs/payments/payment-button/view-reports) # Custom Button Source: https://razorpay.com/docs/payments/payment-button/custom Create a Custom Payment Button and accept payments from customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can create a Payment Button using the Dashboard and embed it on your website to accept payments from customers. **Example** You work for a baking institute and are in charge of organising a baking competition. You must add a payment button in your website for participants to register and pay the enrollment fee. | Maximum Number of Participants | Registration Fee (in โ‚น) | | - | - | | 50 | 500 | ## Prerequisites * [Set up](/docs/payments/set-up#set-up-account) your Razorpay account. * Log in to the Dashboard. * The Dashboard has [test and live modes](/docs/payments/dashboard/test-live-modes). Payment Buttons created in the test mode do not appear in the live environment. **You must create a new Payment Button in live mode**. ## Create a Custom Payment Button Watch this video to see how to create a Custom Payment Button. [YouTube video player](https://www.youtube.com/embed/GWyqSUM4Q2o?si=84BYEydHj_FQQbXb) Below are the steps to create a Custom Payment Button: 1. [Select a Template](#1-select-a-template) 2. [Add Button Details](#2-add-button-details) ### 1. Select a Template 1.1 Log in to the Dashboard. 1.2 Go to the **PAYMENT PRODUCTS** section and click **Payment Button**. ![Dashboard - Payment Products](https://razorpay.com/docs/build/browser/assets/images/payment-button-payment-button-dashboard.jpg) 1.3 Click **+ Create Payment Button**. 1.4 On the **Button Creation Wizard**, select the **Create Your Own** button type. ![Pick a Button Type](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-select-template.jpg) 1.5 Click **Use this template**. ### 2. Add Button Details Configure these sections to create the Payment Button: > [accordion] 1 Button Details > > On the **Button Details** pop-up page, enter the relevant information: > > 1. **Title**: Provide a name for the button. This name is for your internal reference and appears on the Dashboard. It **will not be visible** to customers. For example, **Annual Baking Competition**. > 2. **Button Type**: If you want to change the button type, click the drop-down list and select one of the types. If the button type is switched mid-way, any information entered during creation will not be saved. > 3. **Button Label**: The text on the button to be displayed to customers. Please enter alphanumeric characters only. The maximum character limit is 20. An example for this is **Register Now**. > 4. **Button Theme**: You can choose between the following themes: > * Razorpay Dark > * Razorpay Light > * Razorpay Outline > * Brand Color (This is the color configured by you on Dashboard) > 5. Click **Next**. > > ![Button Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-button-details.jpg) > [accordion] 2 Amount Details > > For the Payment Button in the example, you must create the Registration Fee amount fields with the following configuration: > > | Amount Field Name | Amount Field Type | Optional Item | > | - | - | - | > | Registration Fee | Fixed Amount | No | > > To create the **Registration Fee** amount field: > > 1. Click **+Add Amount Field**. > > ![Amount Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-amount-details-2.jpg) > 2. From the drop-down list, select **Fixed Amount** as the field type. > 3. On the pop-up: > 1. Enter the label of the product as `Registration Fee`. > 2. Click **+ Add Description** and enter details if required. > 3. Enter the amount as `500`. > > ![Amount Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-amount-field.jpg) > 4. Click the more icon to view **Advanced Options**. Select **Item has Limited Stock** and enter the value as `50`. > > ![Amount Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-amount-field-2.jpg) > 5. Click **Save**. > 4. **Save** the field and click **Next**. > > ![Amount Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-amount-fields-complete.jpg) > [accordion] 3 Customer Details > > In **Customer Details**, configure the information that must be entered by the participant while making the payment. By default, `Email` and `Phone` must be entered. However, you can edit the labels of these fields. > > ![Customer Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-customer-details.jpg) > > #### Custom Fields > > You can add more fields to collect additional data from the participant. Let us add two custom fields - **Name** and **Address**. > > To add **Name** custom field: > > 1. Click **+ Add Input Field**. From the drop-down list that appears, select **Single Line Text**. > 2. In the modal, enter the label for the custom field - `Name`. > 3. If required, add a description for the field. > 4. Click **Save**. > > Similarly, create the custom field for **Address**. > > ![Customer Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-customer-details-added.jpg) > > To proceed, click **Next**. > > The data entered by the participants will be available in the Transaction Details report. > [accordion] 4 Review and Create > > 1. Review the details entered in the previous sections. You can click **Back** to navigate to the **Button Details**, **Amount Details** and **Customer Details** sections to make changes. > > 2. Click **Create Button**. > > ![Review Page](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-review-button.jpg) > > 3. After completing the steps, the button code appears. Copy this code and add it in your webpage. > > ![Review Page](https://razorpay.com/docs/build/browser/assets/images/payment-button-pb-success.jpg) ## Embed Payment Button Code in Website The embed code generated on the Dashboard must be embedded in your website. After this is done, the Buy Now button will appear on your website. Customers can click this button to: 1. Open Razorpay Checkout. 2. Select the products. 3. Add their name and address. 4. Complete the payment. You can embed this code on any webpage, be it a custom HTML site or one built on platforms such as WordPress, Wix or Google Sites. > [accordion] Example > > Let us embed the Buy Now button on an HTML page. > > 1. Create a blank HTML file on your system. > 2. Paste the embed code onto the page. > 3. Save this HTML page and open it on the browser. > > Your button has now been embedded on your website! > > ![Embed Payment Button Code GIF](https://razorpay.com/docs/build/browser/assets/images/payment-button-embed-min.gif) ## Make Test Payments Using the Payment Button Follow these steps to make a test payment using a payment button: 1. Select the payment button you wish to test from the Dashboard and click **Get Code**. 2. Click **Copy Code** to copy the code to your clipboard. ![Payment Button Code Selection](https://razorpay.com/docs/build/browser/assets/images/pb-button-code-select.jpg) 3. Test the Payment Button by adding the code to the [Payment Button Test Widget](https://cdn.razorpay.com/static/widget/test-payment-button.html). 4. Paste the code in the text box and click **Run Code**. 5. Click on the Payment Button that appears in the preview section. ![Payment Button Test Preview](https://razorpay.com/docs/build/browser/assets/images/pb-run-test-preview.jpg) 6. Enter the required details and click **PROCEED TO PAY**. 7. Select the payment method of your choice to proceed with the payment. > [tab] Cards > > You can use these [test card details](/docs/payments/payments/test-card-details#test-cards-for-indian-payments). > [tab] UPI > > You can use these [test UPI details](/docs/payments/payments/test-upi-details). > [tab] Netbanking > > You can select any bank for your test payment. Select **Success** or **Failure**, depending on which flow you wish to test. > > ![Test Payment Success or Failure Flow](https://razorpay.com/docs/build/browser/assets/images/pl-test-payment-success.jpg) 8. You should see a confirmation message depending on the flow you have selected. ![Payment Success](https://razorpay.com/docs/build/browser/assets/images/pb-payment-success.jpg) ### Customer Interaction Let us make a test transaction to check how the customer will interact with the button on your website. 1. Click the **Register Now** button. 2. Enter name and phone number and fill in the details in the other fields and click **Next**. 3. Select a payment method, for example, card, and complete the payment. 4. The payment success screen is displayed and a confirmation email is sent to you. ![Customer Interaction GIF](https://razorpay.com/docs/build/browser/assets/images/payment-button-customerpayment.gif) ## Post Payment Actions After the customer has successfully completed the payment, you can: > [card] [Send Payment Receipt](/docs/payments/payment-button/custom#send-payment-receipt) > [card] [Show Custom Message](/docs/payments/payment-button/custom#show-custom-message) > [card] [Redirect Your Customers](/docs/payments/payment-button/custom#add-a-redirect-url) #### Send Payment Receipt You can ensure that your customers receive payment receipts via email once they complete the payment. Know how to [send and download automated or manual payment receipts](/docs/payments/payment-button/receipt). If you are an NGO, you can [send and download payment receipts with 80-G information](/docs/payments/payment-button/80g-receipt). #### Show Custom Message You can show a custom message to your customers once they complete a payment. To show custom messages: 1. On the **Button Created Successfully** pop-up page, click **Configure** against **Redirect URL and Custom Message**. 2. On the pop-up page, enable **Show a custom message**. 3. Add the custom message in the field. 4. Click **Save**. ![Button Settings custom message](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-message.jpg) #### Add a Redirect URL You can redirect your customers to another page after they complete a payment. To redirect your customers: 1. On the **Button Created Successfully** pop-up page, click **Configure** against **Redirect URL and Custom Message**. 2. On the pop-up page, enable **Redirect URL**. 3. Add the redirect URL in the field. 4. Click **Save**. ![Button Settings redirect URL](https://razorpay.com/docs/build/browser/assets/images/payment-button-redirect.jpg) ## View Transaction Details on Dashboard You can view the payments as and when they are made in the [Transactions Details View](/docs/payments/payment-button/view-reports) of the page. ![Transaction details on Dasboard](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-transaction-detail.jpg) ## Export Report You can also export the report data into a CSV file. To export report: 1. Log in to the Dashboard and navigate to **Payment Button**. 2. Select the relevant Payment Button. The Transactions Details View appears. 3. Click **Export All (CSV)** button. A .csv file is downloaded, where you can find a monthly report of all the payments made using your button. ## Settlement You will receive the payments in your bank account as per the settlement cycle agreed upon at the time of Razorpay account setup. Usually, this is T+2 days. In case of international payments, the settlement cycle is T+7 days. ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) * [Payment Button States](/docs/payments/payment-button/states) * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Manage Payment Button](/docs/payments/payment-button/manage) * [Prefill Amount Fields](/docs/payments/payment-button/manage/prefill-amount-fields) * [Search for a Payment Button](/docs/payments/payment-button/search) * [View Reports](/docs/payments/payment-button/view-reports) # Donations Button Source: https://razorpay.com/docs/payments/payment-button/donations Create a Donation Button and accept donations. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can create a Donations Button using the Dashboard and embed it on your website to accept donations from donors. This is useful if you are an NGO or a business that wants to raise funds for a cause. **Example** Suppose you work for an NGO - Asha Foundation, and are in charge of a campaign to raise funds for flood victims. You can embed the Donations button on your website to raise funds. Assume you want to raise funds to deliver relief materials as shown below: | Relief Material Package | Amount | | - | - | | Dry Rations | โ‚น750 | | Sanitation kit | โ‚น2500 | | Donate any Amount | Minimum amount of โ‚น500 | ## Prerequisites * [Set up](/docs/payments/set-up#set-up-account) your Razorpay account. * Log in to the Dashboard. * The Dashboard has [test and live modes](/docs/payments/dashboard/test-live-modes). Payment Buttons created in the test mode do not appear in the live environment. **You must create a new Payment Button in live mode**. ## Create a Donations Button Watch this video to see how to create a Donations button. [YouTube video player](https://www.youtube.com/embed/Y-mxTvquLqg?si=oYXwYOZFvu0iKDKZ) Below are the steps to create a Donation Button: 1. [Select a Template](#1-select-a-template) 2. [Add Button Details](#2-add-button-details) ### 1. Select a Template 1.1 Log in to the Dashboard. 1.2 Go to the **PAYMENT PRODUCTS** section and click **Payment Button**. ![Dashboard - Payment Button](https://razorpay.com/docs/build/browser/assets/images/payment-button-payment-button-dashboard.jpg) 1.3 Click **+ Create Payment Button**. 1.4 On the **Button Creation Wizard**, select the **Donations** button type. ![Select Payment Buttons type](https://razorpay.com/docs/build/browser/assets/images/payment-button-donations-button-donations-button-template.jpg) 1.5 Click **Use this template**. ## 2. Add Button Details Configure these sections to create the Payment Button: > [accordion] 1 Button Details > > On the **Button Details** pop-up page, enter the relevant information: > > 1. **Title**: Provide a name for the button. This name is for your internal reference and appears on the Dashboard. It **will not be visible** to donors. For example, **Assam Floods**. > 2. **Button Type**: If you want to change the button type, click the drop-down list and select one of the types. If the button type is switched mid-way, any information entered during creation will not be saved. > 3. **Button Label**: The text on the button to be displayed to customers. Please enter alphanumeric characters only. The maximum character limit is 20. An example for this is **Donate Now**. > 4. **Button Theme** - You can choose between the following themes: > * Razorpay Dark > * Razorpay Light > * Razorpay Outline > * Brand Color (This is the color configured by you on the Dashboard) > 5. Click **Next**. > > ![Payment Button details](https://razorpay.com/docs/build/browser/assets/images/payment-button-donations-button-button-detail.jpg) > [accordion] 2 Donation Amount > > Donors can pay an amount of their choice or pay an amount that you suggested. For example, you can collect funds for a specific relief material package or ask to pay any amount. > > 1. Create the **Donate any Amount** field. > 1. Edit the **Donate an Amount of your Choice** field label to **Donate any Amount**. > 2. Click **+ Add Description** and enter details if required. > 3. Select the donation currency. > 4. Click **+ Add min and max amount limits** and enter the `500` as the minimum donation amount. > 2. Create the **Dry Rations** and **Sanitation Kits** fields: > 1. Enable **Show presets for donation amount**. > 2. Enter the label as `Dry Rations` and the amount as `750`. > 3. Similarly, in the next field, enter the label - `Sanitation Kits` and the amount - `2500`. > 3. Click **Next**. > > ![Enter donation amount](https://razorpay.com/docs/build/browser/assets/images/payment-button-donations-button-amount.jpg) > [accordion] 3 Customer Details > > In the **Customer Details** section, configure the information that must be entered by the donor while making the payment. By default, `email` and `contact` must be entered by donor. However, you can edit the labels of these fields. > > ![Enter customer details](https://razorpay.com/docs/build/browser/assets/images/payment-button-donations-button-customer-details.jpg) > > #### Custom Fields > > You can add more fields to collect additional data from the donor such as Name and PAN. > > To add custom fields: > > 1. Click **+ Add Another Input Field**. From the drop-down list, select the relevant field type. For example, if you want donors to enter their PAN, select **PAN Number**. > 2. On the pop-up page, enter the label for the custom field. For example, `Enter Your PAN`. > 3. If required, add a description for the field and select **This field is optional**. > 4. Click **Save**. > 5. To proceed, click **Next**. > > The data entered by the donors will be available in the Transaction Details report. > [accordion] 4 Review and Create > > 1. Review the details entered in the previous sections. You can click **Back** to navigate to the **Button Details**, **Donation Details** and **Customer Details** sections to make changes. > > 2. Click **Create Button**. > > ![Payment Button - Review and Create](https://razorpay.com/docs/build/browser/assets/images/payment-button-donations-button-review.jpg) > > 3. After completing the steps, the button code appears. Copy this code and add it in your webpage. > > ![Button created successfully](https://razorpay.com/docs/build/browser/assets/images/payment-button-pb-success.jpg) ## Embed Payment Button Code in Website The embed code generated on the Dashboard must be embedded in your website. After this is done, the **Donations** button appears on your website. Customers can click this button to: 1. Open Razorpay Checkout. 2. Select the products. 3. Add their name and address. 4. Complete the payment. You can embed this code on any webpage, be it a custom HTML site or one built on platforms such as WordPress, Wix or Google Sites. > [accordion] Example > > Let us embed the Buy Now button on an HTML page. > > 1. Create a blank HTML file on your system. > 2. Paste the embed code onto the page. > 3. Save this HTML page and open it on the browser. > > Your button is now been embedded to your website. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-embed-min.gif) ## Make Test Payments Using the Payment Button To make a test payment using a payment button: 1. Select the payment button you wish to test from the Dashboard and click **Get Code**. 2. Click **Copy Code** to copy the code to your clipboard. ![Payment Button Code Selection](https://razorpay.com/docs/build/browser/assets/images/pb-button-code-select.jpg) 3. Test the Payment Button by adding the code to the [Payment Button Test Widget](https://cdn.razorpay.com/static/widget/test-payment-button.html). 4. Paste the code in the text box and click **Run Code**. 5. Click on the Payment Button that appears in the preview section. ![Payment Button Test Preview](https://razorpay.com/docs/build/browser/assets/images/pb-run-test-preview.jpg) 6. Enter the required details and click **PROCEED TO PAY**. 7. Select the payment method of your choice to proceed with the payment. > [tab] Cards > > You can use these [test card details](/docs/payments/payments/test-card-details#test-cards-for-indian-payments). > [tab] UPI > > You can use these [test UPI details](/docs/payments/payments/test-upi-details). > [tab] Netbanking > > You can select any bank for your test payment. Select **Success** or **Failure**, depending on which flow you wish to test. > > ![Test Payment Success or Failure Flow](https://razorpay.com/docs/build/browser/assets/images/pl-test-payment-success.jpg) 8. You should see a confirmation message depending on the flow you have selected. ![Payment Success](https://razorpay.com/docs/build/browser/assets/images/pb-payment-success.jpg) ## Donor Interaction Let us make a test transaction to check how the donor will interact with the button on your website. 1. Click the **Donate Now** button. 2. Enter name and phone number and fill in the details in the other fields and click **Next**. 3. Select a payment method, for example, card, and complete the payment. 4. The payment success page is displayed and you receive a confirmation email. ![Donor Interaction GIF](https://razorpay.com/docs/build/browser/assets/images/payment-button-customerpayment.gif) ## Post Payment Actions After the customer has successfully completed the payment, you can: > [card] [Send Payment Receipt](/docs/payments/payment-button/donations#send-payment-receipt) > [card] [Show Custom Message](/docs/payments/payment-button/donations#show-custom-message) > [card] [Redirect Your Customers](/docs/payments/payment-button/donations#add-a-redirect-url) ### Send Payment Receipt You can ensure that your customers receive payment receipts via email once they complete the payment. Know how to [send and download automated or manual payment receipts](/docs/payments/payment-button/receipt). If you are an NGO, you can [send and download payment receipts with 80-G information](/docs/payments/payment-button/80g-receipt). ### Show Custom Message You can show a custom message to your customers once they complete a payment. To show custom messages: 1. On the **Button Created Successfully** pop-up page, click **Configure** against **Redirect URL and Custom Message**. 2. On the pop-up page, enable **Show a custom message**. 3. Add the custom message in the field. 4. Click **Save**. ![Button Settings custom message](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-message.jpg) ### Add a Redirect URL You can redirect your customers to another page after they complete a payment. To redirect your customers: 1. On the **Button Created Successfully** pop-up page, click **Configure** against **Redirect URL and Custom Message**. 2. On the pop-up page, enable **Redirect URL**. 3. Add the redirect URL in the field. 4. Click **Save**. ![Button Settings redirect URL](https://razorpay.com/docs/build/browser/assets/images/payment-button-redirect.jpg) ## View Transaction Details on Dashboard You can view the payments as and when they are made in the [Transactions Details View](/docs/payments/payment-button/view-reports) of the page. ![Transaction details on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/payment-button-donations-button-transaction-detail.jpg) ## Export Report You can also export the report data into a CSV file. To export report data: 1. Log in to the Dashboard and navigate to **Payment Button**. 2. Select the relevant Payment Button. The Transactions Details View appears. 3. Click **Export All (CSV)** button. A .csv file is downloaded, where you can find a monthly report of all the payments made using your button. ## Settlement You will receive the payments in your bank account as per the settlement cycle agreed upon at the time of Razorpay account setup. Usually, this is T+2 days. In case of international payments, the settlement cycle is T+7 days. ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) * [Payment Button States](/docs/payments/payment-button/states) * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Custom Button](/docs/payments/payment-button/custom) * [Manage Payment Button](/docs/payments/payment-button/manage) * [Prefill Amount Fields](/docs/payments/payment-button/manage/prefill-amount-fields) * [Search for a Payment Button](/docs/payments/payment-button/search) * [View Reports](/docs/payments/payment-button/view-reports) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/payment-button/faqs Find answers to frequently asked questions about Razorpay Payment Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ## Supported Platforms > [accordion] Can I embed the Payment Button on my website even if it is built on a platform such as Wix or Blogger? > > Yes, you can embed Razorpay Payment Button on custom-built websites as well as those built on popular platforms such as Weebly, Wix, Blogger, Google Sites and so on. > [accordion] Can I embed the Payment Button on my mobile app? > > You will be able to embed the button on mobile apps, provided: > > * The app-development platform supports JS. > * The app is able to make the Button open in a WebView. ## Customise Button > [accordion] How can I add my business logo on the Checkout modal that appears once the button is clicked? > > To make your your business logo appear on the Checkout modal: > > 1. In the \*\* Dashboard\*\*, navigate to **Account & Settings**. > 2. Under **Account & Settings**, in the **Your Logo** section, click **Choose File**. > 3. Upload the logo file. Ensure that the logo is a square image of minimum dimensions 256x256 px. Maximum file size allowed is 1MB. > [accordion] How can I make the Payment Button and Checkout elements reflect my brand colors? > > You can make the Payment Button and Checkout elements appear in your brand colours. To do this: > > 1. In the \*\* Dashboard\*\*, navigate to **Account & Settings**. > 2. Under **Account & Settings**, in the **Theme Color** section, enter the HEX code for your brand. For example, `#6822CC`. > 3. Click **Save Changes**. > > Once this is done, during button creation ensure that in the **Button Details** section, you select **Brand Color** in **Button Theme** field. ## Amount Field Configuration > [accordion] I want to add a quantity counter for the amount field created on the Payment Button. How do I add it? > > While creating the amount field, ensure that you select `Item with Quantity` as the type. This adds the quantity counter, which the customer can use to add or reduce quantity. If you have already created the amount field without this option, you must delete the field and recreate it with `Item has quantity` type selected. > [accordion] I want to create an amount field wherein customers can enter an amount of their choice. How do I do this? > > While creating the amount field, select the `Customers Decide Amount` type. Once the button is published, in the customer view, the field appears with a blank space where the customer can enter the amount. > [accordion] One of the amount fields (items) is out of stock. How do I update the stock level? > > You can update the stock in two ways: > > **List of Payment Button:** > > 1. Log in to your Dashboard, navigate to **Payment Button** and click the relevant Id. The items appear on the top of the page, on the right. > 2. Click **Update Stock** and enter the number of units available for sale in the field. > 3. Click **Update**. > > **Payment Button Edit Mode:** > > 1. Log in to your Dashboard, navigate to **Payment Button** and click the relevant Id. > 2. Click the edit icon. > 3. In the **Amount Details** section, go to the amount field and click the edit icon. > 4. Enter the number of units available for sale in the field. > 5. Click **Add**. > [accordion] What happens to my Payment Button if all the listed price fields (items) go out of stock? > > This depends on the amount field's configuration. If the amount field is **mandatory**, then when it goes out-of-stock, the Payment Button will become inactive. Customers would not be able to access this button to make payments. > > As long as there is at least one amount field (mandatory or optional) that has stock, the button remains active. > [accordion] Can I have two amount fields with different currencies appear in a single Payment Button? > > No, you cannot configure amount fields to have different currencies. When you attempt to configure the second amount field with a different currency, a message appears on the screen highlighting that only one currency can be applied. ## Embed Code > [accordion] How to embed the payment button on my website? > > You can embed the payment button on your website to collect payments from your customers. > > To do this: > > 1. Go to \*\* Dashboard\*\* โ†’ **Payment Button**. > 2. In the list that appears, navigate to the relevant button and copy the button code. > 3. In your website code, paste this code on the page where you want the payment button to appear. ## Payments and Payment Methods > [accordion] How do I track the payments made by customers? When will the amount be settled to my account? > > You can view the payments as and when they are made in the [Transactions Details View](/docs/payments/payment-button/view-reports) of the Payment Button. > > You will receive the payments in your bank account as per the settlement cycle. By default, this is T+2 for domestic payments and T+7 for international payments. > [accordion] What payment methods can customers use to make payments? Can I display additional payment methods? > > All the payment methods enabled for your account are displayed on the Checkout. The default payment methods available are: > > * Cards > * Netbanking > * UPI > * Wallet (PayZapp) > > Raise a request on the Dashboard to display more [payment methods](/docs/payments/dashboard/account-settings/payment-methods#request-payment-methods) on Checkout. > [accordion] What is the maximum payment amount allowed per transaction on a Payment Button? > > cBy default, a customer can make a maximum payment of โ‚น5,00,000. This can be raised by raising a request with [Razorpay Support](https://razorpay.com/support/#request). > [accordion] Can I accept payments in international currency? > > You can accept payments in international currency using Payment Button. Refer to the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Follow these steps: > > 1. Raise a request with [Razorpay Support](https://razorpay.com/support/#request) to enable international payments for your account. > > 2. While creating the Payment Button, click the currency drop-down in the amount field and select the required currency. > > > [!NOTE] > > > > **One Currency per Button** > > > > You can set only one currency for amount fields on a Payment Button. If you attempt to configure the second amount field with a different currency, a message appears on the screen highlighting that more than one currency cannot be applied. > [accordion] Can I create Payment Button for bulk products? > > No, Razorpay does not support creating a Payment Button for bulk products. ## Adding Redirects > [accordion] Can I get this Payment Button to redirect to a different page? > > You can redirect your customers to another page after they complete a payment. > > To redirect your customers: > > 1. On the **Button Created Successfully** pop-up page, click **Configure** against **Redirect URL and Custom Message**. > 2. On the pop-up page, enable **Redirect URL**. > 3. Add the redirect URL in the field. > 4. Click **Save**. # Glossary Source: https://razorpay.com/docs/payments/payment-button/glossary Check the frequently used terms and their definitions related to Razorpay Payment Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia The following table lists all the commonly used terms and their definitions used in Payment Button: | Terms | Description | | - | - | | Fixed Amount | A price field where you decide the amount a customer should pay. | | Item with Quantity | A price field with a quantity selection widget which facilitates the purchase of multiple quantities. | | 80G | The Section **80G** of the IT Act allows donations made to specified relief funds and charitable institutions as a deduction from gross total income before arriving at taxable income. | | Stock | The goods or merchandise stored with the business in a warehouse or a storage facility. | | Expiry Date | The Expiry Date is the date after which the customer cannot pay using the Payment Button. | # How Payment Button Works Source: https://razorpay.com/docs/payments/payment-button/how-it-works Create Razorpay Payment Button and accept payments from customers on your website. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Given below is a complete end-to-end flow about how you can use Razorpay Payment Button to accept payments. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-payment-button-working.jpg) ## Payment Button Workflow To use Payment Button to accept payments: ### 1. Sign Up for a Razorpay Account To create a Payment Button, you first need to set up your [Razorpay account](/docs/payments/set-up). If you already have an account, log in to the Dashboard and click **Payment Button**. ### 2. Select a Template or Create from Scratch Click **Create Payment Button** and select a template. Know more about [templates](/docs/payments/payment-button/quick-pay#1-select-a-template). ### 3. Add Button Details Add the button details. For example, you can add title, button type and so on. Know more about [adding button details](/docs/payments/payment-button/quick-pay#1-button-details). ### 4. Add Customer Details Configure the input fields. For example, you can add email details, add a name field and so on. Know more about [adding customer details](/docs/payments/payment-button/quick-pay#2-customer-details). ### 5. Embed Payment Button on your Website and Start Accepting Payments Add the hyperlink to your website. When customers click on the **Pay** button, they will be redirected to the Razorpay Payment Gateway to complete the payment. Know more about [embedding the Payment button to a website](/docs/payments/payment-button/quick-pay#embed-payment-button-code-in-website). ### Related Information * [Payment Button](/docs/payments/payment-button) * [Payment Button States](/docs/payments/payment-button/states) * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Button](/docs/payments/payment-button/custom) * [Manage Payment Button](/docs/payments/payment-button/manage) * [Search for a Payment Button](/docs/payments/payment-button/search) # Manage Payment Buttons Source: https://razorpay.com/docs/payments/payment-button/manage Edit, duplicate and update stock for a Payment Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can perform the following edit functions on a Payment Button: > [accordion] Edit Payment Button > > Watch this video to see how to modify a Payment Button. > > [Edit Payment Button](https://www.youtube.com/embed/Hpra8-ZVcg4) > > To modify a Payment Button: > > 1. Log in to the Dashboard and navigate to **Payment Button**.\\ > > 2. Click the Payment Button link that you want to modify. > > 3. Click the edit icon in the top-right corner of the page. > > 4. The button appears in edit mode. You can now edit any of the fields to update the details, including the amount fields. > [accordion] Configure Payment Receipt and Post Payment Message > > You can configure payment receipts to be sent to the customers after they complete the payment. Also, you can display a customised payment at Checkout upon payment completion. > > To configure payment receipt: > > 1. Log in to the Dashboard and navigate to **Payment Button**. > 2. Click the Payment Button link that you want to modify. > 3. Click the settings icon in the top-right corner of the page. > 4. Click **Post Payment Actions**. The **Button Settings** tab appears. > 5. Enable **Show a custom message** and add the custom message you want to display on the payment receipt. > 6. Enable **Redirect URL** and add the redirect URL. > 7. Click **Save**. > [accordion] Duplicate Button > > You can create a duplicate of the Payment Button and modify it as per requirements. This saves you the time of creating a similar button from scratch. > > Watch this video to see how to create a duplicate of a Payment Button. > > [Duplicate Payment Button](https://www.youtube.com/embed/jMu5by9r02Q) > > To duplicate a Payment Button: > > 1. Log in to the Dashboard and navigate to **Payment Button**. > 2. Click the Payment Button link that you want to duplicate. > 3. Click the duplicate icon in the top-right corner of the page. > 4. Make changes, if required, in the duplicate copy of the Payment Button. > 5. Click **Create Button**. > [accordion] Update Stock > > You can update the stock quantity of an amount field. For example `Hand-painted Coffee Mugs - Set of 4`, in the edit mode of the Payment Button. > > Watch this video to see how to Update Stock for a Payment Button. > > [Update stock](https://www.youtube.com/embed/c5_Xouz4vJc) > > To update stock: > > 1. Navigate to **Payment Button** on the Dashboard. > 2. Click the Payment Button link that you want to modify. > 3. In the top-right corner, the different amount fields are displayed. Click **Update Stock** against the relevant amount field. > 4. You can either make the stock quantity unlimited using **No Limit**, or enter a value in the text box given below. > 5. Click **Save**. ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) * [Payment Button States](/docs/payments/payment-button/states) * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Payment Button](/docs/payments/payment-button/custom) * [Prefill Amount Fields](/docs/payments/payment-button/manage/prefill-amount-fields) * [Search for a Payment Button](/docs/payments/payment-button/search) * [View Reports](/docs/payments/payment-button/view-reports) * [Subscribe to Webhooks](/docs/payments/payment-button/subscribe-to-webhooks) # Prefill Amount Fields in Payment Button Source: https://razorpay.com/docs/payments/payment-button/manage/prefill-amount-fields Configure to prefill the amount fields of the Payment Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can prefill the amount fields present in your Payment Button. This provides a better user experience for your customers. ## Prefill Item Quantity You can set a particular item quantity for a product. > [accordion] Example > > Let us assume you want to sell `smartphone cases` for . You create a Payment Button titled `Cool Smartphone Cases` to sell the product. You can ensure that when the customer clicks the Payment Button, the quantity to be purchased appears pre-selected as `1`. > [accordion] Steps > > Watch this video to see how to add Prefilled Item Quantity. > > [YouTube video player](https://www.youtube.com/embed/WI-RvmqWMmA) > > To add prefilled item quantity field: > > 1. Log in to the Dashboard and create a Payment Button titled **Cool Smartphone Cases**. Ensure you select the `Buy Now` button type. > > 2. In the **Amount Details** section, create an amount field called `Smartphone Case` using `Item with Quantity` as the field type. > > 3. Configure the **Customer Details** section as required. > > 4. **Create** the Payment Button. > > 5. Here is a sample embed code. Copy the embed code to add the Payment Button.\\ > > ```xml Button Embed Code theme={null} > > ``` > > 6. When you embed the button code on your website, add the following parameter: > > ```javascript Amount Field Parameter theme={null} > data-prefill.amount.smartphone_case="1" > ``` > > The parameter structure is explained below: > > | Field Name | Amount Field Label | Value | > | - | - | - | > | data-prefill.amount | .smartphone\_case | 1 | > > > [!NOTE] > > > > **Handy Tips** > > > > * Ensure that the field-level validations are in place. If you enter a character in the `amount` field, say `100` or `Hundred`, the field will not get populated. > > * If the amount field label consists of two words, add an underscore as a separator of two words. For example, the two words in the **Smartphone Case** field should be separated by an underscore. That is, `smartphone_case`. > > * If the item is out of stock or has less quantity available, though the field will appear prefilled, the customer will not be able to purchase the product. > > The updated embed code looks like this: > > ```xml Updated Button Embed Code theme={null} >
> ``` > > This ensures that the `Smartphone Case` item quantity will always appear prefilled as `1`. > > #### Test the Code > > Click the button below to open the Embed Code testing tool and test the code. > > [Test Embed Code](https://cdn.razorpay.com/static/widget/test-payment-button.html) > > The following screenshot shows the preselected quantity: > > ![Prefill Quantity of an Item](https://razorpay.com/docs/build/browser/assets/images/payment-button-prefill-prefilled-quantity.jpg) ## Pre-select Fixed Amount Field You can add a fixed amount field which gets added during checkout when the user selects a product. > [accordion] Example > > Let us continue with the smartphone case example. Assume you also provide gift wrapping services at a fixed cost of . You want to ensure that this field appears pre-selected during Checkout. > [accordion] Steps > > Watch this video to see how to add a Fixed Amount Field. > > [YouTube video player](https://www.youtube.com/embed/kGC8hzPUADs) > > To pre-select Fixed Amount field: > > 1. Log in to the Dashboard and create a Payment Button titled **Cool Smartphone Cases**. Ensure you select the `Buy Now` button type. > 2. In the **Amount Details** section, create an amount field called `Gift Wrap` using `Fixed Amount` as the field type. This should be an **optional** field. > 3. Configure the **Customer Details** section as required. > 4. **Update** the Payment Button. > 5. Here is a sample embed code. Copy the embed code. > > ```xml Button Embed Code theme={null} >
> ``` > > 6. When you embed the button code on your website, add the following parameter: > > ```javascript Amount Field Parameter theme={null} > data-prefill.amount.gift_wrap="1" > ``` > > The parameter structure is explained below: > > | Field Name | Amount Field Label | Value | > | - | - | - | > | `data-prefill.amount` | `.gift_wrap` | 1 | > > > [!NOTE] > > > > **Handy Tips** > > > > * Ensure that the field-level validations are in place. If you enter a character in the `amount` field, say `100` or `Hundred`, the field will not get populated. > > * If the amount field label consists of two words, add an underscore as a separator of two words. For example, the two words in the **Gift Wrap** field should be separated by an underscore. That is, `gift_wrap`. > > * Ensure that the field is marked optional. > > * If the item is out of stock or has less quantity available, though the field will appear prefilled, the customer will not be able to purchase the product. > > The updated embed code looks like this: > > ```xml Updated Button Embed Code theme={null} >
> ``` > > This ensures that the `Gift Wrap` amount field will appear pre-selected when customer opens Checkout. > > #### Test the Code > > Click the button below to open the Embed Code testing tool and test the code. > > [Test Embed Code](https://cdn.razorpay.com/static/widget/test-payment-button.html) > > The following screenshot shows the preselected fixed amount field: > > ![Prefill Fixed Amount Field](https://razorpay.com/docs/build/browser/assets/images/payment-button-prefill-prefilled-fixed-amount.jpg) ## Prefill Customer Decides Amount Field You can add a field with a pre-filled amount value which the customer can also edit. > [accordion] Example > > Suppose you are the director of an NGO that is raising funds for flood relief. Apart from the relief packages such as sanitation kits (worth โ‚น750) and dry ration kits (worth โ‚น1000), you are adding a field to collect cash. > > You want to prefill the `Cash` field for donors. And, you want to show as a suggested donation amount. Donors can donate this amount, , or change the amount and then pay. > [accordion] Steps > > Watch this video to see how to add a Prefilled amount value which the customer can edit. > > [YouTube video player](https://www.youtube.com/embed/R3fzRlu1dYQ) > > 1. Log in to the Dashboard and create a Payment Button titled **Contribute to Assam Flood Relief**. Select the `Donations` button type. > 2. In the **Donation Amount** section, create an amount field called `Cash`. > 3. Configure the **Customer Details** section as required. > 4. **Publish** the Payment Button. > 5. Here is a sample embed code. Copy the embed code. > > ```xml Button Embed Code theme={null} >
> ``` > > 6. When you embed the button code on your website, add the following parameter: > > ```javascript Amount Field Parameter theme={null} > data-prefill.amount.cash="500" > ``` > > The parameter structure is explained below: > > | Field Name | Amount Field Label | Value | > | - | - | - | > | `data-prefill.amount` | `.cash` | 500 | > > > [!NOTE] > > > > **Handy Tips** > > > > * Ensure that the field-level validations are in place. If you enter a character in the `amount` field, say `100` or `Hundred`, the field will not get populated. > > * If you are using a custom field name for amount, ensure that the field name is entered in lowercase and is separated by an underscore. For example, if the amount field name is `Cash Funds`, enter the suffix as `cash_funds`. > > * Pre-population of the amount field is subject to the Minimum and Maximum Input Price set for the amount field. For example, if the Maximum Input Price has been set as , the Cash field cannot be prefilled with a value higher than . > > The updated embed code looks like this: > > ```xml Updated Button Embed Code theme={null} >
> ``` > > This ensures that the `Cash` amount field will appear prefilled with an amount of โ‚น500 when the customer opens Checkout. > > #### Test the Code > > Click the button below to open the Embed Code testing tool and test the code. > > [Test Embed Code](https://cdn.razorpay.com/static/widget/test-payment-button.html) > > The following screenshot shows the prefilled editable amount field: > > ![Prefill Fixed Amount Field](https://razorpay.com/docs/build/browser/assets/images/payment-button-prefill-prefilled-donations-amount.jpg) ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) * [Payment Button States](/docs/payments/payment-button/states) * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Payment Button](/docs/payments/payment-button/custom) * [Manage Payment Button](/docs/payments/payment-button/manage) * [Search for a Payment Button](/docs/payments/payment-button/search) # Quick Pay Button Source: https://razorpay.com/docs/payments/payment-button/quick-pay Create a Quick Pay Button and accept a fixed amount as payment. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can create a Quick Pay Button using the Dashboard and embed it on your website to accept payments from customers. This is useful in cases where you want to accept a fixed amount as payment. **Example** Suppose you are a digital marketing expert who wants to conduct a paid 2-hours online session. You can embed the Quick Pay button on your blog site to charge for the session. Assume you will be charging โ‚น499 per attendee. ## Prerequisites * [Set up](/docs/payments/set-up#set-up-account) your Razorpay account. * Log in to the Dashboard. * The Dashboard has [test and live modes](/docs/payments/dashboard/test-live-modes). Payment Buttons created in the test mode do not appear in the live environment. **You must create a new Payment Button in live mode**. ## Create a Quick Pay Button Watch this video to see how to create a Quick Pay button. [Create a Quick Pay Payment Button](https://www.youtube.com/embed/jL53W3mb3D8?si=jj7XMGid-HU4fy7y) Below are the steps to create a Quick Pay button: 1. [Select a Template](#1-select-a-template) 2. [Add Button Details](#2-add-quick-pay-button-details) ### 1. Select a Template 1.1 Log in to the Dashboard. 1.2 Go to the **PAYMENT PRODUCTS** section and click **Payment Button**. ![Dashboard - Payment Buttons](https://razorpay.com/docs/build/browser/assets/images/payment-button-payment-button-dashboard.jpg) 1.3 Click **+ Create Payment Button**. 1.4 On the **Button Creation Wizard**, select the **Quick Pay** button. ![Payment Button types](https://razorpay.com/docs/build/browser/assets/images/payment-button-quick-pay-quick-pay-1.jpg) 1.5 Click **Use this template**. ### 2. Add Quick Pay Button Details Configure these sections to create the Payment Button: > [accordion] 1 Button Details > > On the **Button Details** pop-up page, enter the relevant information: > > 1. **Title**: Provide a name for the button. This name is for your internal reference and appears on the Dashboard. It **will not be visible** to your customers. For example, **Digital Marketing for Generation Z**. > 2. **Button Type**: If you want to change the button type, click the drop-down list and select one of the types. If the button type is switched mid-way, any information entered during creation will not be saved. > 3. **Amount**: Enter the amount to be paid by the customer. > 4. **Button Label**: The text on the button to be displayed to customers. Please enter alphanumeric characters only. The maximum character limit is 20. For example, your button label can be **Book My Seat**. > 5. **Button Theme**: You can choose between the following themes: > * Razorpay Dark > * Razorpay Light > * Razorpay Outline > * Brand Color (This is the color configured by you on the Dashboard) > 6. Click **Next**. > > ![Payment Button Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-quick-pay-button-details.jpg) > [accordion] 2 Customer Details > > In the **Customer Details** section, configure the information that must be entered by the attendee while making the payment. By default, `Email` and `Phone` must be entered. However, you can edit the labels of these fields. > > ![Payment Button - Customer Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-quick-pay-customer-details-1.jpg) > > #### Custom Fields > > If you want to collect more details from the customer, you can add custom fields. > > To add custom fields: > > 1. Click **+ Add Another Input Field**. From the drop-down list that appears, select the relevant field type. For example, if you want the customer to enter their name, select **Single Line Text**. > 2. On the pop-up page: > 1. Enter the label for the custom field. For example, `Name`. > 2. If required, add a description for the field. > 3. Select **Optional Item**. > > ![Customer Details - Field Type](https://razorpay.com/docs/build/browser/assets/images/payment-button-quick-pay-customer-details-2.jpg) > 4. Click **Save**. > 3. To proceed, click **Save**, and then **Next**. > > ![Customer Details entered](https://razorpay.com/docs/build/browser/assets/images/payment-button-quick-pay-customer-details-3.jpg) > > The data entered by the customers will be available in the Transaction Details report. > [accordion] 3 Review and Create > > 1. Review the details entered in the previous sections. You can click **Back** to navigate to the **Button Details** and **Customer Details** section to make changes. > > 2. Click **Create Button**. > > ![Payment Button - Review and Create](https://razorpay.com/docs/build/browser/assets/images/payment-button-quick-pay-review.jpg) > > 3. After completing the steps, the button code appears. Copy this code and add it in your webpage. > > ![Payment Button created successfully](https://razorpay.com/docs/build/browser/assets/images/payment-button-pb-success.jpg) ## Embed Payment Button Code in Website The embed code generated on the Dashboard must be embedded in your website. After this is done, the Buy Now button appears on your website. Customers can click this button to: 1. Open Razorpay Checkout. 2. Select the products. 3. Add their name and address. 4. Complete the payment. You can embed this code on any webpage, be it a custom HTML site or one built on platforms such as WordPress, Wix or Google Sites. > [accordion] Example > > Let us embed the Buy Now button on an HTML page. > > 1. Create a blank HTML file on your system. > 2. Paste the embed code onto the page. > 3. Save this HTML page and open it on the browser. > > Your button is now been embedded in your website. > > ![Embed Payment Button Code GIF](https://razorpay.com/docs/build/browser/assets/images/payment-button-embed-min.gif) ## Make Test Payments Using the Payment Button To make a test payment using a payment button: 1. Select the payment button you wish to test from the Dashboard and click **Get Code**. 2. Click **Copy Code** to copy the code to your clipboard. ![Payment Button Code Selection](https://razorpay.com/docs/build/browser/assets/images/pb-button-code-select.jpg) 3. Test the Payment Button by adding the code to the [Payment Button Test Widget](https://cdn.razorpay.com/static/widget/test-payment-button.html). 4. Paste the code in the text box and click **Run Code**. 5. Click on the Payment Button that appears in the preview section. ![Payment Button Test Preview](https://razorpay.com/docs/build/browser/assets/images/pb-run-test-preview.jpg) 6. Enter the required details and click **PROCEED TO PAY**. 7. Select the payment method of your choice to proceed with the payment. > [tab] Cards > > You can use these [test card details](/docs/payments/payments/test-card-details#test-cards-for-indian-payments). > [tab] UPI > > You can use these [test UPI details](/docs/payments/payments/test-upi-details). > [tab] Netbanking > > You can select any bank for your test payment. Select **Success** or **Failure**, depending on which flow you wish to test. > > ![Test Payment Success or Failure Flow](https://razorpay.com/docs/build/browser/assets/images/pl-test-payment-success.jpg) 8. You should see a confirmation message depending on the flow you have selected. ![Payment Success](https://razorpay.com/docs/build/browser/assets/images/pb-payment-success.jpg) ### Customer Interaction Let us make a test transaction to check how you as a visitor can interact with the button on your blog. 1. Click the **Pay Now** button. 2. Enter name and phone number and fill in the details in the other fields and click **Next**. 3. Select a payment method. For example, netbanking, and complete the payment. 4. The payment success page is displayed and you receive a confirmation email. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-customerpayment.gif) ## Post Payment Actions After the customer has successfully completed the payment, you can: > [card] [Send Payment Receipt](/docs/payments/payment-button/quick-pay#send-payment-receipt) > [card] [Show Custom Message](/docs/payments/payment-button/quick-pay#show-custom-message) > [card] [Redirect Your Customers](/docs/payments/payment-button/quick-pay#add-a-redirect-url) ### Send Payment Receipt You can ensure that your customers receive payment receipts via email once they complete the payment. Know how to [send and download automated or manual payment receipts](/docs/payments/payment-button/receipt). If you are an NGO, you can [send and download payment receipts with 80-G information](/docs/payments/payment-button/80g-receipt). ### Show Custom Message You can show a custom message to your customers once they complete a payment. To show custom messages: 1. On the **Button Created Successfully** pop-up page, click **Configure** against **Redirect URL and Custom Message**. 2. On the pop-up page, enable **Show a custom message**. 3. Add the custom message in the field. 4. Click **Save**. ![Button Settings custom message](https://razorpay.com/docs/build/browser/assets/images/payment-button-custom-message.jpg) ### Add a Redirect URL You can redirect your customers to another page after they complete a payment. To redirect your customers: 1. On the **Button Created Successfully** pop-up page, click **Configure** against **Redirect URL and Custom Message**. 2. On the pop-up page, enable **Redirect URL**. 3. Add the redirect URL in the field. 4. Click **Save**. ![Button Settings redirect URL](https://razorpay.com/docs/build/browser/assets/images/payment-button-redirect.jpg) ## View Transaction Details on Dashboard You can view the payments as and when they are made in the [Transactions Details View](/docs/payments/payment-button/view-reports) of the page. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-buy-now-transaction-detail.jpg) ## Export Report You can also export the report data into a CSV file. To export report data: 1. Log in to the Dashboard and navigate to **Payment Button**. 2. Select the relevant Payment Button. The Transactions Details View appears. 3. Click **Export All (CSV)** button. A .csv file is downloaded, where you can find a monthly report of all the payments made using your button. ## Settlement You will receive the payments in your bank account as per the settlement cycle agreed upon at the time of Razorpay account setup. Usually, this is T+2 days. In case of international payments, the settlement cycle is T+7 days. ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) * [Payment Button States](/docs/payments/payment-button/states) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Button](/docs/payments/payment-button/custom) * [Manage Payment Button](/docs/payments/payment-button/manage) * [Search for a Payment Button](/docs/payments/payment-button/search) * [View Reports](/docs/payments/payment-button/view-reports) # Configure Generic Payment Button Receipt Source: https://razorpay.com/docs/payments/payment-button/receipt Configure automatic and manual payment receipts for the payments made using your Razorpay Payment Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can share payment receipts with customers through email after they complete payments using the Payment Button. The payment receipts can be generated and shared [Automatically](#automated-receipt) or [Manually](#manual-receipt). Here is a sample PDF of the payment receipt. ![PDF Receipt](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-receipt-example.jpg) ## Automated Receipt Automatically generate payment receipts and send them to the customers through email and SMS using the details they provided at the time of payment. An auto-generated reference number is be added by Razorpay. Watch this video to see how to configure automated payment receipts. [YouTube video player](https://www.youtube.com/embed/GOAZ1Q9wWQk) To configure automated payment receipts: 1. While creating or editing the Payment Button, select the **Payment Receipts** feature available on the top menu ribbon. 2. On the **Payment Receipts Settings** pop-up page, select **Send Automated Receipts**. 3. You can show an input field such as `Name`, `Address` and its associated value on the Receipt. 1. Enable the **Show an Input Field on Receipt** feature. 2. In the drop-down list, select one of the custom input fields such as `Name`, `Address` or `Landmark`, used on the Payment Button. For example, if you select `Name`, the customer's name `Gaurav Kumar` appears on the payment receipt. 4. Click **Save**. ## Manual Receipt You can choose to send payment receipts to your customers manually. In this case, you must manually add a reference number to the receipt and share it with your customers. Watch this video to see how to configure manual payment receipts. [YouTube video player](https://www.youtube.com/embed/HiPcouqoj4c) To configure manual payment receipts: 1. On the Payment Button creation pop-up page, select the **Payment Receipts** feature available on the top menu ribbon. 2. On the **Payment Receipts Settings** pop-up page, select **Send Manual Receipts**. 3. You can show an input field such as `Name`, `Address` and its associated value on the Receipt. 1. Enable the **Show an Input Field on Receipt** feature. 2. In the drop-down list, select one of the custom input fields such as `Name`, `Address` or `Landmark`, used on the Payment Button. For example, if you select `Name`, the customer's name `Gaurav Kumar` appears on the payment receipt. 4. Click **Save**. 5. Navigate to the page's **Transactions Details** section. All the payments made using the Payment Button are listed here. ![Transaction Details](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-transactions-send.jpg) 6. Click the Payment ID to view the payment details. 7. In the **Payment Receipt** field, click the **Send Receipt** button. 8. Enter a reference number for the receipt as per your business requirements. ![Transaction Details](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-manual-ref.jpg) 9. Click **Send**. > [accordion] Resend and Download Payment Receipt > > Watch this video to see how to resend and download a payment receipt. > > [YouTube video player](https://www.youtube.com/embed/me-gVlb09cQ) > > To resend and download a payment receipt: > > 1. Navigate to the button's **Transactions Details** page. All the payments made using the Payment Button are listed here. > 2. Click on the Payment ID to view the payment details. > 3. In the **Payment Receipt** field, click the **Send** button. This will resend the receipt to the customer. > 4. You can download the payment receipt using the **Download** button. > [accordion] Email Notification to Customers > > Payment receipts are sent to customers via email as a PDF attachment. The details entered by the customer while making the payment also appear on the email body as shown below: > > ![Payment Receipt](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-email-non80g.jpg) ### Related Information [Configure 80G-enabled Payment Button Receipt](/docs/payments/payment-button/80g-receipt) # Search a Payment Button Source: https://razorpay.com/docs/payments/payment-button/search Search for a Payment Button on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can search for a Payment Button on the Dashboard by specifying various filters. To search for a Payment Button: 1. Log in to the Dashboard. 2. Select **Payment Button** from the left menu and search for a payment button under **Payment Button** by specifying filters. ![Payment Button List](https://razorpay.com/docs/build/browser/assets/images/payment-button-payment-button-search.jpg) | Filter | Description | | - | - | | Title | The title of the payment button. | | Status | The state of the payment button. Know more about [Payment Button states](/docs/payments/payment-button/states). | ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) * [Payment Button States](/docs/payments/payment-button/states) * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Payment Button](/docs/payments/payment-button/custom) # Payment Button States Source: https://razorpay.com/docs/payments/payment-button/states List of states of a Payment Button and their significance. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia A Payment Button can have two states, **Active** and **Inactive**. ## Payment Button States and Descriptions Given below is an illustration of the life cycle of a Payment Button: ![Cycle of Payment Button](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-pp-states.jpg) The following table lists the various states of a Payment Button and gives a brief description of each state: | Status | Description | Next Steps | | - | - | - | | Active | Indicates the Payment Button is created and saved. You can accept payments using this button. You can edit this button. | Customers can start making payments through this Payment Button. | | Inactive | Indicates the Payment Button is deactivated or is expired. You cannot accept payments using this button. | Customers can no longer make payments through this Payment Button. You can reactivate the Payment Button to start accepting payments. There are two ways to reactivate the Payment Button:
  • [Update Stock](/docs/payments/payment-button/manage#update-stock)
  • Click the **Reactivate** button.
| ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) # Subscribe to Webhooks Source: https://razorpay.com/docs/payments/payment-button/subscribe-to-webhooks Subscribe to various webhook events related to Payment Button to receive instant notifications. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Subscribe to webhook events relevant to Payment Buttons. To subscribe to webhook events: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **Webhooks** to subscribe to any of the events mentioned in the following section. ## Webhook Events and Descriptions | Webhook Events | Description | | - | - | | payment.authorized | Triggered when a payment is authorized. | | payment.captured | Triggered when a payment is successfully captured. | | payment.failed | Triggered when a payment fails. | | order.paid | Triggered when an order is successfully paid. | Know more about [Webhooks](/docs/webhooks) and check the [sample payloads](/docs/webhooks/payments). ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) # About Subscription Button Source: https://razorpay.com/docs/payments/payment-button/subscription-buttons Create Razorpay Subscription Button and embed it on your website to accept recurring or one time payments from customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can start accepting payments using Razorpay Subscription Button that allows you to accept recurring via subscriptions or one-time payments. You can create Subscription Buttons from the Dashboard using a single line of code that you can embed on your website or blog and display a button. **We support only cards for subscription payments and all payment methods for one-time payments.** > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ## Advantages * Allows you to collect recurring payments via subscriptions based on the suggested plans. * Eliminates the time and effort spent in a full-fledged payment gateway integration. * Makes you go from Create-to-Collect in a matter of minutes. * Enables you to test changes immediately with the What You See Is What You Get (WYSIWYG) editor. * Seamlessly flows with your branding guidelines, providing flawless user experience. ## Use Cases Examples of businesses that can use Payment Button to accept payments from customers: * **Small Businesses**: A small business that offers service online and accepts subscription payments on their website. * **Donations**: Charitable Organizations can collect either fixed payments or a plan that is daily or monthly like subscription donations on Give India. * **Support or Contribute**: Freelancers, consultants, artists and so on. They can use this to accept subscription payments. * **Media Streaming**: Small news websites and content streaming websites can use this to accept subscription payments from their patrons. ## Supported Platforms Razorpay Subscription Button is supported on the following platforms: > [tab] Standard Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | > [tab] Custom Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | x | x | x | x | # View Details and Download Report Source: https://razorpay.com/docs/payments/payment-button/subscription-buttons/download-reports View details and download the report of payments received for a specific Subscriptions Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India After an active Subscription button accepts payments, view its subscriptions and one-time payment details on the Dashboard โ†’ **Payment Button** โ†’ **Subscription Buttons** tab. ## View Subscription Button Details You can view Subscription button details in three ways: > [tab] Hover over the Link > > Under the **Subscription Buttons** tab, view the overall details related to Recurring Plans and One-Time Items. > > * **Recurring Plans:** Hover the mouse pointer on **Recurring-Plans** and find the **Plan Name** and Number of **Subscriptions** against each plan. > * **One-Time Items:** Hover the mouse pointer on the **One-Time Items** and find the **Item Name** and **Units Sold**. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-rp-no.jpg) > [tab] Click on the Button > > Under the **Subscription Buttons** tab, click on the subscription button under the **Title** column. The button details screen appears. > > * Click **Subscription Plans** to view plan details. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-view-rp.jpg) > * Click **One-Time Payments** to view one-time payments. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-view-otp.jpg) > [tab] Click on the Tabs > > You can view the complete details of a subscription payment or one-time payment made for a subscription. Scroll to the payments overview tabs. > > * View Subscription Payments: To view a Subscription, under the **Subscription Payments** tab, click Subscription Id. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-sub-id.jpg) > * View One-time Payments: To view One-Time Payments, click **One-Time Payments** tab, and then click Payment Id. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-one-time-id.jpg) ## Download Report To download One-Time Payments as a `CSV`, `XLSX` or an `XLS` file: 1. Log in to the Dashboard and navigate to **Payment Button**. 2. Click the **Subscription Buttons** tab, and then click the specific button. The button details view appears. 3. Scroll down and click **One-Time Payments** tab. 4. Click **Download Report**. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-export-all.jpg) The downloaded report has the following columns: * Payment Button ID * Payment Button Title * Payment Date * Order ID * Item Name * Item Amount * Item Quantity * Item Payment Amount * Total Payment Amount * Currency * Payment Status * Payment Id * Email * Phone * Name ### Related Information * [Payment Button](/docs/payments/payment-button) * [Subscription Button](/docs/payments/payment-button/subscription-buttons) # Create and Embed Subscription Button Source: https://razorpay.com/docs/payments/payment-button/subscription-buttons/embed Create a Subscribe Button and start accepting payments from your customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can create a Subscription Button via Dashboard and embed it on your website to accept payments from customers. This is useful in cases where you want to provide subscription plans. **Example** \ Suppose you are an Internet Service Provider who wants to provide subscription plans to your customers. You can use the Subscription Button on your site to accept payments based on subscription plans. ## Prerequisites * Sign up for a Razorpay account. * Log in to the Dashboard. * The Dashboard has [test and live modes](/docs/payments/dashboard/test-live-modes). Subscription Buttons created in the test mode do not appear in the live environment. **You must create a new Subscription Button in live mode**. ## Create a Subscription Button 1. Log in to the Dashboard and navigate to **Payment Button**.\ 2. Click **Subscription Buttons** tab, and then click **+ Create Subscription Button**. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-create-sub-button.jpg) 3. Follow these steps to create the button: > [accordion] Button Details > > In **Button Details**, enter the relevant information: > > 1. **Title**: Provide a name for the button. This name is for your internal reference and will appear on the Dashboard. It **will not be visible** to your customers. For example, **Acme Inc**. > 2. **Button Label**: Text on button to be displayed to customers. Please enter alphanumeric characters only. The maximum character limit is 20. For example, your button label can be **Subscribe Now**. > 3. **Button Theme**: You can choose between the following themes: > * Razorpay Dark > * Razorpay Light > * Razorpay Outline > * Brand Color (This is the color configured by you on the Dashboard) > 4. Click **Next**. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-button-details.jpg) > [accordion] Recurring Payments > > In the **Recurring Plans**, add Plans and No. of Billing Cycles. > > 1. Click **+ Add Plan Item**. > > 2. To create a new plan, click **Add New Plan**. > > 3. Enter the following details: > * Plan Name > * Plan Description > * Billing Frequency: The time interval at which you want to charge your customer. For example, once in a week. > * Billing Amount: The amount you want to charge for every payment. > * Internal Notes. > > 4. Click **Create Plan**. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-new-plan.jpg) > > 5. Select a Plan from the list, add **No. of Billing Cycles** and click **Save**. > > > [!NOTE] > > > > **Handy Tips** > > > > You can add a maximum of 5 Plans. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-add-new-plan.jpg) > > 1. Click **+ Add Plan Item** to add more plans. > 2. Click **Next**. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-recurring-plans.jpg) > [accordion] One-Time Payments > > This is an optional step. If you want to provide one time payment option, follow these steps: > > 1. Click the slide-bar. > 2. Enter the name of label in the **Label** text box. > 3. Enter the one time payment amount in the **Value** text box. > 4. Add a description. > 5. Click **+ Add One-time Item** to add more options. > 6. Click **Next**. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-add-one-time-item.jpg) > [accordion] Customer Details > > In the **Customer Details**, configure the information that must be entered by the customer while making the payment. By default, `Email` and `Phone` must be entered. However, you can edit the labels of these fields. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-customer-details.jpg) > > Additionally, if you want to collect more information from the customer, you can add more custom fields: > > 1. Click **+ Add Another Input Field**. > 2. Enter the following details in the modal: > 1. Select the relevant field type. For example, if you want the customer to enter their name, select **Single Line Text**. > 2. Enter the label for the custom field. For example, `Name`. > 3. If required, click more and add a description for the field. > 4. Select **Optional Field**. > 5. Click **Save**. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-add-new-fields.jpg) > 3. To proceed, click **Next**. > [accordion] Review and Create > > 1. Review the details entered in the previous sections. > 2. Click **Back** to navigate to the previous steps for any changes. > 3. Click **Create Button**. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-review-and-create.jpg) > 4. A button is created successfully. Copy the HTML Code and embed it in your webpage. Once this is done, the Subscription button will appear on your website. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-button-created.jpg) ## Test Payment Buttons You can test the Payment Button by [adding the code to this page](https://cdn.razorpay.com/static/widget/test-payment-button.html). ## Embed Subscription Button Code in Website Copy the HTML Code and embed it in your webpage or one built on platforms such as WordPress, Wix or Google Sites. Once this is done, the Subscription button will appear on your website. Customers can click this button to: 1. Open Razorpay Checkout. 2. Select the Recurring Plan. 3. Add their name and address. 4. Complete the payment. ### Customer Interaction > [accordion] Subscribe a Plan > > The short animation below shows you how to subscribe a plan. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-ci-sb.gif) > [accordion] One-time Payment > > The short animation below shows you how to make a one time payment. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-one-time-pay.gif) > > > [!NOTE] > > > > **Handy Tips** > > > > One-Time payment option is shown only if you enabled **Add one-time payment options** while creating the payment button.\\ > > > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-add-one-time-item.jpg) ## View Subscription Details You can [View Subscriptions and One-time Payments](/docs/payments/payment-button/subscription-buttons/download-reports). To download reports, refer to the [Download Report](/docs/payments/payment-button/subscription-buttons/download-reports) section. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-button-pl.jpg) ### Settlement You will receive the payments in your bank account as per the settlement cycle agreed upon at the time of Razorpay account setup. Usually, this is T+2 days. In case of international payments, the settlement cycle is T+7 days. ### Related Information * [Manage Subscription Buttons](/docs/payments/payment-button/subscription-buttons/manage) * [View Notifications using Webhooks](/docs/payments/payment-button/subscription-buttons/subscribe-to-webhooks) * [Subscription Button FAQs](/docs/payments/payment-button/subscription-buttons/faqs) # FAQs Source: https://razorpay.com/docs/payments/payment-button/subscription-buttons/faqs Find answers to frequently asked questions about Razorpay Subscription Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Here are some frequently asked questions about Subscription Button. ## General #### 1. How can I enable Subscription Buttons? To access Subscriptions Buttons feature, you must: * Ensure the Subscriptions product is available for your account. * Raise a request with [Support team](https://razorpay.com/support/) to enable Subscriptions Button. #### 2. Does this Subscription Buttons support only subscriptions? This will support both Recurring and One-time payments. We support only cards for recurring payments and all payment methods for one-time payments. #### 3. Can I generate a custom receipt on every charge? Currently, we do not support customized receipt. However, you can generate a subscription receipt on every charge. #### 4. How can I download reports? Currently, we support only one-time payments reports as a CSV file. Follow these steps to download: 1. Navigate to Payment Button on the Dashboard. 2. Click the **Subscription Buttons** tab, and then click the required button. The button details view appears. 3. Scroll down, and then click **One-Time Payments** tab. 4. Click **Export All (CSV)**. #### 5. Can I update and modify Subscriptions Yes, you can update and modify all Subscriptions. #### 6. Can I set up a one-time payment subscription button? You cannot setup a one-time payment subscription button. For one-time payment, please use [Payment Button](/docs/payments/payment-button). ## Try it Out #### 1. Where can I try out the Button Code? You can test the Button Code by [adding the code to this page](https://cdn.razorpay.com/static/widget/test-payment-button.html). ## Supported Platforms #### 1. Can I embed the Subscription Button on my mobile app? You will be able to embed the button on mobile apps, provided: * The app-development platform supports JS. * The app is able to make the Button open in a WebView. ## Customize Button #### 1. How can I add my business logo on the Checkout modal that appears once the button is clicked? To make your your business logo appear on the Checkout modal: 1. In the Dashboard, navigate to **Settings**. 2. Under **Account Settings**, in the **Your Logo** section, click **Choose File**. 3. Upload the logo file. Ensure that the logo is a square image of minimum dimensions 256x256 px. Maximum file size allowed is 1MB. #### 2. How can I make the Subscription Button and Checkout elements reflect my brand colors? You can make the Subscription Button and Checkout elements appear in your brand colours. To do this: 1. In the Dashboard, navigate to **Settings**. 2. Under **Account Settings**, in the **Theme Color** section, enter the HEX code for your brand. For example, `#6822CC`. 3. Click **Save Changes**. Once this is done, during button creation ensure that in the **Button Details** section, you select **Brand Color** in **Button Theme** field. ## Embed Code #### 1. How to embed the Subscription Button on my website? You can embed the subscription button on your website to collect payments from your customers. To do this: 1. Go to Dashboard โ†’ **Payment Button**. 2. Click **Subscription Buttons** tab. 3. In the list that appears, navigate to the relevant button and copy the button code. 4. In your website code, paste this code on the page where you want the subscription button to appear. ## Payments and Payment Methods #### 1. How do I track the payments made by customers? When will the amount be settled to my account? You can view the payments as and when they are made in the [Transactions Details View](/docs/payments/payment-button/view-reports) of the Subscription Button. You will receive the payments in your bank account as per the settlement cycle. By default, this is T+2 for domestic payments and T+7 for international payments. #### 2. What payment methods can customers use to make payments? Can I display additional payment methods? Currently, we support only Cards for Recurring Payments. For one-time payments, all the payment methods enabled for your account are displayed on the Checkout. * Cards * Netbanking * UPI * Wallets Raise a request on the Dashboard to display more [payment methods](/docs/payments/dashboard/account-settings/payment-methods#request-payment-methods) on Checkout. #### 3. Is UPI Autopay payment method supported for Subscription Button? Currently, we do not support UPI Autopay for Subscription Button. #### 4. What is the maximum payment amount allowed per transaction on a Subscription Button? By default, a customer can make a maximum payment of โ‚น5,00,000. This can be raised by raising a request with [Razorpay Support](https://razorpay.com/support/#request). #### 5. Can I accept payments in international currency? You can accept payments in international currency using Subscription Button. Refer to the [list of supported currencies](/docs/payments/international-payments#supported-currencies). Follow these steps: 1. Raise a request with [Razorpay Support](https://razorpay.com/support/#request) to enable international payments for your account. 2. While creating the Subscription Button, click the currency drop-down in the amount field and select the required currency. > [!NOTE] > > **One Currency per Button** > > You can set only one currency for amount fields on a Subscription Button. If you attempt to configure the second amount field with a different currency, a message appears on the screen highlighting that more than one currency cannot be applied. # Manage Subscription Buttons Source: https://razorpay.com/docs/payments/payment-button/subscription-buttons/manage Check the actions you can perform on a Subscription Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can perform multiple actions on the Subscription Buttons. You need to first view the Subscription Button to make changes. ## View a Subscription Button To view a Subscription Button: 1. Navigate to **Payment Button** on the Dashboard. 2. Click the **Subscription Buttons** tab, and then click on the link of the button that you want to modify. 3. The button details appears as shown. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-button-pl.jpg) ## Edit Button Content To modify the content of the button: 1. In the top right corner of the page, click **Edit Icon**. 2. The button appears in edit mode. You can edit any of the fields to update the details. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-edit-button.jpg) ## Duplicate Button You can create a duplicate of the Subscription Button and modify it as per requirements. This saves you the time of creating a similar button from scratch. To duplicate the button: 1. In the top-right corner of the page, click **Duplicate Icon**. 2. The button appears in edit mode. You can edit the fields to create a new button. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-Duplicate-payment-button-1.jpg) ## Add Post Payment Message You can display a customized payment message on Checkout upon payment completion. To add a payment message: 1. In the top right corner of the page, click **Settings Icon**, and then click **Post Payment Message**. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-post-payment-msg.jpg) 2. In the **Button Settings** pop-up, select **Show custom message after a payment** checkbox. 3. Add the custom message in the text box. 4. Click **Save**. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-button-setttings.jpg) ## Search You can search Subscription Buttons, Recurring Payments and One-Time Payments. > [tab] Subscription Buttons > > To search Subscription Buttons: > > 1. Navigate to **Payment Button** on the Dashboard, and then click the **Subscription Buttons** tab. > 2. Enter the title of the button in **Title** text box. > 3. Select the **Status** from the list. > 4. Click **Search**. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-search-sub-button.jpg) > [tab] Recurring Payments > > To search Recurring Payments: > > 1. Navigate to **Payment Button** on the Dashboard, and then click the **Subscription Buttons** tab. > 2. Click the link of the button that you want to view. > 3. Enter the subscription id in the **Subscription Id** text box. > 4. Enter the other values as appropriate. > 5. Click **Search**. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-search-recurring-payments.jpg) > [tab] One-Time Payments > > To search One-Time Payments: > > 1. Navigate to **Payment Button** on the Dashboard, and then click the **Subscription Buttons** tab. > 2. Click the link of the button that you want to view. > 3. Enter the payment id in the **Payment Id** text box. > 4. Enter the other values as appropriate. > 5. Click **Search**. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-search-one-time-payments.jpg) ## Statuses You can view the statuses of Subscription Button, Recurring Payments and One-Time Payments. > [tab] Subscription Button > > Following are the different statuses of the Subscription Buttons: **Active** and **Inactive**. > > To view the status of a Subscription Button: > > 1. Navigate to **Payment Button** on the Dashboard, and then click the **Subscription Buttons** tab. > 2. View the status of a button against each Subscription Button under the **Status** column. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-sub-button-status.jpg) > 3. Click the Subscription Button to view Recurring Payments and One-Time Payments Statuses. > [tab] Recurring Payments > > Following are the different statuses of Recurring Payments Subscriptions: > > * Created > * Authenticated > * Active > * Pending > * Halted > * Cancelled > * Completed > * Expired > * Paused > > Scroll down, and then check the Status against each Subscription Id. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-rp-status.jpg) > [tab] One-Time Payments > > Following are the different statuses of One-Time Payments: > > * Authorized > > * Captured > > * Refunded > > * Failed > > 1. Scroll down, and then click **One-Time Payments** tab. > 2. Check the status against each Payment Id. > > ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-ot-status.jpg) ## Modify Recurring Payments To view Recurring Payments Subscription: 1. Navigate to **Payment Button** on the Dashboard, and then click the **Subscription Buttons** tab. 2. Click the link of the button that you want to view. 3. Scroll down, and then click the Subscription Id which you want to modify. You can perform following functions on the Recurring Payments: * [Change Status of a Subscription](#change-status-of-a-subscription) * [Duplicate a Subscription](#duplicate-a-subscription) * [Update an Active Subscription](#update-an-active-subscription) ### Change Status of a Subscription You can pause, resume or cancel a subscription as follows: * You can pause or cancel a subscription when it is in **Active** status. * You can resume or cancel a subscription when it is in **Paused** status. * You can cancel a subscription at the end of current billing cycle or immediately. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-subscription-status.jpg) ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-cancel-subscription.jpg) ### Duplicate a Subscription Click the **Duplicate icon** and update as appropriate. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-duplicate-sub.jpg) ### Update an Active Subscription You can update an Active Subscription as follows: 1. Click **Update** button. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-update-sub.jpg) 2. Modify the subscription details as you want. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-update-sub1.jpg) 3. Review the changes, and then click **Update Subscription**. ![](https://razorpay.com/docs/build/browser/assets/images/payment-button-subscription-button-update-sub2.jpg) ### Related Information [Subscription Button FAQs](/docs/payments/payment-button/subscription-buttons/faqs) # View Notifications using Webhooks Source: https://razorpay.com/docs/payments/payment-button/subscription-buttons/subscribe-to-webhooks Subscribe to various webhook events related to Subscription Button to receive instant notifications. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can also enable webhooks to receive notifications about the payment as they move through the different states. All information entered by the customer while making the payment will appear in the webhook payload. Webhooks (Web Callback, HTTP Push API or Reverse API) automatically notify your application when specific events occur. Instead of continuously polling APIs to check for updates, webhooks push notifications directly to your server when events happen. ## Webhooks vs APIs Here is how webhooks compare to traditional API polling: | Aspect | APIs | Webhooks | | - | - | - | | **Data retrieval** | Pull-based (you request) | Push-based (we send) | | **Timing** | On-demand | Near real-time when events occur | | **Resource usage** | Requires polling | Event-driven, efficient | > [!WARNING] > > **Webhooks vs callback\_url โ€” these are different things** > > Webhooks are server-to-server notifications sent asynchronously by Razorpay when events occur (for example, `payment.authorized`, `order.paid`). You configure a webhook URL on your Razorpay Dashboard. > > The callback\_url is a checkout parameter used only in WebView or redirect flows. It receives the payment result โ€” payment ID, order ID, and signature โ€” via a POST request after the customer completes payment. It is not a webhook. > > If you are building a standard web integration, use the handler function for immediate client-side confirmation and webhooks for server-side verification. Use callback\_url only if you are embedding Checkout in a WebView. Do not use callback\_url as a substitute for webhooks to track payment status on your server. ## How Razorpay Webhooks Work When you subscribe to webhook events, Razorpay sends an HTTP POST request with JSON payload to your configured endpoint URL whenever those events are triggered. Suppose you have subscribed to the `order.paid` webhook event, you will receive a notification every time a user pays you for an order, in the configured endpoint URL. ### Use Cases There can be multiple uses for webhook events. Two of these are listed below. > [accordion] Capturing Late Authorised Payments > > Capturing payments for which you did not receive a response on the client-side is perhaps the most important use case for the `payment.authorized` event. > > Sometimes, the communication between the bank and Razorpay or between you and Razorpay may not occur. This could be because of a slow network connection or your customer closing the window while processing the payment. This could lead to a payment being marked as **Failed** on the Dashboard but changed to **Authorized** at a later time. Know more about [late authorisation of payments](/docs/payments/payments/late-authorisation). > > You can use webhooks to get notified about payments that get authorised and analyse this data to decide whether to capture the payment or not. > [accordion] Notifications on Failed Payments > > When a payment attempted by your customer fails, we receive the failed payment status from the bank. This payment gets recorded in our system as **Failed**. > > Suppose you have enabled the `payment.failed` webhook, you will receive a notification from us about the failed payment. You can then further analyse this payment and notify your customer about the failure. ### Setup and Configuration * You can set up webhooks from your Dashboard and configure separate URLs for **Live** mode and **Test** mode. Know more about setting up [Payment webhooks](/docs/webhooks/setup-edit-payments) and [Payout webhooks](/docs/webhooks/setup-edit-payouts). * A **Test** mode webhook receives events for your test transactions. Know more about [testing webhooks](/docs/webhooks/validate-test). * Webhook URLs must use ports **80** or **443** only. * Ensure Razorpay webhook IPs are whitelisted on your server. Even if your server accepts all incoming requests, webhooks may still be blocked by cloud security groups or network configurations. Refer to [Razorpay IPs and Certificates](/docs/security/whitelists#webhook-ips) for the complete list of webhook IP addresses. > [!WARNING] > > **Implementation Considerations** > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > **Recommended approach** \\ > > * Rely on webhooks for all automation, which can be asynchronous. > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. Watch this video to see how to set up a webhook. [YouTube video player](https://www.youtube.com/embed/Xiikw4_CcQk?si=b6kYHKIp1xikPrJZ) To set up webhooks: 1. Log in to the Dashboard and navigate to **Accounts & Settings**. 2. Click **Webhooks** under **Website and app settings**. 3. Click the **+ Add New Webhook** button. ![Add a new webhooks button on the Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-1.jpg) 4. In the **Webhook Setup** pop-up page: * Enter the **URL** where you want to receive the webhook payload when an event is triggered. We recommend using an HTTPS URL. > [!NOTE] > > **Handy Tips** > > * You can set up to **30 URLs** to receive Webhook notifications. Webhooks can only be delivered to public URLs. > * If your URL contains `razorpay` as a domain, you will not be able to add the URL and will receive an error. > * If you attempt to save a localhost endpoint as part of a webhook setup, you will notice an error. Know more about [testing Webhooks on an application running on localhost](/docs/webhooks/validate-test#application-running-on-localhost). * Enter a **Secret** for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about [how to validate webhooks](/docs/webhooks/validate-test). > [!NOTE] > > **Handy Tips** > > * When setting up the webhook, specify a secret. Use this secret to validate that the webhook is from Razorpay. Entering the secret is optional but recommended. The secret should never be exposed publicly. > * The webhook secret does not need to be the Razorpay API key secret. * In the **Alert Email** field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook related notifications like failures, deactivation and so on. * Select the required events from the list of **Active Events**. ![List of active webhook events on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-2.jpg) 5. Click **Create Webhook**. After you set up a webhook, it appears on the list of webhooks. ![List of webhooks on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhooks-list.jpg) 6. You can select the webhook and click **Edit** to make more changes. ## Subscribe to Webhook Events You must subscribe to the following Payment and Order webhook events: `payment.authorized` : To receive notifications when the payment made by a customer is in `authorized` state. `payment.captured` : To receive notifications when the payment made by a customer is in `captured` state. `payment.failed` : To receive notifications when a customer's payment attempt failed. `order.paid` : To receive notifications when an order is paid. ### Event Payload: payment.authorized Below is the sample payload for the `payment.authorized` event. ```json payment.authorized.payload theme={null} { "entity":"event", "account_id":"acc_DLXfTGFm2PS7Cy", "event":"payment.authorized", "contains":[ "payment" ], "payload":{ "payment":{ "entity":{ "id":"pay_DORWaWz6UGwvRx", "entity":"payment", "amount":70000, "currency":"INR", "status":"authorized", "order_id":"order_DORWL4a5PvwmiR", "invoice_id":null, "international":false, "method":"upi", "amount_refunded":0, "refund_status":null, "captured":false, "description":null, "card_id":null, "bank":null, "wallet":null, "vpa":"sauravkumar@exampleupi", "email":"saurav.kumar@example.com", "contact":"+919998887776", "notes":{ "participant_name":"Saurav Kumar", "email":"saurav.kumar@example.com", "phone":"9998887776" }, "fee":null, "tax":null, "error_code":null, "error_description":null, "created_at":1569853622 } } }, "created_at":1569853623 } ``` ### Event Payload: payment.captured Below is the sample payload for the `payment.captured` event. ```json payment.captured.payload theme={null} { "entity":"event", "account_id":"acc_DLXfTGFm2PS7Cy", "event":"payment.captured", "contains":[ "payment" ], "payload":{ "payment":{ "entity":{ "id":"pay_DORWaWz6UGwvRx", "entity":"payment", "amount":70000, "currency":"INR", "status":"captured", "order_id":"order_DORWL4a5PvwmiR", "invoice_id":null, "international":false, "method":"upi", "amount_refunded":0, "refund_status":null, "captured":true, "description":null, "card_id":null, "bank":null, "wallet":null, "vpa":"sauravkumar@exampleupi", "email":"saurav.kumar@example.com", "contact":"+919998887776", "notes":{ "participant_name":"Saurav Kumar", "email":"saurav.kumar@example.com", "phone":"9998887776" }, "fee":1652, "tax":252, "error_code":null, "error_description":null, "created_at":1569853622 } } }, "created_at":1569853628 } ``` ### Event Payload: payment.failed ```json payment.failed.payload theme={null} { "entity":"event", "account_id":"acc_CJoeHMNpi0nC7k", "event":"payment.failed", "contains":[ "payment" ], "payload":{ "payment":{ "entity":{ "id":"pay_DM45I1xLvo836m", "entity":"payment", "amount":1600, "currency":"INR", "status":"failed", "order_id":null, "invoice_id":null, "international":false, "method":"netbanking", "amount_refunded":0, "refund_status":null, "captured":false, "description":null, "card_id":null, "bank":"KKBK", "wallet":null, "vpa":null, "email":"gaurav.kumar@example.com", "contact":"+919988776655", "notes":{ "participant_name":"Gaurav Kumar" }, "fee":null, "tax":null, "error_code":"BAD_REQUEST_ERROR", "error_description":"Payment failed", "created_at":1569334394 } } }, "created_at":1569334395 } ``` ### Event Payload: order.paid Below is the sample payload for the `order.paid` event. ```json order.paid.payload theme={null} { "entity":"event", "account_id":"acc_DLXfTGFm2PS7Cy", "event":"order.paid", "contains":[ "payment", "order" ], "payload":{ "payment":{ "entity":{ "id":"pay_DORWaWz6UGwvRx", "entity":"payment", "amount":70000, "currency":"INR", "status":"captured", "order_id":"order_DORWL4a5PvwmiR", "invoice_id":null, "international":false, "method":"upi", "amount_refunded":0, "refund_status":null, "captured":true, "description":null, "card_id":null, "bank":null, "wallet":null, "vpa":"sauravkumar@exampleupi", "email":"saurav.kumar@example.com", "contact":"+919998887776", "notes":{ "participant_name":"Saurav Kumar", "email":"saurav.kumar@example.com", "phone":"9998887776" }, "fee":1652, "tax":252, "error_code":null, "error_description":null, "created_at":1569853622 } }, "order":{ "entity":{ "id":"order_DORWL4a5PvwmiR", "entity":"order", "amount":70000, "amount_paid":70000, "amount_due":0, "currency":"INR", "receipt":null, "offer_id":null, "status":"paid", "attempts":1, "notes":[], "created_at":1569853608 } } }, "created_at":1569853628 } ``` ### Related Information [Webhooks FAQs](/docs/webhooks/faqs) # About Plugins Source: https://razorpay.com/docs/payments/payment-button/supported-platforms Embed Razorpay Payment Buttons on websites built on platforms such as Wix, Weebly, Blogger and Google Sites. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can embed Razorpay Payment Button on custom-built websites and those built on popular platforms such as: * [Wix](#wix) * [Weebly](#weebly) * [Blogger](#blogger) * [Google Sites](#google-sites) * [GoDaddy](#godaddy) * [Wordpress](#wordpress) * [Drupal](#drupal) ## Wix Watch this video to see how to embed a Payment Button on your Wix site: [https://www.youtube.com/embed/mpKggEAOXrI](https://www.youtube.com/embed/mpKggEAOXrI) To embed a Payment Button on your Wix site: 1. Log in to your Wix site and switch to Editor mode. 2. Navigate to **Add** โ†’ **Embed** โ†’ **Custom Embeds**. 3. Select **HTML iframe**. 4. Click **Enter Code** and select **Code**. 5. Paste the Button code that you copied from the Dashboard and click **Apply**. The Payment Button appears. You can drag and place it wherever required. 6. Publish the page to view the changes. ## Weebly Watch this video to see how to embed a Payment Button on your Weebly site: [https://www.youtube.com/embed/Wq8MkcAJNdU](https://www.youtube.com/embed/Wq8MkcAJNdU) To embed a Payment Button on your Weebly site: 1. Log in to your Weebly site and switch to Editor mode. 2. Navigate to the page on which you want to place the button. 3. Navigate to **Build** โ†’ **Individual Elements** โ†’ **Embed Code**. 4. Drag and drop the element and select **Click to set Custom HTML** box. 5. Select the position and click **Edit Custom HTML**. 6. Paste the Button code that you copied from the Dashboard and click out of the box. This saves the code. 7. Publish the page to view the changes. ## Blogger Watch this video to see how to embed a Payment Button on your Blogger site: [https://www.youtube.com/embed/LgHpK-nbxn8](https://www.youtube.com/embed/LgHpK-nbxn8) To embed a Payment Button on your Blogger site: 1. Log in to your Blogger site and navigate to Editor mode. 2. Navigate to the page on which you want to place the button. 3. Switch to **HTML view**. 4. Paste the Button code that you copied from the Dashboard and click **Update**. 5. Publish the page to view the changes. ## Google Sites Watch this video to see how to embed a Payment Button on your Google site: [https://www.youtube.com/embed/NHt60vR\_Ahg](https://www.youtube.com/embed/NHt60vR_Ahg) To embed a Payment Button on your Google site: 1. Log in to your Google Site and switch to Editor mode. 2. Navigate to the page on which you want to place the button. 3. Navigate to **Insert** โ†’ **Embed** โ†’ **Embed Code**. 4. Paste the Button code that you copied from the Dashboard and click **Next**. 5. Click **Insert**. 6. Drag and drop the element wherever required. 7. Publish the page to view the changes. ## GoDaddy Watch this video to see how to embed a Payment Button on your GoDaddy site: [https://www.youtube.com/embed/77ZWdlra4lw](https://www.youtube.com/embed/77ZWdlra4lw) To embed a Payment Button on your GoDaddy site: 1. Log in to your GoDaddy website and switch to Editor mode. 2. Navigate to the page on which you want to place the button. 3. Add a section, select **HTML** and click **Add**. 4. Paste the Button code that you copied from the Dashboard. 5. Add a pixel length of `700` in **Forced Height** field. 6. Click **Done**. 7. Publish the page to view the changes. ## WordPress If you own a WordPress site, you can use the Razorpay Payment Button Plugin for WordPress. > [!NOTE] > > **Handy Tips** > > [Create a WordPress site](/docs/payments/payment-button/supported-platforms/wordpress) from scratch. Watch this short video on how to add Payment Button on Wordpress and Elementor: [YouTube video player](https://www.youtube.com/embed/4MCy8Blo4Pw) To embed a Payment Button on your WordPress site: 1. Download the [WordPress Payment Plugin](https://wordpress.org/plugins/razorpay-payment-button/) or [Elementor Plugin](https://wordpress.org/plugins/razorpay-payment-button-elementor/) from the plugin directory and add the zip file to your WordPress website's **Plugins** folder. 2. In your WordPress site, activate the plugin in the **WordPress Plugin Manager**. 3. Navigate to **Razorpay Buttons** โ†’ **Settings** to add your Razorpay API key details and connect your Razorpay account to the plugin. 4. Navigate to **Razorpay Buttons**. A list of buttons you created on Razorpay are available here. Select the required button. 5. Click **Pages** and navigate to the page where you want to embed the Payment button. 6. Select **Add Block** โ†’ **Widgets** โ†’ **Razorpay: Payment Button** to embed the Payment button onto the page. 7. Choose the Payment Button using the drop-down and publish or update the page. ## Drupal To embed a Payment Button on your Drupal Website: 1. Download the plugin from the [Drupal](https://www.drupal.org/project/payment_button_drupal_plugin) Website. 2. Go to Extend from the Drupal admin menu. 3. Enable Razorpay Payment Button Plugin module in the Drupal admin. 4. Configure your What You See Is What You Get (WYSIWYG) toolbar to include the button. ### Related Information * [Payment Buttons](/docs/payments/payment-button) * [Payment Button Reports](/docs/payments/payment-button/view-reports) # Embed Payment Button on WordPress Website Source: https://razorpay.com/docs/payments/payment-button/supported-platforms/wordpress Embed a Razorpay Payment Button on your WordPress website and accept payments from customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Payment Button - Wordpress Changelog](/docs/payments/changelog#products) > > Version 2.4.6 released for Payment Button Wordpress. This version fixes naming conflict in Razorpay section. WordPress is one of the most popular Content Management Systems out there. You can quickly build a website using WordPress and embed the our Payment Button to accept payments from customers. ![WordPress Homepage](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-wordpress-homepage.jpg) ## WordPress Plan > [tab] For Websites Hosted on Domain > > If you have built your website using `www.wordpress.com`, and are on a paid plan, you can directly install the Razorpay Payment Button Plugin from the WordPress Plugins store. > > 1. [Install the Razorpay Payment Button Plugin on your WordPress site](https://wordpress.org/plugins/razorpay-payment-button/). > 2. [Create a Payment Button on Dashboard](#2-create-a-payment-button-on-razorpay-dashboard). > 3. [Embed the Payment Button on your WordPress site](#3-embed-the-payment-button-on-wordpress-site). > [tab] For Websites Hosted on Localhost > > If you are using WordPress with the free plan, you need to use MAMP to set up a local WordPress site and continue with the Payment Button > implementation. > > 1. [Set up WordPress site locally on your system](#1-set-up-wordpress-site-locally-on-your-system). > 2. [Create a Payment Button on Dashboard](#2-create-a-payment-button-on-razorpay-dashboard). > 3. [Embed the Payment Button on your WordPress site](#3-embed-the-payment-button-on-wordpress-site). ## Prerequisites 1. Download the [Razorpay Payment Button WordPress Plugin](https://wordpress.org/plugins/razorpay-payment-button/). 2. Create a Razorpay account. 3. Navigate to **Settings** โ†’ **API Keys** and [generate API keys](/docs/api/authentication#generate-api-keys) in the test mode. [YouTube video player](https://www.youtube.com/embed/6mJnOWZDhDo) Add the API key details in the Razorpay Payment Button plugin settings. > [!NOTE] > > **Handy Tips** > > * When testing: Generate the keys in Test mode. \\ > > * To accept live payments: Generate the keys in Live mode and replace them in the Payment Button plugin settings. ## Set Up a Payment Button Using Wordpress Plugin Watch this video to see how to set up a Payment Button using Wordpress Plugin. [YouTube video player](https://www.youtube.com/embed/xyk5FXSDdK4) ### 1. Set Up WordPress Site Locally on Your System > [tab] For Windows Users > > See: [Installation Steps for Windows](https://documentation.mamp.info/en/MAMP-Windows/Installation/) > [tab] For Mac Users > > To install WordPress on your Mac system: > > 1. [Download the latest version of MAMP](https://www.mamp.info/en/downloads/) and install it on your Mac system. This software enables you to manage your websites locally. > 2. Install the downloaded file using the wizard and save MAMP in your **Applications** folder. > > ![Install MAMP](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-install-mamp.jpg) > 3. Navigate to the **MAMP** folder. > > ![Navigate to MAMP](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-mamp-folder.jpg) > > In the folder, click the **MAMP** icon: > > ![Click MAMP](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-mamp-icon.jpg) > 4. Click **Start Server** to run the server on your system. > > ![Start Server](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-start-server.jpg) > > The server status appears green once they are ready. > > ![Server in Ready State](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-server-running.jpg) > 5. Click **Open WebStart Page**. The server starts running on your browser as shown: > > ![Open WebStart Page](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-phpmyadmin.jpg) > 6. We must set up a MySQL database for the WordPress website. This is done using **phpMyAdmin**. > > ![Setup phpMyAdmin](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-setup-database.jpg) > > a. Select the required database and click **Privileges**.\\ > > ![Add user account: phpMyAdmin](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-priviledges.jpg) > > b. Click **Add user account**. > > ![Add user account: phpMyAdmin](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-add-user-account.jpg) > > c. Enter the username and password, same as the WordPress account login credentials.\\ > > ![Add user account: phpMyAdmin](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-username-password-priviledges.jpg) > > d. Click **Go**. > > ![user account added: phpMyAdmin](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-user-account-added.jpg) > 7. Navigate to the WordPress application you had downloaded. > 8. Rename the `WordPress` folder. Provide a name relevant to the site you will be building/testing locally. For example, `teafactory`. Add the `teafactory` folder in `htdocs` of your MAMP directory. > > ![Rename WordPress folder](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-htdocs.jpg) > 9. Open the browser and type in the URL pointing to your site folder. For example, `localhost:8888/teafactory`. Select the language of your choice and click **Continue** โ†’ **Let's Go**. > > ![Select Language](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-select-language.jpg) > 10. Enter your database details. Provide a name for the database, and enter `root` for both the database username and password. Click **Submit**. > > ![Log in](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-wp-login.jpg) > 11. Provide the required general site information (which you can change later), as well as your login information in WordPress. > > ![Setup Login Information](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-setup-login.jpg) > 12. Click the **Install WordPress** button. With this, your website is ready. > > ![Install WordPress](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-login.jpg) ## 2. Create a Payment Button on Razorpay Dashboard To accept payments on your WordPress site, you must create a Payment Button. * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Button](/docs/payments/payment-button/custom) ## 3. Embed the Payment Button on WordPress Site To embed the Payment Button: 3.1 Download and install the Razorpay Payment Button Plugin. You can do this using either of these methods: * [Download the plugin from the WordPress Plugin Directory](https://wordpress.org/plugins/razorpay-payment-button/) and add the zip file to your WordPress website's **Plugins** folder. * Add the plugin directly onto your WordPress website from the **Plugin** page. 3.2 In your WordPress site, activate the plugin in the **WordPress Plugin Manager**. ![Activate Plugin](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-activate-plugin.jpg) 3.3 Navigate to **Razorpay Buttons** โ†’ **Settings** to add your Razorpay API key details and connect your Razorpay account to the plugin. ![Add Razorpay API Key](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-settings.jpg) 3.4 Navigate to **Razorpay Buttons**. A list of buttons you created on Razorpay are available here. Select the required button. ![List of Payment Buttons](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-view-buttons.jpg) 3.5 Click **Pages** and navigate to the page where you want to embed the Payment button. ![Select Page](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-shop-page.jpg) 3.6 Select **Add Block** โ†’ **Widgets** โ†’ **Razorpay: Payment Button** to embed the Payment button onto the page. ![Embed Button](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-add-pb-widget.jpg) 3.7 Choose the Payment Button using the drop-down and publish or update the page. ![Choose Payment Button](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-select-button.jpg) The Payment Button appears on the page. ![Payment Button Appears](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-pb.gif) You can now start accepting payments on your WordPress website using the Payment Button. ## FAQs > [accordion] I have created a Payment Button on the Dashboard. When I try to embed this code on my `www.wordpress.com` website, I am facing errors. How do I resolve this? > > You cannot directly use the Payment Button code generated from the Dashboard if you are using `www.wordpress.com`. You must upgrade to the WordPress paid plan and use the Razorpay Payment Button plugin. > [accordion] I am using Thrive Editor to add the button code for Razorpay. What should I be aware of, and how should I add payment buttons? > > If you are using Thrive Editor to add the button code for Razorpay, it is essential to note that Thrive Editor does not support the direct inclusion of scripts in HTML pages or posts. It automatically places a code tag on top of the script and adds a `` above the payment button script. Unfortunately, there is no workaround for this behaviour. We recommend using the WordPress default editor, Gutenberg, or any other compatible editor to add payment buttons effectively. These editors allow you to add payment button scripts without the interference caused by Thrive Editor's script handling. This will ensure a smooth integration of Razorpay payment buttons into your website. > [accordion] I am getting following error message `Razorpay error: Payment button fetch failed with the following message: The API key provided by you has expired and cannot be used. Please use the correct key and secret.` How do I resolve this? > > This error indicates that your API Key and Secret for Razorpay have expired. Follow the steps given below to resolve the issue: > > 1. Log in to Dashboard. > 2. Generate new [API Keys](/docs/api/authentication#generate-api-keys). > 3. Replace the old API Key and Secret in your integration code with the newly generated API keys. ### Related Information * [Payment Button](/docs/payments/payment-button) * [Create a WordPress Website](/docs/payments/payment-button/supported-platforms/wordpress/create-website) * [Payment Button Elementor Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/elementor) * [Payment Button SiteOrigin Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/site-origin) * [Payment Button Visual Composer Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/visual-composer) # Create a WordPress Website Source: https://razorpay.com/docs/payments/payment-button/supported-platforms/wordpress/create-website Create a WordPress website and embed a Razorpay Payment Button to accept payments from customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India WordPress is one of the most popular Content Management Systems out there. You can quickly build a website using WordPress and embed the our Payment Button to accept payments from customers. Given below are the steps to create a Wordpress website. ## Install Wordpress > [tab] For Windows Users > > See: [Installation steps for Windows](https://documentation.mamp.info/en/MAMP-Windows/Installation/) > [tab] For Mac Users > > To install WordPress on your Mac system: > > 1. [Download the latest version of MAMP](https://www.mamp.info/en/downloads/) and install it on your Mac system. This software enables you to manage your websites locally. > 2. Install the downloaded file using the wizard and save MAMP in your **Applications** folder. > > ![Install MAMP](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-install-mamp.jpg) > 3. Navigate to the **MAMP** folder. > > ![Navigate to MAMP](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-mamp-folder.jpg) > > In the folder, click the **MAMP** icon: > > ![Click MAMP](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-mamp-icon.jpg) > 4. Click **Start Server** to run the server on your system. > > ![Start Server](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-start-server.jpg) > > The server status appears green once they are ready. > > ![Server in Ready State](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-server-running.jpg) > 5. Click **Open WebStart Page**. The server starts running on your browser as shown: > > ![Open WebStart Page](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-phpmyadmin.jpg) > 6. We must set up a MySQL database for the WordPress website. This is done using **phpMyAdmin**. > > ![Setup phpMyAdmin](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-setup-database.jpg) > 7. Navigate to the WordPress application you had downloaded. > 8. Rename the `WordPress` folder. Provide a name relevant to the site you will be building/testing locally. For example, `teafactory`. Add the `teafactory` folder in `htdocs` of your MAMP directory. > > ![Rename WordPress folder](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-htdocs.jpg) > 9. Open the browser and type in the URL pointing to your site folder. For example, `localhost:8888/teafactory`. Select the language of your choice and click **Continue** โ†’ **Let's Go**. > > ![Select Language](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-select-language.jpg) > 10. Enter your database details. Provide a name for the database and enter `root` for both the database username and password. Click **Submit**. > > ![Log in](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-wp-login.jpg) > 11. Provide the required general site information (which you can change later), as well as your login information in WordPress. > > ![Setup Login Information](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-setup-login.jpg) > 12. Click the **Install WordPress** button. With this, your website is ready. > > ![Install WordPress](https://razorpay.com/docs/build/browser/assets/images/payment-button-wordpress-login.jpg) ### Related Information * [Payment Button](/docs/payments/payment-button) * [Embed Payment Button on WordPress Website](/docs/payments/payment-button/supported-platforms/wordpress) * [Payment Button Elementor Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/elementor) * [Payment Button SiteOrigin Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/site-origin) * [Payment Button Visual Composer Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/visual-composer) # Payment Button Elementor Plugin for WordPress Source: https://razorpay.com/docs/payments/payment-button/supported-platforms/wordpress/elementor Embed a Razorpay Payment Button on your WordPress website using the Payment Button Elementor plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can accept payments on your Elementor-built WordPress website using the [Payment Button Elementor Plugin](https://wordpress.org/plugins/razorpay-payment-button-elementor/). ![Razorpay Payment Button Elementor Plugin](https://razorpay.com/docs/build/browser/assets/images/payment-button-elementor-elementor-plugin.jpg) ## Prerequisites 1. Install the [Elementor Website Builder plugin](https://wordpress.org/plugins/elementor/) on your WordPress site. 2. [Create a Razorpay account](https://dashboard.razorpay.com/signup). 3. Navigate to **Settings** โ†’ **API Keys** and generate the API keys in the test mode. [YouTube video player](https://www.youtube.com/embed/6mJnOWZDhDo) > [!NOTE] > > **Handy Tips** > > * When testing, generate the keys in the Test mode. > * To accept live payments, generate the keys in the Live mode and replace them in the Payment Button plugin settings. ## Integrate Payment Button Elementor Plugin for WordPress Watch this video to see how to create a Payment Button using Elementor Wordpress Plugin. [YouTube video player](https://www.youtube.com/embed/BmdJf1C3N7M) To integrate the plugin: 1. [Create a Payment Button on the Dashboard](#1-create-a-payment-button-on-dashboard). 2. [Install and configure the Razorpay Payment Button Elementor plugin](#step-2-install-and-configure-the-plugin). 3. [Embed the button on the WordPress site](#step-3-embed-the-payment-button-on-wordpress-site). 4. [View details on WordPress Dashboard](/docs/payments/payment-button/supported-platforms/wordpress/visual-composer#4-view-details-on-dashboard). ### 1. Create a Payment Button on Dashboard To accept payments on your WordPress site, create a Payment Button. * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Button](/docs/payments/payment-button/custom) ### Step 2: Install and Configure the Plugin To install and configure the Payment Button: 2.1 Download and install our Payment Button Elementor Plugin. You can do this using either of these methods: * [Download](https://wordpress.org/plugins/razorpay-payment-button-elementor/) the plugin from the WordPress Plugin Directory and add the zip file to your WordPress website's **Plugins** folder. * Add the plugin directly onto your WordPress website from the **Plugin** page. 2.2 In your WordPress site, activate the plugin in the **WordPress Plugin Manager**. ![Activate Plugin](https://razorpay.com/docs/build/browser/assets/images/payment-button-elementor-activate-plugin.jpg) 2.3 Navigate to **Razorpay Buttons Elementor** โ†’ **Settings** to add your API key details and connect your Razorpay account to the plugin. ![Add Razorpay API Key](https://razorpay.com/docs/build/browser/assets/images/payment-button-elementor-configure-settings.jpg) ### Step 3: Embed the Payment Button on WordPress Site To add Payment Button on WordPress site: 3.1 Click **Pages** and navigate to the page where you want to embed the Payment button. ![Select Page](https://razorpay.com/docs/build/browser/assets/images/payment-button-elementor-shop-page.jpg) 3.2 Click **Edit with Elementor** to open the Elementor website builder mode. 3.3 Drag and drop **Razorpay Button** from the list of widgets onto the page. ![Embed Button](https://razorpay.com/docs/build/browser/assets/images/payment-button-elementor-razorpay-button-widget.jpg) 3.4 From the list, select the Payment Button that should be displayed on the page. ![Choose Payment Button](https://razorpay.com/docs/build/browser/assets/images/payment-button-elementor-select-button.jpg) The button is added to the page. ![Added Payment Button](https://razorpay.com/docs/build/browser/assets/images/payment-button-elementor-button-added.jpg) 3.5 Save the changes and preview the page. The Payment Button appears on the page. ![Payment Button Appears](https://razorpay.com/docs/build/browser/assets/images/payment-button-elementor-button-on-page.jpg) You can now start accepting payments on your WordPress website using the Payment Button. ### Step 4: View Details on Dashboard To view the payments on the WordPress Dashboard: 4.1 Click **Razorpay Buttons Elementor** to view the list of Payment Buttons. ![List of Payment Button](https://razorpay.com/docs/build/browser/assets/images/payment-button-elementor-list-buttons.jpg) 4.2 Click **View** to open the button details. ![View Payment Button Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-elementor-button-details.jpg) The following information regarding the payment button is displayed: * Button ID * Button Status * Total Quantity Sold * Total Revenue * Created On * Item Name ### Related Information * [Payment Button](/docs/payments/payment-button) * [Create a WordPress Website](/docs/payments/payment-button/supported-platforms/wordpress/create-website) * [Embed Payment Button on WordPress Website](/docs/payments/payment-button/supported-platforms/wordpress) * [Payment Button SiteOrigin Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/site-origin) * [Payment Button Visual Composer Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/visual-composer) # Payment Button SiteOrigin Plugin for WordPress Source: https://razorpay.com/docs/payments/payment-button/supported-platforms/wordpress/site-origin Embed a Razorpay Payment Button on your WordPress website using the Payment Button SiteOrigin plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can accept payments on your SiteOrigin-built WordPress website using the [Payment Button SiteOrigin Plugin](https://wordpress.org/plugins/razorpay-payment-button-for-siteorigin/). ![Razorpay Payment Button SiteOrigin Plugin](https://razorpay.com/docs/build/browser/assets/images/pb-site-origin-plugin.jpg) ## Prerequisites 1. Install the [Page Builder by SiteOrigin plugin](https://wordpress.org/plugins/siteorigin-panels) on your WordPress site. 2. [Create a Razorpay account](https://dashboard.razorpay.com/signup). 3. Navigate to **Account & Settings** โ†’ **API Keys** and generate the API keys in the test mode. [YouTube video player](https://www.youtube.com/embed/6mJnOWZDhDo) > [!NOTE] > > **Handy Tips** > > * When **testing**, generate the keys in the **Test** mode. > * To **accept live payments**, generate the keys in the **Live** mode and replace them in the Payment Button plugin settings. ## Integrate Payment Button SiteOrigin Plugin for WordPress To integrate the plugin: 1. [Create a Payment Button on the Dashboard](#1-create-a-payment-button-on-dashboard). 2. [Install and configure the Payment Button SiteOrigin plugin](#2-install-and-configure-the-plugin). 3. [Embed the button on the WordPress site](#3-embed-the-payment-button-on-wordpress-site). 4. [View details on WordPress Dashboard](/docs/payments/payment-button/supported-platforms/wordpress/visual-composer#4-view-details-on-dashboard). ## 1. Create a Payment Button on Dashboard To accept payments on your WordPress site, create a Payment Button. * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Button](/docs/payments/payment-button/custom) ### 2. Install and Configure the Plugin To install and configure the Plugin: 2.1 Download and install our Payment Button SiteOrigin Plugin. You can do this using any one of these methods: * [Download](https://wordpress.org/plugins/razorpay-payment-button-for-siteorigin/) the plugin from the WordPress Plugin Directory and add the zip file to your WordPress website's **Plugins** folder. * Add the plugin directly onto your WordPress website from the **Plugin** page. 2.2 In your WordPress site, activate the plugin in the **WordPress Plugin Manager**. \ ![Activate Plugin](https://razorpay.com/docs/build/browser/assets/images/rzp-pb-site-origin.jpg) 2.3 Navigate to **Razorpay Buttons SiteOrigin** โ†’ **Settings** to add your API key details and connect your account to the plugin. ![Add Razorpay API Key](https://razorpay.com/docs/build/browser/assets/images/pb-site-origin-configure-settings.jpg) ### 3. Embed the Payment Button on WordPress Site To add Payment Button on WordPress site: 3.1 Click **Pages** and navigate to the page where you want to embed the Payment button. ![Select Page](https://razorpay.com/docs/build/browser/assets/images/pb-site-origin-shop-builder.jpg) 3.2 Click **Live Editor** to open the SiteOrigin website builder mode. 3.3 Navigate to **Add Widget** โ†’ **Razorpay Widgets** and select **Payment Button** or **Subscription Button** as per your preference. ![Embed Button](https://razorpay.com/docs/build/browser/assets/images/pb-site-origin-add-widget.jpg) ![Embed Button](https://razorpay.com/docs/build/browser/assets/images/pb-site-origin-rzp-widgets.jpg) 3.4 From the list, select the Payment Button that should be displayed on the page and click **Done**. ![Choose Payment Button](https://razorpay.com/docs/build/browser/assets/images/pb-site-origin-select-button.jpg) 3.5 Save the changes and preview the page. The Payment Button appears on the page. ![Payment Button Appears](https://razorpay.com/docs/build/browser/assets/images/pb-site-origin-preview.jpg) You can now start accepting payments on your WordPress website using the Payment Button. ## Step 4: View Details on Dashboard To view the payments on the WordPress Dashboard: 4.1 Click **Razorpay Buttons SiteOrigin** to view the list of Payment Buttons. ![List of Payment Button](https://razorpay.com/docs/build/browser/assets/images/pb-site-origin-buttons-preview.jpg) 4.2 Click **View** to open the button details. ![View Payment Button Details](https://razorpay.com/docs/build/browser/assets/images/pb-site-origin-button-details.jpg) The following information regarding the payment button is displayed: * Button ID * Button Status * Total Quantity Sold * Total Revenue * Created On ### Related Information * [Payment Button](/docs/payments/payment-button) * [Create a WordPress Website](/docs/payments/payment-button/supported-platforms/wordpress/create-website) * [Embed Payment Button on WordPress Website](/docs/payments/payment-button/supported-platforms/wordpress) * [Payment Button Elementor Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/elementor) * [Payment Button Visual Composer Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/visual-composer) # Payment Button Visual Composer Plugin for WordPress Source: https://razorpay.com/docs/payments/payment-button/supported-platforms/wordpress/visual-composer Embed a Razorpay Payment Button on your WordPress website using the Payment Button Visual Composer plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can accept payments on your Visual Composer-built WordPress website using the [Payment Button Visual Composer Plugin](https://wordpress.org/plugins/razorpay-payment-button-for-visual-composer/). ![Razorpay Payment Button Visual Composer Plugin](https://razorpay.com/docs/build/browser/assets/images/pb-composer-plugin.jpg) ## Prerequisites 1. Install the [Visual Composer plugin](https://wordpress.org/plugins/visualcomposer) on your WordPress site. 2. [Create a Razorpay account](https://dashboard.razorpay.com/signup). 3. Navigate to **Account & Settings** โ†’ **API Keys** and generate the API keys in the test mode. [YouTube video player](https://www.youtube.com/embed/6mJnOWZDhDo) > [!NOTE] > > **Handy Tips** > > * When testing, generate the keys in the Test mode. > * To accept live payments, generate the keys in the Live mode and replace them in the Payment Button plugin settings. ## Integrate Payment Button Visual Composer Plugin for WordPress To integrate the plugin: 1. [Create a Payment Button on the Dashboard](#1-create-a-payment-button-on-dashboard). 2. [Install and configure the Razorpay Payment Button Visual Composer plugin](#2-install-and-configure-the-plugin). 3. [Embed the button on the WordPress site](#3-embed-the-payment-button-on-wordpress-site). 4. [View details on WordPress Dashboard](#4-view-details-on-dashboard). ## 1. Create a Payment Button on Dashboard To accept payments on your WordPress site, create a Payment Button. * [Quick Pay Button](/docs/payments/payment-button/quick-pay) * [Buy Now Button](/docs/payments/payment-button/buy-now) * [Donations Button](/docs/payments/payment-button/donations) * [Custom Button](/docs/payments/payment-button/custom) ### 2. Install and Configure the Plugin To install and configure the Plugin: 2.1 Download and install our Payment Button Visual Composer Plugin. You can do this using either of these methods: * [Download](https://wordpress.org/plugins/razorpay-payment-button-for-visual-composer) the plugin from the WordPress Plugin Directory and add the zip file to your WordPress website's **Plugins** folder. * Add the plugin directly onto your WordPress website from the **Plugin** page. 2.2 In your WordPress site, activate the plugin in the **WordPress Plugin Manager**. \ ![Activate Plugin](https://razorpay.com/docs/build/browser/assets/images/rzp-pb-visual-composer.jpg) 2.3 Navigate to **Razorpay Buttons for Visual Composer** โ†’ **Settings** to add your API key details and connect your Razorpay account to the plugin. ![Add Razorpay API Key](https://razorpay.com/docs/build/browser/assets/images/pb-composer-configure-settings.jpg) ### 3. Embed the Payment Button on WordPress Site To add Payment Button on WordPress site: 3.1 Click **Pages** and navigate to the page where you want to embed the Payment button. 3.2 Click **Edit with Visual Composer** to open the Visual Composer website builder mode. ![Select Page](https://razorpay.com/docs/build/browser/assets/images/pb-composer-shop-builder.jpg) 3.3 Click **Add Content** and search for Razorpay **Payment Button** or **Subscription Button** as per your preference. ![Embed Button](https://razorpay.com/docs/build/browser/assets/images/pb-composer-add-content.jpg) ![Embed Button](https://razorpay.com/docs/build/browser/assets/images/pb-composer-rzp-widgets.jpg) 3.4 From the list, select the Payment Button that should be displayed on the page. ![Choose Payment Button](https://razorpay.com/docs/build/browser/assets/images/pb-composer-select-button.jpg) 3.5 Save the changes and preview the page. The Payment Button appears on the page. > [!NOTE] > > **Handy Tips** > > The selected button will appear on the preview page but not in the editor. ![Payment Button Appears](https://razorpay.com/docs/build/browser/assets/images/pb-composer-preview.jpg) You can now start accepting payments on your WordPress website using the Payment Button. ### 4. View Details on Dashboard To view the payments on the WordPress Dashboard: 4.1 Click **Razorpay Buttons for Visual Composer** to view the list of Payment Buttons. ![List of Payment Button](https://razorpay.com/docs/build/browser/assets/images/pb-composer-buttons-preview.jpg) 4.2 Click **View** to open the button details. ![View Payment Button Details](https://razorpay.com/docs/build/browser/assets/images/pb-composer-button-details.jpg) The following information regarding the payment button is displayed: * Button ID * Button Status * Total Quantity Sold * Total Revenue * Created On ### Related Information * [Payment Button](/docs/payments/payment-button) * [Create a WordPress Website](/docs/payments/payment-button/supported-platforms/wordpress/create-website) * [Embed Payment Button on WordPress Website](/docs/payments/payment-button/supported-platforms/wordpress) * [Payment Button Elementor Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/elementor) * [Payment Button SiteOrigin Plugin for WordPress](/docs/payments/payment-button/supported-platforms/wordpress/site-origin) # Payment Button Use Cases Source: https://razorpay.com/docs/payments/payment-button/use-cases Explore the diverse use cases of Razorpay Payment Button, a robust payment collection solution for businesses. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Discover how Razorpay Payment Button streamlines transactions, offering customers a straightforward payment experience and enabling businesses to efficiently collect revenue across various sectors. > [accordion] Event Organisers > > Event organisers can enhance ticket sales for events, such as a digital marketing conference, using the Razorpay Payment Button. > > **Benefits for Event Organisers** > > * Easy Integration: Embed the Payment Button on the event page to allow attendees to purchase tickets seamlessly. > * Quick Transaction: Simplify the ticketing process with a direct payment method that reduces queues and wait times. > * Customisable Button: Tailor the look and feel of the Payment Button to match the event branding for a consistent user experience. > [accordion] Fundraising for Flood Relief > > NGOs can drive donations for causes such as flood relief more effectively with the Razorpay Payment Button. > > **Benefits for NGOs** > > * Global Donor Accessibility: Accept donations from international contributors with international currency support. > * Real-time Tracking: Monitor donation inflows in real-time, enabling better resource allocation during crises. > * Transparent Process: Offer donors a trustworthy and straightforward way to support the cause directly through the website. > [accordion] Small Businesses > > Small businesses, like an online pottery store, can leverage Razorpay Payment Button to facilitate online sales. > > **Benefits for Small Businesses** > > * Immediate Payment Acceptance: Customers can make purchases directly on the product page, enhancing the likelihood of conversion. > * Reduced Cart Abandonment: Minimise cart abandonment rates by offering a quick and easy checkout process. > * Product-Specific Buttons: You can create Payment Buttons for fixed-rate services or include multiple items within a single Payment Button tailored to your specific business needs. > [accordion] Institutes > > Educational institutions can collect tuition and other fees effortlessly using the Razorpay Payment Button. > > **Benefits for Institutes** > > * Convenient Fee Payment: Students or parents can pay fees directly on the institute's website, avoiding long lines and paperwork. > * Multiple Fee Types: Set up different Payment Buttons for tuition, lab fees, or extracurricular activities, keeping finances organised. > * Automated Receipt Generation: Provide instant payment acknowledgements to students or parents, ensuring clarity and record-keeping. > [accordion] Individuals > > Professionals, such as freelance baking instructors, can accept payments for their services with the Razorpay Payment Button. > > **Benefits for Individuals** > > * Service Promotion: Promote classes or sessions by integrating the Payment Button on social media or personal websites. > * Direct Booking and Payment: Enable students to book and pay for classes instantly, securing their spots and the instructor's revenue. > * Flexible Payment Options: Offer single class payments or bundle packages with different Payment Buttons to accommodate various customer needs. # View Reports Source: https://razorpay.com/docs/payments/payment-button/view-reports View and download report of payments received for a specific Payment Button. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can view details about the payments received for a specific Payment Button and also download reports. ## View Payment Details To view the payments made on a particular Payment Button: 1. Log in to the Dashboard and navigate to **Payment Button**. 2. Click the required payment button. ![Button Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-view-reportpb.jpg) 3. Scroll down to the transaction details section. Here the list of all payments made using the button is displayed. 4. Click a Payment Id to view details of the payment. ![Payment Details](https://razorpay.com/docs/build/browser/assets/images/payment-button-view-paymentpb.jpg) ### Download Report You can download the report related to a Payment Button in the following formats:**CSV (csv)**, **Excel (xlsx)** and **Old Excel (xls)**. To download a report: 1. Navigate to **Payment Button** on the Dashboard. 2. Click the required button. The button details view appears. 3. Scroll down to the transaction details section. Here the list of all payments made using the button is displayed. 4. Hover the mouse pointer on **Download Report**, and choose a format. ![Download Report](https://razorpay.com/docs/build/browser/assets/images/payment-button-view-reportpb.jpg) > [accordion] Report Details > > The downloaded report has the following columns: > > * Payment Button ID > * Payment Button Title > * Payment Date > * Order ID > * Item Name > * Item Amount > * Item Quantity > * Item Payment Amount > * Total Payment Amount > * Currency > * Payment Status > * Input Fields, if any > * Email > * Phone ### Related Information * [Payment Button](/docs/payments/payment-button) * [How Payment Button Works](/docs/payments/payment-button/how-it-works) # Payment Links APIs Source: https://razorpay.com/docs/payments/payment-links/apis Create, update, cancel and fetch Payment Links and resend notifications using Payment Links APIs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Payment Links help you to receive payments from customers by sending them links via email and SMS. Use our APIs to create Payment Links. You can enter details such as amount, link expiry time, and more and send the link to the customer via email or SMS. The customer can select their desired payment method and complete the payment. Once the customer makes the payment, you will receive the amount in your bank account according to your settlement cycle. There are two types of Payment Links: * **Standard Payment Links**: Customers can make payments through netbanking, cards, wallets, UPI and bank transfer payment methods using Standard Payment Links. * **UPI Payment Links**: Customers can select the UPI app of your choice to make payments using UPI Payment Links. ## Payment Link APIs You can create, update, cancel, fetch, and resend payment links using APIs. Check the [API Reference Guide](/docs/api/payments/payment-links) for endpoints, sample codes and parameter descriptions. ### Using Callback URL Parameter Upon successful payment, customers can be directed to a designated URL through the `callback_url` and `callback_method` parameters. For example, you can redirect customers to `https://example-callback-url.com/`. | Parameter | Description | | - | - | | `razorpay_payment_id` | Payment ID of the successful payment. | | `razorpay_payment_link_id` | Payment Link ID generated at the time of link creation. | | `razorpay_payment_link_reference_id` | Internal order ID set by you for business reference using the `reference_id` parameter at the time of link creation. No value is returned if `reference_id` parameter was not used. | | `razorpay_payment_link_status` | Current status of the link. | | `razorpay_signature` | Signature for server-side validation to be calculated as HMAC hex digest using SHA256 algorithm. This is described below with a sample code. | The query parameters are added to the URL as shown: ```json Query Parameters theme={null} https://example-callback-url.com/?razorpay_payment_id=pay_Fc8mUeDrEKf08Y&razorpay_payment_link_id=plink_Fc8lXILABzQL7M& razorpay_payment_link_reference_id=TSsd1989& razorpay_payment_link_status=partially_paid&razorpay_signature=b0ea302006 ``` ### Verify Signature You can verify the `razorpay_signature` parameter to validate that it is authentic and sent from Razorpay servers. The `razorpay_payment_link_idโ€‹` attribute should be stored in your system against an order, right after it is returned in the create [Payment Link](/docs/api/payments/payment-links) response. This is displayed as just `id` (for example, `"id": "plink_FKeEiabyAAiSVQ"`) in the response. * The `razorpay_signature` should be validated by your server. In order to verify the signature, you need to create a signature using * `razorpay_payment_link_id` * `razorpay_payment_link_reference_id` * `razorpay_payment_link_status` * `razorpay_payment_idโ€‹` as payload and your `key_secretโ€‹` (your API secret) as secret. ```java Java theme={null} RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); String secret = "EnLs21M47BllR3X8PSFtjtbd"; JSONObject options = new JSONObject(); options.put("payment_link_reference_id", "TSsd1989"); options.put("razorpay_payment_id", "pay_IH3d0ara9bSsjQ"); options.put("payment_link_status", "paid"); options.put("payment_link_id", "plink_IH3cNucfVEgV68"); options.put("razorpay_signature", "07ae18789e35093e51d0a491eb9922646f3f82773547e5b0f67ee3f2d3bf7d5b"); boolean status = Utils.verifyPaymentLink(options, secret); ``` ```python Python theme={null} import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.utility.verify_payment_link_signature({ 'payment_link_id': payment_link_id, 'payment_link_reference_id': payment_link_reference_id, 'payment_link_status':payment_link_status, 'razorpay_payment_id': razorpay_payment_id, 'razorpay_signature': razorpay_signature }) ``` ```ruby Ruby theme={null} require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') payment_response = { payment_link_id: 'plink_IH3cNucfVEgV68', payment_link_reference_id: 'TSsd1989', payment_link_status: 'paid', razorpay_payment_id: 'pay_IH3d0ara9bSsjQ', razorpay_signature: '07ae18789e35093e51d0a491eb9922646f3f82773547e5b0f67ee3f2d3bf7d5b' } Razorpay::Utility.verify_payment_link_signature(payment_response) ``` ```go Go theme={null} import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") params := map[string]interface{} { "payment_link_id": "plink_IH3cNucfVEgV68", "razorpay_payment_id": "pay_IH3d0ara9bSsjQ", "payment_link_reference_id": "TSsd1989", "payment_link_status": "paid", } signature := "07ae18789e35093e51d0a491eb9922646f3f82773547e5b0f67ee3f2d3bf7d5b"; secret := "EnLs21M47BllR3X8PSFtjtbd"; utils.VerifyPaymentLinkSignature(params, signature, secret) ``` ```php PHP theme={null} $api = new Api($key_id, $secret); $api->utility->verifyPaymentSignature(array('razorpay_payment_link_id' => $razorpayPaymentlinkId, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_payment_link_reference_id' => $razorpayPaymentLinkReferenceId, 'razorpay_payment_link_status' => $razorpayPaymentLinkStatus, 'razorpay_signature' => $razorpayPaymentLinkSignature)); ``` ```javascript Node.js theme={null} import { validatePaymentVerification } from 'razorpay/dist/utils/razorpay-utils'; var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) validatePaymentVerification({ "payment_link_id": PaymentlinkId, "payment_id": PaymentId, "payment_link_reference_id": PaymentLinkReferenceId, "payment_link_status": PaymentLinkStatus, }, signature , secret); ``` ```csharp .NET theme={null} RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary options = new Dictionary(); options.Add("payment_link_reference_id", "TSsd1989"); options.Add("razorpay_payment_id", "pay_IH3d0ara9bSsjQ"); options.Add("payment_link_status", "paid"); options.Add("payment_link_id", "plink_IH3cNucfVEgV68"); options.Add("razorpay_signature", "07ae18789e35093e51d0a491eb9922646f3f82773547e5b0f67ee3f2d3bf7d5b"); Utils.verifyPaymentLinkSignature(options); ``` After validating the signature, you should fetch the order in your system corresponding to the `razorpay_payment_link_id`โ€‹ and mark this order as successful. ### Related Information * [Payment Links APIs](/docs/api/payments/payment-links) * [Subscribe to Webhooks](/docs/payments/payment-links/subscribe-to-webhooks) # Receive Payments via Bank Transfer Source: https://razorpay.com/docs/payments/payment-links/bank-transfer Accept payments from customers using bank transfer as the payment method in Payment Links. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Accept payments from customers in the form of bank transfers using the Razorpay Payment Links. Customers can select **Bank Transfer** as the payment method at the Checkout and copy your account details. They can then initiate online bank transfers from their netbanking account. Usually, businesses accept online payments from their customers via NEFT. However, the payment reconciliation process requires a lot of time and manual effort. Using Razorpay **Customer Identifiers** you can accept payments through online methods, such as NEFT, RTGS and IMPS via transactions made to a Customer Identifier. Since each Payment Link is associated with a Customer Identifier, payment reconciliation is effortless. Know more about [Customer Identifiers](/docs/payments/payment-links/faqs#what-is-a-customer-identifier). > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. > [!WARNING] > > **Watch Out!** > > This feature is not available for UPI Payment Links. ## Use Cases Payment via bank transfers is useful for: * Personal loan payment recollection: If you are a credit provider who offers personal loans, your customers can now repay the loan amount through an online bank transfer. * Advance or token amount collection in case of large transactions: If you operate a business that requires you to collect an advance or token booking amount, your customers can now pay the amount through bank transfer. ## Workflow To create Payment Links with Bank Transfer as a payment method: 1. Create a Payment Link and send them to your customers using [API,](/docs/api/payments/payment-links)[Dashboard](/docs/payments/payment-links/create) or [Bulk Upload feature](/docs/payments/payment-links/batch). 2. Each Payment Link will have a designated Customer Identifier. This Customer Identifier has an account number and IFSC associated with it. Know more about [Customer Identifiers](/docs/payments/smart-collect). 3. Customers open the Payment Link and select **Bank Transfer** as the payment method. ![Payment Links - select bank transfer](https://razorpay.com/docs/build/browser/assets/images/payment-links-bank_transfer.gif) 4. Customers copy the account number and IFSC number provided at Checkout and make an NEFT or RTGS transfer to the mentioned Customer Identifier. ![Bank transfer on Payment Links checkout](https://razorpay.com/docs/build/browser/assets/images/payment-links-bank_transfer_checkout.jpg) 5. The amount is transferred to the designated Customer Identifier. Later, based on your settlement schedule, we will settle the net amount (payment minus fees and tax) to your bank account. 6. You can view the payment under the **Transactions** โ†’ **Payments** tab on the Dashboard. ### Related Information
  • [Bank Transfer FAQs](/docs/payments/payment-links/faqs#for-bank-transfer-payments)
  • [Bank Transfer as a Payment Method](/docs/payments/payment-methods/bank-transfer)
  • [About Customer Identifiers](/docs/payments/smart-collect)
# FAQs (Frequently Asked Questions) Source: https://razorpay.com/docs/payments/payment-links/faqs Find answers to frequently asked questions about Razorpay Payment Links. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States ## For Businesses > [accordion] I do not have a website or app. Can I still use Payment Links to accept payments from customers? > > Yes, you can. You do not need a website or mobile app to use Payment Links. You can create and send Payment Links in 3 easy steps: > > 1. Log in to the Dashboard and create a Payment Link. > 2. Send it to the customer via SMS and/or email. > 3. The customer opens the link and completes the payment. > [accordion] Can I create a Payment Link using which customers can pay an amount of their choice? > > No. You can create Payment Links with fixed amounts only. Customers cannot enter an amount of their choice. Use [Payment Pages](/docs/payments/payment-pages) if you want to allow customers to enter an amount of their choice. > [accordion] Can I accept recurring payments using Payment Links? > > No. Payment Links can only be used to accept one-time payments. Use [Razorpay Subscriptions](https://razorpay.com/docs/payments/subscriptions/) to collect recurring payments from customers. > [accordion] Can I show support details such as helpline, support webpage and email address on the Payment Link? > > Yes, you can show support details on the Payment Link. > > Follow these steps: > > 1. Log in to the Dashboard > 2. Navigate to **Account & Settings** โ†’ **Business settings**. > 3. In the **Customer support details** section, enter these details: > * **Phone Number** > * **Email id** > * **Website/Contact us link** > 4. Click **Submit**. > [accordion] Why is there a Report Payment Link option on a Payment Link created for my business? > > As per Razorpay's risk policy, the **Report Payment Link** option will be displayed by default for all Payment Links. > [accordion] Why is the customer email address and phone number I specified during Payment Link creation not auto-populating on the hosted payment page? > > As per our updated security policy, even if the customer's email address and phone number are provided while creating the Payment Link, these details are not auto-populated on the Checkout section of the Payment Link hosted page. The customer will have to enter these details manually while making the payment. > [accordion] Why is there a Report Payment Link option on a Payment Link request email sent for my business? > > As per our risk policy, the **Report Payment Link** option will be displayed by default on all Payment Link request emails. > [accordion] Can I set a minimum upfront payment amount when I enable Partial Payments for a Payment Link on the Dashboard? > > Currently, you can set a minimum upfront amount only through APIs. Refer to this [API endpoint](/docs/api/payments/payment-links/create-standard#request-parameters) for more information. To enabled this feature for your account, raise a ticket to the support team. > [accordion] Can I cancel a Payment Link if it is in "partially\_paid" state? > > No. You cannot cancel a payment link if it is in `paid` or `partially_paid` state. You can only cancel a payment link if it is in `issued` state. > [accordion] Can I automatically send an invoice to customers after they complete payment via a Payment Link using Razorpay Invoices? > > No, you cannot send an invoice automatically. [Razorpay's Invoices](/docs/payments/invoices) is designed to initiate payments, not for post-payment invoicing. You need to handle invoice generation on your end after receiving payment confirmation. > [accordion] Can I accept international payments using Payment Links? > > Yes, you can accept international payments using Payment Links. Know more about [international payments](/docs/payments/international-payments). > [accordion] Can I use a Payment Link to accept payments from multiple customers? > > No, you can only accept payments from a single customer using a Payment Link. Use [Payment Pages](/docs/payments/payment-pages) if you want to use one link to accept payments from multiple customers. > [accordion] Why is the "callback\_url" not working for UPI Payment Links on Android? > > UPI Payment Links will not redirect to "callback\_url" on an Android device even if the parameter is passed while creating a Payment Link. > [accordion] Can the UPI Payment Link be used if the customer is the fee bearer? > > UPI Payment Links do not work if the customer is the fee bearer. > [accordion] How do I get webhook notifications for Payment Links? > > To receive webhook notifications for Payment Link events, you need to set up Payment Link-specific webhook events in your Razorpay Dashboard. > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings** โ†’ **Webhooks**. > 3. Subscribe to events such as `payment_link.paid`, `payment_link.cancelled`, `payment_link.expired` and `payment_link.partially_paid`. > > These events will notify you whenever a Payment Link status changes and include details like Payment Link id, amount, status and customer information. This allows you to track Payment Link transactions separately from regular payment or order events. For detailed implementation steps and payload structure, refer to the [Payment Link Webhooks documentation](/docs/payments/payment-links/subscribe-to-webhooks). > [accordion] Can I automate Payment Link generation from Salesforce and send them via WhatsApp? > > Yes, you can automate Payment Link generation using the [Payment Links API](/docs/api/payments/payment-links/create-standard). Integrate the API into your Salesforce workflow to programmatically create links based on your business logic. > > Razorpay does not provide direct WhatsApp integration, but you can use the built-in SMS and email notification system by setting the `notify` parameters in the API request. ## For Bank Transfer Payments > [accordion] What is a Customer Identifier? > > A Customer Identifier is a customisable virtual receiver (with customer identifier number and IFSC) created on top of your current/escrow account. You can share the Customer Identifier information with your customers/businesses and collect payments. > > Normally, reconciling online payments (like NEFT) requires significant time and manual effort. Customer Identifiers solve this by allowing you to accept payments via NEFT, RTGS, and IMPS through a dedicated virtual receiver. > > Since each payment transaction is automatically linked to a specific Customer Identifier, the reconciliation process becomes instant and effortless. > [accordion] How will the payments made by customers be settled to my bank account? > > The net amount (payment minus fees and taxes) is transferred from the Customer Identifier to your bank account as per your settlement schedule. > [accordion] If I enable Bank Transfers as a payment method for Payment Links, will it appear as a payment option on other products as well? > > Yes, once this feature is enabled, it will appear in all instances of Razorpay Checkout, be it Invoices, Payment Pages or the Checkout integrated on your website . You cannot enable or disable it for specific products. > [accordion] Will a new Customer Identifier be created for multiple partial payments made on a Payment Link? > > No. Each Payment Link will have only one Customer Identifier associated with it. Even if multiple partial payments are made against the link, the amount will be received by the same Customer Identifier. ## For Customers > [accordion] I have received a Payment Link that looks suspicious and fraudulent. How can I report it? > > There are two ways by which you can report a fraudulent Payment Link: > > * Using the Payment Link hosted page. > * Using the email notification you received. > > **Using the Payment Link Hosted Page** \\ > > Follow these steps: > > 1. Click the Payment Link and open the hosted page. > 2. Click **Report Payment Link**. > > ![report payment link](https://razorpay.com/docs/build/browser/assets/images/payment-links-report-a-link.jpg) > > **Using an Email Notification You Received** \\ > > Follow these steps: > > 1. Open the email received from the business. > 2. Click **Report Email**. > > ![Email Report Payment ink](https://razorpay.com/docs/build/browser/assets/images/payment-links-email-report.jpg) > > **On Clicking Report Option** \\ > > After you click the report link, a form is displayed. Enter the following details: > > 1. **Reason to report this merchant**: Click the drop-down list to select the relevant reason. For example, **Reporting fake website/company**. > 2. **Email ID**: Enter your email address at which we can contact you for additional information. > 3. **Contact No** (optional): Enter your contact number. > 4. **Name** (optional): Enter your name. > 5. Complete the captcha step and click **SUBMIT REPORT**. > > ![report payment link](https://razorpay.com/docs/build/browser/assets/images/payment-links-report-payment-link.jpg) > > **Additional Steps** \\ > > If you have already completed the payment, you can choose to: > > * Request a refund by contacting the business' support team. The support details are available on the Payment Link hosted page. > * File a dispute against the business. Know more about [Disputes](/docs/payments/disputes). # Glossary Source: https://razorpay.com/docs/payments/payment-links/glossary List of commonly used terms related to Razorpay Payment Links. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States The following table lists all the commonly used terms and their definitions used in Payment Links: | Terms | Description | | - | - | | Expiry Date | The Expiry Date is the date after which the customer cannot pay for the Payment Link. | | Payment Link | A short URL added in the invoice notifications that are sent to the customers via email or SMS. The customers can click the link to make online payments. | | Partial Payment | A feature using which customer can make payments in installments. This feature is available only on Standard Payment Links. | | UPI Payment Links | Payment Links for which customers can make payments only using UPI. | | Reminders | SMS reminders sent to customers to notify them about outstanding payments. | # Manage Team Source: https://razorpay.com/docs/payments/payment-links/manage-team Mange your team, add or remove users and provide appropriate role to control access for Payment Links. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can manage your team of users who can access the Dashboard. You can provide specific access to a user or a set of users for Payment Links. **Example** \ You need someone in your organisation to perform day-to-day operations such as creating a Payment Link or a webhook. In this case, you can give access of your Dashboard to a person and assign the **Operations** role. This limits the access to actions related to refunds and settlements only. ## Standard User Roles Following are the predefined user roles that you can assign to your team members: > [card] [Owner](/docs/payments/payment-links/manage-team#owner) > > The Owner can perform all the actions. > [card] [Admin](/docs/payments/payment-links/manage-team#admin) > > The Admin can perform all the actions. > [card] [Manager](/docs/payments/payment-links/manage-team#manager) > > Check all the actions that a Manager can perform. > [card] [Operations](/docs/payments/payment-links/manage-team#operations) > > Check all the actions that a team member with Operations role can/cannot perform. > [card] [Finance](/docs/payments/payment-links/manage-team#finance) > > Check all the actions that a team member with Finance role can/cannot perform. > [card] [ePOS](/docs/payments/payment-links/manage-team#epos) > > Check all the actions that a a team member with ePOS role can/cannot perform. > [card] [Support](/docs/payments/payment-links/manage-team#support) > > Check all the actions that a team member with Support role can/cannot perform. > [!NOTE] > > **Handy Tips** > > * Assign a role to your team member. > * Each role is tied to an email address. > * Assign multiple roles to a team member using multiple email addresses. > * Limit a user's access to the Dashboard using these roles. ### Owner | Actions Allowed | | - | | โœ” Generate API Keys | | โœ” Create and manage webhooks | | โœ” View all transactions and settlements | | โœ” Configure payment capture settings | | โœ” Capture transactions | | โœ” Create refunds | | โœ” Create and manage Payment Links | | โœ” Create and upload batch files | | โœ” Download and email reports | | โœ” Use Payments Mobile App | | โœ” Add Funds/Balance | | โœ” Install OAuth Apps | ### Admin | Actions Allowed | | - | | โœ” Generate API Keys | | โœ” Create and manage webhooks | | โœ” View all transactions and settlements | | โœ” Configure payment capture settings | | โœ” Capture transactions | | โœ” Create refunds | | โœ” Create and manage Payment Links | | โœ” Create and upload batch files | | โœ” Download and email reports | | โœ” Use Payments Mobile App | ### Manager | Actions Allowed/Not Allowed | | - | | โœ” Create and manage webhooks | | โœ” View all transactions and settlements | | โœ” Configure payment capture settings | | โœ” Capture transactions | | โœ” Create refunds | | โœ” Create and manage Payment Links | | โœ” Create and upload batch files | | โœ” Download and email reports | | โœ” Use Payments Mobile App | | โœ˜ Generate API Key | ### Operations | Actions Allowed/Not Allowed | | - | | โœ” Create and manage webhooks | | โœ” View all transactions and settlements | | โœ” Configure payment capture settings | | โœ” Capture transactions | | โœ” Create refunds | | โœ” Create and manage Payment Links | | โœ” Create and upload batch files | | โœ” Download and email reports | | โœ” Use Payments Mobile App | | โœ– Generate API Keys | ### Finance | Actions Allowed/Not Allowed | | - | | โœ” View all transactions and settlements | | โœ” Configure payment capture settings | | โœ” Create and upload batch files | | โœ” Download and email reports | | โœ” Use Payments Mobile App | | โœ– Generate API Keys | | โœ– Create and manage webhooks | | โœ– Capture transactions | | โœ– Create refunds | | โœ– Create and manage Payment Links | ### ePOS | Actions Allowed/Not Allowed | | - | | โœ” Create Invoices and Payment Links in INR only | | โœ– Generate API Keys | | โœ– Create and manage webhooks | | โœ– Manage Teams | | โœ– View all transactions and settlements | | โœ– Capture transactions | | โœ– Create refunds | | โœ– Create and upload batch files | | โœ– Download and email reports | | โœ– View Payment Links created by other users | ### Support | Actions Allowed/Not Allowed | | - | | โœ” View all transactions and settlements | | โœ– Generate API Keys | | โœ– Create and manage webhooks | | โœ– Capture transactions | | โœ– Create refunds | | โœ– Create and manage Invoices, Payment Pages, Payment Links, Plans and Subscription Links, Customers and Virtual Accounts | | โœ– Create and upload batch files | # Offers on Payment Links Source: https://razorpay.com/docs/payments/payment-links/offers Provide offers to customers making payments using Payment Links. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Use Razorpay Offers to provide discounts or cashback on Payment Links issued to customers. You can restrict the payment methods on which the Offers are applied and limit their usage to a defined period. > [!WARNING] > > **Watch Out!** > > Offers are not available for UPI Payment Links. ## Enable Offers for Payment Links Select the **Checkout Visibility** option to display discount and cashback offers on Payment Links. ![show offers on payment links](https://razorpay.com/docs/build/browser/assets/images/payment-links-offers-checkout-visibility.jpg) ## How Offers Appear for Payment Links Watch this video to see how offers appear for Payment Links when customers want to make payments using Payment Links. ## SKU and Brand Offers on Payment Links Add the products (SKUs) a customer is paying for to a Payment Link, so that [SKU and Brand Offers](/docs/payments/offers/sku-offers) configured for those products apply at checkout. For example, a bank discount on a specific phone model applies only when that model's SKU is on the link. > [!NOTE] > > **Feature Request** > > SKU and Brand Offers on Payment Links is an on-demand feature. Contact your Razorpay account manager to enable it on your account. Razorpay configures the offers and the SKUs they apply to for you. To create a Payment Link with product details: 1. Log in to the Dashboard. 2. Go to the **PAYMENT PRODUCTS** section and click **Payment Links**. 3. Click **+ Create Payment Link**. 4. In the **Product details** section, turn on **Add product details**. 5. Enter the details of each product: * **SKU id** (Mandatory): The SKU identifier. It must match the SKU configured in the offer. * **Unit price** (Mandatory): The price of one unit of the product. * **Quantity** (Mandatory): The number of units. * **Name** (Optional): The product name. For example, `Smartphone 128 GB`. 6. Click **Add product** to add more products to the link. 7. Enter the other link details, such as customer details and link expiry, and click **Generate Link**. Watch this video to see how to add product details to a Payment Link. The Payment Link amount is calculated from the products you add and is shown as **Products total**. When the customer opens the link, Checkout shows the products and the offers that apply to them, and applies the best offers for the payment method the customer selects. > [!WARNING] > > **Watch Out!** > > * SKU and Brand Offers on Payment Links work only in live mode. Payment Links created in test mode do not carry product details. > * You can add product details only when you create the link from the Dashboard. #### Related Information * [About Offers](/docs/payments/offers) * [Create Offers](/docs/payments/offers/create) * [SKU and Brand Offers on Standard Checkout](/docs/payments/offers/sku-offers) # Subscribe to Webhooks Source: https://razorpay.com/docs/payments/payment-links/subscribe-to-webhooks Subscribe to various webhook events related to Payment Links to receive instant notifications. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Subscribe to webhook events relevant to Payment Links. To subscribe to webhook events: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **Webhooks** to subscribe to any of the events mentioned in the following section. ## Webhook Events and Descriptions | Webhook Events | Description | | - | - | | payment\_link.paid | Triggered when a Payment Link is successfully paid. | | payment\_link.partially\_paid | Triggered when a partial payment is made against a Payment Link. | | payment\_link.expired | Triggered when a Payment Link expires. | | payment\_link.cancelled | Triggered when you cancel a Payment Link. | Know more about [Webhooks](/docs/webhooks) and check the [sample payloads](/docs/webhooks/payment-links). #### Related Information
  • [Payment Links States](/docs/payments/payment-links/states)
  • [FAQs](/docs/payments/payment-links/faqs)
  • [Payment Links APIs](/docs/payments/payment-links/apis)
# Transfer Payments Received Using Payment Links Source: https://razorpay.com/docs/payments/payment-links/transfer-payments Set up Payment Links to automatically transfer payments to a linked account, saving the need for a separate API call. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can configure your **Payment Links** to automatically transfer payments to a **linked account** once the payment is successfully received. This feature saves you the additional step of making a separate Transfer API call. Check the [transfer payments received using Payment Links API](/docs/api/payments/payment-links/transfer-payments). ## Workflow Follow these steps to transfer payments received using Payment Links to linked accounts. ### Step 1: Create and Onboard Linked Accounts You need to use **Razorpay Route** to create and onboard linked accounts. You can do this directly from your Dashboard. > [!WARNING] > > **Watch Out!** > > * You cannot create transfers on a Payment Link if the `accept_partial` parameter is enabled. Ensure this parameter is set to `false` and that you do not pass the `first_min_partial_amount` parameter. > * Transfers are currently only supported for Payment Links created using `INR`. You cannot create transfers for Payment Links with an international currency. ### Step 2: Transfer Payments Use the [API](/docs/api/payments/payment-links/transfer-payments) to transfer payments received using Payment Links. # View Reports Source: https://razorpay.com/docs/payments/payment-links/view-reports Generate the Razorpay Payment Links reports. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore You can generate the Standard Payment Links report from the Dashboard. To generate reports: 1. Log in to the Dashboard. 2. Navigate to **Reports**. 3. On the Reports page, enter the following details: 1. **Select Report Type**: Select the **Payment Links** report. 2. **Select Period**: Select the period for which the report should be generated. 3. **Select Format**: Select the file format. You can report in CSV, XLS and XLSX formats. 4. **Email Report To**: You can send the report to the email address registered with Razorpay. 4. Click **Generate Report**. # About Payment Pages Source: https://razorpay.com/docs/payments/payment-pages Create custom-branded Razorpay Payment Pages in minutes with zero coding. Accept online payments instantly with memorable custom URLs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Razorpay Payment Pages is the easiest way to accept payments with custom-branded hosted pages. * You do not need a website or an app to start accepting online payments from customers. * Use Payment Pages to build webpages with customised content, rich-text support, media support and social media sharing options. * Share the Payment Page link with your customers and start accepting payments instantly. [YouTube video player](https://www.youtube.com/embed/J9aPL57eUw4?si=yH1s83hYpcOjNjGJ) > [accordion] Advantages > > * **Create-to-Collect in minutes**: Launch your payment collection system instantly without lengthy setup processes. > * **Zero coding effort**: Build professional Payment Pages using our intuitive **What You See Is What You Get** (WYSIWYG) editor. > * **Custom branded URLs**: Create memorable web addresses that align with your brand name and enhance customer trust. > * **Flexible design options**: Create and design custom pages as per your business requirements by adding your own logo, media and input fields. > * **Social Media Support**: Share your Payment Pages on popular social media platforms such as Facebook and X to receive payments instantly from your networks. ## List of Supported Payment Methods Payment Pages support Online Payment Methods. Customers can make online payments using [Card](/docs/payments/payment-methods/cards), [Netbanking](/docs/payments/payment-methods/netbanking), [UPI](/docs/payments/payment-methods/upi), [Pay Later](/docs/payments/payment-methods/pay-later) and **wallets**. ### International Currency Support You can receive payments in any of the [supported international currencies](/docs/payments/international-payments#supported-currencies) from the Dashboard. #### Address Verification System If you are accepting international payments, you can use Razorpay's [Address Verification System (AVS)](/docs/payments/international-payments/address-verification-system). AVS verifies if a customer's billing address (postal code and the billing street address) matches the billing address on file with the card issuer. Based on the response from the issuer, Razorpay will accept or cancel the transaction. This helps in the prevention of fraud in international payments. ## Supported Platforms Razorpay Payment Pages is supported on the following platforms: > [tab] Standard Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | > [tab] Custom Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | x | x | x | x | ## Get Started Log in to the Dashboard and click **Payment Pages**. ### What Next Understand [how you can use Razorpay Payment Pages](/docs/payments/payment-pages/how-it-works) and the various [Payment Page states](/docs/payments/payment-pages/states). ### Related Information * [Payment Pages Use Cases](/docs/payments/payment-pages/use-cases) * [Create a Payment Page](/docs/payments/payment-pages/create) * [Add Images, Videos and Other Details](/docs/payments/payment-pages/add-images-videos) # Configure 80G-Enabled Payment Pages Receipt Source: https://razorpay.com/docs/payments/payment-pages/80g-receipt Generate, download and share 80G-enabled receipts for donations on NGO Payment Pages. Send email notifications and PDF receipts to your customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India If you are an NGO using Payment Pages to accept donations, you can share payment receipts with 80G details to your customers via email once they make the payment. ## Set Up Payment Receipt Payment Receipts can be generated and shared using **Automated Rececipts** or **Manual Receipts**. Watch this video on how to configure 80G-enabled Payment Receipts. [https://www.youtube.com/embed/fLF3dOdi1CM](https://www.youtube.com/embed/fLF3dOdi1CM) > [tab] Automated Receipt > > You can automatically share the payment receipt with customers via email and SMS. An auto-generated reference number is added by Razorpay. > > To configure automated Payment Page receipts: > > 1. While creating or editing the Payment Page, select **Payment Receipts** from the top menu ribbon. > > ![Edit an 80G-enabled Payment Page](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-receipt.jpg) > 2. On the **Payment Receipts Settings** pop-up page, select **Send Automated Receipts**. > 3. To show an input field such as `Name`, `Address` and its associated value on the receipt: > 1. Enable the **Show an Input Field on Receipt** option. > > 2. In the drop-down list, select one of the custom input fields such as `Name`, `Address` or `Landmark`, used on the Payment Page. For example, if you selected `Name`, the patron's name `Gaurav Kumar` will appear on the payment receipt.\\ > > ![Send automated receipts from 80G-enabled Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-receipt-80g-setting.gif) > > 4. To issue receipts with 80G details, enable the **Show 80G Details** option. > 5. Use the **Click here** link to add relevant 80-G text to be displayed in the payment receipt. This opens the **Manage 80-G** pop-up page where you can add a description and upload the signature of the authorised signatory. > 1. Enter the description. For example:\\ > > `Donation eligible for exemption under 80-G under IT Act 1861 .. with ID DIT(E)/2009-2010/W-110/15XX dated 24.09.2009` > > 2. Upload an image of the **Signature of Authorized Signatory** field and click **Save**.\\ > > ![Resend payment receipt from Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-receipt-80g-sign.gif) > > 6. Click **Save**. > [tab] Manual Receipt > > You can also manually add a reference number to the receipt and share it with your customers. > > To configure manual Payment Page receipt: > > 1. On the Payment Page creation page, select **Payment Receipts** from the top menu ribbon. > > ![Edit an 80G-enabled Payment Page](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-receipt.jpg) > 2. On the **Payment Receipts Settings** pop-up page, select **Send Manual Receipts**. > 3. To show an input field such as `Name`, `Address` and its associated value on the receipt: > 1. Enable the **Show an Input Field on Receipt** feature. > > 2. In the drop-down list, select one of the custom input fields such as `Name`, `Address` or `Landmark`, used on the Payment Page. For example, if you select `Name`, the patron's name `Gaurav Kumar` will appear on the payment receipt.\\ > > ![Send manual receipts from 80G-enabled Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-80g-manual-pp-receipt.gif) > > 4. To issue receipts with 80G details, enable the **Issue 80G Receipts** option. > 5. Use the **Click here** link to add relevant 80-G text to be displayed in the payment receipt. This opens the **Manage 80G** pop-up page where you can add a description and upload the signature of the authorised signatory. > 1. Enter the description. For example:\\ > > `Donation eligible for exemption under 80G under IT Act 1861 .. with ID DIT(E)/2009-2010/W-110/15XX dated 24.09.2009` > > 2. Upload an image of the signature in the **Signature of the Authorised Signatory** field and click **Save**.\\ > > ![Add 80G description and signature of the authorised signatory to send manual receipts](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-80g-manual-pp-receipt-sign.gif) > > 6. Click **Save**. > 7. Navigate to the page's **Transactions Details** page. All the payments made using the Payment Page are listed here. > > ![Transaction details of payments made using 80G-enabled Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-transactions-send.jpg) > 8. Click the Payment id to view the payment details. > 9. In the **Payment Receipt** field, click the **Send** button. > 10. Enter a reference number for the receipt as per your business requirements. > > ![Add a reference number for an 80G payment receipt](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-manual-ref.jpg) > 11. Click **Send**. > > You can also download the payment receipt using the **Download** button. > [accordion] Resend and Download Payment Receipt > > To resend the receipt to a customer: > > 1. Navigate to the page's **Transactions Details** screen. All the payments made using the Payment Page are listed here. > 2. Click on the Payment id to view the payment details. > 3. In the **Payment Receipt** field, click the **Send** button. This will resend the receipt to the customer. > > > > You can download the payment receipt using the **Download** button. > [accordion] Email Notification to Customers > > After your customers complete the payment using the Payment Page, the payment receipt is sent to them via email as a PDF attachment. The details entered by the customer on the Payment Page appear on the email body as shown below: > > ![80G Payment receipt sent via email notification to a customer](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-email.jpg) > [accordion] PDF Receipt to Customers > > Here is a sample PDF of the payment receipt. > > ![PDF of 80G payment receipt sent to a customer](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-receipt-80g-example.jpg) ### Related Information [Configure Payment Pages Receipt](/docs/payments/payment-pages/receipt) # Add Images, Videos and More Source: https://razorpay.com/docs/payments/payment-pages/add-images-videos Add images, videos, hyperlinks, create lists and change font style and colour for your Razorpay Payment Pages. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [!NOTE] > > **Handy Tips** > > If you are using a template, the sample description only contains heading levels and content. You can add the following to your Payment Pages: > [accordion] Add Headings > > You can define up to 2 heading levels. Select **Heading** for your major level 1 headings and **Subheading** for level 2 heading and **Normal Text** for content. > > > [!NOTE] > > > > **Handy Tips** > > > > Defining heading levels in your description makes the information look more structured and neat. > > ![Add Heading to a Payment Page.](https://razorpay.com/docs/build/browser/assets/images/pp-addheading.jpg) > [accordion] Change Font Style and Color > > Choose a font color from 10 available colors. There are three font styles that you can apply to the text: boldface, italics and underline > [accordion] Create Lists > > You can create lists to display the information in a sequence. You can create bulleted lists and numbered lists. > > ![Add Lists to a Payment Page](https://razorpay.com/docs/build/browser/assets/images/pp-add-lists.jpg) > > There are 10 font colors from which you can choose to choose. There are three font styles that you can apply to the text: Boldface, Italics and Underline. > [accordion] Add an Image > > Click the image icon to upload an image from your local system. We support images with dimensions 40x40. Formats supported are JPG, JPEG, PNG and GIF. > [accordion] Add a Video > > Click the video icon and **Enter Video URL**. This will embed the hosted video into your page. > > ![Add Videos to a Payment Page](https://razorpay.com/docs/build/browser/assets/images/pp-add-video.jpg) > [accordion] Add a Hyperlink > > URLs entered as plain-text in the Description field are automatically converted to hyperlinks. You can use the **Link** icon to add YouTube or Vimeo video links to text. You cannot add links to images. > [accordion] Add Sharing Options > > The **+Add social media share icons** option adds CTA (call-to-action) buttons for Facebook, X and WhatsApp. > [accordion] Add Contact Information > > Click **Add your contact information** to add contact details. You can add phone number and email address. > [accordion] Add Notes > > Click **Add Terms & Conditions** to add the terms and conditions for a transaction. ### Related Information * [Create a Payment Page](/docs/payments/payment-pages/create) * [Customise Payment Pages](/docs/payments/payment-pages/customise) # Upload Data on Payment Pages in Batches Source: https://razorpay.com/docs/payments/payment-pages/batch Share Razorpay Payment Page Link in bulk with customers via email and SMS. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can add or change fields on the Batch Payments Page to show important information for your business. Then, upload a file with the data. Your customers will see the data specific to them and can make a payment based on it. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ## How it Works 1. **Payment Pages Creation and Customer Data Upload**: Businesses can create individualised Payment Pages with an option to upload a file containing specific customer data for their customer base. You can use this data to personalise the payment page for each customer. 2. **Automated Notifications**: After the business uploads the data, an automated system will send the Payment Page URLs to the customers via their registered email and mobile number. You can simply embed the page URL on your website if you do not wish to send notifications. 3. **Customer Validation**: Once customers click on the link, they are validated based on a predefined reference parameters that can be as per your, that is, the Business's requirement. This parameter forms part of the data initially uploaded by the business while creating the page. The validation step ensures a secure transaction environment and that only the intended customer can view their respective Payment Page. 4. **Customer-specific Details Access**: After successful validation, customers can view the specific details on their personalised Payment Page as per what was uploaded by you during the batch upload. ## Steps to Create Payment Pages in Batches To create Payment Pages in batches: > [accordion] Create a Payment Page > > To create a Payment Page: > > 1. Log in to the Dashboard and navigate to Payment Pages. > 2. Select **Batch Payment Pages** and click **+ Create Payment Pages**. > 3. Add Business Details to your Payment Page. Know more about how to add [Business Details](/docs/payments/payment-pages/create#add-business-details) to your Payment Page. > 4. Add payment details to your Payment Page: > 1. Primary Reference Id and Secondary Reference Id are input fields that your customers will use to validate themselves on the page link shared. > 2. Modify the label of these fields as per your requirement. > 3. The Primary Reference Id and Secondary Reference Id input fields are mandatory and cannot be deleted from the page. > > ![Shows the option to select an input field as a secondary reference Id.](https://razorpay.com/docs/build/browser/assets/images/pp-batch-secondary-reference-id.jpg) > 5. Click **Save and Proceed to next Step**. You can download the sample file from here or do it later from the Dashboard. > > ![Shows the interim step before publishing a Payment Page.](https://razorpay.com/docs/build/browser/assets/images/pp-batch-step-2.jpg) > 6. Click **Create and Publish Page** to create the Payment Page. > [accordion] Download the Custom Sample Batch File and add details to the Batch File > > 1. Navigate to **Batch Payment Pages** and select the Payment Page you have created. > > 2. Click **View Batch Details** and download the sample file by clicking **Download Sample File**. > > ![Shows the Download Sample File button on the Razorpay Dashboard.](https://razorpay.com/docs/build/browser/assets/images/pp-batch-download-sample.jpg) > > 3. The batch file contains all the input fields you added in the Payment Details section of your Payment Page. \\ > > 4. Fill in the details in the batch file and save. Make sure you do not make any changes to the column labels as that will lead to batch upload failure later. > [accordion] Upload Batch File on Dashboard > > #### Upload Batch File > > 1. Select **Click here to Upload** to upload the batch file. > 2. On the pop-up page, drag and drop the file over the highlighted area. Alternatively, select the **click to upload** option to select your file from your system. > > ![Pop-up that indicates where to upload Batch Upload](https://razorpay.com/docs/build/browser/assets/images/pp-batch-uploadhere.jpg) > > The file is validated and uploaded to the Razorpay server. After the file is successfully uploaded, a snippet view of the file is displayed in the **Batch Upload** pop-up page. > > #### Add Details to the Batch File > > To add details to Batch upload: > > 1. Enter a relevant file name in the **BATCH FILE NAME** field. > 2. Follow these steps to determine whether the links should be sent immediately or later. Also, select the medium of link sharing: > * If you want to send links immediately, select **via SMS** and/or **via Email** next to the **NOTIFY** check box options and click **Create**. > * If you want to send them later, do not select any medium and click **Create**. > > ![Adding Batch details to a Batch File.](https://razorpay.com/docs/build/browser/assets/images/pp-batch-details.jpg) > [accordion] Perform Post-batch Creation Actions > > After the batch is created, you can see a **Batch Created Successfully** pop-up page. Click **Close** and reload the page. The newly created batch file will appear in the list of **Batch Uploads**. The **Batch Uploads** screen displays the following fields: > > ![Shows the Batch file in processed state.](https://razorpay.com/docs/build/browser/assets/images/pp-batch-fields.jpg) > > | Field | Descriptions | > | - | - | > | Batch Id | Unique identifier of a batch upload. | > | Batch Name | Name of the batch file. | > | Count | The number of processed rows in a batch. | > | Status | Current [state](#batch-file-states) of the batch file. | > | Actions | The operations you can perform on a particular batch file. For example, Download Report File and Send all links. | > > #### Batch File States > > The batch file states are explained in the table given below: > > | State | Description | > | - | - | > | **Created** | You have successfully uploaded the file. We have not performed any action on the file. | > | **Processing** | We are processing the file. | > | **Processed** | We have processed this file. | > [accordion] Handle Errors > > If there are any errors, they are mentioned in the batch file. Check the batch file, make the necessary corrections and upload the batch file again. ### Related Information * [Create a Payment Page](/docs/payments/payment-pages/create) * [Search for a Payment Page](/docs/payments/payment-pages/search) * [Manage Payment Pages](/docs/payments/payment-pages/manage) # Create a Payment Page Source: https://razorpay.com/docs/payments/payment-pages/create Create a Payment Page to start accepting payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can build a Payment Page from your Dashboard to start accepting payments from customers. This method does not require any code or API integration. ## Prerequisites * Ensure you have an account. * Log in to the Dashboard and complete the KYC requirements. * The Dashboard has [test and live modes](/docs/payments/dashboard/test-live-modes). Use the test mode for a sandbox experience. You can switch to live mode when you are ready to accept payments. You will have to create a new Payment Page in live mode. * Understand the [Payment Flow](/docs/payments/payment-gateway/how-it-works). ![Payment Pages Flow](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-create_pp.jpg) ## Steps to Create a Payment Page To create a Payment Page, you must complete the following actions: > [card] [1. Select Payment Page](/docs/payments/payment-pages/create#step-1-select-payment-page) > > Navigate to Payment Pages and click **+ Create Payment Page**. > [card] [2. Add Page Details](/docs/payments/payment-pages/create#step-2-add-page-details) > > Add business details, payment fields and custom input fields. > [card] [3. Configure Payment Receipt](/docs/payments/payment-pages/create#step-3-configure-payment-receipt-optional) > > Set up payment receipt configuration (optional). > [card] [4. Configure Page Settings](/docs/payments/payment-pages/create#step-4-configure-page-settings) > > Customise URL, theme, expiry date and post-payment actions. > [card] [5. Publish and Share](/docs/payments/payment-pages/create#step-5-publish-and-share) > > Publish your page and share via URL, social media or embed button. > [card] [6. Set Up Webhooks](/docs/payments/payment-pages/create#step-6-set-up-webhooks) > > Configure webhooks to receive payment notifications. > [accordion] Step 1: Select Payment Page > > 1. Log in to the Dashboard and navigate to Payment Pages. > 2. Click the **+ Create Payment Page** button and select the **Select Payment page** button. > > ![Select which product you want to use.](https://razorpay.com/docs/build/browser/assets/images/pp-select-choice.jpg) > [accordion] Step 2: Add Page Details > > > [accordion] Add Business Details > > > > 1. Enter the page title. The **Payment Page Title** cannot exceed 40 characters. > > > > 2. Fill in the page details: > > 1. Enter a brief description for the page. > > 2. You can use the [rich-text features](/docs/payments/payment-pages/add-images-videos) to add images and videos. > > > > 3. Click **Add social media share icons**. This makes the Payment Page shareable on popular social media sites and Instant Messaging (IM) services such as Facebook, Twitter and WhatsApp. > > > > 4. Click **Add your contact information** to enter support email and contact number details. > > > > 5. Click **Add Terms & Conditions** to add your terms of business. For example, terms and conditions for refund of payment. > > > > > [!NOTE] > > > > > > **Optional Fields and Customisation** > > > > > > * Apart from `title` and `contact information`, all fields in this section are optional. > > > * You can customise this section by adding videos, images and more, using our [rich-text features](/docs/payments/payment-pages/add-images-videos). > > > > The section appears as shown once the details are filled in: > > > > ![Payment Pages - Business Details](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-completed_business_details.jpg) > > > [accordion] Add Payment Details > > > > 1. Create and configure the price field. Price fields are the products and services that you intend to sell. > > > > 2. Add description to `Phone` and `Email` fields. > > > > 3. Add any custom input fields you need to gather additional customer information. > > > > 4. Reorder fields if necessary. > > > > 5. Customise the Pay button label. > > > > > [accordion] Create and Configure Price Field > > > > > > 1. Click **Add Price Field**. In the **Select Amount Type** menu, choose a price field type from the list: > > > 1. **Item with Quantity** - Select this type if you want the customer to buy more than one unit of the item. You can set additional parameters for minimum and maximum numbers of units the customer can buy. > > > 2. **Fixed Amount** - Select this type if you want to limit the customer to buy only one unit. > > > 3. **Customer Decides Amount** - Select this type if you want the customer to enter the price. For example, in the case of donations. You can set additional parameters for the minimum and maximum amount the customer can enter. > > > > > > 2. Add the label for the field. > > > > > > 3. Set the currency. By default, it is `โ‚น`. We support international currencies too. > > > > > > 4. If you have selected `Item with Quantity` or `Fixed Amount` as the price field type, enter the price you want to charge. > > > > > > 5. Click the more icon to open the **Additional Options** menu to: > > > 1. Add image. > > > 2. Specify if the field is mandatory. > > > 3. Configure further for quantity and price. Know more about [Additional Options](#additional-options). > > > > > > 6. Click **Save**. > > > > > > > [!NOTE] > > > > > > > > **One Currency per Page** > > > > > > > > You can set only one currency for price fields on a Payment Page. > > > > > [accordion] Additional Options > > > > > > **Add an image** > > > > > > 1. In the **Additional Options** menu, select **Add Image**. > > > 2. You can add the thumbnail image by dragging and dropping or select the **Click to Upload** option. Ensure that the image size does not exceed 500 KB. Only PNG, JPG, JPEG or GIF files are allowed. > > > 3. Crop the image as per your requirements using the zoom bar. > > > 4. Click **Save**. > > > > > > ![Payment Pages - Additional Details](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-image_added.jpg) > > > > > > You can remove the image by selecting **Remove Image** on the **Additional Options** menu. > > > > > > **Add a Description** > > > > > > 1. In the **Additional Options** menu, select **Add Description**. > > > 2. Add the description in the field that appears beneath the price field. > > > 3. Click **Save**. > > > > > > You can remove the description by selecting **Remove Description** on the **Additional Options** menu. > > > > > > **Mark the field Optional** > > > > > > 1. In the Additional Options menu, select **Make it Optional Item**. > > > > > > 2. Click **Save**. > > > > > > > [!NOTE] > > > > > > > > **Handy Tips** > > > > > > > > You can mark the field mandatory by selecting **Optional Item** on the **Additional Options** menu. > > > > > > **Quantity and Price Settings** \\ > > > > > > Given below are the price field type settings and the applicable quantity and price rules: > > > > > > | Feature | Item with Quantity | Fixed Amount | Customer decides Amount | > > > | - | - | - | - | > > > | **Quantity Rules** - In **Units Available in Stock** field, select **limited** and set the quantity or choose **unlimited**. | Yes | Yes | Yes | > > > | **Minimum and Maximum Quantity** - Set minimum and maximum number or units purchasable by customer. | Yes | No | No | > > > | **Minimum and Maximum Price** - Set minimum and maximum price limits for customer. | No | No | Yes | > > > > > [accordion] Add Description to `Phone` and `Email` Fields > > > > > > `Email` and `Phone` fields appear by default and are mandatory. You cannot delete these. However, you may add descriptions to appear with these fields. > > > > > > 1. Click the edit icon. > > > 2. Click **Add Description** to enter a brief description regarding the field. > > > > > > ![Payment Pages - Contact Details Description](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-phone_field.jpg) > > > > > [accordion] Add Custom Input Fields > > > > > > You can add more fields to collect additional data from the customer. Let us add `Full Name` as a mandatory field. > > > > > > 1. Click **Add new** and select **Input Field**. In the drop-down, select **Single Line Text** as the **Field Type**. > > > > > > ![Payment Pages - Custom Input Fields](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-custom_field_1.jpg) > > > 2. Add the label for the field - `Full Name`. > > > > > > ![Payment Pages - Custom Input Fields](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-custom_field_ps.jpg) > > > 3. Click **Save**. > > > > > [accordion] Reorder Fields > > > > > > You can reorder the fields by dragging them up and down the section. Hover over a field and use the drag icon present in the left corner. > > > > > > ![Payment Pages - Custom Input Fields](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-reorder_generic.gif) > > > > > [accordion] Customise Pay Button Label > > > > > > 1. Hover on the Pay button and click the edit icon. > > > > > > ![Payment Pages - Custom Pay Button Label](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-pay_button_hover.jpg) > > > 2. Enter a new label - `Book Tickets` and click the save icon. > > > > > > ![Payment Pages - Custom Pay Button Label](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-pay_button.jpg) > > > > > > The label cannot exceed 16 characters. > [accordion] Step 3: Configure Payment Receipt (Optional) > > You can ensure that your customers receive payment receipts via email once they complete the payment. Know how you can [send and download automated or manual payment receipts](/docs/payments/payment-pages/receipt). > > If you are an NGO, [know how you can send and download payment receipts with 80-G information](/docs/payments/payment-pages/80g-receipt). > [accordion] Step 4: Configure Page Settings > > To configure page settings, click **Page Settings**. On the pop-up page: > > 1. Choose a **custom URL** for the page. This is available only if you are in live mode. An example of a custom URL is `https://rzp.io/l/livingarts`. > 2. Choose from the **Dark** or **Light** themes. > 3. To set the expiry date for the page, disable **No Expiry**. In the calendar that is displayed, select the expiry date and set the time. > 4. Under **Action after successful payment**, you can: > 1. Select **Show custom message** and enter a custom message to be shown to the customer once the payment is made. > 2. Select **Redirect to your website** and enter a URL. This redirects the customer to your official webpage once the payment is successful. > 5. You can [put a hyperlink button on your website](#create-hyperlink-button). This can be done only after your page is published. > 6. Click **Save**. > > ![Configure Page Settings](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-page-settings.jpg) > [accordion] Step 5: Publish and Share > > Click **Save and Publish** to complete the Payment Page creation. > > > [tab] URL > > > > Copy the URL and share it. > > > > To customise the URL, go to **Page Settings** (only in live mode). Once the URL is ready, share the page on social media sites such as Facebook, X and WhatsApp. > > > > Enter the email and phone number of customers to send the page directly to them. > > > > An example of a custom URL is `https://rzp.io/l/grofersexpo`. > > > > ![Enter Contact details to share Payment Page Link](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-payment-button-result.jpg) > > > [tab] Create Hyperlink Button > > > > You can add a hyperlink button on your website. When customers click on this button, the Payment Page will appear. > > > > To get a hyperlink button: > > > > 1. Click **Create** to customise and create a button. > > 2. In the pop-up page, customise the button text and select the button size. > > 3. Copy the HTML code to embed on your website and click **Done**. > > > > ![Hyperlink Button](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-generic-embed-button.jpg) > > > > Here is a demo of how the Payment Button would appear, when embedded on your website. > > > > > [!NOTE] > > > > > > An interactive demo is available on the [Razorpay website](https://razorpay.com/). > > After you are done with the publish settings, click **Back to Dashboard**. Once the Payment Page is created, Razorpay generates a unique identifier for the page (for example, `pl_C4VFJaiO69EvdL`). The page is then added to the list of previously created Payment Pages. > > You can search for a Payment Page using filters, such as: **Title**, **Status** and **Count**. > [accordion] Step 6: Set Up Webhooks > > You can set up webhooks to receive notifications on payments using the page. Know more about how to [set up webhooks](/docs/payments/payment-pages/subscribe-to-webhooks). ## View Payment Page in Action Your Payment Page is now live! ![Sample Payment Page](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-generic_hosted_page_view.jpg) ## Payments You can view the payments as and when they are made in the [Transactions Details View](/docs/payments/payment-pages/view-reports) of the page. ![Payment Page Transaction Tab](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-generic_report.jpg) > [accordion] Export Data > > To export the report data into a CSV file: > > 1. Navigate to **Dashboard** โ†’ **Payment Pages**. > 2. Select the relevant Payment Page. The Transactions Details View appears. > 3. Click **Export All (CSV)** button. > > A .csv file downloads, allowing you to find a monthly report of all the payments made using your page. > [accordion] Download and Resend Payment Receipt > > You can download and resend the payment receipt from the **Transaction Details View** screen. > > To download and resend payment receipt: > > 1. Click on the relevant **Payment Id**. For example, `pay_EWqq21bljDMbcl`. > 2. In the side pane, click **Download** to download a PDF copy of the receipt. You can now save this for your reference or send it to the customer via email or WhatsApp. > 3. Click **Resend** to automatically send the receipt to the customer via email. ## Settlements You will receive the payments in your bank account as per your settlement cycle. Usually, this is T+2 days. In case of international payments, the settlement cycle is T+7 days. > [!NOTE] > > **Try it Out** > > [Try creating the entire payment page yourself](https://dashboard.razorpay.com/app/paymentpages/new). ### Related Information * [How Payment Pages Work](/docs/payments/payment-pages/how-it-works) * [Search for Payment Pages](/docs/payments/payment-pages/search) * [Manage Payment Pages](/docs/payments/payment-pages/manage) # Customise Payment Pages Source: https://razorpay.com/docs/payments/payment-pages/customise Customise Payment Pages and send different versions of the same Payment Page to different customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can customise Payment Pages for customers and send them custom links with the amount, email, phone and custom fields (such as First Name and Last Name) pre-populated. This serves as a personalisation value-add for customers. You can do this by making changes to the Payment Pages URL before sending it to customers. You can pre-populate [Input Fields](#pre-populate-input-fields) and [Amount Fields](#pre-populate-amount-fields) ![Sample Payment Page](https://razorpay.com/docs/build/browser/assets/images/payment-pages-prepopulate_pp.jpg) ## Pre-populate Input Fields You can pre-populate the input fields on your Payment Page, such as name, email and contact and send customised Payment Pages to customers. | Name | Email | Phone Number | | - | - | - | | Saurav Kumar | [saurav.kumar@example.com](mailto:saurav.kumar@example.com) | 8999999999 | | Bhairav Kumar | [bhairav.kumar@example.com](mailto:bhairav.kumar@example.com) | 9999888899 | > [accordion] To pre-populate input fields: > > 1. Log in to the Dashboard and create a Payment Page titled **Registration**. > 2. Fill in the details of the event such as description, venue, time and more. > 3. Create a price field of any type in the Payment Details Section. > 4. Create an input field with type as `Single Line` to capture the customer's **Full Name**. > 5. **Save and Publish** the Payment Page. > 6. Copy and paste the Payment Page short URL on the browser. > > When you open the Payment Page short URL on the browser, it expands to a longer format. > > **Example** > > * Payment Page Title - `Registrations` > * Short URL - `https://rzp.io/l/pcsLir1` > * Long URL - `https://pages.razorpay.com/pl_CjbpJ6gnwk6Ehy/view` > > Here, add suffixes to the field names and values as shown: > > | Field Name | Mandatory to create Payment Page | Value | > | - | - | - | > | `email` | Yes | [saurav.kumar@example.com](mailto:saurav.kumar@example.com) | > | `phone` | Yes | 8999999999 | > | `full_name`(`_` denotes the space between the field name words) | No | Saurav%20Kumar (%20 denotes the space between the field value words) | > > The long URL appears as shown: > > `https://pages.razorpay.com/pl_DOiqlZTGqnH9F8/view?amount=199&email=saurav.kumar@example.com&phone=8999999999&full_name=Saurav%20Kumar` > > This is a unique URL that can be shared with the customer named Saurav Kumar to accept payments from her.It appears as shown below: ![Payment Page - Prepopulate Input Fields](https://razorpay.com/docs/build/browser/assets/images/payment-pages-prepopulate_pp_sk.jpg) > > Similarly, you can add suffixes to these field names and values and create different versions of the same Payment Page for different customers. > > Payment Page appears customised for Bhairav Kumar: > > ![Payment Page - Customised Page](https://razorpay.com/docs/build/browser/assets/images/payment-pages-prepopulate_pp_bk.jpg) > [!NOTE] > > **Handy Tips** > > * Use only `lower case` when suffixing field names and values in the long URL. You can use `upper case` in values of custom fields, such as Full Name. > * The field-level validations are in place. Hence, if you enter a character in `amount` value, say `amount=100a` or `amount=Rs.Hundred%20only`, the field will not get populated. > * If the custom field consists of two words, include an underscore as a separator of two words. For example, the two words in the Last Name field should be separated by an underscore, that is, `Last_Name`. ## Pre-populate Amount Fields You can pre-populate amount fields on your Payment Page. That is, in case of amount field with type: > [accordion] Case 1: Pre-populate Item Quantity > > Pre-populate the quantity of item to be purchased by customer. > > **Example** \\ > > You want to sell iPhone 11 Pro smartphone cases for . You are creating a Payment Page titled `Limited Edition iPhone 11 Phone Case` to sell the product. You can ensure that when the customer opens the Payment Page, the quantity to be purchased appears pre-selected as `1`. However, this will work only when the field has been marked optional. > > > [accordion] To pre-populate item quantity: > > > > Add an optional amount field selected by default. > > > > 1. On the Dashboard, create a Payment Page titled **Limited Edition iPhone 11 Phone Case**. > > 2. Fill in the details of the product. > > 3. In the Payment Details Section, create a price field called `Marble Pink Case` using `Item with Quantity` as the amount field type. > > > > ![Payment Page - Prepopulate Item with Quantity](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-item_with_quantity.jpg) > > > > 4. Create any additional fields required such as Name, Address and so on. > > 5. **Save and Publish** the Payment Page. > > 6. Copy and paste the Payment Page short URL on the browser. > > > > When you open the Payment Page short URL on the browser, it expands to a longer format. For example: > > > > * Payment Page Title - `Limited Edition iPhone 11 Phone Case` > > * Short URL - `https://rzp.io/l/nfR16LE` > > * Long URL - `https://pages.razorpay.com/pl_EZvXqNgFYRNZtS/view` > > > > Here, add suffixes to the field names and values as shown: > > > > | Field Name | Value | > > | - | - | > > | `marble_pink_case` | 1 | > > > > The Long URL now appears as shown: > > > > `https://pages.razorpay.com/pl_EZvXqNgFYRNZtS/view?marble_pink_case=1` > > > > This is now a unique URL wherein the item quantity will always appear selected as `1`: > > > > ![Payment Page - Customised Payment Page](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-item_qty_selected.jpg) > [accordion] Case 2: Pre-populate Fixed Amount Field > > Add an optional amount field that appears selected by default. > > **Example** \\ > > You run a Creative Writing Academy that uses Payment Pages to collect online course registration fees from students. You offer two courses: > > * Creative Writing (main course) > * Book Promotion Techniques (optional course) > > You can create a Payment Page titled `Creative Writing Course Registration` to collect registration fees. Also, you can ensure that when the student opens the Payment Page, the optional field, that is, the book promotion technique course appears pre-selected. > > > [accordion] To pre-populate fixed amount field: > > > > 1. On the Dashboard, create a Payment Page titled **Creative Writing Course Registration**. > > 2. Fill in the details of the product. > > 3. In the Payment Details Section, create a price field called `Creative Writing Course Registration` using `Fixed Amount` as the amount field type. > > > > ![Payment Page - Prepopulate Fixed Amount](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-fixed-amount.jpg) > > > > 4. Create the additional fields: > > * `How To Promote Your Book` - Create this price field with `fixed amount` type and mark it `optional`. > > * Create other fields for collecting student details such as name. > > 5. **Save and Publish** the Payment Page. > > 6. Copy and paste the Payment Page short URL on the browser. > > > > When you open the Payment Page short URL on the browser, it expands to a longer format. For example: > > > > * Payment Page Title: `Creative Writing Course Registration` > > * Short URL: `https://rzp.io/l/lz3xNr6` > > * Long URL: `https://pages.razorpay.com/pl_EZxm4DFp4W0KPP/view` > > > > Here, add suffixes to the field names and values as shown: > > > > | Field Name | Value | > > | - | - | > > | `how_to_promote_your_book` | 1 | > > > > The Long URL now appears as shown: > > `https://pages.razorpay.com/pl_EZxm4DFp4W0KPP/view?how_to_promote_your_book=1` > > > > This is now a unique URL wherein the amount field will always be appear selected: > > > > ![Payment Page - Customised Payment Page](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-fixed_amount_selected.jpg) > [accordion] Case 3: Display Different Amounts for Different Customers > > Add a field to display different amounts for different customers. > > **Example** \\ > > You want to get registrations for an event. You are creating a Payment Page titled `Registrations` to accept the registration fee payments. You would like to set it up in such a way, wherein: > > * Early bird, Gaurav Kumar pays โ‚น199 > * Saurav Kumar pays โ‚น299 > * Last minute registrant, Bhairav Kumar pays โ‚น399 > > In this case, you do not have to create multiple Payment Pages. You can fix and pre-populate the amount you want each customer to pay. > > ![Payment Page - Customised Payment Page](https://razorpay.com/docs/build/browser/assets/images/payment-pages-prepopulate_pp.jpg) > > > [accordion] To display different amounts for different customers: > > > > 1. On the Dashboard, create a Payment Page titled **Registration**. > > 2. Fill in the details of the event such as description, venue, time and more. > > 3. In the Payment Details Section, create a price field. - `Customer Decides Amount`. > > > > ![Payment Page - Customer Decides Amount](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-customer_decides_amount.jpg) > > 4. Create an input field with type as `Single Line` to capture the customer's **Full Name**. > > 5. **Save and Publish** the Payment Page. > > 6. Copy and paste the Payment Page short URL on the browser. > > > > When you open the Payment Page short URL on the browser, it expands to a longer format. For example: > > > > * Payment Page Title: `Registrations` > > * Short URL: `https://rzp.io/l/pcsLir1` > > * Long URL: `https://pages.razorpay.com/pl_CjbpJ6gnwk6Ehy/view` > > > > Here, add suffixes to the field names and values as shown: > > > > | Field Name | Mandatory to create Payment Page | Value | > > | - | - | - | > > | `amount` | Yes | 199 | > > | `email` | Yes | [gaurav.kumar@example.com](mailto:gaurav.kumar@example.com) | > > | `phone` | Yes | 9000090000 | > > | `full_name`(`_` denotes the space between the field name words) | No | Gaurav%20Kumar (%20 denotes the space between the field value words) | > > > > The long URL now appears as shown:\\ > > > > `https://pages.razorpay.com/pl_CjbpJ6gnwk6Ehy/view/?amount=199&email=gaurav.kumar@example.com&phone=9000090000&full_name=Gaurav%20Kumar` > > > > This is a unique URL that can be shared with the customer named Gaurav Kumar to accept payments from him. It appears as shown below: > > > > ![Payment Page - Prepopulate Fields](https://razorpay.com/docs/build/browser/assets/images/payment-pages-prepopulate_pp.jpg) > [!NOTE] > > **Points to Remember** > > * If using a custom field name for amount, ensure that the field name is entered in lowercase and is separated by an underscore. For example, if the amount field name is Registration Amount, enter the suffix as `registration_amount`. > * If the amount field item is out of stock or has less quantity available, though the field will appear prefilled, the customer will not be able to make a purchase. > * Pre-population of the amount field is subject to the Minimum and Maximum Input Price set for the amount field. For example, if Maximum Input Price has been set as , then the Registration Amount field cannot be prefilled with a value higher than . ### Related Information * [Create a Payment Page](/docs/payments/payment-pages/create) * [Add Images, Videos and More](/docs/payments/payment-pages/add-images-videos) # Add Domain Link (Beta) Source: https://razorpay.com/docs/payments/payment-pages/domain-linking Create a customised URL for your Payment Page. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡บ๐Ÿ‡ธ United States You can link your domain to your Payment Page's URL with the custom domain linking feature. This helps you align your payment page with your website/brand. **Example** Let us assume that you have a blog website named `https://www.mahesh.com` and are charging fees for your course using a Payment Page. You can now link this page to your website by adding a custom slug using the Domain Linking feature. The URL will be `https://www.mahesh.com/blogcourse-payment` where `blogcourse-payment` is the custom slug given to your Payment Page. > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Please raise a request with our [Support team](https://razorpay.com/support/#request) to get this feature activated on your Razorpay account. ![Example website](https://razorpay.com/docs/build/browser/assets/images/pp-mahesh.jpg) > [accordion] Connect Your Domain Link > > To connect your domain link to your Payment Page: > > 1. Log in to the Dashboard and navigate to **Payment Pages**. > 2. Select the page you wish to link to your domain and click **Edit Page**. > > ![Edit Page](https://razorpay.com/docs/build/browser/assets/images/pp-domain-edit-page.jpg) > 3. This opens the page in edit mode. Click **Page Settings**. > > ![Page Settings](https://razorpay.com/docs/build/browser/assets/images/pp-page-settings.jpg) > 4. In the pop-up page that appears, click **Connect Domain**. > > ![Connect Domain](https://razorpay.com/docs/build/browser/assets/images/pp-connect-domain.jpg) > 5. Select a subscription plan that works for you. We offer 3 subscription plans for you to choose from: > > | Plan | Price | > | - | - | > | 6 Months | (350/month) | > | 3 Months | (400/month) | > | 1 Month | | > > ![Domain Linking Pricing Plans](https://razorpay.com/docs/build/browser/assets/images/pp-domain-linking-pricing-plans.jpg) > > 6. Select a plan of your choice and click **Continue**. > > ![Select Plan for Pricing](https://razorpay.com/docs/build/browser/assets/images/pp-domain-linking-select-plan.jpg) > 7. Enter the domain or sub-domain you wish to use as your Payment Page's URL and click **Next**. > > ![Add Domain Name](https://razorpay.com/docs/build/browser/assets/images/pp-domain-name.jpg) > 8. Go to your domain and update the DNS values after receiving them. Given below is an example from Google Domains: > > ![Google Domain Page](https://razorpay.com/docs/build/browser/assets/images/pp-google-domains.jpg) > 9. After updating the DNS values, select the check box that asks if you have updated the DNS values and click **Verify connection**. > > ![Update DNS Values](https://razorpay.com/docs/build/browser/assets/images/pp-update-dns.jpg) > 10. After your domain is connected, customise the URL by clicking **Okay, customize URL**. > > ![Domain Connected Message](https://razorpay.com/docs/build/browser/assets/images/pp-domain-connected.jpg) > [accordion] Customise your Domain Link (Optional) > > After successfully connecting your domain, you can customise your domain link by following the steps given below: > > 1. Click **Page Settings**. > 2. In the pop-up page that appears, select one of these: > * **Use my domain**: Select this option to customise your domain link name as per your preference. For example, assam-flood-relief-funds. > > ![Use my Domain option](https://razorpay.com/docs/build/browser/assets/images/pp-use-my-domain.jpg) > * **Use Razorpay's domain**: Select this option to use Razorpay's domain. > > ![Use Razorpay's Domain option](https://razorpay.com/docs/build/browser/assets/images/pp-use-rzp-domain.jpg) > * Click **Save**. > 3. **Click Save and Update** after customising domain link. > > ![Save your Domain](https://razorpay.com/docs/build/browser/assets/images/pp-save-update.jpg) > > Your page is now live with the updated domain link. > > ![Domain changes saved](https://razorpay.com/docs/build/browser/assets/images/pp-changes-saved.jpg) > [accordion] Remove Your Domain Link > > You can choose to remove the domain link from your Payment Page. Follow the steps given below to remove your domain: > > 1. Remove the DNS values from your Domain. > 2. Click **Page Settings**. In the pop-up page that appears, click **Remove domain**. > > ![Remove Domain option](https://razorpay.com/docs/build/browser/assets/images/pp-click-remove-domain.jpg) > 3. Click **Yes, remove domain** to confirm the removal. > > ![Domain removal confirmation](https://razorpay.com/docs/build/browser/assets/images/pp-confirmation-remove.jpg) > 4. You have successfully removed your domain from your Payment Page. Click **Save**. > > ![Domain removed confirmation](https://razorpay.com/docs/build/browser/assets/images/pp-domain-removed.jpg) ### Related Information * [How Payment Pages Work](/docs/payments/payment-pages/how-it-works) * [Create a Payment Page](/docs/payments/payment-pages/create) * [Payment Pages States](/docs/payments/payment-pages/states) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/payment-pages/faqs Find answers to frequently asked questions about Razorpay Payment Pages. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [accordion] How can I add my business logo on the page? > > To add your business logo on the page: > > 1. In the Dashboard, navigate to **Account & Settings**. > 2. Click **Branding** under **Checkout settings**, and click **Choose File** in the **Your Logo** section. > 3. Upload the logo file. Ensure that the logo is a square image of minimum dimensions 256x256 px. Maximum file size allowed is 1MB. Formats supported are JPG, JPEG and PNG. > [accordion] How can I make the Payment Page elements reflect my brand colors? > > You can make the Payment Page elements such as Pay button, side bar and title underline appear in your brand colours. To change the colors of the Payment Page: > > 1. In the Dashboard, navigate to **Account & Settings**. > 2. Click **Branding** under **Checkout settings** and enter the HEX code for your brand. For example, `#6822CC` in the **Theme Color** section. > 3. Click **Save Changes**. > [accordion] How do I create a custom URL for my Payment Page? > > You must create the Payment Page in **Live Mode** in order to obtain a custom URL. You can only customise the suffix and not the entire URL. If your suffix is `livingarts`, the custom URL will appear as `https://pages.razorpay.com/livingarts`. > > > [!WARNING] > > > > **Watch Out!** > > > > If another business that uses Razorpay Payment Pages has already created a custom URL with `livingarts` as the suffix, you will not be able to use `livingarts`. Your Payment Page suffix must be unique as two Payment Pages cannot have the same suffix. > > To create a custom URL for Payment Page: > > 1. In the Dashboard, navigate to menu ribbon, click the drop-down button and select **Live Mode**. > 2. Create a **Payment Page** and fill in the Business Details section and set up the Payment Details section. > 3. Click **Save and Publish Page**. > 4. Click **Page Settings** and in the pop-up that appears, enter the suffix to create a custom URL for the page. Click **Save and Publish**. > [accordion] How do I add a quantity counter for the price field created on the Payment Page? > > While creating the price field, ensure that you select the `Item with Quantity` as the type. This adds the quantity counter, which the customer can use to add or reduce quantity. If you have already created the price field without this option, you must delete and recreate with `Item has quantity` type selected. > [accordion] I want to create a price field wherein customers can enter an amount of their choice. How do I do this? > > While creating the price field, make sure that you select `Customers Decide Amount` type. Once the page is published, in the customer view, the field appears with a blank space where the customer can enter the amount. > [accordion] What are the size requirements and supported formats for the image added to a price field? > > We support images with dimensions 40x40. Formats supported are JPG, JPEG, PNG and GIF. > > > [!NOTE] > > > > **Handy Tip** > > > > GIFs with animations are converted and displayed as non-animated GIFs in the price field images. > [accordion] How do I update the stock level of a price field (item) in my Payment Page? > > You can update the stock in two ways. > > **From the List of Payment Pages**: > > 1. Navigate to the list of **Payment Pages** and click on the relevant page. The items appear on the top of the page, on the right-hand side. > 2. Click **Update Stock** and enter the number of units available for sale in the field. > 3. Click **Update**. > > **Using the Payment Page Edit Mode**: > > 1. Navigate to the list of **Payment Pages** and click on the relevant page. Click the edit icon. > 2. In the **Payment Details** section, go to the price field and click the edit icon. > 3. Enter the number of units available for sale in the field. > 4. Click **Add**. > [accordion] What happens to my Payment Page if all the listed price fields (items) go out of stock? > > If all the items listed on your Payment Page go out of stock: > > * If the **Price** field is **mandatory**, when the items goes out-of-stock, the Payment Page becomes inactive. The customers will not be able to access this page to make payments. > * If the **Optional** price fields go out-of-stock and there are other **Mandatory** Price fields which still have stock available, the Payment Page will remain in active state. > [accordion] Can I have two Price fields with different currencies appear on a single Payment Page? > > No. You cannot configure Price fields to have different currencies. When you attempt to configure the second price field with a different currency, a message appears on the screen displaying that only one currency can be applied. > [accordion] How to get the hyperlink button on my website? > > You can get the hyperlink button on your website to collect payments from your customers. > > To get the hyperlink button on your website: > > 1. Go to **Dashboard** โ†’ **Payment Pages** and in the list of Payment Pages, click on the Payment Page name. > 2. The page opens in edit mode. Click **Page Settings**. > 3. Click **Create** against the get hyperlink button. In the pop-up that appears, customise the button text and select the button size. > 4. Copy the HTML code to embed on your website and click **Done**. > 5. In your website code, paste this code on the page where you want the payment button to appear. > [accordion] How do I track the payments made by customers? When will the amount be settled to my account? > > You can view the payments as and when they are made in the [Transactions Details View](/docs/payments/payment-pages/view-reports) of the page. > > ![Payment Page - View Report](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-view_report.jpg) > [accordion] What payment methods can customers use to make payments on the page? Can I display additional payment methods? > > All the payment methods enabled for your account are displayed on the Payment Page. The default payment methods available are: > > * Cards > * Netbanking > * UPI > * Wallet (PayZapp) > > If you want to show more wallets or [payment methods](/docs/payments/payment-methods) at Checkout, please raise a request with the [Razorpay Support team](https://razorpay.com/support/#request). > [accordion] What is the maximum payment amount allowed per transaction on a Payment Page? > > By default, a customer can make a maximum payment of โ‚น5,00,000. You can increase this limit by raising a request with our [Support team](https://razorpay.com/support/). > [accordion] Can I accept payments in international currency? > > You can accept payments in international currency using Payment Pages by following these steps: > > 1. Follow [these steps](/docs/payments/international-payments) to enable international payments for your account. > > 2. While creating the Payment Page, click the currency drop-down list in the **Price** field and select the required currency. > > > [!NOTE] > > > > **One Currency per Payment Page** > > > > You can set only one currency for the Price fields on a Payment Page. If you attempt to configure the second price field with a different currency, a message appears on the screen displaying that more than one currency cannot be applied. > [accordion] Facebook Analytics tool is being withdrawn by 30 June 2021. Will this affect my existing Facebook Pixel integration with Payment Pages? > > Although the Facebook Analytics tool is being withdrawn, this will have no impact on your Facebook Pixel integration with Payment Pages. You can find more information about this [here](https://www.facebook.com/business/help/966883707418907?content_id=XxWPmeIfQg9ns0j). > [accordion] How many fields can I add to a Payment Page? > > The maximum number of fields that you can add to a Payment Page is **25**. > [accordion] I am getting a message that my domain was not connected. What should I do? > > Sometimes it can take up to an hour for the changes to save. Do not undo the changes you have made to your domain and try again after an hour. Raise a ticket with our [Support team](https://razorpay.com/support/) if you can still not connect your domain. > [accordion] I am getting an error message Failed to create link with given slug, please try a different value. What should I do in this case? > > This error message occurs when the custom URL provided by you already exists. Please use a different URL slug. > [accordion] How can I strike-through a text on Razorpay Payment Page description? > > Razorpay does not support the feature to strikethrough a text on the Payment Page description section. > [accordion] Can I create multiple URLs for a Payment Page? > > No, you cannot create multiple URLs for a Payment Page. โ€‹A Payment Page allows you to collect multiple payments on the same link. > [accordion] How is the Total Revenue calculated on the Dashboard? > > The Total Revenue amount is the sum of captured and refunded payments. # Glossary Source: https://razorpay.com/docs/payments/payment-pages/glossary List of commonly used terms related to Razorpay Payment Pages. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States The following table lists all the commonly used terms and their definitions used in Payment Pages: | Terms | Description | | - | - | | Fixed Amount | A price field where you decide the amount a customer should pay. | | Customers Decide Amount | A price field where customers can enter the amount they wish to pay. | | Item with Quantity | A price field with a quantity selection widget that facilitates the purchase of multiple quantities. | | 80G | Section **80G** of the IT Act allows donations made to specified relief funds and charitable institutions as a deduction from gross total income before arriving at taxable income. | | Stock | The goods or merchandise stored with the business in a warehouse or a storage facility. | | Expiry Date | The Expiry Date is the date after which the customer cannot pay using the Payment Page. | # Configure Goal Tracker Source: https://razorpay.com/docs/payments/payment-pages/goal-tracker Create and configure a Donation Goal Tracker on your Payment Pages. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Increase your payment collection by highlighting how many people have backed your goal by using the Goal Tracker. This tracker can highlight your monetary goals, how many people have supported your goal and so on. The Donation Goal Tracker is an optional widget that you can edit or delete even after your Payment Page is live. ![Payment Page - Goal Tracker](https://razorpay.com/docs/build/browser/assets/images/pp-goal-tracker.jpg) ## Use Cases 1. Suitable for an NGO or a Non-Profit organisation seeking donations. 2. Suitable for fundraisers for your product/event. 3. You can also track any milestone you have for your product/event in general. ## Create Goal Tracker There are two types of Goal Trackers you can set up [Track Amount-based Goal](#track-amount-based-goal) and [Track Supporter-based Goal](#track-supporter-based-goal). ### Track Amount-Based Goal Use this tracker to highlight the amount you have collected for your goal. To set up an Amount-based Goal tracker: > [accordion] Select Payment Page > > **1.1.** Log in to the Dashboard and navigate to **Payment Pages**.\\ > > **1.2.** Click **Select Payment Page**. > [accordion] Set up the Goal Tracker > > **2.1.** Click **+Add a Goal Tracker** and select **Track amount based goal**.\\ > > ![Payment Page - Amount Based Goal](https://razorpay.com/docs/build/browser/assets/images/donation-goal-tracker.jpg) > > **2.2.** In the **Configure Your Goal Tracker** pop-up:\\ > > * Enter your Goal Amount.\\ > > * Select the **Display supporter count for this goal** check box if you wish to show the number of supporters that have contributed towards your goal on your Payment Page.\\ > > * Select the **Goal has a fixed end date** check box if you want the tracker to be live for a limited time. Configure the end date and time.\\ > > * Click **Save**.\\ > > ![Payment Page - Configure Goal Tracker](https://razorpay.com/docs/build/browser/assets/images/configure-donation-goal-tracker.jpg) > > **2.3.** Continue with the creation of your Payment Page. Know more about how to [Create a Payment Page](/docs/payments/payment-pages/create#step-2-add-page-details). ### Track Supporter-Based Goal Use this tracker to highlight the number of people that have supported your goal. To set up a Supporter-based Goal tracker: > [accordion] Select Payment Page > > **1.1** Log in to the Dashboard and navigate to **Payment Pages**. \\ > > **1.2.** Click the **+ Create Payment Page** button and click the **Select Payment page** button. > > ![Payment Page - Select Template](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-create-your-own.jpg) > [accordion] Set up Goal Tracker > > **2.1.** Click **+Add a Goal Tracker** and select **Track supporter based goal**.\\ > > ![Payment Page - Supporter Based Tracker](https://razorpay.com/docs/build/browser/assets/images/supporter-based-tracker.jpg) > > **2.2.** In the **Configure Your Goal Tracker** pop-up:\\ > > * Select the **Display stock/unit sales** check box if you want to highlight the amount of stock/units you have sold so far.\\ > > * You can select the **I have limited stocks/units available** check box if you have a limited quantity of stock available. Add the quantity below this check box to track how many units are remaining.\\ > > * Select the **Display supporter count for this goal** check box if you wish to show the number of supporters that have contributed towards your goal on your Payment Page.\\ > > * Select the **Goal has a fixed end date** check box if you want the tracker to be live for a limited time. Configure the end date and time.\\ > > * Click **Save**.\\ > > ![Payment Page - Configure Goal Tracker](https://razorpay.com/docs/build/browser/assets/images/configure-supporter-goal-tracker.jpg) > > **2.3.** Continue with the creation of your Payment Page. Know more about how to [Create a Payment Page](/docs/payments/payment-pages/create#step-2-add-page-details). ## Edit Goal Tracker To edit your goal tracker: 1. Navigate to **Payment Pages** on the Dashboard. 2. In the list of **Payment Pages** that appear, click on the link of the page that you want to modify. 3. In the top right corner of the page, click the **Edit** button. ![Payment Page - Edit Payment Page](https://razorpay.com/docs/build/browser/assets/images/goal-tracker-edit.jpg) 4. Click **Edit** below the Goal Tracker. You can now edit all the elements of the goal tracker including the amount, end date, supporter count etc. 5. You can also click **Remove** to delete the goal tracker from your Payment Page. ![Payment Page - Remove Goal Tracker](https://razorpay.com/docs/build/browser/assets/images/edit-remove-goal-tracker.jpg) 6. Click **Save and Update** after you have completed editing your Payment Page. Know more about how to [Manage a Payment Page](/docs/payments/payment-pages/manage). ### Related Information * [How Payment Pages Work](/docs/payments/payment-pages/how-it-works) * [Payment Pages States](/docs/payments/payment-pages/states) * [Search for a Payment Page](/docs/payments/payment-pages/search) * [Create a Payment Page](/docs/payments/payment-pages/create) * [Edit a Payment Page](/docs/payments/payment-pages/manage) * [Configure payment receipts](/docs/payments/payment-pages/receipt) * [Subscribe to Webhooks](/docs/payments/payment-pages/subscribe-to-webhooks) * [View Reports](/docs/payments/payment-pages/view-reports) # How Payment Pages Work Source: https://razorpay.com/docs/payments/payment-pages/how-it-works Create Payment Pages, send them to customers to receive payments and perform other actions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Given below are steps to use Razorpay Payment Pages when you: > [tab] Do Not Have a Website > > ## How Payment Pages Work When You Do Not Have a Website > > You can create a Payment Page from your Dashboard and share the page link with your customers to start accepting online payments. > > ![Payment Page Workflow for Not having a Website](https://razorpay.com/docs/build/browser/assets/images/pp-no-website.jpg) > > #### 1. Sign Up for a Razorpay Account > > Set up your [Razorpay account](/docs/payments/set-up). If you already have an account, log in to the Dashboard and click **Payment Pages**. > > #### 2. Select Payment Page > > Click **Create a Payment Page** and then, click **Select Payment page**. Know [how to select Payment Page](/docs/payments/payment-pages/create#step-1-select-payment-page). > > #### 3. Add Business Details > > Add your business details. For example, you can add business contact information, terms and conditions and so on. Know more about [adding business details](/docs/payments/payment-pages/create#add-business-details). > > #### 4. Add Payment Details > > Configure the amount and input fields. For example, you can add quantity details, add a name field and so on. Know more about [adding payment details](/docs/payments/payment-pages/create#add-payment-details). > > #### 5. Share and Start Accepting Payments > > Publish the page and share the URL with your customers. The customers visit this page, fill in the details, select a payment method and complete the payment. Know more about [publishing a page and sharing it with customers](/docs/payments/payment-pages/create#step-5-publish-and-share). > [tab] Have a Website > > ## How Payment Pages Work When You Have a Website > > You can create a Payment Page from your Dashboard and embed it onto your site without any development effort from your end. > > ![Payment Page Workflow for Having a Website](https://razorpay.com/docs/build/browser/assets/images/pp-embed-website.jpg) > > #### 1. Sign Up for a Razorpay Account > > Set up your [Razorpay account](/docs/payments/set-up). If you already have an account, log in to the Dashboard and click **Payment Pages**. > > #### 2. Select Payment Page > > Click **Create a Payment Page** and then, click **Select Payment page**. Know more about [how to select Payment Page](/docs/payments/payment-pages/create#step-1-select-payment-page). > > #### 3. Add Business Details > > Add the business details. For example, you can add business contact information, terms and conditions and so on. Know more about [adding business details](/docs/payments/payment-pages/create#add-business-details). > > #### 4. Add Payment Details > > Configure the amount and input fields. For example, you can add quantity details, add a name field and so on. Know more about [adding payment details](/docs/payments/payment-pages/create#add-payment-details). > > #### 5. Get Hyperlink for Pay Button on Your Website and Start Accepting Payments > > Add the hyperlink to your website. When customers click on the **Pay** button, they will be redirected to the Razorpay Payment Page to complete the payment. Know more about [publishing a page and sharing it with customers](/docs/payments/payment-pages/create#step-5-publish-and-share). ### Related Information * [Payment Pages States](/docs/payments/payment-pages/states) * [Create a Payment Page](/docs/payments/payment-pages/create) * [Search for Payment Pages](/docs/payments/payment-pages/search) * [Manage Payment Pages](/docs/payments/payment-pages/manage) * [Configure Payment Pages Receipt](/docs/payments/payment-pages/receipt) * [Configure Goal Tracker](/docs/payments/payment-pages/goal-tracker) * [Subscribe to Webhooks](/docs/payments/payment-pages/subscribe-to-webhooks) # Manage Payment Pages Source: https://razorpay.com/docs/payments/payment-pages/manage Edit content, change settings or deactivate your Payment Page. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can perform the following Payment Page actions: > [accordion] Modify Payment Page Content > > To modify the Payment Page content: > > 1. Navigate to **Payment Pages** on the Dashboard. > > 2. In the list of pages that appear, click on the link of the page that you want to modify. > > 3. In the top right corner of the page, click the **Edit Page** button. > > ![Edit Button - Manage Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-update_stock.jpg) > > 4. The page appears in edit mode. You can now edit any of the fields to update the details, including the price fields. > [accordion] Update Stock > > 1. Navigate to **Payment Pages** on the Dashboard and select **Payment Pages**. > > ![Dashboard Page type selection](https://razorpay.com/docs/build/browser/assets/images/dashboard-pp-page-selection.jpg) > 2. In the list of **Payment Pages** that appears, select the page you wish to modify. > 3. In the top right corner, the different price fields are displayed. Click **Update Stock** against the relevant price item. > 4. You can either make the stock quantity unlimited, using **No Limit** or enter an amount in the box given below. > 5. Click **Save**. > [accordion] Modify Settings > > To modify Payment Page settings: > > 1. Navigate to **Payment Pages** on the Dashboard and select **Payment Pages**. > 2. Click on the page id. This opens the page details panel where you can perform the following actions: > > | Action | Effect | > | - | - | > | **Edit** the page | Editing reopens the editor with saved details. You can make changes to the page content. | > | **Deactivate** the page | Deactivating a page makes it inaccessible to your customers. | > | Configure **Expires on** | This option enables you to set the page's expiry date and time using the date and time picker. You can also select the **No Expiry** checkbox to run the page indefinitely. | > | **Add New** notes on the page | You can add up to 5 custom notes on the Payment Page. | > > ![Modify Settings - Manage Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-edit_pp_2.jpg) > > > [!NOTE] > > > > **Best Practices** > > > > * To avoid confusion, ensure that no two pages have the same **Title**. > > * You can edit an expired or inactive Payment Page and republish it with new changes. This helps avoid page duplication and allows you to query the system efficiently. > [accordion] Deactivate Payment Page > > A Payment Page can have two states, active and inactive. > > | Status | Description | > | - | - | > | `active` | The Page is published and live. | > | `inactive` | The Page goes inactive due to one of the following actions:
  • Manual deactivation
  • Page expiry
  • Items out-of-stock
| > > You can make an existing page inactive if you no longer wish to accept payments using it. > > > [accordion] Manual Deactivation > > > > To deactivate manually: > > > > 1. Log in to Dashboard and navigate to **Payment Pages**. > > 2. Select **Payment Pages**. > > 3. Select the page you wish to deactivate. > > 4. In the page details screen, go to **Page Status** field and click **Deactivate**. > > 5. In the dialogue box that appears, confirm the action by clicking the **Yes, deactivate** button. > > > > ![Deactivate Button - Manage Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-edit_pp.jpg) > > > [accordion] Deactivation Using Expiry Date > > > > You can also automate page deactivation by setting an expiry date for the page. You can set expiry date: > > > > > [tab] At the Time of Creation > > > > > > Know how to [set the page's expiry date](/docs/payments/webstore/create#step-3-configure-page-settings) at the time of creation. > > > > > [tab] After Creation > > > > > > To set the expiry mode of a page from the list of **Payment Pages**: > > > > > > 1. Navigate to **Dashboard** โ†’ **Payment Pages**. > > > 2. Select **Payment Pages**. > > > 3. In the list of **Payment Pages** that appears, Select the page you wish to set expiry for. > > > 4. In the page details screen, go to **Expires On** field and click **Change**. > > > 5. The field now shows a **No Expiry** checkbox selected. Unselect the box for the calendar to appear. > > > 6. In the calendar, set the date and time of expiry and click **Save**. > > > > > > ![Save Button - Exipry Date - Manage Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-edit_pp_2.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > The expiry time must be at least 15 minutes after the current time. ### Related Information * [Create a Payment Page](/docs/payments/payment-pages/create) * [Search for Payment Pages](/docs/payments/payment-pages/search) * [Configure Payment Pages Receipt](/docs/payments/payment-pages/receipt) * [Configure Goal Tracker](/docs/payments/payment-pages/goal-tracker) * [Subscribe to Webhooks](/docs/payments/payment-pages/subscribe-to-webhooks) # Add Facebook Pixel on Payment Success Page Source: https://razorpay.com/docs/payments/payment-pages/plugins-add-ons/fb-payment-success Add your Facebook Pixel on your payment success page. This helps you track payments and conversions from your Facebook advertisements. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You should integrate Facebook Pixel on your payment success page to track and analyse the advertisement conversion to payments if you: * Use Razorpay Payment Pages to accept payments from customers and redirect them to a success page post payment. * And, advertise on Facebook and use Facebook Pixel to track conversions. ## Prerequisites * [Create a Facebook Pixel](https://www.facebook.com/business/help/952192354843755?id=1205376682832142\&recommended_by=1700857106877546). * Create a payment success page on your domain and [add the Facebook Pixel to it](https://www.facebook.com/business/help/952192354843755?id=1205376682832142). ## Workflow Let us assume you run a website selling pet supplies. You attract customers using advertisements on Facebook and sell them pet products using Razorpay Payment Pages. To track and measure the effectiveness of these Facebook advertisements and how many of them convert into purchases, you need to add a redirect from your Payment Page to this success page. To add a redirect: 1. Navigate to your Payment Page in the edit mode. 2. Click **Page Settings**. 3. In the **Action after Success Payment** field, select **Redirect to your website**. 4. Enter your website's success page URL here as shown: ![](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-add-redirect-url.jpg) Every time a customer successfully completes a payment, they are directed to the success page. Facebook pixel tracks this event. ### Related Information * [Add Facebook Pixel to Payment Page](/docs/payments/payment-pages/plugins-add-ons/fb-pixel) * [Add Google Analytics Tracking ID](/docs/payments/payment-pages/plugins-add-ons/google-analytics) # Add Facebook Pixel Source: https://razorpay.com/docs/payments/payment-pages/plugins-add-ons/fb-pixel Add your Facebook Pixel to your Payment Pages to track payments and conversions from your Facebook advertisements. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can add your Facebook Pixel to your Payment Pages Storefront to track payments and conversions from your Facebook advertisements. **Available Tracking Metrics** | Metrics | Description | | - | - | | Page Views | When a customer lands on your Payment Page. This is the default metric to track page visits. | | Add to Cart | When a customer clicks on an add-to-cart button. | | Initiate Checkout | When a customer clicks on a checkout button. | | Purchase | When a customer finishes the purchase or checkout flow and lands post-payment success page. | ## Prerequisites [Create a Facebook Pixel](https://www.facebook.com/business/help/952192354843755?id=1205376682832142\&recommended_by=1700857106877546). ## Add Facebook Pixel to Your Payment Page To add Facebook Pixel to your Payment Page: 1. Navigate to your Payment Page in the edit mode. 2. Click **Page Settings**. 3. Go to **Plugins and Add-ons** and click **Configure**. ![Configure Plugins and Add Ons](https://razorpay.com/docs/build/browser/assets/images/payment-pages-fb-pixel-configure-plugins-addons.jpg) 4. Add the details: 1. **Facebook Pixel ID**: Enter the Facebook Pixel ID. 2. Select the metrics you want to track from the following: * Page Views * Initiate Payment * Add to Cart * Payment Complete ![Add Google Tracking ID and FB Pixel](https://razorpay.com/docs/build/browser/assets/images/payment-pages-fb-pixel-fb-pixel-google-trackingid.jpg) 5. Click **Save**. ### Related Information * [Add Facebook Pixel to your payment success page](/docs/payments/payment-pages/plugins-add-ons/fb-payment-success) * [Add Google Analytics Tracking ID](/docs/payments/payment-pages/plugins-add-ons/google-analytics) # Add Google Analytics Tracking ID Source: https://razorpay.com/docs/payments/payment-pages/plugins-add-ons/google-analytics Add your Google Tracking ID to your Payment Pages to track payments and conversions from your Google advertisements. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can add your Google Tracking ID to your Payment Pages to track payments and conversions from your Google advertisements. Know more about [Tracking ID](https://support.google.com/analytics/answer/1008080?hl=en) and how to create one using Google Analytics account. **Available Tracking Metrics** | Metric | Description | | - | - | | Page View | When a customer lands on your Payment Page. This is the default metric to track page visits. | ## Prerequisites [Create a Google Tracking ID](https://support.google.com/analytics/answer/1008080?hl=en). ## Add Google Tracking ID to Your Payment Page To add Google Tracking ID to your Payment Pages: 1. Navigate to your Payment Page/Webstore in the edit mode. 2. Click **Page Settings**. 3. Go to **Plugins and Add-ons** and click **Configure**. ![Configure Plugins and Add Ons](https://razorpay.com/docs/build/browser/assets/images/pp-plugins-addons-configure.jpg) 4. Add the **Tracking ID** to track the page views. ![Add Google Tracking ID and FB Pixel](https://razorpay.com/docs/build/browser/assets/images/pp-plugins-addons-GA.jpg) 5. Click **Save**. ### Related Information * [Add Facebook Pixel to Payment Page](/docs/payments/payment-pages/plugins-add-ons/fb-pixel) * [Add Facebook Pixel to your payment success page](/docs/payments/payment-pages/plugins-add-ons/fb-payment-success) # Integrate Payment Pages With Shiprocket Source: https://razorpay.com/docs/payments/payment-pages/plugins-add-ons/shiprocket Integrate Shiprocket with Razorpay Payment Pages to automate shipping and dispatch products seamlessly to customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Shiprocket is India's leading logistics software, offering automated shipping solutions. With the help of Shiprocket, you can ship anywhere in India and abroad using the best courier companies and at discounted rates. Integrate with Shiprocket to dispatch your products seamlessly to your customers using the following steps: ## 1. Enable Shiprocket Option on Payment Page 1. Log in to the Dashboard and navigate to Payment Pages. 2. Click the **+ Create Payment Page** button. 3. Click **Select Payment page**. 4. Click **Page Settings**. ![Payment Pages - Page Settings](https://razorpay.com/docs/build/browser/assets/images/pp-shiprocket-settings.jpg) 5. Scroll down to the **Create orders on Shiprocket** section and click **Enable**. ![Payment Pages - Shiprocket](https://razorpay.com/docs/build/browser/assets/images/pp-shiprocket-enable.jpg) 6. A pop-up will appear informing you that the following fields will be added to your Payment Page. Click **Continue**. * Name * Address * City * State * Pincode ![Payment Pages - Shiprocket Options](https://razorpay.com/docs/build/browser/assets/images/pp-shiprocket-fields.jpg) 7. Continue with the creation of your Payment Page. Know more about how to [Create a Payment Page](/docs/payments/payment-pages/create#step-2-add-page-details). ## 2. Configure Your Shiprocket Account 1. Log in to your [Shiprocket Account](https://app.shiprocket.in/login) or create one if you have not already. 2. On your Shiprocket Dashboard: 1. Navigate to **All Channels** and click **+ Add New Channel**. ![Shiprocket - Add New Channel](https://razorpay.com/docs/build/browser/assets/images/pp-shiprocket-integrate.jpg) 2. Navigate to Razorpay Payment Pages and click **Integrate**. 3. Click **Connect with Razorpay**. You will be redirected to the Razorpay login page. 3. Log in to your Razorpay Account. 4. On the **Authorize Shiprocket** page, click **Authorize** to verify your account integration with Shiprocket. After this, you will be redirected to the Shiprocket channel page. Here you can edit your Razorpay channel as per your preferences. # Integrate Payment Pages With Zapier Source: https://razorpay.com/docs/payments/payment-pages/plugins-add-ons/zapier Connect Razorpay Payment Pages with Zapier to automate workflows, sync data across apps like Mailchimp, Google Sheets and CRMs without writing any code. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Integrate Razorpay Payment Pages with [Zapier](https://zapier.com/) and move data between applications with triggers and actions. Zapier is a tool that helps you automate repetitive tasks between two or more apps without using a single line of code. When an event happens in one app, Zapier can tell another app to perform a particular action. ## Use Cases Following are a few examples where you can use Payment Pages-Zapier integration: * Send automated notifications from popular email automation tools like Mailchimp or Gmail for new Razorpay payments. * Update your customer data in your CRM tools like Hubspot or Salesforce without any hassle. * Sync information seamlessly between your accounting apps like Zoho Books or Tally. * Enrol students in learning courses with new successful payments on Razorpay. * Add newly-captured Razorpay payments to rows in Google Sheets. * Send SMS messages through messaging tools for new payments made through Razorpay. ## Prerequisites 1. Sign up for a [Razorpay account](https://dashboard.razorpay.com/signup). 2. Sign up for a [Zapier](https://zapier.com/sign-up) account. ## Integration Steps Watch this video to know how to integrate Razorpay with your Zapier app. [YouTube video player](https://www.youtube.com/embed/8dVBLa8PEZs) To integrate Zapier with your Payment Page: 1. Click on the **Create Zap** button on the top-left of the Zapier Dashboard page. > [!NOTE] > > **What is a Zap** > > A Zap is an automated workflow that connects your apps and services together. Every Zap consists of a trigger step and one or more action steps. When you turn your Zap on, it will run the action steps every time the trigger event occurs. 2. Name your Zap. 3. Search for the Razorpay option in the list of triggers. ![Razorpay Zapier Trigger](https://razorpay.com/docs/build/browser/assets/images/zapier-name-zap.jpg) 4. Select the **Payment Page Paid** event and click **Continue**. ![Razorpay Payment Page Event](https://razorpay.com/docs/build/browser/assets/images/zapier-pp-paid.jpg) 5. Click the **Sign in to Razorpay** button to connect to your Razorpay account through OAuth. 6. You will see this screen if you are logged in, or else you will be prompted to log in. 7. Once authorised, you will be redirected back to the Zapier page. You are now linked to your account. 8. Click **Continue**. 9. Select the Payment Page you wish to set up the trigger for and click **Continue**. ![Razorpay - Select Account](https://razorpay.com/docs/build/browser/assets/images/zapier-payment-page-select.jpg) 10. Click **Test trigger** for Zapier to run a test trigger. > [!NOTE] > > **Tech Trigger** > > Test trigger is a sample payment that Zapier will pull from your account so that you can continue with the rest of your workflow. ![Razorpay Test Trigger](https://razorpay.com/docs/build/browser/assets/images/zapier-test-trigger.jpg) 10. To get a test trigger, you need to have at least one success captured payment from the recent 1000 payments. You can repeat the process by choosing from a range of various apps. ![Zapier App Options](https://razorpay.com/docs/build/browser/assets/images/zapier-select-app.jpg) # Configure Payment Pages Receipt Source: https://razorpay.com/docs/payments/payment-pages/receipt Generate, download and share receipts with customers for payments on your Payment Pages. Send email notifications and PDF receipts to your customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can share payment receipts with customers via email once they complete payments using the Payment Page. ## Set Up Payment Receipt Payment Page Receipts can be generated and shared using **Automated Rececipts** or **Manual Receipts**. > [tab] Automated Receipt > > You can automatically share the payment receipt with customers via email and SMS. An auto-generated reference number is added by Razorpay. > > To configure automated Payment Page receipts: > > 1. While creating or editing the Payment Page, select **Payment Receipts** from the top menu ribbon. > > ![Edit a Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-receipt-non-ngo.jpg) > 2. On the **Payment Receipts Settings** pop-up page, select **Send Automated Receipts**. > 3. To show an input field such as Name, Address and its associated value in the receipt: > 1. Enable the **Show an Input Field on Receipt** option. > 2. In the drop-down list, select one of the custom input fields such as `Name`, `Address` or `Landmark`, used on the Payment Page. For example, if you have selected `Name`, the customer's name `Gaurav Kumar` will appear on the Payment Page receipt. > 4. Click **Save**. > > ![Send automated receipts from Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-receipt-auto-settings.gif) > [tab] Manual Receipt > > You can also manually add a reference number to the receipt and share it with your customers. > > To configure manual Payment Page receipt: > > 1. On the Payment Page creation page, select **Payment Receipts** from the top menu ribbon. > > ![Payment Page creation page](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-receipt-non-ngo.jpg) > 2. On the **Payment Receipts Settings** pop-up page, select **Send Manual Receipts**. > 3. To show an input field such as `Name`, `Address` and its associated value in the receipt: > 1. Enable the **Show an Input Field on Receipt** option. > 2. In the drop-down list, select one of the custom input fields such as `Name`, `Address` or `Landmark`, used on the Payment Page. For example, if you selected `Name`, the customer's name `Gaurav Kumar` will appear on the Payment Page receipt. > > ![Send manual receipts from Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-manual-pp-receipt.gif) > > 4. Click **Save**. > 5. Navigate to the page's **Transactions Details** page. All the payments made using the Payment Page are listed here. > > ![Transaction details of payments via Payment Pages](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-transactions-send.jpg) > 6. Click the Payment id to view the payment details. > 7. In the **Payment Receipt** field, click the **Send Receipt** button. > 8. Enter a reference number for the receipt as per your business requirements. > > ![Add a reference number for a payment receipt](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-pp-manual-ref.jpg) > 9. Click **Send**. > > You can also download the payment receipt using the **Download Receipt** button. > [accordion] Resend and Download Payment Receipt > > To resend the receipt to a customer: > > 1. Navigate to the page's **Transactions Details** screen. All the payments made using the Payment Page are listed here. > 2. Click on the Payment id to view the payment details. > 3. In the **Payment Receipt** field, click the **Send** button. This will resend the receipt to the customer. > > > > You can download the payment receipt using the **Download** button. > [accordion] Email Notification to Customers > > After your customers complete the payment using the Payment Page, the payment receipt is sent to them via email as a PDF attachment. The details entered by the customer on the Payment Page appear on the email body. > > ![Payment receipt sent via email notification to a customer](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-email-non80g.jpg) > [accordion] PDF Receipt to Customers > > Here is a sample PDF of the payment receipt. > > ![Sample PDF of the payment receipt](https://razorpay.com/docs/build/browser/assets/images/payment-pages-receipt-receipt-example.jpg) ### Related Information [Configure 80G-Enabled Payment Pages Receipt](/docs/payments/payment-pages/80g-receipt) # Search for Payment Pages Source: https://razorpay.com/docs/payments/payment-pages/search Search for a Payment Page on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can search for a Payment Page on the Dashboard by specifying various filters. ## Steps to Search Payment Pages To search for a Payment Page: 1. Log in to the Dashboard. 2. Select **Payment Pages** from the left menu and search for a payment page by specifying filters. ![Payment Pages List](https://razorpay.com/docs/build/browser/assets/images/payment-pages-payment-pages-list.jpg) | Filter | Description | | - | - | | Title | The title of the payment page. | | Status | The state of the payment page. Know more about [Payment Page states](/docs/payments/payment-pages/states#payment-pages-states-&-descriptions). | ### Related Information * [How Payment Pages Work](/docs/payments/payment-pages/how-it-works) * [Payment Pages States](/docs/payments/payment-pages/states) * [Create a Payment Page](/docs/payments/payment-pages/create) # Payment Pages States Source: https://razorpay.com/docs/payments/payment-pages/states List of states of a Payment Page and their significance. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States There are two states of a Payment Page, **Active** and **Inactive**. ## Payment Pages States & Descriptions The following diagram is a simple illustration of the two states of Payment Pages: ![Illustration of lifecycle of a page as active or inactive](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-pp-states.jpg) The table below lists the states of a Payment Page and a brief description of each state: | Status | Description | Next Steps | | - | - | - | | Active | Indicates the page has been created and saved. You can accept payments using this page. You can edit this page. | Customers can start making payments through this page. | | Inactive | Indicates the page has been deactivated or has expired. You cannot accept payments using this page. | Customers can no longer make payments through this page. You can reactivate the page to start accepting payments. There are three ways to reactivate the page:
  • Update Stock.
  • Update Expiry Date.
  • Click the **Reactivate** button.
| ### Related Information * [How Payment Pages Work](/docs/payments/payment-pages/how-it-works) * [Create a Payment Page](/docs/payments/payment-pages/create) * [Search for Payment Pages](/docs/payments/payment-pages/search) # Subscribe to Webhooks Source: https://razorpay.com/docs/payments/payment-pages/subscribe-to-webhooks Subscribe to various webhook events related to Payment Pages to receive instant notifications. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Subscribe to webhook events relevant to Payment Pages. To subscribe to webhook events: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **Webhooks** to subscribe to any of the events mentioned in the following section. ## Webhook Events and Descriptions | Webhook Events | Description | | - | - | | `payment.authorized` | Triggered when a payment is authorized. | | `payment.captured` | Triggered when a payment is successfully captured. | | `payment.failed` | Triggered when a payment fails. | | `order.paid` | Triggered when an order is successfully paid. | Know more about [webhooks](/docs/webhooks) and check the [sample payloads](/docs/webhooks/payments). ### Related Information * [How Payment Pages Work](/docs/payments/payment-pages/how-it-works) * [Payment Pages States](/docs/payments/payment-pages/states) * [Create a Payment Page](/docs/payments/payment-pages/create) # Payment Pages Use Cases Source: https://razorpay.com/docs/payments/payment-pages/use-cases Explore the diverse use cases of Razorpay Payment Pages, a robust payment collection solution for businesses. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Use Razorpay Payment Pages, an ideal solution for businesses and organisations to manage their transactions efficiently and securely across diverse industries. With Payment Pages, you can accept payments for various purposes, including event tickets, donations, and educational fees. > [accordion] Events and Tickets > > Acme Conferences implements Razorpay Payment Pages to streamline ticket sales for a range of events, including professional conferences and exhibitions. Here is an example of a [Payment Page](https://pages.razorpay.com/grofersexpo). > > Benefits for Acme Conferences: > > > [accordion] Customisable Payment Pages > > > > Create branded, event-specific Payment Pages that can handle various ticketing options and add-ons. > > > [accordion] Seamless User Experience > > > > Offer attendees a straightforward purchasing path from page visit to payment completion. > > > [accordion] Timely Updates > > > > Keep track of sales with real-time notifications. > [accordion] Non-Profit Organisations > > Acme NGO uses Razorpay Payment Pages to accept donations for social causes, like supporting flood relief efforts. Here is an example: [Payment Page](https://pages.razorpay.com/saveourearth). > > Benefits for Acme NGO: > > > [accordion] Easy Donation Process > > > > Provide a simple and quick way for donors to contribute with pre-set or custom donation amounts. > > > [accordion] Global Reach > > > > Accept donations from both local and international supporters with multiple currency options. > > > [accordion] Donor Engagement > > > > Add a goal tracker to your Payment Page to highlight the progress of your campaign. You can also customise the donation page with impactful messages and images to connect with donors. > > > [accordion] 80G Receipt > > > > You can share payment receipts with 80G details to Indian customers via email once they make the payment. > [accordion] Ecommerce > > Acme Store leverages Razorpay Payment Pages to sell handmade crafts and artwork directly to consumers online. Here is an example [Payment Page](https://pages.razorpay.com/brownshoecompay). > > Benefits for Acme Store: > > > [accordion] Product Showcase > > > > Display products with detailed descriptions and images on a dedicated Payment Page. > > > [accordion] Instant Checkout > > > > Enable customers to make purchases directly from the Payment Page, reducing the steps to conversion. > > > [accordion] Inventory Management > > > > Track product sales efficiently with integrated stock-keeping functionalities. > [accordion] Education > > Acme Institute adopts Razorpay Payment Pages to collect tuition and miscellaneous educational fees. > > Here is an example [Payment Page](https://pages.razorpay.com/exceldigital). > > Benefits for Acme Institute: > > > [accordion] Organised Fee Collection > > > > Set up distinct Payment Pages for different courses and fee types, simplifying accounting processes. > > > [accordion] Convenient Payment for Students > > > > Allow students to pay fees at their convenience without the need for physical queuing. > > > [accordion] Automated Receipts > > > > Instantly generate and send receipts for each payment, ensuring transparency and record accuracy. > [accordion] Healthcare > > Acme Clinics uses Razorpay Payment Pages for the efficient billing of consultations, treatments, and health packages. > > Benefits for Acme Clinics: > > > [accordion] Easy Payment for Patients > > > > Patients can settle their medical bills using customised Payment Pages, enhancing their experience. > > > [accordion] Secure Transactions > > > > Ensure patient data and payment information are protected with high-security standards. # View Reports Source: https://razorpay.com/docs/payments/payment-pages/view-reports View the details of payments received for a specific Payment Page and download the report. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can generate and download the standard Payment Pages reports from the Dashboard. To view the payments made on a particular Payment Page: 1. Navigate to **Payment Pages** on the Dashboard. 2. Click the required page id. The page details view appears. 3. Scroll down to the transaction details section. Here the list of all payments made to the page is displayed. ![View Report](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-view-reportpp.jpg) 4. You can click on the payment\_id for more details. ![View Payment](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-view-paymentpp.jpg) ## Download Report You can download the report pertaining to a Payment Page in the following formats: * CSV * Excel (xlsx) * Old Excel (xls) To download a report: 1. Navigate to **Payment Pages** on the Dashboard. 2. Click the required page id. The page details view appears. 3. Scroll down to the transaction details section. Here the list of all payments made to the page is displayed. 4. Hover the mouse pointer on **Download Report**, and click one of the formats. ![Download Report](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-view-reportpp.jpg) > [accordion] The downloaded report has the following columns: > > * Payment Page ID > * Payment Page ID > * Payment Page Title > * Payment Date > * Order ID > * Item Name > * Item Amount > * Item Quantity > * Item Payment Amount > * Total Payment Amount > * Currency > * Payment Status > * Input Fields, if any > * Email > * Phone # Accept Payments Using X Tip Jar Source: https://razorpay.com/docs/payments/payment-pages/x-tip-jar Accept payments using X's Tip Jar feature on Payment Pages. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Use X's Tip Jar (available to select users) to receive money from other X users using third-party service providers. X users in India can use Razorpay to accept payments via the Tip Jar feature. > [!NOTE] > > **Feature Availability** > > X Tip Jar to accept payments is available only for iOS and Android users. If Tip Jar is enabled for you, you can easily accept payments using a Razorpay Payment Page. All you need to do is create a new Payment Page or use an existing one and link it to your Tip Jar account. ## Prerequisites * [Set up](/docs/payments/set-up) your Razorpay account and complete the KYC process. * Create a [Payment Page](/docs/payments/payment-pages/create) and copy the page URL. If you already have a Payment Page, follow the steps given below. ## Steps to Accept Payments Using X Tip Jar > [card] [1. Customise Payment Page URL](/docs/payments/payment-pages/x-tip-jar#1-customise-payment-page-url) > > Add a custom suffix to make your Payment Page URL unique and easy to share. > [card] [2. Link Payment Page to Tip Jar](/docs/payments/payment-pages/x-tip-jar#2-link-payment-page-to-tip-jar) > > Connect your Payment Page to your X profile's Tip Jar feature. > [card] [3. Receive Payments from Followers](/docs/payments/payment-pages/x-tip-jar#3-receive-payments-from-followers) > > Let your followers support you by sending money via Razorpay. > [card] [4. View Settlements on Dashboard](/docs/payments/payment-pages/x-tip-jar#4-view-settlements-on-dashboard) > > Track and view all payments received from X users on your Dashboard. ### 1. Customise Payment Page URL Customise the Payment Page URL by adding a suffix. For example, if your page is called Living Arts Exhibition 2021, you can customise the URL to `https://pages.razorpay.com/livingarts2021` by adding the suffix `livingarts2021`. You should customise your Payment Page URL and add the suffix to Tip Jar. > [!NOTE] > > **Unique Custom URLs** > > If another business that uses Razorpay Payment Pages has already created a custom URL with `livingarts` as the suffix, you will not be able to use `livingarts`. Your Payment Page suffix must be unique as two Payment Pages cannot have the same suffix. You can customise URLs: > [accordion] While Creating a New Payment Page > > To customise URL while creating a new Payment Page: > > 1. Log in to the Dashboard. > 2. Navigate to **Payment Pages**. > 3. Click **Create Payment Page**. > 4. Fill in the necessary details and click **Page Settings**. > 5. In the **Choose custom URL for this page** field, enter the suffix. For example, if your page is called Living Arts Exhibition 2021, enter the phrase `livingarts2021`. The custom URL appears as `https://pages.razorpay.com/livingarts2021`. > 6. Save and publish the page. > 7. Copy the URL suffix. This suffix should be added to X Tip Jar. > [accordion] By Editing an Existing Payment Page > > To customise URL by editing an existing Payment Page: > > 1. Log in to the Dashboard. > 2. Navigate to **Payment Pages**. > 3. Click the payment page title and click **Edit**. > 4. Click **Page Settings**. > 5. In the **Choose custom URL for this page** field, edit the suffix. For example, if your page is called Living Arts Exhibition 2021, enter the phrase `livingarts2021`. The custom URL appears as `https://pages.razorpay.com/livingarts2021`. If you had previously added a suffix, you can modify it in this step. > 6. Save and publish the page. > 7. Copy the URL suffix. This suffix should be added to X Tip Jar. ### 2. Link Payment Page to Tip Jar Link the Payment Page to your X profile. When X users tap the Tip Jar feature on your profile and select **Razorpay**, this Payment Page is displayed to make payments. To link the Payment Page with the Tip Jar: 1. Log in to X. 2. Open X profile and tap on **Edit Profile**. 3. Set the **Tip Jar** feature to **On**. 4. Enable **Allow tips** and tap **Razorpay**. 5. Paste the Payment Page URL suffix copied from the Dashboard. For example, `livingarts2021`. 6. Save the changes. ### 3. Receive Payments from Followers Your followers can support you by sending money via any of the payment partners. Steps for followers to send money: 1. Log in to X. 2. Open the profile of the user to whom they want to send money. 3. Tap the tips icon and select the payment service provider. 4. Select **Razorpay** and tap **Continue**. 5. The Payment Page opens. Enter the details, select a payment method and complete the payment. You can check the payments under **Transactions** on the Dashboard. ### 4. View Settlements on Dashboard The payments received from the X users appear on the Razorpay Dashboard. To view the payments: 1. Navigate to **Payment Pages** on the Dashboard. 2. Click the required page id. The page details view appears. 3. Scroll down to the transaction details section. A list of the payments made to the Payment Page is displayed. 4. Click on the payment\_id for more details. ## Support In case of any issues, reach out to the please raise a request with the [Razorpay Support team](https://razorpay.com/support/#request). # About QR Codes Source: https://razorpay.com/docs/payments/qr-codes Create Razorpay QR Codes from the Razorpay Dashboard or using APIs and start accepting payments from customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India QR Codes are two-dimensional barcodes that can accommodate payment details such as business name, contact, destination bank details and more. ## About Razorpay QR Codes Use Razorpay QR Codes to receive UPI payments from your customers. Create QR Codes from the Dashboard or using our APIs and share them with your customers. Customers can scan these codes and make payments. > [accordion] Advantages > > * **Instant Creation**: Generate QR Codes in **real-time** via the Dashboard and APIs. > * **Secure Payments**: QR Code payment is as secure as a UPI payment, as your bank details are not exposed to a third party. > * **Dynamic or Static QRs**: Create dynamic and static QR Codes to as per your need. > * **Works with a Range of PSPs**: Customers can use a range of UPI PSP apps such as PhonePe, Google Pay and others to make payments. > * **Easy Reconciliation**: View and manage every payment received from customers. > * **Real-time Notifications**: Get real-time notifications on payments with [QR Code webhooks](/docs/payments/qr-codes/subscribe-to-webhooks). Perform all the actions on QR Codes from the Dashboard - create, close or search. Subscribe to webhook events for immediate notifications. You can perform most of these actions [using QR Code APIs](/docs/payments/qr-codes/apis). ## Get Started Log in to the Dashboard and click **QR Codes**. [Set up your Razorpay account](/docs/payments/set-up) if you do not have one already. ## Prerequisites * Raise a request through a Point of Contact (POC) or the Dashboard to enable QR Codes for your account. * Do check the [Glossary](/docs/payments/qr-codes/glossary) to understand the terminologies. ## Supported Platforms Razorpay QR Codes is supported on the following platforms: > [tab] Standard Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | > [tab] Custom Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | ## What Next Understand [how you can use Razorpay QR Codes](/docs/payments/qr-codes/how-it-works) and the various [QR Codes states](/docs/payments/qr-codes/states). ### Related Information * [How QR Codes Work](/docs/payments/qr-codes/how-it-works) * [QR Code States](/docs/payments/qr-codes/states) * [Create a QR Code](/docs/payments/qr-codes/create) * [QR Code APIs](/docs/payments/qr-codes/apis) # Create a QR Code Source: https://razorpay.com/docs/payments/qr-codes/create Create a QR Code, add a custom brand name and view Payments from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay QR Code is a QR-based solution that enables you to accept digital payments from your customers. You can create a QR Code using the Dashboard or the API and share it with your customers. Customers then scan the code and complete the payment. ## Create a QR Code from the Dashboard Here is a short video on how to create QR Codes on the Dashboard. [Create a QR code on Razorpay Dashboard to accept payments](https://www.youtube.com/embed/YUAU8C1PRDc) To create a QR Code: 1. Log in to the Dashboard. 2. Go to the **PAYMENT PRODUCTS** section and click **QR Codes** โ†’ **+Create QR Codes**. ![Create QR codes on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/qr-codes-create-create-qrcode.jpg) 3. Provide the following details: > [accordion] QR Usage > > You can configure the QR Code to receive a single payment or multiple payments. > > * **Multiple Payments**: Enables QR Code to receive multiple payments. > > * **Single Payment**: Enables QR Code to receive only one payment. Once this payment is received, the QR Code is automatically closed. > > > [!WARNING] > > > > **Watch Out!** > > > > * QR Codes that support multiple payments cannot be closed. > > * You can only accept a fixed amount for single payment QR Codes. > [accordion] Accept only fixed amount on this QR? > > You can decide whether to accept fixed amount or let the customer decide the amount: > > * **Yes**: Set to **Yes** and specify the fixed amount you want to receive from customers. Customers will not be able to pay an amount greater than or lesser than the specified amount. > * **No**: Set to **No** to allow customers to pay an amount of their choice. > [accordion] Description \[Optional] > > Add a description for your reference. > > ![Add a description while creating a QR code](https://razorpay.com/docs/build/browser/assets/images/qr-codes-create-add-details.jpg) > > * Details added in description will show up in the QR Image. > > ![QR Image with description](https://razorpay.com/docs/build/browser/assets/images/qr-code-image.jpg) > [accordion] Advanced Options > > Click **View Advanced Options** to view and configure advanced options. > > ![View advanced options while creating a QR code](https://razorpay.com/docs/build/browser/assets/images/qr-codes-create-view-advanced-options.jpg) > > * **Close By (Optional)**: Set a closure date for the QR Code. Select the **Close this QR Code after** option to select the date and time at which the account must be automatically closed. Ensure that the time specified is at least 15 minutes after the QR Code creation time. > > > [!WARNING] > > > > **Watch Out!** > > > > The **Close By** feature is not available for QR Codes accepting **Multiple Payments**. > > * **Customer**: Select the customer from the drop-down list. You can also [create a new customer](#create-a-new-customer-while-creating-a-qr-code) while creating the QR Code. > > > [!NOTE] > > > > **Handy Tip** > > > > You may skip this step and proceed with creation, if you do not wish to tag it to a specific customer. However, you cannot modify the QR Code and tag it to a customer later. > [accordion] Name > > Add a name for the QR Code for your reference. This will appear on your Dashboard. > > > [!NOTE] > > > > **Handy Tip** > > > > This is for your reference only and will not be visible to the end user. > [accordion] Add Internal Note > > Add notes for internal reference. > > ![Add customer, name and internal notes while creating a QR code](https://razorpay.com/docs/build/browser/assets/images/qr-codes-create-configure.jpg) > > * This helps with reconciliation and will be available in the payments reports for the payments captured via QR. > > ![Internal notes of a payment captured via QR code](https://razorpay.com/docs/build/browser/assets/images/qr-codes-internal-notes.jpg) 1. Click **Create QR Code**. The QR Code is created. ![QR code created successfully](https://razorpay.com/docs/build/browser/assets/images/qr-codes-create-generated.jpg) You can download and share the QR Code image with your customers. The QR Code appears in the list. ![List of QR codes on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/qr-codes-create-create-qrcode.jpg) > [!NOTE] > > **Handy Tips** > > * If you create a QR Code in **Test Mode** through the payment gateway flow, the QR Code will disappear after two seconds. > * You can scan QR Codes that are created only in **Live Mode**. ### Create a New Customer While Creating a QR Code To create a customer while creating a QR Code: 1. Click **View Advanced Options**. 2. In the **Customers** field, click **+Add New**. ![Create a new customer while creating a QR code](https://razorpay.com/docs/build/browser/assets/images/qr-codes-create-add-new-customer.jpg) 3. Specify details such as **Company/Individual Name**, **Email** and **Contact No.** ![Add details to create a new customer](https://razorpay.com/docs/build/browser/assets/images/qr-codes-create-add-customer-details.jpg) 1. Click **Create and add this customer**. The details of the newly created customer are auto-populated on the QR Code. This customer name is also displayed under the **Customers** menu, and you can create more QR Codes for them in the future. Know more about [customers](/docs/payments/customers). ### Add a Custom Brand Name to Your QR Codes You can increase your brand outreach using QR Codes by customising your brand name. Customers who scan the QR Code will see your custom Business Name after they make the payment. Know more about how you can add a [brand name and logo](/docs/payments/dashboard/account-settings/checkout-styling#brand-name-and-logo) from the Dashboard. ## View Payments The payments received on QR Codes appear on the **Payments** tab. To view payments made for QR Codes: 1. Click **Payments**. 2. Select the **Payment Id** from the list. ![List of payments made via QR codes on the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/qr-codes-create-payment.jpg) 3. The payment details appear in the right pane. You can perform the following operations from this tab: 1. **Create Transfer**: Transfer the payment to a linked account. Know more about [Route](/docs/payments/route). 2. **Create Refund**: Refund the payment to the customer. Know more about [Refunds](/docs/payments/refunds). ![Create a transfer or a refund for a payment](https://razorpay.com/docs/build/browser/assets/images/qr-codes-create-payment-details.jpg) ## What Next Once you have created the QR Code, you can share the short URL with the customer. You can also print or download it and send the image. You can also choose to [close the QR Code](/docs/payments/qr-codes/close). > [!NOTE] > > **Handy Tips** > > The position of the Business name on the scanned screen will depend on the PSP app. ### Related information * [QR Code](/docs/payments/qr-codes) * [How QR Codes Work](/docs/payments/qr-codes/how-it-works) * [Search a QR Code](/docs/payments/qr-codes/search) * [Close a QR Code](/docs/payments/qr-codes/close) # How QR Codes Work Source: https://razorpay.com/docs/payments/qr-codes/how-it-works Create and share QR Codes to receive payments. Track payments and generate reports. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Given below is a complete end-to-end flow about how you can use QR Codes to accept payments. ![QR Codes Flow](https://razorpay.com/docs/build/browser/assets/images/qr-codes-flow.jpg) ## QR Codes Workflow To accept payments using Razorpay QR Codes: > [card] [1. Create a QR Code](/docs/payments/qr-codes/how-it-works#1-create-a-qr-code) > > Create a QR Code that you can share with your customers to accept payments. > [card] [2. Share the QR Code](/docs/payments/qr-codes/how-it-works#2-share-the-qr-code) > > Print or download the QR Code to share with your customers to accept payments. > [card] [3. Receive Payments](/docs/payments/qr-codes/how-it-works#3-receive-payments) > > Receive payments after your customer scans the QR Codes and makes payments. > [card] [4. Track QR Code Payments and Reports](/docs/payments/qr-codes/how-it-works#4-track-qr-code-payments-and-reports) > > Receive notifications, check payments and view reports for QR Code payments. ### 1. Create a QR Code [Create a QR Code](/docs/payments/qr-codes/create) by providing all the required details. You can set a close by date and enable multiple payments. The QR Code is in `active` status. Know more about [QR Code states](/docs/payments/qr-codes/states). > [!NOTE] > > **Handy Tips** > > You can close a QR Code from the [Dashboard](/docs/payments/qr-codes/close) or with the [Close a QR Code API](/docs/api/qr-codes/close). ### 2. Share the QR Code Print and download the QR Code to share it with the customers. Customers can scan the code and complete the payment using their preferred UPI PSP apps. Check the [supported UPI apps](/docs/payments/payment-methods#supported-upi-apps). ### 3. Receive Payments Customer scans the QR Code with their UPI PSP app and completes the payment. They can make multiple payments if the option was enabled at the time of QR creation. You receive a notification about the payment. > [!NOTE] > > **Handy Tips** > > After the payment is captured, the amount is settled to your account as per the settlement schedule. Know more about [payments](/docs/payments/payments), [settlements](/docs/payments/settlements), [refunds](/docs/payments/refunds) and [disputes](/docs/payments/disputes). ### 4. Track QR Code Payments and Reports * Notifications: Receive notifications regarding activity on QR Code via email and webhooks. Know more about [subscribing to QR Code webhooks](/docs/payments/qr-codes/subscribe-to-webhooks). * Track Payments: Track payments made using the QR Code on the Dashboard. Click **QR Codes** from the left menu and select **Payments**. All the payments received on your QR Codes are listed with their status. * Reports: Gain detailed insights using reports and real-time data on the Dashboard. These reports can then be used for accounting and reconciliation purposes. Know more about [reports](/docs/payments/dashboard/reports). ### Related Information * [QR Codes](/docs/payments/qr-codes) * [QR Codes States](/docs/payments/qr-codes/states) * [Create a QR Code](/docs/payments/qr-codes/create) * [Subscribe to QR Code Webhooks](/docs/payments/qr-codes/subscribe-to-webhooks) * [QR Codes APIs](/docs/payments/qr-codes/apis) # Search a QR Code Source: https://razorpay.com/docs/payments/qr-codes/search Search for QR Codes and Payments on the Razorpay Dashboard using filters. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can search for QR Codes on the Dashboard by specifying various filters. Know more about [QR Code States](/docs/payments/qr-codes/states). ## Search a QR Code from the Dashboard To search a QR Code: 1. Log in to the Dashboard. 2. Select **QR Codes** from the left menu and search for a QR Code under **QR Codes** by specifying filters. | Filter | Description | | - | - | | QR Code Id | Unique identifier of the QR Code. | | QR Name | Name of the QR Code. | | Status | The status of the QR Code. | | Notes | Additional information stored in the `Internal Notes` field while creating the QR Code. | | Customer Name | Name of the customer. | | Customer Contact | Registered phone number of the customer. | | Customer Email | Email address of the customer. | ![Search for a QR code from the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/qr-codes-search-search-qr-code.jpg) ## Search Payments To search payments made using the QR Codes: 1. Log in to the Dashboard. 2. Select **QR Codes** from the left menu and search for a payment under **Payments** by specifying filters. | Filter | Description | | - | - | | QR Code Id | Unique identifier of the QR Code. | | Payment Id | Unique identifier of the payment. | | Payment Status | The status of the payment. Know more about [payment states](/docs/payments/payments). | | Email | Email address of the customer. | | Bank Reference Number | Unique reference provided by the bank for the payment. | | Notes | Additional information stored in the `Internal Notes` field while creating the QR Code. | | Count | Number of records to be shown. | ![Search for a payment made using QR code from the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/qr-codes-search-search-payments.jpg) ### Related Information * [QR Codes](/docs/payments/qr-codes) * [Create a QR Code](/docs/payments/qr-codes/create) * [Cancel a QR Code](/docs/payments/qr-codes/close) * [QR Code APIs](/docs/payments/qr-codes/apis) # QR Code States Source: https://razorpay.com/docs/payments/qr-codes/states List of QR Code states. Find descriptions for active and closed states. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India A QR Code can be in one of two states: `active` or `closed`. ## QR Codes States and Descriptions The table below lists the various states of a QR Code and gives a brief description of each state: | Status | Description | | - | - | | `active` | Indicates that the QR Code has been created and is ready to accept payments. Know more about [creating a QR Code.](/docs/payments/qr-codes/create) | | `closed` | Indicates that the QR Code has been closed. Customers cannot make payments using a closed QR Code. Know more about [closing a QR Code.](/docs/payments/qr-codes/close) | ### Related Information * [QR Codes](/docs/payments/qr-codes) * [Create a QR Code](/docs/payments/qr-codes/create) * [Cancel a QR Code](/docs/payments/qr-codes/close) * [QR Code APIs](/docs/payments/qr-codes/apis) * [Subscribe to Webhooks](/docs/payments/qr-codes/subscribe-to-webhooks) # QR Codes Use Cases Source: https://razorpay.com/docs/payments/qr-codes/use-cases Explore the diverse use cases of Razorpay QR Codes, a robust payment collection solution for businesses. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay QR Codes enable businesses to securely accept UPI payments. These codes integrate with existing payment workflows to provide instant transaction confirmation across various commercial use cases. > [accordion] Retail Stores > > Acme Grocery Store uses Razorpay QR Codes at the checkout for customers to make quick and secure payments for their purchases. > > **Benefits for Acme Grocery Store**: > > > [accordion] Secure Payments > > > > Ensure customers' banking details remain protected with UPI-level security during transactions. > > > [accordion] Dynamic or Static QRs > > > > Use static QRs for a single checkout counter or dynamic QRs for each customer to facilitate individual transaction tracking. > > > [accordion] Easy Reconciliation > > > > Keep track of every transaction efficiently, aiding in accurate financial management. > [accordion] Service Providers > > Acme Repairs shares Razorpay QR Codes with customers to receive payments for repair services rendered. > > **Benefits for Acme Repairs**: > > > [accordion] Secured Transaction Process > > > > Transactions are as safe as any UPI payment, with customer bank details kept confidential. > > > [accordion] Flexible QR Options > > > > Utilise dynamic QRs for varied billing amounts or static QRs for standard service fees. > > > [accordion] Effortless Reconciliation > > > > Easily track and reconcile payments made for services, eliminating any discrepancy. > [accordion] Freelancers and Consultants > > Acme Design Services uses Razorpay QR Codes to receive payments for consulting sessions or project deliveries. > > **Benefits for Acme Design**: > > > [accordion] High-Security Payment Method > > > > Transactions are conducted with full UPI security, ensuring peace of mind for both the freelancer and the client. > > > [accordion] Adaptable QR Codes > > > > Choose between dynamic QRs for varying project fees or static QRs for hourly consultations. > > > [accordion] All UPI PSPs Accepted > > > > Clients can pay using any UPI app they have installed, facilitating an easier payment process. > > > [accordion] Simplified Payment Tracking > > > > Maintain clear records of payments received, aiding in personal financial management. # About Razorpay Webstore Source: https://razorpay.com/docs/payments/webstore Setup your online store in minutes and start selling with Razorpay Webstore. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay Webstore makes it easy to launch an online store. This no-code platform lets entrepreneurs and businesses create a product-centric online store, enabling quick setup and seamless customer payments. Its user-friendly interface supports detailed product descriptions and images, ensuring products are showcased attractively. With the ability to create and instantly share a Webstore, the platform helps businesses establish an online presence and accelerate growth. It simplifies product listing and payment collection, making it easier for businesses to reach and engage with customers worldwide. ![Webstore Flow](https://razorpay.com/docs/build/browser/assets/images/webstore-flow.jpg) A quick glimpse of a Webstore. ![Example of a Webstore](https://razorpay.com/docs/build/browser/assets/images/storefront-example.jpg) ## Advantages * Create, customise, and start collecting payments in minutes. * Build your Webstore with zero coding effort using the **What You See Is What You Get (WYSIWYG)** editor. * Set up custom URLs that align with your brand and are easy to remember. * Add multiple products, images, descriptions, and discounts effortlesslyโ€”no development work required. * Manage product inventory seamlessly, giving you full control over demand and supply. * Webstore is readily integrated with [Magic Checkout](/docs/payments/magic-checkout) which comes with pre-filled address of 100M+ customer, reducing the cart drop-offs. ### Use Cases > [accordion] Small Business Owners > > **Small business owners** who want to start selling online but have limited technical knowledge or resources can use Razorpay Webstore to create an online store with no coding effort. They can add multiple products, add their images, descriptions and run discounts on them. It is a simple no code online store created without any development effort. > [accordion] Individuals or Hobbyists > > **Individuals or hobbyists** who want to sell their products online can create a simple and attractive Razorpay Webstore without the need for any technical skills. > [accordion] For Freelancers or Service Providers > > **Freelancers or Service providers** who want to offer their services or digital products can create a simple and efficient payment collection system with the Razorpay Webstore to add products and share the URL. > [accordion] For Event Organisers > > **Event organisers** who want to sell tickets or merchandise for their events can quickly set up an online store and share the link with their attendees to collect payments. > [accordion] For Artists or Creatives > > **Artists or Creatives** who want to sell their artwork or digital products can create an online store and share the webstore with their followers or customers. > [accordion] For Restaurants or Cafes > > **Restaurants or Cafes** that want to offer online ordering or sell merchandise can create an online store and easily add products to it. They can manage the inventory of products within it. This empowers them to manage the demand and supply of products they are selling in the store. ### Supported Payment Methods Customers can make online payments using [Card](/docs/payments/payment-methods/cards), [Netbanking](/docs/payments/payment-methods/netbanking), [UPI](/docs/payments/payment-methods/upi), and **wallets**. ### International Currency Support You can receive payments in any of the [supported international currencies](/docs/payments/international-payments#supported-currencies). ## Get Started To create Razorpay Webstore, log in to the Dashboard and click **Payment Pages** โ†’ **Select Razorpay Webstore**. ### What Next Understand [how you can use Razorpay Webstore](/docs/payments/webstore/how-it-works). Know about the various [Webstore states](/docs/payments/webstore/states). ### Related Information * [How Razorpay Webstore Works](/docs/payments/webstore/how-it-works) * [Webstore States](/docs/payments/webstore/states) * [Create a Webstore](/docs/payments/webstore/create) * [Search for Webstore](/docs/payments/webstore/search) * [Manage Webstore](/docs/payments/webstore/manage) # Create a Razorpay Webstore Source: https://razorpay.com/docs/payments/webstore/create Create a Webstore to start accepting payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can build a Webstore from your Dashboard to start accepting payments from customers. This method does not require any code or API integration. > [!NOTE] > > **Prerequisites** > > * [Sign up](https://easy.razorpay.com/onboarding/l1/signup?field=MobileNumber) for a Razorpay account. > * Log in to the Dashboard and complete the KYC requirements. > * The Dashboard has [test and live modes](/docs/payments/dashboard/test-live-modes). Use the test mode for a sandbox experience. You can switch to live mode when you are ready to accept payments. You will have to create a new Webstore in live mode. > * Understand the [Payment Flow](/docs/payments/payment-gateway/how-it-works). ## Steps To create a Webstore, you must complete the following actions: 1. [Add Product Details](#step-1-add-product-details) 2. [Add Business Details](#step-2-add-business-details) 3. [Configure Page Settings](#step-3-configure-page-settings) 4. [Share and Start Accepting Payments](#step-4-share-and-start-accepting-payments) ### Step 1: Add Product Details You can add your products and the accompanying details such as stock availability, description, images and so on in this section. 1. Log in to the Dashboard and navigate to **Payment Pages**. 2. Click the **+ Create Payment Page** button and click **Create Razorpay Webstore**. ![Select which product you want to use.](https://razorpay.com/docs/build/browser/assets/images/pp-select-choice.jpg) 3. Click **Add products to this page** and then click **Add a new product**. 4. Add a **Product name**. > [!NOTE] > > **Product Name Character Limit** > > The product name cannot exceed 100 characters. 5. Add the **Price** of your product. In addition, you can add a **Discounted price**, which will serve as the final listed price for the product. Customers will see the following. ![Webstore Discounted price view](https://razorpay.com/docs/build/browser/assets/images/store-discounted-price.jpg) 6. Add **Quantity in stock** if you have a limited quantity. 7. You can also upload up to five product images. 8. You can also add your product to a Category: 1. Click on the Category drop-down and click **+Create new category**. 2. Add a category name and click **Add category**. > [!NOTE] > > **Category Name Character Limit** > > The category name cannot exceed 100 characters. ![Adding category name for Webstores](https://razorpay.com/docs/build/browser/assets/images/pp-category-name-add.jpg) 9. Add a brief description for your product if needed and click **Add product**. ![Webstore Product Addition Preview](https://razorpay.com/docs/build/browser/assets/images/pp-store-product-addition.jpg) ### Step 2: Add Business Details Add you contact details such as phone number and email in this section. 1. Click **More options**. ![Webstore More Options section](https://razorpay.com/docs/build/browser/assets/images/pp-stores-more-options.jpg) 2. Enter you **Business email id**. 3. Enter your **Business phone no.** and click **Save contact details**. ![Webstore Business Contact Details](https://razorpay.com/docs/build/browser/assets/images/pp-stores-business-contact.jpg) ### Step 3: Configure Page Settings Customise your Webstore by adding a custom URL, adding an expiry date and so on through the **Page Settings** option. 1. Click **Page Settings**. 2. Add a unique URL slug in the **URL for this page** section. > [!WARNING] > > **Watch Out!** > > This is a mandatory step. You will not be able to create a Webstore if you do not add a unique URL slug. 3. You can add an expiry date for your Webstore. 4. You can also add a custom message for your customers and redirect to your preferred website after successful payment. 5. You can also configure Facebook Pixel and Google Analytics for your Webstore for metrics. Know more about how to add [Facebook Pixel and Google Analytics](/docs/payments/webstore/plugins-add-ons) to your Webstore. 6. Click **Save**. ![Configure Settings for your Webstore](https://razorpay.com/docs/build/browser/assets/images/pp-store-settings.jpg) ### Step 4: Share and Start Accepting Payments Share your Webstore with your customers and start accepting payments. 1. Click **Publish Page** to go live. 2. Click **Copy** to copy the URL to share with your customers. You can also find the URL on the Dashboard in the Webstore list. ![Webstore succesful creation.](https://razorpay.com/docs/build/browser/assets/images/storefront-page-publish.jpg) #### View Transaction Details on Dashboard You can view the payments as and when they are made in the **Transactions** section. 1. Navigate to **Payment Pages** on the Dashboard and select **Razorpay Webstore**. 2. From the list, click the Webstore you wish to view. 3. Select the payment id you wish to check. ![Transactions list on Webstore.](https://razorpay.com/docs/build/browser/assets/images/sp-transactions-view.jpg) 4. Once you open the payment id, you can check out the order details. ![Transaction Details](https://razorpay.com/docs/build/browser/assets/images/sp-transaction-details.jpg) 5. Click the order id to view the address details of the customer. ![Order details of Webstore](https://razorpay.com/docs/build/browser/assets/images/sp-order-details.jpg) ### Related Information * [About Razorpay Webstore](/docs/payments/webstore) * [How Razorpay Webstore Works](/docs/payments/webstore/how-it-works) * [Webstore States](/docs/payments/webstore/states) * [Search for Webstore](/docs/payments/webstore/search) * [Manage Webstore](/docs/payments/webstore/manage) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/webstore/faqs Find answers to frequently asked questions about Razorpay Webstore. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] How can I add my business logo on the Webstore? > > To add your business logo: > > 1. In the Dashboard, navigate to **Account & Settings**. > 2. Click **Branding** under **Checkout settings**, and click **Choose File** in the **Your Logo** section. > 3. Upload the logo file. Ensure that the logo is a square image of minimum dimensions 256x256 px. Maximum file size allowed is 1MB. Formats supported are JPG, JPEG and PNG. > [accordion] How can I make the Webstore elements reflect my brand colors? > > You can make the Webstore elements appear in your brand colours. To change the colours: > > 1. In the Dashboard, navigate to **Account & Settings**. > 2. Click **Branding** under **Checkout settings** and enter the HEX code for your brand. For example, `#6822CC` in the **Theme Color** section. > 3. Click **Save Changes**. > [accordion] How do I create a custom URL for my Webstore? > > You must create the Webstore in **Live Mode** in order to have a custom URL. You can only customise the suffix and not the entire URL. If your suffix is `livingarts`, the custom URL will appear as `https://pages.razorpay.com/livingarts`. > > > [!WARNING] > > > > **Watch Out!** > > > > * If another business that uses Razorpay Webstore has already created a custom URL with `livingarts` as the suffix, you will not be able to use `livingarts`. Your Webstore suffix must be unique as two Webstores cannot have the same suffix. > > * You cannot create a custom URL in **Test Mode**. This feature is only available in **Live Mode**. > > To create a custom URL for Webstore: > > 1. In the Dashboard, navigate to menu ribbon, click the drop-down button and select **Live Mode**. > 2. While creating a Webstore, click **Page Settings** and in the pop-up that appears, enter the suffix to create a custom URL. Click **Save**. > 3. Click **Publish Page**. > [accordion] How do I add a quantity for my products added on the Webstore? > > While adding a product to your Webstore, add your quantity in the **Quantity in stock** section. > [accordion] What are the supported formats for the image added to a product? > > We support image uploads in the following formats: JPG, JPEG, PNG, and GIF. > [accordion] How do I update the stock level of a price field (item) in my Webstore? > > You can update the stock in two ways. > > **From the List of Webstore**: > > 1. Select the relevant Webstore. The items appear on the top of the page, on the right-hand side. > 2. Click **Update Stock** and enter the number of units available for sale in the field. > 3. Click **Update**. > > **Using the Webstore Edit Mode**: > > 1. Select the relevant webstore and click the edit icon. > 2. In the **Products** section, go to the price field and click the edit icon. > 3. Enter the number of units available for sale in the field. > 4. Click **Add**. > [accordion] What happens to my Webstore if all the listed products go out of stock? > > If all the items listed on your Webstore go out of stock, it will still remain active. However, all the products will show an **Out of Stock** label. > [accordion] How do I track the payments made by customers? When will the amount be settled to my account? > > You can view the payments as and when they are made in the [Transactions Details View](/docs/payments/payment-pages/view-reports) of the Webstore. > > ![Transaction details view page for tracking payments](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-view_report.jpg) > [accordion] What payment methods can customers use to make payments on the Webstore? Can I display additional payment methods? > > All the payment methods enabled for your account are displayed on the Webstore. The default payment methods available are: > > * Cards > * Netbanking > * UPI > * Wallets (PayZapp) > > If you want to show more wallets or [payment methods](/docs/payments/payment-methods) at Checkout, please raise a request with the [Razorpay Support team](https://razorpay.com/support/#request). > [accordion] What is the maximum payment amount allowed per transaction on a Webstore? > > By default, a customer can make a maximum payment of โ‚น5,00,000. You can increase this limit by raising a request with [Razorpay Support](https://razorpay.com/support/#request). > [accordion] Can I accept payments in international currency? > > You can accept payments in international currency using Webstore by following these steps: > > 1. Follow [these steps](/docs/payments/international-payments/international-debit-credit-cards#application-process) to enable international payments for your account. > > 2. While creating the Webstore, click the currency drop-down list in the **Price** field and select the required currency. > > > [!NOTE] > > > > **One Currency per Webstore** > > > > You can set only one currency for the Price fields on a Webstore. If you attempt to configure the second price field with a different currency, a message appears on the screen displaying that more than one currency cannot be applied. > [accordion] How many products can I add to a Webstore? > > The maximum number of products that you can add to a Webstore is **100**. > [accordion] I am getting a message that my domain was not connected. What should I do? > > Sometimes it can take up to an hour for the changes to save. Do not undo the changes you have made to your domain and try again after an hour. Raise a ticket with our [support team](https://razorpay.com/support/) if you can still not connect your domain. > [accordion] I am getting an error message - Failed to create link with given slug, please try a different value. What should I do in this case? > > This error message occurs when the custom URL provided by you already exists. Please use a different URL slug. > [accordion] Can I create multiple URLs for a Webstore? > > No, you cannot create multiple URLs for a Webstore. โ€‹A Webstore allows you to collect multiple payments on the same link. # Glossary Source: https://razorpay.com/docs/payments/webstore/glossary List of commonly used terms related to Razorpay Webstore. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The following table lists all the commonly used terms and their definitions used in Razorpay Webstore: | Terms | Description | | - | - | | Stock | The goods or merchandise stored with the business in a warehouse or a storage facility. | | Expiry Date | The Expiry Date is the date after which the customer cannot pay using the Razorpay Webstore. | # How Razorpay Webstore Works Source: https://razorpay.com/docs/payments/webstore/how-it-works Easily create beautiful online stores with Razorpay Webstore, a powerful no-code ecommerce website builder featuring a user-friendly interface and robust management features. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can create a Webstore from the Dashboard and share the link with your customers to start accepting online payments. ![How Razorpay Webstore Works](https://razorpay.com/docs/build/browser/assets/images/webstore-how-it-works.jpg) ## Step 1: Sign Up for a Razorpay Account To create a Webstore, you first need to set up your [Razorpay account](/docs/payments/set-up). If you already have an account, log in to the Dashboard and navigate to **Payment Pages**. Click **+ Create Payment Page** and then click **Create Razorpay Webstore**. ## Step 2: Add your Product Details Add your products and configure the amount and input fields. For example, you can add quantity details, upload product images and so on. Know more about [adding product details](/docs/payments/webstore/create#step-1-add-product-details). ## Step 3: Add Business Details Add your business details such as your phone number and email address. Know more about [adding business details](/docs/payments/payment-pages/create#add-business-details). ## Step 4: Configure Page Settings Configure page settings such as adding a custom URL slug, adding an expiry date and adding plugins and add-ons such as Facebook Pixel and Google Analytics. Know more about how to [configure page settings](/docs/payments/webstore/create#step-3-configure-page-settings). ## Step 5: Share and Start Accepting Payments Publish the Webstore and share the URL with your customers. The customers visit this Webstore, select the products they wish to buy, fill in the details, select a payment method and complete the payment. Know more about [publishing a Webstore and sharing it with customers](/docs/payments/webstore/create#step-4-share-and-start-accepting-payments). ### Related Information * [About Razorpay Webstore](/docs/payments/webstore) * [Webstore States](/docs/payments/webstore/states) * [Create a Razorpay webstore](/docs/payments/webstore/create) * [Search for Webstore](/docs/payments/webstore/search) * [Manage Webstore](/docs/payments/webstore/manage) # Manage Razorpay Webstore Source: https://razorpay.com/docs/payments/webstore/manage Edit content, change settings or deactivate your Webstore. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can perform the following actions: * [Edit Webstore Content](#edit-webstore-content) * [Update Stock](#update-stock) * [Edit Webstore Settings](#edit-webstore-settings) * [Deactivate Webstore](#deactivate-webstore) ## Edit Webstore Content To edit content: 1. Navigate to **Payment Pages** on the Dashboard and select **Razorpay Webstore**. 2. From the list, select the Webstore you want to modify. 3. In the top right corner, click the **Edit Page** button. ![Edit Button - Manage Webstore](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-update_stock.jpg) The Webstore appears in edit mode. You can now edit any of the fields to update the details, including the price fields. ## Update Stock You can update the stock quantity of a price field, for example `Individuals Entry Ticket`, in the edit mode of the Webstore. To update stock: 1. Navigate to **Payment Pages** on the Dashboard and select **Razorpay Webstore**. ![Dashboard Page type selection](https://razorpay.com/docs/build/browser/assets/images/dashboard-pp-page-selection.jpg) 2. Select the Webstore you want to modify. 3. In the top right corner, the different price fields are displayed. Click **Update Stock** against the relevant price item. 4. You can either make the stock quantity unlimited, using **No Limit**, or enter an amount in the box given below. 5. Click **Save**. ![Save Button - Update Stock - Manage Webstore](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-update_stock.jpg) ## Edit Webstore Settings To modify Webstore settings: 1. Navigate to **Payment Pages** on the Dashboard and select **Razorpay Webstore**. 2. Click on the Webstore id. This opens the Webstore details panel where you can perform the following actions: | Action | Effect | | - | - | | **Edit** the Webstore | Editing re-opens the editor with saved details. You can make changes to the Webstore content. | | **Deactivate** the Webstore | Deactivating a Webstore makes it inaccessible to your customers. | | Configure **Expires on** | Enables you to set an expiry date and time for the Webstore using the date and time picker. You can also select the **No Expiry** checkbox to run the Webstore for an indefinite time. | | **Add New** notes on the Webstore | You can add up to 5 custom notes on the Webstore. | ![Modify Settings - Manage Webstore](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-edit_pp_2.jpg) > [!NOTE] > > **Best Practices** > > * To avoid confusion, ensure that no two Webstores have the same **Title**. > * You can edit an expired or inactive Webstore and republish it with new changes. This helps avoid Webstore duplication and allows you to query the system efficiently. ## Deactivate Webstore A Webstore can have two states, active and inactive. | Status | Description | | - | - | | `active` | The Webstore is published and live. | | `inactive` | The Webstore becomes inactive due to one of the following actions:
  • Manual deactivation
  • Webstore expiry
| You can make an existing Webstore inactive if you no longer wish to accept payments using it. ### Manual Deactivation To deactivate manually: 1. Log in to Dashboard and navigate to **Payment Pages**. 2. Select **Razorpay Webstore**. 3. From the list, click the Webstore that you want to deactivate. 4. In the Webstore details screen, go to **Page Status** field and click **Deactivate**. 5. In the dialog box that appears, confirm the action by clicking the **Yes, deactivate** button. ![Deactivate Button - Manage Webstore](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-edit_pp.jpg) ### Deactivation Using Expiry Date You can also automate Webstore deactivation by setting an expiry date. You can set expiry date: * At the time of Creation * After Creation #### At the Time of Creation Know how to [set the Webstore's expiry date](/docs/payments/mobile-app/accept-payments/webstore#step-3-configure-store-settings) at the time of creation. #### After Creation To set the expiry mode: 1. Navigate to the Dashboard โ†’ **Payment Pages**. 2. Select **Razorpay Webstore**. 3. From the list, click the Webstore that you want to set expiry for. 4. In the Webstore details screen, go to **Expires On** field and click **Change**. 5. The field now shows a **No Expiry** checkbox selected. Unselect the box for the calendar to appear. 6. In the calendar, set the date and time of expiry and click **Save**. ![Save Button - Expiry Date - Manage Webstore](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-edit_pp_2.jpg) > [!NOTE] > > **Handy Tips** > > The expiry time must be at least 15 minutes after current time. ### Related Information * [Create a Razorpay Webstore](/docs/payments/webstore/create) * [Search for Webstore](/docs/payments/webstore/search) # Track Payments Using Google Tracking ID and Facebook Pixel Source: https://razorpay.com/docs/payments/webstore/plugins-add-ons Add your Google Tracking ID and Facebook Pixel to your Razorpay Webstore to track payments and conversions from your Google and Facebook advertisements. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India If you use Razorpay Webstore to accept payments from customers and also: * Advertise on Google and use Google Tracking ID to track conversions * Advertise on Facebook and use Facebook Pixel to track conversions You can do the following to track Google and Facebook ads and analyse conversions: * [Add Google Analytics Tracking ID to Webstore](/docs/payments/webstore/plugins-add-ons/google-analytics) * [Add Facebook Pixel to Webstore](/docs/payments/webstore/plugins-add-ons/fb-pixel) * [Add Facebook Pixel to your payment success page](/docs/payments/webstore/plugins-add-ons/fb-payment-success) # Add Facebook Pixel on Payment Success Page Source: https://razorpay.com/docs/payments/webstore/plugins-add-ons/fb-payment-success Add your Facebook Pixel on your payment success page. This helps you track payments and conversions from your Facebook advertisements. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You should integrate Facebook Pixel on your payment success page to track and analyse the advertisement conversion to payments if you: * Use Razorpay Webstore to accept payments from customers and redirect them to a success page post payment. * And, advertise on Facebook and use Facebook Pixel to track conversions. ## Prerequisites * [Create a Facebook Pixel](https://www.facebook.com/business/help/952192354843755?id=1205376682832142\&recommended_by=1700857106877546). * Create a payment success page on your domain and [add the Facebook Pixel to it](https://www.facebook.com/business/help/952192354843755?id=1205376682832142). ## Workflow Let us assume you run a website selling pet supplies. You attract customers using advertisements on Facebook and sell them pet products using Razorpay Webstore. To track and measure the effectiveness of these Facebook advertisements and how many of them convert into purchases, you need to add a redirect from your store to this success page. To do this: 1. Navigate to your Webstore in the edit mode. 2. Click **Page Settings**. 3. In the **Action after Success Payment** field, select **Redirect to your website**. 4. Enter your website's success page URL here as shown: ![](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-add-redirect-url.jpg) Every time a customer successfully completes a payment, they are directed to the success page. Facebook pixel tracks this event. ### Related Information * [Add Facebook Pixel to Razorpay Webstore](/docs/payments/webstore/plugins-add-ons/fb-pixel) * [Add Google Analytics Tracking ID](/docs/payments/webstore/plugins-add-ons/google-analytics) # Add Facebook Pixel Source: https://razorpay.com/docs/payments/webstore/plugins-add-ons/fb-pixel Add your Facebook Pixel to your Razorpay Webstore to track payments and conversions from your Facebook advertisements. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can add your Facebook Pixel to your Webstore to track payments and conversions from your Facebook advertisements. **Available Tracking Metrics** | Metrics | Description | | - | - | | Page Views | When a customer lands on your Webstore. This is the default metric to track page visits. | | Add to Cart | When a customer clicks on an add-to-cart button. | | Initiate Checkout | When a customer clicks on a checkout button. | | Purchase | When a customer finishes the purchase or checkout flow and lands post-payment success page. | ## Prerequisites [Create a Facebook Pixel](https://www.facebook.com/business/help/952192354843755?id=1205376682832142\&recommended_by=1700857106877546). ## Add Facebook Pixel to Your Webstore To add Facebook Pixel to your Webstore: 1. Navigate to your Webstore in the edit mode. 2. Click **Page Settings**. 3. Go to **Plugins and Add-ons** and click **Configure**. ![Configure Plugins and Add Ons](https://razorpay.com/docs/build/browser/assets/images/payment-pages-fb-pixel-configure-plugins-addons.jpg) 4. Add the details: 1. **Facebook Pixel ID**: Enter the Facebook Pixel ID. 2. Select the metrics you want to track from the following: * Page Views * Initiate Payment * Add to Cart * Payment Complete ![Add Google Tracking ID and FB Pixel](https://razorpay.com/docs/build/browser/assets/images/payment-pages-fb-pixel-fb-pixel-google-trackingid.jpg) 5. Click **Save**. ### Related Information * [Add Facebook Pixel to your payment success page](/docs/payments/webstore/plugins-add-ons/fb-payment-success) * [Add Google Analytics Tracking ID](/docs/payments/webstore/plugins-add-ons/google-analytics) # Add Google Analytics Tracking ID Source: https://razorpay.com/docs/payments/webstore/plugins-add-ons/google-analytics Add your Google Tracking ID to your Razorpay Webstore to track payments and conversions from your Google advertisements. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can add your Google Tracking ID to your Webstore to track payments and conversions from your Google advertisements. Know more about [Tracking ID](https://support.google.com/analytics/answer/1008080?hl=en) and how to create one using Google Analytics account. **Available Tracking Metrics** | Metric | Description | | - | - | | Page View | When a customer lands on your Webstore. This is the default metric to track page visits. | ## Prerequisites [Create a Google Tracking ID](https://support.google.com/analytics/answer/1008080?hl=en). ## Add Google Tracking ID to Your Webstore To add Google Tracking ID to your Webstore: 1. Navigate to your Webstore in the edit mode. 2. Click **Page Settings**. 3. Go to **Plugins and Add-ons** and click **Configure**. ![Configure Plugins and Add Ons](https://razorpay.com/docs/build/browser/assets/images/pp-plugins-addons-configure.jpg) 4. Add the **Tracking ID** to track the page views. ![Add Google Tracking ID and FB Pixel](https://razorpay.com/docs/build/browser/assets/images/pp-plugins-addons-GA.jpg) 5. Click **Save**. ### Related Information * [Add Facebook Pixel to Webstore](/docs/payments/webstore/plugins-add-ons/fb-pixel) * [Add Facebook Pixel to your payment success page](/docs/payments/webstore/plugins-add-ons/fb-payment-success) # Search for Razorpay Webstore Source: https://razorpay.com/docs/payments/webstore/search Search for a Webstore on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can search for a Webstore on the Dashboard. ## Search for Webstore You can search for a Webstore on the Dashboard by specifying various filters. To search for a Webstore: 1. Log in to the Dashboard. 2. Navigate to **Payment Pages** from the left menu and select **Razorpay Webstore**. 3. Search for the Webstore by specifying filters. ![Webstore List](https://razorpay.com/docs/build/browser/assets/images/payment-pages-payment-pages-list.jpg) | Filter | Description | | - | - | | Title | The title of the store. | | Status | The state of the store. Know more about [Webstore states](/docs/payments/webstore/states). | ## Search for Product You can search for products added to your various stores on the Dashboard by specifying various filters. To search for a Product: 1. Log in to the Dashboard. 2. Navigate to **Payment Pages** from the left menu and click **Products**. 3. Search for the product by specifying filters. ![Webstore Product list on Razorpay Dashboard.](https://razorpay.com/docs/build/browser/assets/images/pp-stores-product-list.jpg) | Filter | Description | | - | - | | Product name | The name of the product. | | Status | The state of the product. Possible values are:
  • Available
  • Out of Stock
| ### Related Information * [How Webstore Works](/docs/payments/webstore/how-it-works) * [Webstore States](/docs/payments/webstore/states) * [Create a Webstore](/docs/payments/webstore/create) * [Manage Webstore](/docs/payments/webstore/manage) # Razorpay Webstore States Source: https://razorpay.com/docs/payments/webstore/states List of states of a Razorpay Webstore and their significance. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India There are two states of a Webstore, **Active** and **Inactive**. Given below is an illustration of the life cycle of a Webstore. ![Illustration of lifecycle of a webstore as active or inactive](https://razorpay.com/docs/build/browser/assets/images/payment-pages-v3-pp-states.jpg) The table below lists the various states of a Webstore and gives a brief description of each state: | Status | Description | Next Steps | | - | - | - | | Active | Indicates the store has been created and saved. You can accept payments using this Webstore. You can edit this Webstore. | Customers can start making payments through this store. | | Inactive | Indicates the Webstore has been deactivated or has expired. You cannot accept payments using this Webstore. | Customers can no longer make payments through this Webstore. You can reactivate it to start accepting payments. There are three ways to reactivate:
  • Update Expiry Date.
  • Click the **Reactivate** button.
| ### Related Information * [How Razorpay Webstore Works](/docs/payments/webstore/how-it-works) * [Create a Razorpay Webstore](/docs/payments/webstore/create) * [Search for Webstore](/docs/payments/webstore/search) * [Manage Webstore](/docs/payments/webstore/manage) # About Offers Source: https://razorpay.com/docs/payments/offers Provide different types of Offers to customers at the Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Attract customers and improve sales by providing discounts or cashback on your website or apps. Using Razorpay Offers, you can completely control the discounts offered to your customers. You can restrict the payment methods on which the Offers are applied and limit their usage to a defined period. > [!WARNING] > > **Watch Out!** > > We do not support offers on international currency and the CFB (Customer Fee Bearer) model. > [accordion] Advantages > > * Create and run attractive offers on your website, thereby increasing sales. > > * Provide interest-free EMI options with No Cost EMI Offers. > > * With the help of Low Cost EMI Offers, provide upfront discounts by splitting the interest cost with your customers. > > * Grow conversions of price-sensitive customers. > > * Enjoy customer loyalty by providing offers to returning customers. > > * Incremental offers lead to higher average order value, thereby boosting sales. ## Customer Experience Customers have the opportunity to see the offers that you configure on checkout. They can assess and decide which offer best suits their needs and provides the most advantages or benefits. Additionally, Razorpay will automatically apply the most suitable offer to the chosen payment method, ensuring a seamless and optimised experience for the customer. ![Display offers on checkout](https://razorpay.com/docs/build/browser/assets/images/offers-apply-checkout.gif) Know more about the [flow of the payments in Offers](/docs/payments/payments). ### Related Information * [Create Offers](/docs/payments/offers/create) * [Tutorial On - How to Create Offers](/docs/payments/offers/tutorial) * [SKU and Brand Offers on Standard Checkout](/docs/payments/offers/sku-offers) * [Offers on Apple Pay](/docs/payments/offers/apple-pay) * [Offers FAQs](/docs/payments/offers/faqs) * [EMIยฒ Suite](/docs/payments/payment-gateway/emiยฒ) # Offers on Apple Pay Source: https://razorpay.com/docs/payments/offers/apple-pay Apply card offers to Apple Pay payments on Razorpay Standard Checkout, with no changes to your integration. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Card offers you run on Razorpay Standard Checkout also apply when customers pay with [Apple Pay](/docs/payments/payment-methods/apple-pay). Apple Pay does not share the actual card number with Razorpay. Instead, Razorpay identifies the card the customer picks in their Apple Wallet and checks the offer against it. Bank, network, card type and IIN offers work the same way they do on a regular card payment, and the discount is itemised on Checkout. For example, if you run an instant discount on a bank's credit cards, customers who pay with that bank's credit card through Apple Pay now get the discount too. > [!NOTE] > > **No Changes Needed** > > You do not need to change your integration or create new offers. Any card offer that is active on your account applies to Apple Pay payments. ## Prerequisites * [Apple Pay enabled on Standard Checkout](/docs/payments/payment-methods/apple-pay). * One or more [card offers](/docs/payments/offers/create) created on the Dashboard and [integrated with Standard Checkout](/docs/payments/offers/standard-integration). ## How It Works 1. The customer selects a card offer on Checkout, or Checkout applies one automatically. Checkout shows the discounted amount. 2. The customer taps **Apple Pay**. The offer carries over to the Apple Pay payment. 3. In the Apple Pay sheet, the customer chooses a card and authenticates with Face ID or Touch ID. 4. Razorpay identifies the card behind the Apple Pay token and checks that it is eligible for the offer. 5. If the card is eligible, the payment completes at the discounted amount. If it is not, the payment fails and the customer sees the reason on Checkout. ![A card offer applied on Checkout with the Apple Pay button](https://mintcdn.com/razorpay-881012b3/MLemAp0myTxAmFg0/static/docs-home/assets/apple-pay-offers-checkout.png?fit=max\&auto=format\&n=MLemAp0myTxAmFg0\&q=85\&s=a8a7d8e7e48b74ceab64fdf6b27aec4b) > [!NOTE] > > **Offer Validation Happens After Authentication** > > On a regular card payment, Razorpay checks the offer when the customer enters their card details. On Apple Pay, the card details are only available after the customer authenticates in the Apple Pay sheet, so the offer is checked at that point. ## Supported Offers | Offer type | Applies on Apple Pay | | - | - | | Card offers by bank, network or card type (credit or debit) | Yes | | Card offers on specific IINs | Yes | | Card offers with a **Maximum Usage Per Card** limit | Yes. Usage is counted per card across Apple Pay and regular card payments. | | Offers on other payment methods, such as UPI, netbanking and wallets | No. These offers are removed when the customer chooses Apple Pay. | If you [force an offer](/docs/payments/offers/standard-integration#method-3-force-offer) that is not a card offer, Apple Pay is not shown on Checkout for that order. ## Limitations * Offers on Apple Pay are available only on Razorpay Standard Checkout, for domestic payments in India. They are not available on Custom Checkout or Server-to-Server (S2S) integrations. * Apple Pay does not work in test mode, so you cannot test offers on Apple Pay in test mode. * If an Apple Pay payment fails, Checkout removes all offers applied to it. When the customer retries, the payment goes through without an offer, at the full amount. ## Frequently Asked Questions > [accordion] Why did a customer's Apple Pay payment fail after they applied an offer? > > The card the customer chose in the Apple Pay sheet was not eligible for the offer. For example, the offer is for one bank's cards and the customer paid with another bank's card, or the customer has already used the offer the maximum number of times on that card. > > Checkout shows the customer why the offer could not be applied. The Apple Pay sheet itself shows only a general payment failure, as Apple does not allow Razorpay to show its own messages there. If the customer tries again, the payment goes through without the offer. > [accordion] Do I need to create separate offers for Apple Pay? > > No. Your existing card offers apply to Apple Pay payments. There is no separate offer type or setting for Apple Pay. > [accordion] How do I find Apple Pay payments that used an offer? > > Apple Pay payments have `"provider": "apple_pay"` in the payment `notes` field. To see the offer applied on a payment, use the [Fetch Payment With Expanded Offers API](/docs/api/payments/fetch-payment-expanded-offers). ### Related Information * [Apple Pay Standard Checkout](/docs/payments/payment-methods/apple-pay) * [Create Offers](/docs/payments/offers/create) * [Integrate Offers with Standard Checkout](/docs/payments/offers/standard-integration) * [Offers FAQs](/docs/payments/offers/faqs) # Create Offers Source: https://razorpay.com/docs/payments/offers/create Create and manage Offers for customers from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore You can create offers from the Dashboard to promote your business. Some of the ways you can control offers at a granular level are: * Configuring the payment methods permitted for the offer. * Limiting the number of times the offer can be availed. > [!NOTE] > > **Handy Tips** > > * You cannot edit an offer. To make changes, disable the previous offer and create a new one. > > * Only the owner and admin roles can create offers. > > * As per the RBI guidelines, the original card number is replaced with a surrogate value called a token. However, we will continue to support BIN-based offers post tokenisation, except BIN-based offers will not work on saved American Express (AMEX) cards. ## Design Offers You should consider the following while creating offers: * Availability of the offer at Checkout. * A maximum number of times an offer should be applied. * Whether customers should be allowed to complete payments if validations are not met in the offers. * Maximum discount that can be availed using the offer. * The number of times a payment method, specifically cards, should be used to avail of an offer. ## Create Offers To create an offer: 1. Log in to the Dashboard. 2. Navigate to **Offers** and click **+ Create New Offer**. ![Create an Offer](https://razorpay.com/docs/build/browser/assets/images/offers-offers-dashboard.jpg) 3. The **Create an Offer** window displays four sections. Complete all sections to create the offer: * [Description](#offer-description) * [Discount Type](#discount-type) * [Applicable On](#applicable-on) * [Offer Validity](#offer-validity) You can review the offer configurations at the end under the [**Overview**](#offer-overview) tab. ### Offer Description In the **Description** section, enter the following details. All the fields are mandatory. 1. **Offer Name**: Enter the name of the offer. For example, **Monsoon Offer**. This appears at Checkout. 2. **Display Text**: Enter a meaningful description for the offer. For example, **10% discount on netbanking payments**. This appears at Checkout. 3. **Terms**: Enter the terms and conditions for the offer. 4. **Offer Type**: Select the type of offer that you want to create. The possible values are: * **Instant**: The offer is applied instantly. That is, the customer pays only the discounted amount while making the payment. * **Cashback**: The customer pays the entire bill amount and receives the cashback to their account from the bank or the wallet provider later. Cashbacks need to be processed by the provider. Create Cashback Offers only if you have an agreement with them. * **Already Discounted**: You can enforce discounts on customers. This one-time offer is applied to all the customers by default before Checkout. Since the offer has already been used, the amount will not change at checkout. For example, if you provide a 10% discount to all customers on the website, the discounted value will appear on the website and the amount will not change further at Checkout. 5. Click **Next**. ![Enter the offer details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-offers-description.jpg) ### Discount Type There are three types of discounts that can be offered: * [Instant](#instant) * [Cashback](#cashback) * [Already Discounted](#already-discounted) Choose one of these three and create the offer. The following sections explain their configuration in detail. #### Instant In the **Discount Type** section, enter the discount details that should be applied to the offer. 1. In the **Discount Type** field, select the type of discount that should be applied to the offer: **Percentage** or **Flat** * **Flat**: In this type, a fixed amount is deducted from the original amount. 1. **Minimum Order amount**: Enter the minimum bill amount for which the offer can be applied. 2. **Discount worth**: Enter an amount by which the original price should be reduced. For example, if **โ‚น30** is the **Flat** discount applied, then an amount of **30** is deducted from the original price. * **Percentage**: In this type, the offer is calculated in terms of percentage. 1. **Minimum Order amount**: Enter the minimum bill amount for which the offer can be applied. 2. **Discount Worth**: The percentage by which the original price should be reduced. For example, if **10** is the **Percentage** discount to be applied, on an order amount of **300**, **30** will be deducted. 3. **Maximum Discount**: The maximum amount that can be deducted from the bill amount. For example, you can ensure that the customer cannot avail a discount higher than **500**, irrespective of the order amount. 2. Click **Next**. ![Enter the discount details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-offers-discount-type.jpg) #### Cashback In the **Discount Type** section, enter the details of the cashback that should be applied. > [!NOTE] > > **Cashback Offers** > > Cashbacks need to be processed by the provider (wallet providers, banks and so on). Create Cashback Offers only if you have an agreement with them. 1. In the **Discount Type** field, select the type of cashback that should be applied to the offer: **Percentage** or **Flat** * **Flat**: In this type, a fixed amount is paid out to the customer. 1. **Minimum Order amount**: Enter the minimum bill amount for which the offer can be applied. 2. **Discount worth**: Enter the amount to be paid out to the customer. * **Percentage**: In this type, the offer is calculated in terms of percentage. 1. **Minimum Order amount**: Enter the minimum bill amount for which the offer can be applied. 2. **Discount Worth**: The percentage of the order amount that must be paid out as cashback to the customer. For example, if 10% of the order amount is to be paid out to the customer and the amount is 100, the cashback amount will be โ‚น10. 3. **Maximum Discount**: The maximum amount that can be offered as cashback. For example, you can ensure that the customer will not be paid more than **100**, irrespective of the order amount. 2. Click **Next**. ![Create Cashback Offers](https://razorpay.com/docs/build/browser/assets/images/offers-cashback-1.jpg) #### Already Discounted This is a one-time offer applied to all customers by default before Checkout. Since the offer has already been applied, there will be no change in the amount at Checkout. For example, if you provide a 10% discount to all customers on the website, the discounted value will appear on the website and the amount will not change further at Checkout. In the **Discount Type** section, enter the details of the discount: 1. In the **Discount Type** field, select the type of discount that should be applied to the offer: **Percentage** or **Flat** * **Flat**: In this type, a fixed amount is deducted from the original amount. 1. **Minimum Order amount**: Enter the minimum bill amount for which the offer can be applied. 2. **Discount worth**: Enter an amount by which the original price should be reduced. For example, if **โ‚น30** is the **Flat** discount applied, an amount of **30** is deducted from the original price. * **Percentage**: In this type, the offer is calculated in terms of percentage. 1. **Minimum Order amount**: Enter the minimum bill amount for which the offer can be applied. 2. **Discount Worth**: The percentage by which the original price should be reduced. For example, if **10** is the **Percentage** discount to be applied, on an order amount of **300**, **30** will be deducted. 3. **Maximum Discount**: The maximum amount that can be deducted from the bill amount. For example, you can ensure that the customer cannot avail a discount higher than **500**, irrespective of the order amount. 2. Click **Next**. ![Enter the already discounted details](https://razorpay.com/docs/build/browser/assets/images/offers-already-discounted.jpg) > [!NOTE] > > **Display Already Discounted Offer at Checkout** > > If you create an offer with the `Already Discounted` discount type, you must pass the Offer\_id parameter while creating the order. This is mandatory for the offer to be available at Checkout. ### Applicable On Under the **Applicable On** tab, enter details of the payment method you want to enable the offers. The fields depend upon the selected payment method. 1. Select the **Payment Method** and **Issuer**. * **Payment Method**: The payment method for which the created offer can be applied. Select from the available options, which are configured for your account: * **Card** * **Netbanking** * **Wallet** * **UPI** * **EMI** * **Cardless EMI** * **Pay Later** * **Card or EMI**: If you choose the payment method as **Card** or **EMI**, enter the card-related details as described below: * **Card Type**: Select the type of the card. The possible values are: * **Debit Card** * **Credit Card** * **Both Debit and Credit Cards** (This is applicable only if you choose **Card** as the payment method) * **Bank**: Select the bank that issued the card. * **Network**: Select the network of the card. * **Maximum Usage Per Card**: Enter the number of times the selected card can be used to avail the offer. > [!WARNING] > > **Watch Out!** > > Max usage offers will only work on Visa, MasterCard and Rupay cards post tokenisation. * **IINs**: Enter the first six digits of the card (that is printed on the front of the card). In the case of Rupay cards, enter the tokenised IIN only. > [!NOTE] > > **Handy Tips** > > We will use the network par(payment account reference) API to identify the max usage per card post tokenisation. In some cases, the offer may be invalid depending on the network of the card. * **Netbanking**: The bank for which the offer is applicable. * **Issuer**: Select the required bank. * **Wallet**: Select the wallet provider that supports the offer. * **Issuer**: Select the appropriate wallet provider. 2. Click **Next**. ![Enter the payment method details](https://razorpay.com/docs/build/browser/assets/images/offers-offers-applicable-on.jpg) ### Offer Validity Under the **Offer Validity** tab, set how long the offer should be valid and how you want to handle the payment failure situations. 1. **Starting On**: Select the **Starts Immediately** check box for the offer to come into effect immediately. Alternatively, you can select the date and the time from which the created offer should become active. 2. **Expires On**: Select the date and time at which the offer should end. For example, **31 Oct 2020** at **11:59pm**. 3. **On Payment Failure**: Define how to handle payment failure. * **Do not allow payment to go through**: The payment is failed. * **Allow customer to pay without availing offer**: The payment is allowed even though the set validations are not met. However, the offer is not applied to the bill amount. The customer will be charged the entire order amount. For this example, we will allow payments to go through. 4. **Max Usage**: Set the number of times the offer should be applied across all transactions. For example, **100**. 5. **Show Offer on Checkout**: Select this check box for the offer to be displayed for all Standard Checkout payments including [Payment Links](/docs/payments/payment-links). Know more about the different ways to [display offers on Standard Checkout](/docs/payments/offers/standard-integration). > [!WARNING] > > **Watch Out!** > > If you are not using products and plugins like Razorpay Magento, Shopify, WooCommerce, Payment Links, Payment Buttons, Payment Pages and Invoices to accept payments, you **should** integrate offers with the [Orders API](/docs/api/orders) for the feature to work. 6. Click **Next**. ![Enter the offer validity details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-offers-offer-validity.jpg) ### Offer Overview Click the **Overview** tab to view the summary of the offer that you just created. 1. **Terms and Conditions**: Select the check box after you have read the disclaimer. 2. Click **Create Offer**. ![Check the terms and conditions and create an offer](https://razorpay.com/docs/build/browser/assets/images/offers-offers-overview.jpg) By default, all the created offers will be in the **enabled** state. ## Test the Offer You can test the created offer for all Standard Checkout payments, including [Payment Links](/docs/payments/payment-links), [Payment Button](/docs/payments/payment-button), [Payment Pages](/docs/payments/payment-pages) and so on. > [!NOTE] > > **Handy Tips** > > * You can toggle between Live and Test Modes on your **Dashboard**. Navigate to the top menu ribbon and click the drop-down icon against **Live Mode**. Toggle to **Test Mode** and test the offers enabled. > > * You can make test payments using one of the payment methods at the Checkout. No money is deducted from your account as this is a simulated transaction. For this example, we will test the offer on a valid Payment Link. Follow the steps given below: 1. Select the **Payment Link Id** you wish to test the created offer from the Dashboard. 2. Copy the **Payment Link** URL and open it in your browser. ![Payment Link Test Offer](https://razorpay.com/docs/build/browser/assets/images/offer-dashboard-test.jpg) 3. Enter your contact details and click **Proceed**. The relevant offers appear upfront on checkout. 4. Select the offer you created from the Dashboard and click **Apply Offer**. 5. Select the payment option you created the offer on from the Dashboard. Enter the required [test details](/docs/payments/payments/test-card-details) and click **PAY**. 6. Select Success or Failure, depending on which flow you wish to test. 7. You should see a confirmation message depending on the flow you have selected. On successful payment, you should have received a discount on your payment. You can verify this by navigating to the Transactions โ†’ Payments tab and viewing the payment details. ![Verifying transaction](https://razorpay.com/docs/build/browser/assets/images/offer-details.jpg) ## Integrate Offer with Standard Checkout Now that an Offer is created, you should integrate Offers with Checkout for customers to avail the discounts and make payments. Know how to [integrate Offers with Standard Checkout](/docs/payments/offers/standard-integration). ## Disabling Offers Watch this video to see how to disable an offer. [YouTube video player](https://www.youtube.com/embed/71c9oxfDuRM) To disable an offer: 1. Log in to the Dashboard. 2. Navigate to **Offers** to view a summary of the existing offers. 3. Select the required Offer\_id. 4. In the pane that appears, go to the **Status** field and click **Disable**. ![Disable the offer](https://razorpay.com/docs/build/browser/assets/images/offers-disable_offer.jpg) ## Next Steps After you create an offer, it needs to be integrated with Checkout for the customers to view and avail the offers while making payments. Know more about [integrating offers with Standard Checkout](/docs/payments/offers/standard-integration). ### Related Information * [Tutorial - How to Create Offers](/docs/payments/offers/tutorial) * [Integrate offers with Standard Checkout](/docs/payments/offers/standard-integration) * [Offers FAQs](/docs/payments/offers/faqs) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/offers/faqs Find answers to frequently asked questions about Razorpay Payment Offers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore > [accordion] How can I edit an Offer? > > You cannot edit an offer once you create it. To make changes, [disable](/docs/payments/offers/create#disabling-offers) the previous offer and [create](/docs/payments/offers/create) a new one. > [accordion] Who manages Offer usage limitations? > > You are expected to pass the appropriate Offer id at the time of creating an order to manage usage limitations. > [accordion] Can we create Offers on Customer Fee Bearer (CFB) model? > > No, we do not support offers on CFB model. > [accordion] How can I disable an Offer? > > To disable an offer: > > 1. Log in to the Dashboard. > 2. Navigate to **Offers** to view a summary of the existing offers. > 3. Select the required Offer\_id. > 4. In the pane that appears, go to the **Status** field and click **Disable**. > 5. Click **Yes, Disable**. > [accordion] Can I automatically apply an offer to all prepaid orders without requiring customers to manually select it? > > No, Razorpay Offers cannot be automatically applied to all prepaid orders without any user interaction or payment method selection. Offers are designed to be associated with specific payment methods (cards, UPI, netbanking and so on) and are displayed at checkout for customers to choose. > [accordion] Do Offers apply when customers pay with Apple Pay? > > Yes. Card offers apply to Apple Pay payments on Standard Checkout in India, with no changes to your integration. Razorpay checks the offer against the card the customer chooses in Apple Pay. Offers on other payment methods do not apply. Know more about [Offers on Apple Pay](/docs/payments/offers/apple-pay). # Fetch and Match Offers Using APIs Source: https://razorpay.com/docs/payments/offers/fetch-match-offers Fetch the offers on your account or find the offers that apply to a customer's order, so you can show them on your website or app. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Use the Fetch Offers and Match Offers APIs to show offers on your own website or app. For example, show offer badges on product pages or list the offers a customer can get on your payment page. The APIs work for offers on the whole order (cart-level offers) and for offers on specific products in the cart (SKU-level offers). ## Prerequisites * [Generate the API keys](/docs/payments/dashboard/account-settings/api-keys) from the Dashboard. You need the `key_id` and `key_secret` to authenticate API requests. * [Create the offers](/docs/payments/offers/create) you want to give from the Dashboard. ## Choose an API | API | Use it to | | - | - | | [Fetch Offers](#fetch-offers) | Get the full catalogue of active offers on your account. Cache it on your server and match offers to orders yourself. | | [Match Offers](#match-offers) | Get the offers that apply to a specific order and, optionally, a payment instrument. Razorpay does the matching and calculates the discount. | ## Key Concepts ### Offer Structure Every offer has one or more rules. Each rule has eligibility criteria and the benefits the customer gets when the criteria are met. ```text theme={null} Offer โ”œโ”€โ”€ display_name, description, currency, terms โ”œโ”€โ”€ schedules[], benefits_types[] โ”œโ”€โ”€ usage_limits[], display_config โ””โ”€โ”€ rules โ””โ”€โ”€ Rule โ”œโ”€โ”€ criteria โ”‚ โ”œโ”€โ”€ includes (conditions that must all be true) โ”‚ โ”‚ โ”œโ”€โ”€ payment_instrument โ”‚ โ”‚ โ””โ”€โ”€ order (order amount and SKU conditions) โ”‚ โ””โ”€โ”€ excludes (conditions that disqualify the transaction) โ””โ”€โ”€ benefits โ””โ”€โ”€ items[] โ”œโ”€โ”€ type, applicable_on, value, max_benefit_value โ”œโ”€โ”€ limit_type, unit, tenures[] โ”œโ”€โ”€ calculated_benefit_value (Match Offers only) โ””โ”€โ”€ benefit_breakup[] (Match Offers only) ``` * `criteria.includes` lists the conditions that must all be true for the offer to apply. * `criteria.excludes` lists the conditions that disqualify a transaction. It is an empty object `{}` when no exclusions are set. * Razorpay evaluates the rules in an offer independently. Each rule applies either to the whole cart or to line items, never both. ### Cart-Level and SKU-Level Offers | Field | Cart-level offer | SKU-level offer | | - | - | - | | `criteria.includes.order.applies_to` | `cart` | `line_items` | | `criteria.includes.order.line_item` | Absent | Present. Contains `skus`, `brands`, `min_quantity` and `min_price`. | | `benefits.items[].applicable_on` | `cart` | `line_item` | | `benefits.items[].calculated_benefit_value` | Flat reduction on the order total. | Sum of the discount on each eligible SKU. | | `benefits.items[].benefit_breakup` | Absent | Present. Shows the discount on each SKU. | All amounts in these APIs are in paise. For example, pass `150000` for โ‚น1,500. ## Fetch Offers Use this API to fetch the complete catalogue of active offers on your account. Use the response to build a local cache and match eligibility on your server. For SKU-level offers, the eligible SKUs are returned inline. `GET /v1/offers` ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X GET 'https://api.razorpay.com/v1/offers?status=active&count=10&skip=0' ``` ### Query Parameters **status** `string` Filter offers by status. Possible values are `active` (default) and `inactive`. **starts\_at** `integer` Unix timestamp. Returns offers that start on or after this time. **ends\_at** `integer` Unix timestamp. Returns offers that end on or before this time. **count** `integer` Number of offers to return. Default is `10`. Maximum is `100`. **skip** `integer` Number of offers to skip. Use it with `count` to paginate. Default is `0`. ### Response ```json theme={null} { "entity": "collection", "count": 2, "has_more": false, "items": [ { "entity": "offer", "id": "offer_MULTISKU_001", "name": "10% off on Apple devices with HDFC Bank cards", "status": "ACTIVE", "starts_at": 1738368600, "ends_at": 1740960600, "display_name": "10% Off on Apple Devices", "description": "Get 10% off up to โ‚น1,500 on Apple iPhone and iPad purchases with HDFC Bank cards.", "currency": "INR", "terms": { "tnc": "Valid on Apple iPhone and iPad purchases only.", "url": "https://example.com/offers/apple-hdfc/tnc" }, "benefits_types": ["instant_discount"], "usage_limits": [ { "on": "CARD_NUMBER", "limit_type": "COUNT", "limit_value": 5, "frequency_type": "MONTHLY", "frequency_value": 2, "tracking_level": "TRACKING_LEVEL_OFFER" } ], "display_config": { "offer_display_priority": 1, "should_validate": true, "is_hidden": false, "auto_apply": false }, "rules": { "entity": "collection", "count": 1, "items": [ { "criteria": { "includes": { "payment_instrument": { "methods": ["card"], "card": { "issuers": ["HDFC"], "types": ["CREDIT", "DEBIT"], "networks": ["Visa", "Mastercard"] } }, "order": { "applies_to": "line_items", "min_amount": 3000000, "line_item": { "skus": { "type": "list", "values": ["IPHONE16_128", "IPHONE16_256", "IPAD_AIR_M2"] }, "brands": ["apple"], "min_quantity": 1, "min_price": 3000000 } } }, "excludes": {} }, "benefits": { "entity": "collection", "count": 1, "items": [ { "type": "instant_discount", "applicable_on": "line_item", "value": 10, "max_benefit_value": 150000, "calculated_benefit_value": 0, "benefit_breakup": [], "limit_type": "UPTO", "unit": "PERCENTAGE", "tenures": [] } ] } } ] } }, { "entity": "offer", "id": "offer_CART_002", "name": "Flat โ‚น2,000 off on orders above โ‚น1,00,000 with HDFC Bank credit cards", "status": "ACTIVE", "starts_at": 1738368600, "ends_at": 1740960600, "display_name": "โ‚น2,000 Off with HDFC Bank Credit Cards", "description": "Flat โ‚น2,000 off on orders above โ‚น1,00,000 with HDFC Bank credit cards.", "currency": "INR", "terms": { "tnc": "Valid on HDFC Bank credit card transactions.", "url": "https://example.com/offers/hdfc-cart/tnc" }, "benefits_types": ["instant_discount"], "display_config": { "offer_display_priority": 2, "should_validate": true, "is_hidden": false, "auto_apply": false }, "rules": { "entity": "collection", "count": 1, "items": [ { "criteria": { "includes": { "payment_instrument": { "methods": ["card"], "card": { "issuers": ["HDFC"], "types": ["CREDIT"] } }, "order": { "applies_to": "cart", "min_amount": 10000000 } }, "excludes": {} }, "benefits": { "entity": "collection", "count": 1, "items": [ { "type": "instant_discount", "applicable_on": "cart", "value": 200000, "max_benefit_value": 200000, "calculated_benefit_value": 0, "benefit_breakup": [], "limit_type": "FLAT", "unit": "FIXED", "tenures": [] } ] } } ] } } ] } ``` ### Response Parameters **entity** `string` Always `collection`. **count** `integer` Number of offers returned on this page. **has\_more** `boolean` `true` if more offers exist beyond this page. **items** `array` List of [offer objects](#offer-object). ### Offer Object **entity** `string` Always `offer`. **id** `string` Unique identifier of the offer. For example, `offer_MULTISKU_001`. **name** `string` Internal name of the offer. **display\_name** `string` Customer-facing name of the offer. **description** `string` Short explanation of the offer, usually shown alongside it. **terms** `object` Structured terms and conditions: `tnc`, the text, and `url`, a link to the full terms. **status** `string` Status of the offer. Possible values are `ACTIVE` and `INACTIVE`. **inactivation\_reason** `string` Why the offer was deactivated. Present only when the offer is inactive. Possible values are `INACTIVATION_REASON_UNSPECIFIED`, `EXPIRED`, `EXHAUSTED`, `ON_DEMAND`, `ADVERTISER_ON_DEMAND`, `ADVERTISER_EXPIRED` and `DISCONTINUED`. **starts\_at** `integer` Unix timestamp when the offer becomes active. **ends\_at** `integer` Unix timestamp when the offer expires. **currency** `string` Currency of the offer. For example, `INR`. **schedules** `array` Time windows in which the offer is available, for example the 1st of every month or weekdays only. * `period`: How often the window recurs. Possible values are `DAILY`, `WEEKLY`, `FORTNIGHTLY`, `MONTHLY`, `MONTH_WEEKLY`, `YEARLY`, `CALENDAR_MONTHLY` and `CALENDAR_YEARLY`. * `interval`: Interval values for the period. For example, `[1]` for the 1st of every month. * `starts_at` and `ends_at`: Unix timestamps for the start and end of the schedule. * `days_of_week`: Days of the week, from `SUNDAY` to `SATURDAY`. * `dates_of_month`: Dates of the month, from `DATE_1` to `DATE_31`. * `months_of_year`: Months, from `JANUARY` to `DECEMBER`. * `weeks_of_month`: Weeks of the month, from `FIRST` to `SIXTH`. **benefits\_types** `array` Types of benefit the offer gives. Possible values are `instant_discount`, `cashback`, `already_discounted`, `no_cost_emi` and `low_cost_emi`. **usage\_limits** `array` Usage restrictions on the offer, for example a maximum of 5 redemptions per card in 2 months. * `on`: What the limit is tracked on. Possible values are `OFFER`, `MOBILE`, `EMAIL`, `CARD_NUMBER` and `CUSTOMER_ID`. * `limit_type`: `BUDGET` for an amount cap or `COUNT` for a redemption cap. * `limit_value`: The limit. A count, or an amount in paise. * `frequency_type`: The window the limit applies to. Possible values are `DAILY`, `WEEKLY`, `FORTNIGHTLY`, `MONTHLY`, `MONTH_WEEKLY`, `YEARLY`, `CALENDAR_MONTHLY` and `CALENDAR_YEARLY`. * `frequency_value`: Multiplier for `frequency_type`. For example, `2` with `MONTHLY` means 2 months. * `tracking_level`: `TRACKING_LEVEL_OFFER` or `TRACKING_LEVEL_PUBLISHER`. **display\_config** `object` How to present the offer. * `offer_display_priority`: Display priority. A higher number means a higher priority. * `should_validate`: Whether to validate the offer before you show it. * `is_hidden`: Whether the offer is hidden. * `auto_apply`: Whether to apply the offer automatically, without the customer selecting it. **rules** `object` Collection of [rule objects](#rule-object): `entity` (always `collection`), `count` and `items`. Fetch Offers does not return `eligible`. [Match Offers](#match-offers) returns it. ### Rule Object **criteria.includes** `object` Conditions that must all be true for the offer to apply. Contains `payment_instrument` and `order`. **criteria.excludes** `object` Conditions that disqualify a transaction. Same structure as `criteria.includes`. It is `{}` when no exclusions are set. **criteria.includes.payment\_instrument** `object` Payment instrument conditions. See [payment instrument conditions](#payment-instrument-conditions). **criteria.includes.order.applies\_to** `string` Scope of the rule. `cart` for a cart-level offer or `line_items` for an SKU-level offer. **criteria.includes.order.min\_amount** `integer` Minimum order amount in paise. **criteria.includes.order.max\_amount** `integer` Maximum order amount in paise. Absent if there is no upper limit. **criteria.includes.order.line\_item** `object` SKU conditions. Present only when `applies_to` is `line_items`. * `skus`: The eligible SKUs. `type` is `list` and `values` has the SKU identifiers. * `brands`: Eligible brands. For example, `["apple"]`. * `min_quantity`: Minimum quantity of each eligible SKU. * `min_price`: Minimum price of the eligible line items, in paise. **benefits** `object` Collection of [benefit objects](#benefit-object): `entity` (always `collection`), `count` and `items`. ### Payment Instrument Conditions The same structure appears in an offer's rules and in `criteria.payment_instrument` of the Match Offers request. **methods** `array` Payment methods. Possible values are `card`, `upi`, `netbanking`, `wallet` and `emi`. For example, `["card"]`. **card** `object` Card conditions. Present when `methods` is `["card"]`. * `saved`: When `true`, only saved cards are eligible. * `international`: Whether international cards are eligible. * `issuers`: Issuing banks. For example, `["HDFC", "Axis"]`. * `types`: Card types. Possible values are `CREDIT`, `DEBIT` and `PREPAID`. * `networks`: Card networks. For example, `["Visa", "Mastercard"]`. * `categories`: Card categories. For example, `["Platinum"]`. * `iins`: Card IINs, the first 6 digits of the card number. * `subtype`: Card subtypes. Possible values are `CONSUMER` and `BUSINESS`. * `cobranding_partners`: Co-branding partners. For example, `["onecard"]`. * `tokens`: Tokens associated with the card. * `reference_number`: Reference number of the card. **upi** `object` UPI conditions. Present when `methods` is `["upi"]`. * `psps`: Payment service providers. For example, `["PHONEPE", "GPAY"]`. * `vpa_handle`: UPI ID handles. * `payer_account_types`: Possible values are `BANK`, `WALLET` and `CREDIT_CARD`. * `flow`: UPI flows. Possible values are `COLLECT`, `INTENT` and `IN_APP`. * `payer_account_bins`: Payer account BINs. **bank\_account** `object` Bank account conditions: `account_numbers`, `ifscs` and `names` (account holder names). Present when `methods` is `["netbanking"]`. **netbanking** `object` Netbanking conditions: `banks`, the eligible banks. Present when `methods` is `["netbanking"]`. **emi** `object` EMI conditions: `durations`, the eligible tenures in months. Present when `methods` is `["emi"]`. **wallet** `object` Wallet conditions: `providers`, the eligible wallet providers. Present when `methods` is `["wallet"]`. ### Benefit Object **type** `string` Benefit type. Possible values are `instant_discount`, `cashback`, `low_cost_emi`, `no_cost_emi` and `already_discounted`. **applicable\_on** `string` Where the benefit applies: `cart` or `line_item`. **value** `integer` Size of the benefit. Percentage points when `unit` is `PERCENTAGE` (for example, `10` for 10%) or an amount in paise when it is `FIXED`. **max\_benefit\_value** `integer` Maximum benefit in paise. **limit\_type** `string` `FLAT` or `UPTO`. **unit** `string` `FIXED` or `PERCENTAGE`. **tenures** `array` EMI tenures in months that the benefit applies to, if any. **calculated\_benefit\_value** `integer` The calculated discount in paise. Empty in Fetch Offers. Populated by [Match Offers](#match-offers). ## Match Offers Use this API during checkout to find the offers that apply to the customer's order and, optionally, their payment instrument. The response lists the matched offers with the calculated discount, including the discount on each SKU for SKU-level offers. It can also include the offers that did not match. `POST /v1/offers/match` ### When to Call | Checkout stage | What to pass | What you get | | - | - | - | | Before the customer selects a payment instrument, for example on the product or cart page | `criteria.order` only. Do not pass `criteria.payment_instrument`. | All offers that apply to the order across payment instruments. Use them to show offer badges. | | Payment page | `criteria.order` and `criteria.payment_instrument` | Offers that apply to this order and the selected payment instrument. | | Card number entry | `criteria.payment_instrument.card.iins` with the IIN the customer enters | Offers that apply to that specific card. | ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/offers/match \ -H "Content-Type: application/json" \ -d '{ "criteria": { "offers": ["offer_MULTISKU_001", "offer_MULTISKU_002", "offer_CART_002"], "order": { "amount": 15489900, "currency": "INR", "line_items": [ { "sku": "IPHONE16_128", "brand": "apple", "quantity": 1, "price": 7990000 }, { "sku": "SAMSUNG_S24", "brand": "samsung", "quantity": 1, "price": 7499900 } ] }, "customer": { "contact": "+919000090000", "email": "gaurav.kumar@example.com" }, "payment_instrument": { "methods": ["card"], "card": { "issuers": ["HDFC"], "types": ["CREDIT"], "networks": ["Visa"] } } }, "ineligible": { "include": true }, "count": 10, "skip": 0 }' ``` ### Request Parameters **criteria** `object` Inputs used to evaluate eligibility. If you do not pass it, Razorpay evaluates all active offers without filters. **criteria.offers** `array` IDs of specific offers to evaluate. Maximum 20. If you do not pass it, all active offers are evaluated. **criteria.order\_id** `string` Order ID for the request. **criteria.order** `object` Cart details used to evaluate eligibility. **criteria.order.amount** `integer` Total cart amount in paise. **criteria.order.currency** `string` Currency code. For example, `INR`. **criteria.order.notes** `object` Key-value pairs of notes for the order. **criteria.order.line\_items** `array` Products in the cart. Required to evaluate SKU-level offers. **criteria.order.line\_items\[].sku** `string` SKU identifier of the product. Required when you pass `line_items`. **criteria.order.line\_items\[].brand** `string` Brand of the product. Not case-sensitive. Required when you pass `line_items`. Brand offers are evaluated correctly only when you pass it. **criteria.order.line\_items\[].quantity** `integer` Quantity in the cart. Must be 1 or more. Required when you pass `line_items`. **criteria.order.line\_items\[].price** `integer` Unit price of the product in paise. Required when you pass `line_items`. **criteria.order.line\_items\[].notes** `object` Key-value pairs of notes for the line item. **criteria.payment\_instrument** `object` Payment instrument to filter offers by. If you do not pass it, offers are returned for all instruments. Pass `methods`, required when you pass an instrument, and the [conditions for that method](#payment-instrument-conditions). **criteria.customer** `object` Customer details used to check per-customer usage limits. * `id`: Customer ID. * `contact`: Customer's phone number. `mobile_number` is accepted as an alias. * `email`: Customer's email address. * `card_number`: Customer's card number. * `upi_vpa`: Customer's UPI ID. **ineligible** `object` Pass `{"include": true}` to also return the offers that did not match. **count** `integer` Number of offers to return. Default is `10`. Maximum is `100`. **skip** `integer` Number of offers to skip. Default is `0`. ### Response The sample shows only the key fields of each offer. The API returns every [offer field](#offer-object). ```json theme={null} { "matched": { "entity": "collection", "count": 2, "items": [ { "entity": "offer", "id": "offer_MULTISKU_001", "display_name": "10% Off on Apple Devices", "status": "ACTIVE", "benefits_types": ["instant_discount"], "eligible": true, "rules": { "entity": "collection", "count": 1, "items": [ { "criteria": { "includes": { "payment_instrument": { "methods": ["card"], "card": { "issuers": ["HDFC"], "types": ["CREDIT", "DEBIT"] } }, "order": { "applies_to": "line_items", "min_amount": 3000000, "line_item": { "skus": { "type": "list", "values": ["IPHONE16_128", "IPHONE16_256", "IPAD_AIR_M2"] }, "brands": ["apple"], "min_quantity": 1, "min_price": 3000000 } } }, "excludes": {} }, "benefits": { "entity": "collection", "count": 1, "items": [ { "type": "instant_discount", "applicable_on": "line_item", "value": 10, "max_benefit_value": 150000, "limit_type": "UPTO", "unit": "PERCENTAGE", "calculated_benefit_value": 150000, "benefit_breakup": [ { "sku": "IPHONE16_128", "brand": "apple", "eligible_quantity": 1, "calculated_benefit_value": 150000 } ] } ] } } ] } }, { "entity": "offer", "id": "offer_CART_002", "display_name": "โ‚น2,000 Off with HDFC Bank Credit Cards", "status": "ACTIVE", "benefits_types": ["instant_discount"], "eligible": true, "rules": { "entity": "collection", "count": 1, "items": [ { "criteria": { "includes": { "payment_instrument": { "methods": ["card"], "card": { "issuers": ["HDFC"], "types": ["CREDIT"] } }, "order": { "applies_to": "cart", "min_amount": 10000000 } }, "excludes": {} }, "benefits": { "entity": "collection", "count": 1, "items": [ { "type": "instant_discount", "applicable_on": "cart", "value": 200000, "max_benefit_value": 200000, "limit_type": "FLAT", "unit": "FIXED", "calculated_benefit_value": 200000 } ] } } ] } } ] }, "ineligible": { "entity": "collection", "count": 1, "items": [ { "entity": "offer", "id": "offer_MULTISKU_002", "display_name": "5% Off on OnePlus Phones", "status": "ACTIVE", "benefits_types": ["instant_discount"], "eligible": false, "rules": { "entity": "collection", "count": 1, "items": [ { "criteria": { "includes": { "payment_instrument": { "methods": ["card"], "card": { "issuers": ["HDFC"], "types": ["CREDIT"] } }, "order": { "applies_to": "line_items", "min_amount": 2000000, "line_item": { "skus": { "type": "list", "values": ["ONEPLUS_13_256", "ONEPLUS_13_512"] }, "brands": ["oneplus"], "min_quantity": 1, "min_price": 2000000 } } }, "excludes": {} }, "benefits": { "entity": "collection", "count": 1, "items": [ { "type": "instant_discount", "applicable_on": "line_item", "value": 5, "max_benefit_value": 100000, "limit_type": "UPTO", "unit": "PERCENTAGE" } ] } } ] } } ] } } ``` ### Response Parameters **matched** `object` Offers that match the cart and payment instrument: `entity` (always `collection`), `count` and `items`. Each item has every [offer field](#offer-object) and `eligible`, which is always `true`. The benefits in each item include the calculated fields below. **matched.items\[].rules.items\[].benefits.items\[].calculated\_benefit\_value** `integer` Total discount from this benefit in paise. Use this value. Do not add up `benefit_breakup` yourself. **matched.items\[].rules.items\[].benefits.items\[].benefit\_breakup** `array` Discount on each SKU. Present only for SKU-level offers when you pass `criteria.order.line_items`. * `sku`: SKU identifier from the request. * `brand`: Brand from the request. * `eligible_quantity`: Units eligible for the offer. It can be lower than the cart quantity if a per-customer limit applies. * `calculated_benefit_value`: Discount in paise for the eligible units of this SKU. **ineligible** `object` Offers that do not apply to this order: `entity` (always `collection`), `count` and `items`. An offer is ineligible when, for example, no SKU in the cart matches it, the payment instrument does not meet its conditions or the order amount is below its minimum. Present only when you pass `ineligible.include` as `true`. Each item has every [offer field](#offer-object) and `eligible` as `false`. `benefit_breakup` is empty for these offers. ## Errors | API | HTTP status | Scenario | `reason` | `field` | | - | - | - | - | - | | Fetch Offers | 400 | `status` is not a supported value. | `input_validation_failed` | `status` | | Fetch Offers | 400 | `ends_at` is before `starts_at`. | `input_validation_failed` | `ends_at` | | Fetch Offers | 400 | `count` is more than 100. | `input_validation_failed` | `count` | | Match Offers | 400 | `criteria.offers` has more than 20 entries. | `input_validation_failed` | `criteria.offers` | | Match Offers | 400 | A line item `quantity` is less than 1. | `input_validation_failed` | `criteria.order.line_items[n].quantity` | | Match Offers | 429 | Rate limit exceeded. | `rate_limit_exceeded` | โ€” | | Both | 401 | The API key is invalid or missing. | `authentication_failed` | โ€” | ### Related Information * [About Offers](/docs/payments/offers) * [Create Offers](/docs/payments/offers/create) * [Integrate Offers with Standard Checkout](/docs/payments/offers/standard-integration) * [SKU and Brand Offers on Standard Checkout](/docs/payments/offers/sku-offers) # About Low Cost EMI Offers Source: https://razorpay.com/docs/payments/offers/low-cost-emi Provide Low Cost EMI Offers to customers at the Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India With Low Cost EMI, you can now balance providing affordable financing to customers while maintaining a sustainable financial model. You can decide the cost to subvent for each EMI tenure and the customer bears the remaining cost. This approach ensures that customers enjoy the benefits of EMI at an affordable price, helping you minimise the overall cost. > [!NOTE] > > **Handy Tips** > > You can create Low Cost EMI Offers on Credit and Debit card EMIs only. ## Advantages > [tab] For Businesses > > * Attracts more customers put off by high upfront costs, resulting in up to 20% sales boost. > * Businesses maintain financial health by sharing EMI costs with customers, thus balancing their books effectively. > * Offering extended EMI plans encourages customers to afford and consider premium products, ultimately boosting the average order value by up to 30%. > * Razorpay's user-friendly offer engine streamlines Low Cost EMI implementation with a few clicks, reducing entry barriers for businesses. > [tab] For Customers > > * Customers can spread costs over time, making expensive items accessible to more people. > * Businesses covering part of the installments reduce the overall cost, easing customers' financial burden. > * Longer EMI terms offer budget flexibility, allowing customers to align plans with their financial goals. > [!NOTE] > > **Handy Tips** > > An EMI discount will be applied to the customer's purchase to partially cover the interest the bank charges. For example, if the bank's interest is 4.5%, you can partially cover 3%, and the customer bears the remaining 1.5%. ## Example Let us consider the example of a customer buying a mobile phone worth โ‚น15,000 on Low Cost EMI on a 3-month EMI period. The bank charges 16% interest per annum. ### Calculation of EMI The Low Cost EMI calculation is given below: > [tab] For Businesses > > | Components | Amount/Interest Rate/Months | > | - | - | > | Cost of mobile phone | โ‚น15,000 | > | Tenure | 3 months | > | Annual interest rate | 16% | > | Effective interest rate for 3 months | 2.61% | > | Interest subvented by you | 2% | > | Discount offered @ 2% | (-) โ‚น300 | > | Amount paid to you after discount | โ‚น14,700 | > [tab] For Customers > > | Components | Amount/Interest Rate/Months | > | - | - | > | Amount repaid to bank in EMI | โ‚น15,000 | > | Effective interest paid to bank @ 0.61% for 3 months | โ‚น91.5 | > | Net amount paid | โ‚น15,091.5 | > [!WARNING] > > **Watch Out!** > > Razorpay pricing is not included in this. It is applied in addition to the above amount. ### Related Information * [Create Low Cost EMI Offers from the Dashboard](/docs/payments/offers/low-cost-emi/create) * [Integrate Low Cost EMI Offers with Standard Checkout](/docs/payments/offers/low-cost-emi/standard-integration) * [Tutorial: How to Create Low Cost EMI Offers](/docs/payments/offers/low-cost-emi/tutorial) * [Low Cost EMI FAQs](/docs/payments/offers/low-cost-emi/faqs) * [EMIยฒ](/docs/payments/payment-gateway/emiยฒ) # Create Low Cost EMI Offers Source: https://razorpay.com/docs/payments/offers/low-cost-emi/create Create Low Cost EMI Offers from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India A Low Cost EMI is an offer where you can decide the cost to subvent for each EMI tenure and the customer bears the remaining cost. This approach ensures that customers enjoy the benefits of EMI at an affordable price, helping you minimise the overall cost. > [!NOTE] > > **Handy Tips** > > Once you create a Low Cost EMI offer, you cannot edit it. To make changes, disable the previous offer and create a new one. ## Steps to Create Low Cost EMI Offers Watch this video to see how to create an offer. [Create Low Cost EMI Offer](https://www.youtube.com/embed/fXYnZJT7LS0?si=BaTDkhpxNPSqK91Z) To create Low Cost EMI offers: 1. Log in to the Dashboard. 2. Navigate to **Offers** and click **+ Create No & Low Cost EMI**. ![Create a Low Cost EMI offer](https://razorpay.com/docs/build/browser/assets/images/offers-offers-dashboard.jpg) 3. The **Create an Offer** wizard appears with the following four sections. Enter details in all these sections to create the offer. * [**Description**](#description) * [**Discount Type**](#discount-type) * [**Applicable On**](#applicable-on) * [**Additional Offer Type**](#additional-offer-type) * [**Offer Validity**](#offer-validity) You can review the offer configurations at the end under the [**Overview**](#overview) tab. ## Description In the **Description** section, enter the following details. All the fields are mandatory. 1. **Offer Name**: Enter the name of the offer. For example, **Diwali Dhamaka**. This appears at the Checkout. 2. **Display Text**: Enter a meaningful description for the offer. For example, **Low Cost EMI Offers**. This appears at the Checkout. 3. **Terms**: Enter the terms and conditions for this offer. 4. Click **Next**. ![Enter the offer details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-description.jpg) ## Discount Type In the **Discount Type** section, enter the discount details that should be applied to the offer. 1. **Minimum Order amount**: Enter the minimum bill amount for which the Low Cost EMI Offer can be applied. For example, the offer can be applied to a minimum amount of **โ‚น4,000**. This is a mandatory field. 2. **Maximum Order amount**: Enter the maximum bill amount for which the Low Cost EMI Offer can be applied. For example, the offer can be applied to a maximum amount of **โ‚น1,00,000**. 3. Click **Next**. ![Enter the discount details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-discount-type.jpg) ## Applicable On Under the **Applicable On** tab, fill in the following details: 1. **Issuer**: Select the bank issuing the Low Cost EMI and click **Next**. 2. **EMI Tenure**: Select the tenures to be listed at the Checkout. 3. **EMI Offer Type**: Select **Low Cost EMI** from the drop-down list and configure the interest rate that you will bear for each tenure. The remaining interest rate is auto-filled which is borne by the customer. 4. Click **Next**. ![Enter the payment method details](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-applicable-on.jpg) ## Additional Offer Type > [!NOTE] > > **Feature Request** > > This feature is being released out gradually and may not be available to all businesses yet. In the Additional Offer Type section, you can configure extra incentives to make your Low Cost EMI offer more attractive to customers. This step allows you to provide additional discounts or cashback rewards on top of the reduced interest EMI benefit. > [!NOTE] > > **Handy Tip** > > This additional offer will be applied on top of the EMI discount. 1. **Additional Offer**: From the dropdown menu, select the type of additional offer you want to provide: * **Instant Discount**: Provides an immediate reduction in the order amount at the time of purchase. * **Cashback**: Credits the discount amount back to the customer's account after successful payment completion. > [!WARNING] > > **Watch Out!** > > Please note that cashback processing is handled externally and not managed by Razorpay. 2. **Tenures Applicable**: Select the specific EMI tenures for which this additional offer applies. You can choose from the tenures that were configured in the previous step. 3. **Discount**: Choose between a flat amount or a percentage-based discount: * **Flat**: Enter a fixed discount amount in rupees. * **Percentage**: Enter a percentage-based discount with a maximum limits. 4. **Discount Worth**: Enter the discount amount in cash value. For example, โ‚น1000. The field shows "Discount worth in cash" as a helper text to clarify the input format 5. Click **Next**. ![Configure additional offer type for enhanced customer benefits](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-applicable-offer-type.jpg) ## Offer Validity In the **Offer Validity** tab, set how long the offer should be valid and how you want to handle the payment failure situations: 1. **Starting On**: Select the **Starts Immediately** check box for the offer to come into effect immediately. Alternatively, you can select the date and time the created Offer should become active. 2. **Expires On**: Select the date and time the offer should end. 3. **On Payment Failure**: Define how to handle payment failure. * **Do not allow payment to go through**: The payment has failed. * **Allow customer to pay without availing offer**: The payment is allowed even though the set validations are not met. However, the offer is not applied to the bill amount. The customer will be charged the entire order amount. 4. **Max Usage**: Set the number of times the offer should be applied across all transactions. For example, **100**. 5. **Show Offer on Checkout**: Select this check box for the created offer to be displayed for all Standard Checkout payments including [Payment Links](/docs/payments/payment-links). 6. Click **Next**. ![Enter the offer validity details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-offer-validity.jpg) ## Overview Click the **Overview** tab to view the offer summary you just created. 1. **Terms and Conditions**: Select the check box after you have read the disclaimer. 2. Click **Create EMI Offer**. ![Check the terms and conditions and create an offer](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-overview.jpg) By default, all the created offers are in the **enabled** state. ## Test the Low Cost EMI Offer You can test the created Low Cost EMI offer for all Standard Checkout payments, including [Payment Links](/docs/payments/payment-links), [Payment Button](/docs/payments/payment-button), [Payment Pages](/docs/payments/payment-pages) and so on. > [!NOTE] > > **Handy Tips** > > * You can toggle between Live and Test Modes on your **Dashboard**. Navigate to the top menu ribbon and click the drop-down icon against **Live Mode**. Toggle to **Test Mode** and test the offers enabled. > > * You can make test payments using one of the payment methods at the Checkout. No money is deducted from your account as this is a simulated transaction. We will test the offer using a valid Payment Link for this example. Follow the steps given below: 1. Select the **Payment Link Id** you wish to test the created offer from the Dashboard. ![Payment Link Test Offer](https://razorpay.com/docs/build/browser/assets/images/offer-dashboard-test.jpg) 2. Copy the **Payment Link** URL and open it in your browser. 3. Enter your contact details and click **Proceed**. 4. Select **EMI**. 5. Select the payment option you created for the offer on from the Dashboard. Select the EMI plan and enter the required [test details](/docs/payments/payments/test-card-details). 6. Click **Pay via EMI** 7. Select **Success** or **Failure**, depending on which flow you wish to test. 8. You should see a confirmation message depending on the flow you have selected. On successful payment, you should have received a discount on your payment. You can verify this by navigating to the **Transactions** โ†’ **Payments** tab and viewing the payment details. ## Disabling Low Cost EMI Offers To disable Low Cost EMI offers: 1. Log in to the Dashboard. 2. Navigate to **Offers** to view a summary of the existing offers. 3. Click the required Offer\_id. 4. Go to the **Status** field in the pane that appears and click **Disable**. ![Disable an Offer](https://razorpay.com/docs/build/browser/assets/images/disable-offer.jpg) 5. Click **Yes, Disable**. ## Next Steps Now that the Low Cost EMI is created, you should integrate it with the Checkout for customers to avail the EMI scheme. Know more about [integrating Low Cost EMI Offers with Standard Checkout](/docs/payments/offers/low-cost-emi/standard-integration). ### Related Information * [Tutorial - How to Create Low Cost EMI Offers](/docs/payments/offers/low-cost-emi/tutorial) * [Low Cost EMI FAQs](/docs/payments/offers/low-cost-emi/faqs) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/offers/low-cost-emi/faqs Find answers to frequently asked questions about Low Cost EMI. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] Why should I run Low Cost EMI Offers? > > Running Low Cost EMI Offers helps you attract a wider customer base by reducing the upfront cost barrier. This leads to increased sales and higher average order values. > > Additionally, offering discount on interest for longer tenures sets you apart in a competitive market and opens opportunities for upselling, contributing to overall business growth and financial stability. > [accordion] Who bears the cost for the discount given in Low Cost EMI? > > As a business, you would bear the partial cost of Low Cost EMI, which appears as an upfront discount on the product cost to the end consumer. > > You can decide the cost to subvent for each tenure and the customer bears the remaining cost. The interest percentage will vary by the bank and the EMI tenure. Know more about the [EMI Calculation](/docs/payments/offers/low-cost-emi#calculation-of-emi). > [accordion] Which payment methods can be used for Low Cost EMI? > > Low Cost EMI is available on all credit and debit card EMIs. > [accordion] Will the customers' banks continue to charge them interest? > > Yes, the customers' banks will continue to charge them interest. However, partial interest subvented by you appears as an upfront discount to the customers at the time of purchase. > [accordion] Can I enable Low Cost EMIs at the Checkout? > > Yes. Razorpay enables you to display Low Cost EMIs at the Checkout. Know more about [Low Cost EMIs](/docs/payments/offers/low-cost-emi). > [accordion] How can I know about the percentage discount of the Low Cost EMI that I bear? > > You can decide how much percentage of the total interest you want to subvent during offer creation. This appears as an upfront discount on the product cost and the customer bears the remaining cost. > [accordion] How does the Low Cost EMI settlement work? > > The order amount minus the discount subvented by you is settled in your bank account as per your [settlement cycle](/docs/payments/settlements#settlement-cycle). > > > [!WARNING] > > > > **Watch Out!** > > > > Razorpay pricing is not included in this settlement, it will be applied in addition to the above amount. > [accordion] Can I create Low Cost EMI offers on Cardless EMI? > > No, we do not support Low Cost EMI offers on Cardless EMI. # Integrate Low Cost EMI Offers with Standard Checkout Source: https://razorpay.com/docs/payments/offers/low-cost-emi/standard-integration Display general or order specific Low Cost EMI Offers on Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India After creating [Low Cost EMI Offers](/docs/payments/offers/low-cost-emi/create) from the Dashboard, you have to integrate them with Razorpay Standard Checkout so that your customers can avail them while making payments. > [!WARNING] > > **Integrate Offers with Orders API** > > If you use our JS, SDK files or other ecommerce plugins, you **should** integrate offers with the Orders API. ## Exception You need **not** integrate offers with Orders API, if you use any of the following Razorpay products or plugins to accept payments: * Plugins: Razorpay Magento, Shopify, or WooCommerce. * Products: Payment Links, Payment Buttons, Payment Pages and Invoices. This is because Razorpay automatically creates orders for these products or plugins when customers initiate payment at the Checkout. ## Validation Criteria Only those Low Cost EMI offers that pass the following validations are displayed at the Checkout: | Criteria | Description | | - | - | | **Amount Match** | Order amount should be more than or equal to the [Minimum Order Amount](/docs/payments/offers/low-cost-emi/create) set in an offer. | | **EMI Offer Type** | Select **Low Cost EMI** as the offer type and configure the interest that you and your customer will bear. | | **Validity** | Offer should be in the active or enabled state. | | **Date Validation** | The current date lies within the range of the `start` and `end` date defined in the offer. | | **Usage** | You can define the maximum number of times an offer can be availed. If this limit is met, the offer will not be displayed on Checkout. | | **Show Offer on Checkout** | This option must be enabled while the offer is created. This determines whether the offer will be displayed at the Checkout or not. | ## Display Low Cost EMI Offers at Checkout There are two ways in which you can display Low Cost EMI offers at the Razorpay Checkout: * [Display Low Cost EMI Offers by Default](#method-1-display-low-cost-emi-offers-by-default) * [Display Limited Low Cost EMI Offers](#method-2-display-limited-low-cost-emi-offers) ## Method 1: Display Low Cost EMI Offers by Default This is the easiest way to display Low Cost EMI offers at the Checkout. While [creating the Low Cost EMI offer](/docs/payments/offers/low-cost-emi/create) from the Dashboard, enable the **Show Offer on Checkout** option. ![Enter the offer validity details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-offer-validity.jpg) ## Method 2: Display Limited Low Cost EMI offers To display a specific Low Cost EMI offer at Checkout, you should associate the offer with an order. You can pass the `offers` array as a request attribute in the Create Orders API. Some use cases: * If you have multiple product lines running on the same account and have certain business logic on your side for displaying Low Cost EMI offers. * The discount has already been applied, and you would like to restrict the payment method to avail the offer. To display offers: 1. [Create an Offer](#step-1-create-an-offer-from-the-dashboard). 2. [Pass offer\_id in Orders API](#step-2-pass-offer_id-in-orders-api). 3. [Pass order\_id and Trigger Checkout](#step-3-pass-order_id-and-trigger-the-checkout). ### Step 1: Create an Offer from the Dashboard You can [create Low Cost EMI offers](/docs/payments/offers/create#create-offers) from the Dashboard. Let us say you have created a Low Cost EMI offer `offer_ANZoaxsOww2X53`, such that a discount of โ‚น200 is applicable on all transactions done through AXIS netbanking only. ### Step 2: Pass offer\_id in Orders API Create an order using the Orders API and pass the `offer_id` as a request parameter. #### Sample Code ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/orders \ -H "Content-Type: application/json" \ -d '{ "amount": 1000000, "currency": "INR", "offers": [ "offer_ANZoaxsOww2X53" ] }' ``` ```java Java theme={null} RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); ArrayList Offer = new ArrayList(); Offer.add("offer_JTUADI4ZWBGWur"); JSONObject orderRequest = new JSONObject(); orderRequest.put("amount", 1000000); // amount in the smallest currency unit orderRequest.put("currency", "INR"); orderRequest.put("offers", Offer); Order order = razorpayclient.orders.create(orderRequest); System.out.print(order); ``` ```python Python theme={null} import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.order.create({ "amount": 1000000, "currency": "INR", "receipt": "receipt#1", "offers": [ "offer_ANZoaxsOww2X53" ] }) ``` ```php PHP theme={null} $api = new Api($key_id, $secret); $api->order->create(array('amount' => 1000000, 'currency' => 'INR', 'offers'=> array('offer_JTUADI4ZWBGWur'))); ``` ```ruby Ruby theme={null} require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') order = Razorpay::Order.create amount: 50000, currency: 'INR', receipt: 'receipt#1', offers: [ 'offer_ANZoaxsOww2X53"' ] ``` ```javascript Node.js theme={null} var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.orders.create({ amount: 1000000, currency: "INR", receipt: "receipt#1", offers: [ "offer_ANZoaxsOww2X53" ] }) ``` ```go Go theme={null} import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ "amount": 50000, "currency": "INR", "receipt": "receipt#1", "offers": []interface{}{ "offer_JTUADI4ZWBGWur", }, } body, err := client.Order.Create(data, nil) ``` ```json Response theme={null} { "id": "order_CjyoZFRpB8r0AH", "entity": "order", "amount": 1000000, "amount_paid": 0, "amount_due": 1000000, "currency": "INR", "receipt": null, "offer_id": "offer_ANZoaxsOww2X53", "offers": [ "offer_ANZoaxsOww2X53" ], "status": "created", "attempts": 0, "notes": [], "created_at": 1561018912 } ``` #### Request Parameters `amount` *mandatory* : `integer` Enter the amount for which the order is to be created in currency subunits. For example, for an amount of โ‚น10000, enter `1000000`. `currency` *mandatory* : `string` ISO code of the currency associated with the order amount. Here, it is `INR`. `offers` *mandatory* : `array` Unique identifier of the offer. Pass the `offer_id` obtained from the response of the previous step. ### Step 3: Pass Order\_id and Trigger the Checkout The `order_id` obtained in the previous step can be passed to the Checkout form as follows: ```javascript Checkout theme={null} ``` Know more about [Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). ## Next Steps After the customer has availed the offers and made the payment at the Checkout, you can track the status of the payments: * From the Dashboard. * By [configuring webhooks](/docs/webhooks). * By polling our [payment APIs](/docs/api/payments). ### Related Information * [About Low Cost EMI Offers](/docs/payments/offers/low-cost-emi) * [Create Low Cost EMI Offers](/docs/payments/offers/low-cost-emi/create) * [Tutorial - How to Create Low Cost EMI Offers](/docs/payments/offers/low-cost-emi/tutorial) * [Low Cost EMI FAQs](/docs/payments/offers/low-cost-emi/faqs) * [Disable Offers](/docs/payments/offers/low-cost-emi/create#disabling-low-cost-emi-offers) # Tutorial - How to Create Low Cost EMI Offers Source: https://razorpay.com/docs/payments/offers/low-cost-emi/tutorial Create Low Cost EMI Offers from the Razorpay Dashboard using an example. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Let us create an offer from the Dashboard using an example. Assume you are the manager of Acme Mobiles and Accessories, an online smartphone store. To attract customers and increase sales, you want to provide discounts on online purchases. You want to create a Diwali Offer with the following settings: | Offer Criteria | Offer Information | | - | - | | Offer Name | Diwali Dhamaka | | Display Text | Low Cost EMI Offers | | Offer Type | Instant | | Minimum Order Amount | โ‚น4,000 | | Maximum Order Amount | โ‚น1,00,000 | | Issuing Bank | ICICI Bank | | EMI Tenures | 6, 9 and 12 months | ## Create Low Cost EMI Offers Watch this video to see how to create an offer. [Create a Low Cost EMI Offer - Tutorial](https://www.youtube.com/embed/jfk8xaducVw?si=Y0khkOCVn5J4lcaF) To create Low Cost EMI offers: 1. Log in to the Dashboard. 2. Navigate to **Offers** and click **+ Create No & Low Cost EMI**. ![Create a Low Cost EMI offer](https://razorpay.com/docs/build/browser/assets/images/offers-offers-dashboard.jpg) 3. The **Create an Offer** wizard appears with the following four sections. Enter details in all these sections for the offer to be created: * [**Description**](#description) * [**Discount Type**](#discount-type) * [**Applicable On**](#applicable-on) * [**Offer Validity**](#offer-validity) You can review the offer configurations at the end under the [**Overview**](#overview) tab. ### Description In the **Description** section, enter the following details. All the fields are mandatory. 1. **Offer Name**: Enter the name of the offer. For example, **Diwali Dhamaka**. 2. **Display Text**: Enter a meaningful description for the offer. For example, **Low Cost EMI Offers**. This appears at the Checkout. 3. **Terms**: Enter the terms and conditions for the offer. 4. Click **Next**. ![Enter the offer details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-description.jpg) ### Discount Type In the **Discount Type** section, enter the discount details that should be applied for the offer. 1. **Minimum Order amount**: Enter the minimum bill amount for which the Low Cost EMI offer can be applied. For example, a customer must purchase an article of at least **โ‚น4,000** to avail Low Cost EMI. This is a mandatory field. 2. **Maximum Order amount**: Enter the maximum bill amount for which the Low Cost EMI offer can be applied. For example, customers can avail Low Cost EMI if they purchase a phone worth a maximum of **โ‚น1,00,000**. 3. Click **Next**. ![Enter the discount details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-discount-type.jpg) ### Applicable On In the **Applicable On** tab, fill in the following details: 1. **Issuer**: Select the bank that will be issuing the Low Cost EMI. For example, `ICICI Bank`. 2. **EMI Tenure**: Select the tenure to be listed at the Checkout. For this example, we will select 6, 9 and 12 months as the supported tenures. 3. **EMI Offer Type**: Select **Low Cost EMI** from the drop-down list and configure the interest rate that you will bear for each tenure. The remaining interest rate is auto-filled and is borne by the customer. For example, enter **2.55** in the **Interest % borne by merchant (you**)\*\* field. The remaining **1.95**\*\* is auto-filled in the **Interest % borne by your customer** field. 4. Click **Next**. ![Enter the payment method details](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-applicable-on.jpg) ### Offer Validity Under the **Offer Validity** tab, set how long the offer should be valid and how you want to handle the payment failure situations: 1. **Starting On**: Select the **Starts Immediately** check box for the offer to come into effect immediately. 2. **Expires On**: Select the date and time the offer should end. For example, **30 Nov 2023** at **11:59pm**. 3. **On Payment Failure**: Define how to handle payment failure. * **Do not allow payment to go through**: The payment has failed. * **Allow customer to pay without availing offer**: The payment is allowed even though the set validations are not met. However, the offer is not applied to the bill amount. The customer will be charged the entire order amount. \ We will allow payments to go through without an offer being availed. 4. **Max Usage**: Set the number of times the offer should be applied across all transactions. For example, **100**. 5. **Show Offer on Checkout**: Select this check box for the created offer to be displayed for all Standard Checkout payments including [Payment Links](/docs/payments/payment-links). 6. Click **Next**. ![Enter the offer validity details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-offer-validity.jpg) ### Overview Click the **Overview** tab to view the offer summary you just created. 1. **Terms and Conditions**: Select the check box after you have read the disclaimer. 2. Click **Create Low Cost EMI**. ![Check the terms and conditions and create an offer](https://razorpay.com/docs/build/browser/assets/images/offers-low-cost-emi-overview.jpg) By default, all the created offers are in the **enabled** state. ## Integrate Low Cost EMI Offer with Standard Checkout After the offer is created, you should integrate it with Checkout so that customers can avail discounts while making payments. Know more about [integrating offers with Standard Checkout](/docs/payments/offers/low-cost-emi/standard-integration). ### Related Information * [About Low Cost EMI Offers](/docs/payments/offers/low-cost-emi) * [Low Cost EMI FAQs](/docs/payments/offers/low-cost-emi/faqs) * [EMIยฒ Suite](/docs/payments/payment-gateway/emiยฒ) # About No Cost EMI Offers Source: https://razorpay.com/docs/payments/offers/no-cost-emi Provide No Cost EMI Offers to customers at the Razorpay Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India No Cost EMI is an offer by which your customer pays the EMI provider only the product price, which is equally divided over the repayment timeline. Know more about [No Cost EMIs](/docs/payments/payment-methods/emi/no-cost-emi) as a Razorpay payment method. > [!WARNING] > > **Watch Out!** > > * We do not support offers on international currency and the CFB (Customer Fee Bearer) model. > * We do not support No Cost EMI offers on Cardless EMI. > [!NOTE] > > **Handy Tips** > > An EMI discount will be applied to the customer's purchase to cover the interest the bank charges. For example, if the bank's interest is โ‚น100, an EMI discount of โ‚น100 will be applied to the order, thereby making the effective interest 0. > > The customer will be charged the GST on interest by the bank. This interest and GST will show up on the customer's bank statement. ## Example Let us consider the example of a customer buying a mobile phone worth โ‚น15,000 on No Cost EMI on a 3-month EMI period. The bank charges 15% interest per annum. Additionally, the bank may charge the customer GST on the interest. ``` Cost of mobile phone: โ‚น15,000 Tenure of No Cost EMI: 3 months Interest Rate: 15% per annum Interest Amount: โ‚น367.33 No Cost EMI Amount: โ‚น5,000 Actual loan amount charged on customer's card (Cost of Mobile Phone minus Interest Amount): โ‚น14,632.67 ``` The No Cost EMI calculation is given below: | Month | Outstanding loan at the start of the month | EMI | Interest | Loan Principal Paid | Outstanding principal at the end of the month | GST on Interest at 18% | EMI + GST | | - | - | - | - | - | - | - | - | | 1 | 14632.67 | 5000 | 182.91 | 4817.09 | 9815.58 | 32.92 | 5032.92 | | 2 | 9815.58 | 5000 | 122.69 | 4877.31 | 4938.27 | 22.09 | 5022.09 | | 3 | 4938.27 | 5000 | 61.73 | 4938.27 | Nil | 11.11 | 5011.11 | | Total | | 15000 | 367.33 | 14632.67 | | 66.12 | 15066.12 | > [!NOTE] > > **Customers Pay GST on Interest** > > In a no cost EMI, you provide a discount on the principal. The monthly installment paid by the customer consists of this principal and the interest. As the issuing banks still charge the interest, the customer will be charged the GST on interest by the bank. ## Calculation of EMI EMI is generally calculated using the below formula: `EMI = [P x R x (1+R)แดบ]/[(1+R)แดบโปยน]` where\ **P** = Principal\ **R** = Interest rate per month\ **N** = Number of installations of the EMI For No Cost EMI, the EMI value is calculated as A/N, where **A** is the price of the product. From the above example, EMI is โ‚น15000/3 = โ‚น5000 We will replace this value in the above equation to calculate the value of P. `5000 = [P x (0.15/12) x (1+(0.15/12))ยณ]/[(1+(0.15/12))ยณโปยน]` **P** comes out to be โ‚น14632.67, and the discount borne by you is โ‚น367.33. This is equal to 2.45% of the original amount. ### Related Information * [Create No Cost EMI Offers from the Dashboard](/docs/payments/offers/no-cost-emi/create) * [Integrate No Cost EMI Offers with Standard Checkout](/docs/payments/offers/no-cost-emi/standard-integration) * [Tutorial on How to Create No Cost EMI Offers](/docs/payments/offers/no-cost-emi/tutorial) * [No Cost EMI FAQs](/docs/payments/offers/low-cost-emi/faqs) * [EMIยฒ](/docs/payments/payment-gateway/emiยฒ) # Create No Cost EMI Offers Source: https://razorpay.com/docs/payments/offers/no-cost-emi/create Create No Cost EMI Offers from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India A No cost EMI offer is a plan where your customers can pay for a product or service in affordable monthly installments with zero interest. This means that the customers are only paying for the product's total price, with no extra charges. You can create No Cost EMI offers from the Dashboard. > [!NOTE] > > **Handy Tips** > > Once you create a No Cost EMI offer, you cannot edit it. To make changes, disable the previous offer and create a new one. ## Steps to Create No Cost EMI Offers Watch this video to see how to create a No Cost EMI offer. [YouTube video player](https://www.youtube.com/embed/aUThK0ADspM?si=F1FlxE9mxXsNyFkb) To create No Cost EMI offers: 1. Log in to the Dashboard. 2. Navigate to **Offers** and click **+ Create No & Low Cost EMI**. ![Create a No Cost EMI offer](https://razorpay.com/docs/build/browser/assets/images/offers-offers-dashboard.jpg) 3. The **Create an Offer** wizard appears with the following four sections. Enter details in all these sections to create the offer. * [**Description**](#description) * [**Discount Type**](#discount-type) * [**Applicable On**](#applicable-on) * [**Additional Offer Type**](#additional-offer-type) * [**Offer Validity**](#offer-validity) You can review the offer configurations at the end under the [**Overview**](#overview) tab. ### Description In the **Description** section, enter the following details. All the fields are mandatory. 1. **Offer Name**: Enter the name of the offer. For example, **Diwali Dhamaka**. This appears at the Checkout. 2. **Display Text**: Enter a meaningful description for the offer. For example, **No Cost EMI Offer**. This appears at the Checkout. 3. **Terms**: Enter the terms and conditions for this offer. 4. Click **Next**. ![Enter the offer details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-description.jpg) ### Discount Type In the **Discount Type** section, enter the discount details that should be applied for the offer. 1. **Minimum Order amount**: Enter the minimum bill amount for which the No Cost EMI Offer can be applied. For example, the offer can be applied to a minimum amount of **โ‚น3,000**. This is a mandatory field. 2. **Maximum Order amount**: Enter the maximum bill amount for which the No Cost EMI Offer can be applied. For example, the offer can be applied to a maximum amount of **โ‚น4,00,000**. 3. Click **Next**. ![Enter the discount details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-discount-type.jpg) ### Applicable On Under the **Applicable On** tab, fill in the following details: 1. **Issuer**: Select the bank issuing the No Cost EMI and click **Next**. 2. **EMI Tenure**: Select the tenures to be listed at the Checkout. 3. **EMI Offer Type**: Select **No Cost EMI** from the drop-down list. This also displays the discount that you will bear. 4. Click **Next**. ![Enter the payment method details](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-applicable-on.jpg) ### Additional Offer Type > [!NOTE] > > **Feature Request** > > This feature is being released out gradually and may not be available to all businesses yet. In the Additional Offer Type section, you can configure extra incentives to make your No Cost EMI offer more attractive to customers. This step allows you to provide additional discounts or cashback rewards on top of the zero-interest EMI benefit. > [!NOTE] > > **Handy Tip** > > This additional offer will be applied on top of the EMI discount. 1. **Additional Offer**: From the dropdown menu, select the type of additional offer you want to provide: * **Instant Discount**: Provides an immediate reduction in the order amount at the time of purchase. * **Cashback**: Credits the discount amount back to the customer's account after successful payment completion. > [!WARNING] > > **Watch Out!** > > Please note that cashback processing is handled externally and not managed by Razorpay. 2. **Tenures Applicable**: Select the specific EMI tenures for which this additional offer applies. You can choose from the tenures that were configured in the previous step. 3. **Discount**: Choose between a flat amount or a percentage-based discount: * **Flat**: Enter a fixed discount amount in rupees. * **Percentage**: Enter a percentage-based discount with a maximum limits. 4. **Discount Worth**: Enter the discount amount in cash value. For example, โ‚น1000. The field shows "Discount worth in cash" as a helper text to clarify the input format 5. Click **Next**. ![Configure additional offer type for enhanced customer benefits](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-applicable-offer-type.jpg) ### Offer Validity In the **Offer Validity** tab, set how long the offer should be valid and how you want to handle the payment failure situations: 1. **Starting On**: Select the **Starts Immediately** check box for the offer to come into effect immediately. Alternatively, you can select the date and the time from which the created Offer should become active. 2. **Expires On**: Select the date and time at which the offer should end. For example, **31 Oct 2020** at **11:59pm**. 3. **On Payment Failure**: Define how to handle payment failure. * **Do not allow payment to go through**: The payment is failed. * **Allow customer to pay without availing offer**: The payment is allowed even though the set validations are not met. However, the offer is not applied to the bill amount. The customer will be charged the entire order amount. 4. **Max Usage**: Set the number of times the offer should be applied across all transactions. For example, **100**. 5. **Show Offer on Checkout**: Select this check box for the created offer to be displayed for all Standard Checkout payments, including [Payment Links](/docs/payments/payment-links). 6. Click **Next**. ![Enter the offer validity details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-offer-validity.jpg) ### Overview Click the **Overview** tab to view the summary of the offer that you just created. 1. **Terms and Conditions**: Select the check box after you have read the disclaimer. 2. Click **Create EMI Offer**. ![Check the terms and conditions and create an offer](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-overview.jpg) By default, all the created offers are in the **enabled** state. ## Test the No Cost EMI Offer You can test the created No Cost EMI offer for all Standard Checkout payments, including [Payment Links](/docs/payments/payment-links), [Payment Button](/docs/payments/payment-button), [Payment Pages](/docs/payments/payment-pages) and so on. > [!NOTE] > > **Handy Tips** > > * You can toggle between Live and Test Modes on your **Dashboard**. Navigate to the top menu ribbon and click the drop-down icon against **Live Mode**. Toggle to **Test Mode** and test the offers enabled. > > * You can make test payments using one of the payment methods at the Checkout. No money is deducted from your account as this is a simulated transaction. For this example, we will test the offer on a valid Payment Link. Follow the steps given below: 1. Select the **Payment Link Id** you wish to test the created offer from the Dashboard. 2. Copy the **Payment Link** URL and open it in your browser. ![Payment Link Test Offer](https://razorpay.com/docs/build/browser/assets/images/no-cost-offer-dashboard-test.jpg) 3. Enter your contact details and click **Proceed**. 4. Select **EMI**. 5. Select the payment option you created the offer on from the Dashboard. Enter the required [test details](/docs/payments/payments/test-card-details). 6. Select Success or Failure, depending on which flow you wish to test. 7. You should see a confirmation message depending on the flow you have selected. On successful payment, you should have received a discount on your payment. You can verify this by navigating to the Transactions โ†’ Payments tab and viewing the payment details. ## Disabling No Cost EMI Offers To disable No Cost EMI offers: 1. Log in to the Dashboard. 2. Navigate to **Offers** to view a summary of the existing offers. 3. Click the required Offer\_id. 4. In the pane that appears, go to the **Status** field, click **Disable**. ![Disable an Offer](https://razorpay.com/docs/build/browser/assets/images/disable-offer.jpg) 5. Click **Yes, Disable**. ## Next Steps Now that the No Cost EMI is created, you should integrate it with the Checkout for customers to avail the EMI scheme. Know more about [integrating No Cost EMI Offers with Standard Checkout](/docs/payments/offers/no-cost-emi/standard-integration). ### Related Information * [Tutorial - How to Create No Cost EMI Offers](/docs/payments/offers/no-cost-emi/tutorial) * [No Cost EMI FAQs](/docs/payments/offers/low-cost-emi/faqs) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/offers/no-cost-emi/faqs Find answers to frequently asked questions about No Cost EMI. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] Who bears the cost for the discount given in No Cost EMI? > > You, as a merchant, would bear the cost of No Cost EMI. It will be given as an upfront discount on the product cost to the end consumer. The discount percentage will vary by the bank and period of EMI. > [accordion] Which payment methods can be used for No Cost EMI? > > No Cost EMI is available on all credit card and debit card EMI banks. > [accordion] Will the customers' banks continue to charge them interest? > > Yes, the customers' banks will continue to charge them interest. However, this interest charge has been provided to the customer as an upfront discount at the time of purchase, effectively giving them the benefit of a No Cost EMI. > [accordion] Can I enable No Cost EMIs at the Checkout? > > Yes. Razorpay enables you to display No Cost EMIs at the Checkout. Know more about [No Cost EMIs](/docs/payments/offers/no-cost-emi). > [accordion] How can I know about the percentage discount of the No Cost EMI that I bear? > > > [!NOTE] > > > > **Handy Tips** > > > > The banks charge GST to end consumers on the interest paid over and above the following amount. > > Calculations on the cost incurred by the merchant at all standard plan and tenures are listed below: > > | Amount (in INR) | Interest (in %) | Tenure (in Months) | Amount Paid by Customer | Monthly EMI | No Cost EMI Discount | Discount | Pricing | Total Cost (in %) | > | - | - | - | - | - | - | - | - | - | > | 10000 | 11% | 3 | 9,819.43 | 3333.33 | 180.57 | 1.81% | 3% | 4.81% | > | 10000 | 12% | 3 | 9,803.28 | 3333.33 | 196.72 | 1.97% | 3% | 4.97% | > | 10000 | 13% | 3 | 9,787.18 | 3333.33 | 212.82 | 2.13% | 3% | 5.13% | > | 10000 | 14% | 3 | 9,771.13 | 3333.33 | 228.87 | 2.29% | 3% | 5.29% | > | 10000 | 15% | 3 | 9,755.11 | 3333.33 | 244.89 | 2.45% | 3% | 5.45% | > | 10000 | 11% | 6 | 9686.85 | 1666.67 | 313.15 | 3.13% | 3% | 6.13% | > | 10000 | 12% | 6 | 9659.13 | 1666.67 | 340.87 | 3.41% | 3% | 6.41% | > | 10000 | 13% | 6 | 9631.53 | 1666.67 | 368.47 | 3.68% | 3% | 6.68% | > | 10000 | 14% | 6 | 9604.04 | 1666.67 | 395.96 | 3.96% | 3% | 6.96% | > | 10000 | 15% | 6 | 9576.68 | 1666.67 | 423.32 | 4.23% | 3% | 7.23% | > | 10000 | 11% | 9 | 9556.66 | 1111.11 | 443.34 | 4.43% | 3% | 7.43% | > | 10000 | 12% | 9 | 9517.80 | 1111.11 | 482.20 | 4.82% | 3% | 7.82% | > | 10000 | 13% | 9 | 9479.17 | 1111.11 | 520.83 | 5.21% | 3% | 8.21% | > | 10000 | 14% | 9 | 9440.77 | 1111.11 | 559.23 | 5.59% | 3% | 8.59% | > | 10000 | 15% | 9 | 9402.61 | 1111.11 | 597.39 | 5.97% | 3% | 8.97% | > | 10000 | 11% | 12 | 9428.80 | 833.33 | 571.20 | 5.71% | 3% | 8.71% | > | 10000 | 12% | 12 | 9379.23 | 833.33 | 620.77 | 6.21% | 3% | 9.21% | > | 10000 | 13% | 12 | 9330.04 | 833.33 | 669.96 | 6.70% | 3% | 9.70% | > | 10000 | 14% | 12 | 9281.21 | 833.33 | 718.79 | 7.19% | 3% | 10.19% | > | 10000 | 15% | 12 | 9232.76 | 833.33 | 767.24 | 7.67% | 3% | 10.67% | > | 10000 | 11% | 18 | 9179.92 | 555.56 | 820.08 | 8.20% | 3% | 11.20% | > | 10000 | 12% | 18 | 9110.15 | 555.56 | 889.85 | 8.90% | 3% | 11.90% | > | 10000 | 13% | 18 | 9041.13 | 555.56 | 958.87 | 9.59% | 3% | 12.59% | > | 10000 | 14% | 18 | 8972.85 | 555.56 | 1027.15 | 10.27% | 3% | 13.27% | > | 10000 | 15% | 18 | 8905.30 | 555.56 | 1094.70 | 10.95% | 3% | 13.95% | > | 10000 | 11% | 24 | 8939.84 | 416.67 | 1060.16 | 10.60% | 3% | 13.60% | > | 10000 | 12% | 24 | 8851.41 | 416.67 | 1148.59 | 11.49% | 3% | 14.49% | > | 10000 | 13% | 24 | 8764.21 | 416.67 | 1235.79 | 12.36% | 3% | 15.36% | > | 10000 | 14% | 24 | 8678.23 | 416.67 | 1321.77 | 13.22% | 3% | 16.22% | > | 10000 | 15% | 24 | 8593.43 | 416.67 | 1406.57 | 14.07% | 3% | 17.07% | > [accordion] How does the No Cost EMI settlement work? > > The order amount minus the entire interest subvented by you as a discount is settled in your bank account as per your [settlement cycle](/docs/payments/settlements#settlement-cycle). > > > [!WARNING] > > > > **Watch Out!** > > > > However, Razorpay pricing is not included in this settlement, it will be applied in addition to the above amount. > [accordion] Can I create No Cost EMI offers on Cardless EMI? > > No, we do not support No Cost EMI offers on Cardless EMI. # Integrate No Cost EMI Offers with Standard Checkout Source: https://razorpay.com/docs/payments/offers/no-cost-emi/standard-integration Display general or order specific No Cost EMI Offers on Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India After creating [No Cost EMI Offers](/docs/payments/offers/no-cost-emi/create) from the Dashboard, you must integrate them with the Razorpay Standard Checkout so your customers can avail of them while making payments. > [!WARNING] > > **Integrate Offers with Orders API** > > Using our JS, SDK files, or other Ecommerce plugins, you **should** integrate offers with the Orders API. ## Exception You need **not** integrate offers with Orders API if you use any of the following Razorpay products or plugins to accept payments: * Plugins: Razorpay Magento, Shopify, or WooCommerce. * Products: Payment Links, Payment Buttons, Payment Pages and Invoices. This is because Razorpay automatically creates orders for these products or plugins when customers initiate payment at the Checkout. ## Validation Criteria Only those No Cost EMI offers that pass the following validations are displayed at the Checkout: | Criteria | Description | | - | - | | **Amount Match** | Order amount should be more than or equal to the [Minimum Order Amount](/docs/payments/offers/no-cost-emi/create) set in an offer. | | **Validity** | Offer should be in the active or enabled state. | | **Date Validation** | The current date lies within the range of the offer's `start` and `end` dates. | | **Usage** | You can define the maximum number of times an offer can be availed. If this limit is met, the offer will not be displayed on Checkout. | | **Show Offer on Checkout** | This option must be enabled while the offer is created. This determines whether the offer will be displayed at the Checkout or not. | ## Display No Cost EMI Offers at Checkout There are two ways in which you can display No Cost EMI offers at the Razorpay Checkout: * [Display No Cost EMI Offers by Default](#method-1-display-no-cost-emi-offers-by-default) * [Display Limited No Cost EMI Offers](#method-2-display-limited-no-cost-emi-offers) ### Method 1: Display No Cost EMI Offers by Default This is the easiest way to display No Cost EMI offers at the Checkout. While [creating the No Cost EMI offer](/docs/payments/offers/no-cost-emi/create) from the Dashboard, enable the **Show Offer on Checkout** option. ![Enable the Show Offer on Checkout option](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-offer-validity.jpg) ### Method 2: Display Limited No Cost EMI offers To display a specific No Cost EMI offer at the Checkout, you should associate the offer with an order. You can pass the `offers` array as a request attribute in the Create Orders API. Some use cases: * If you have multiple product lines running on the same account and have certain business logic for displaying No Cost EMI offers. * The discount has already been applied, and you would like to restrict the payment method to avail the offer. To display offers: 1. [Create an Offer](#step-1-create-an-offer-from-the-dashboard). 2. [Pass offer\_id in Orders API](#step-2-pass-offer_id-in-orders-api). 3. [Pass order\_id and Trigger Checkout](#step-3-pass-order_id-and-trigger-the-checkout). ### Step 1: Create an Offer from the Dashboard You can [create No Cost EMI offers](/docs/payments/offers/create#create-offers) from the Dashboard. Let us say you have created a No Cost EMI offer `offer_ANZoaxsOww2X53`, such that a discount of โ‚น200 is applicable on all transactions done through AXIS netbanking only. [How to Create a No-Cost EMI Offer](https://www.youtube.com/embed/aUThK0ADspM?si=4tsQ5odC1AGa-1Sh) ### Step 2: Pass offer\_id in Orders API Create an order using the Orders API and pass the `offer_id` as a request parameter. #### Sample Code ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/orders \ -H "Content-Type: application/json" \ -d '{ "amount": 1000000, "currency": "INR", "offers": [ "offer_ANZoaxsOww2X53" ] }' ``` ```java Java theme={null} RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); ArrayList Offer = new ArrayList(); Offer.add("offer_JTUADI4ZWBGWur"); JSONObject orderRequest = new JSONObject(); orderRequest.put("amount", 1000000); // amount in the smallest currency unit orderRequest.put("currency", "INR"); orderRequest.put("offers", Offer); Order order = razorpayclient.orders.create(orderRequest); System.out.print(order); ``` ```python Python theme={null} import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.order.create({ "amount": 1000000, "currency": "INR", "receipt": "receipt#1", "offers": [ "offer_ANZoaxsOww2X53" ] }) ``` ```php PHP theme={null} $api = new Api($key_id, $secret); $api->order->create(array('amount' => 1000000, 'currency' => 'INR', 'offers'=> array('offer_JTUADI4ZWBGWur'))); ``` ```ruby Ruby theme={null} require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') order = Razorpay::Order.create amount: 50000, currency: 'INR', receipt: 'receipt#1', offers: [ 'offer_ANZoaxsOww2X53"' ] ``` ```javascript Node.js theme={null} var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.orders.create({ amount: 1000000, currency: "INR", receipt: "receipt#1", offers: [ "offer_ANZoaxsOww2X53" ] }) ``` ```go Go theme={null} import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ "amount": 50000, "currency": "INR", "receipt": "receipt#1", "offers": []interface{}{ "offer_JTUADI4ZWBGWur", }, } body, err := client.Order.Create(data, nil) ``` ```json Response theme={null} { "id": "order_CjyoZFRpB8r0AH", "entity": "order", "amount": 1000000, "amount_paid": 0, "amount_due": 1000000, "currency": "INR", "receipt": null, "offer_id": "offer_ANZoaxsOww2X53", "offers": [ "offer_ANZoaxsOww2X53" ], "status": "created", "attempts": 0, "notes": [], "created_at": 1561018912 } ``` #### Request Parameters `amount` *mandatory* : `integer` Enter the amount for which the order is to be created in currency subunits. For example, for an amount of โ‚น10000, enter `1000000`. `currency` *mandatory* : `string` ISO code of the currency associated with the order amount. Here, it is `INR`. `offers` *mandatory* : `array` Unique identifier of the offer. Pass the `offer_id` obtained from the response of the previous step. ### Step 3: Pass Order\_id and Trigger the Checkout The `order_id` obtained in the previous step can be passed to the Checkout form as follows: ```javascript Checkout theme={null} ``` Know more about [Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). ## Next Steps After the customer has availed the offers and made the payment at the Checkout, you can track the status of the payments: * From the Dashboard. * By [configuring webhooks](/docs/webhooks). * By polling our [payment APIs](/docs/api/payments). ### Related Information * [About No Cost EMI Offers](/docs/payments/offers/no-cost-emi) * [Create No Cost EMI Offers](/docs/payments/offers/no-cost-emi/create) * [Tutorial - How to Create No Cost EMI Offers](/docs/payments/offers/no-cost-emi/tutorial) * [No Cost EMI FAQs](/docs/payments/offers/low-cost-emi/faqs) * [Disable Offers](/docs/payments/offers/no-cost-emi/create#disabling-no-cost-emi-offers) # Tutorial - How to Create No Cost EMI Offers Source: https://razorpay.com/docs/payments/offers/no-cost-emi/tutorial Create No Cost EMI Offers from the Razorpay Dashboard using an example. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Let us create an offer from the Dashboard using an example. Assume you are the manager of Acme Mobiles and Accessories, an online smartphone store. You want to provide discounts on online purchases to attract customers and increase sales. You want to create a Diwali Offer with the following settings: | Offer Criteria | Offer Information | | - | - | | Offer Name | Diwali Dhamaka - No Cost EMI | | Display Text | No Cost EMI Offers | | Offer Type | Instant | | Minimum Order Amount | โ‚น3,000 | | Maximum Order Amount | โ‚น4,00,000 | | Issuing Bank | HDFC Bank | | EMI Tenures | 3, 6 and 9 months | Let us create this offer. ## Create No Cost EMI Offers To create No Cost EMI offers: 1. Log in to the Dashboard. 2. Navigate to **Offers** and click **+ Create No & Low Cost EMI**. ![Create a No Cost EMI offer](https://razorpay.com/docs/build/browser/assets/images/offers-offers-dashboard.jpg) 3. The **Create an Offer** wizard appears with the following four sections. Enter details in all these sections for the offer to be created: * [**Description**](#description) * [**Discount Type**](#discount-type) * [**Applicable On**](#applicable-on) * [**Offer Validity**](#offer-validity) You can review the offer configurations at the end under the [**Overview**](#overview) tab. ### Description In the **Description** section, enter the following details. All the fields are mandatory. 1. **Offer Name**: Enter the name of the offer. For example, **Diwali Dhamaka**. 2. **Display Text**: Enter a meaningful description for the offer. For example, **No Cost EMI Offer**. This appears at the Checkout. 3. **Terms**: Enter the terms and conditions for the offer. 4. Click **Next**. ![Enter the offer details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-description.jpg) ### Discount Type In the **Discount Type** section, enter the discount details that should be applied for the offer. 1. **Minimum Order amount**: Enter the minimum bill amount for which the No Cost EMI offer can be applied. For example, a customer must purchase an article of at least **โ‚น3,000** to avail No Cost EMI. This is a mandatory field. 2. **Maximum Order amount**: Enter the maximum bill amount for which the No Cost EMI offer can be applied. For example, customers can avail of a No Cost EMI if they purchase a phone of a maximum worth **โ‚น4,00,000**. 3. Click **Next**. ![Enter the discount details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-discount-type.jpg) ### Applicable On In the **Applicable On** tab, fill in the following details: 1. **Issuer**: Select the bank that will be issuing the No Cost EMI. For example, `HDFC Bank`. 2. **EMI Tenure**: Select the tenure to be listed at the Checkout. For this example, we will select 3, 6 and 9 months as the supported tenures. 3. **EMI Offer Type**: Select **No Cost EMI** from the drop-down list. This also displays the discount that you will bear. 4. Click **Next**. ![Enter the details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-applicable-on.jpg) ### Offer Validity Under the **Offer Validity** tab, set how long the offer should be valid and how you want to handle the payment failure situations: 1. **Starting On**: Select the **Starts Immediately** check box for the offer to come into effect immediately. 2. **Expires On**: Select the date and time at which the offer should end. For example, **31 Oct 2020** at **11:59pm**. 3. **On Payment Failure**: Define how to handle payment failure. * **Do not allow payment to go through**: The payment is failed. * **Allow customer to pay without availing offer**: The payment is allowed even though the set validations are not met. However, the offer is not applied to the bill amount. The customer will be charged the entire order amount. \ We will allow payments to go through without an offer being availed. 4. **Max Usage**: Set the number of times the offer should be applied across all transactions. For example, **100**. 5. **Show Offer on Checkout**: Select this check box for the created offer to be displayed for all Standard Checkout payments including [Payment Links](/docs/payments/payment-links). 6. Click **Next**. ![Enter the offer validity details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-offer-validity.jpg) ### Overview Click the **Overview** tab to view the offer summary you just created. 1. **Terms and Conditions**: Select the check box after you have read the disclaimer. 2. Click **Create EMI Offer**. ![Check the terms and conditions and create an offer](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-overview.jpg) By default, all the created offers are in the **enabled** state. ## Integrate No Cost EMI Offer with Standard Checkout After the offer is created, you should integrate it with Checkout so that customers can avail discounts while making payments. Know more about [integrating offers with Standard Checkout](/docs/payments/offers/no-cost-emi/standard-integration). ### Related Information * [About No Cost EMI Offers](/docs/payments/offers/no-cost-emi) * [No Cost EMI FAQs](/docs/payments/offers/low-cost-emi/faqs) * [EMIยฒ Suite](/docs/payments/payment-gateway/emiยฒ) # SKU and Brand Offers on Standard Checkout Source: https://razorpay.com/docs/payments/offers/sku-offers Apply offers to specific products (SKUs) in a customer's cart on Razorpay Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India SKU and Brand Offers let you attach offers to individual products (SKUs) in an order instead of the whole cart. For example, a customer buying a laptop and a mouse can get โ‚น3,000 off the laptop and โ‚น2,000 off the mouse in a single checkout session. Both merchant-funded offers and brand-funded offers, such as a brand's bank discount on a specific phone model, are supported. You send the cart's SKUs in the order. Razorpay Standard Checkout finds the offers that match those SKUs, shows them to the customer and applies the best offers automatically. To show these offers on your own website or app before checkout, for example on product pages, use the [Fetch and Match Offers APIs](/docs/payments/offers/fetch-match-offers). > [!NOTE] > > **Feature Request** > > This is an on-demand feature. Contact your Razorpay account manager to enable SKU and Brand Offers on your account. Razorpay configures the offers and the SKUs they apply to for you. SKU and Brand Offers on Standard Checkout work in both test mode and live mode, so you can test your integration before you go live. ## Availability | | Supported | | - | - | | **Platforms** | Standard Checkout on web, Android and iOS. Shopify and Magento plugins. [Payment Links](/docs/payments/payment-links/offers#sku-and-brand-offers-on-payment-links). | | **Payment methods** | Cards and EMI. | ## Customer Experience | Checkout stage | What the customer sees | | - | - | | Checkout opens | Cart items with SKU names and quantities. Offers that apply to those SKUs are highlighted. | | Selects a payment method | The best offers for that payment method are applied automatically. | | Completes the payment | The discount is deducted from the amount payable. The success screen shows the savings for each item. | Watch this video to see SKU and Brand Offers on Standard Checkout. The customer sees the offers for each product in the cart, the best offers are applied automatically and the order summary shows the discount on each item. ## How It Works Your backend makes the API calls. Standard Checkout handles everything in between. | # | Actor | Action | API or mechanism | | - | - | - | - | | 1 | Customer | Adds products to the cart and clicks **Pay**. | โ€” | | 2 | Your backend | Creates an order with `line_items`. | [Create an Order](#step-1-create-an-order-with-line-items) | | 3 | Your frontend | Opens Standard Checkout with the `order_id`. | [Standard Checkout](#step-2-open-standard-checkout) | | 4 | Razorpay | Loads the offers that apply to the SKUs in the order. | Automatic | | 5 | Customer | Selects a payment method and enters the payment details. | โ€” | | 6 | Razorpay | Applies the best offers. | Automatic | | 7 | Customer | Clicks **Pay Now**. | โ€” | | 8 | Razorpay | Processes the payment and sends the `payment.authorized` webhook. | [Webhook](#step-3-handle-the-payment-authorized-webhook) | | 9 | Your backend | Fetches the order to confirm which offers were applied. | [Fetch Order](#step-4-fetch-the-order-to-confirm-applied-offers) | ## Integration Steps ### Step 1: Create an Order With Line Items When the customer clicks **Pay**, create an order using the [Orders API](/docs/api/orders/create) and pass every SKU in the cart in the `line_items` array. Razorpay matches offers using these line items, so include all SKUs with accurate prices and quantities. > [!WARNING] > > **Watch Out!** > > The order `amount` must equal the total of `price` ร— `quantity` across all `line_items`. For example, a smartphone at โ‚น40,000 and earbuds at โ‚น15,000 make an order `amount` of `5500000` (โ‚น55,000). `POST /v1/orders` ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/orders \ -H "content-type: application/json" \ -d '{ "amount": 5500000, "currency": "INR", "receipt": "receipt_order_001", "line_items": [ { "sku": "SKU001", "brand": "acme", "name": "Smartphone 128 GB", "price": 4000000, "quantity": 1, "image_url": "https://example.com/images/smartphone.jpg" }, { "sku": "SKU002", "brand": "acme", "name": "Wireless earbuds", "price": 1500000, "quantity": 1, "image_url": "https://example.com/images/earbuds.jpg" } ] }' ``` #### Request Parameters **amount** `integer` *required* Total order amount in paise. It must equal the total of `price` ร— `quantity` across all `line_items`. For example, pass `5500000` for โ‚น55,000. **currency** `string` *required* Currency of the order. Possible value is `INR`. **receipt** `string` Your internal order reference for reconciliation. Maximum length is 40 characters and it must be unique. **line\_items** `array` *required* The products in the customer's cart. **line\_items\[].sku** `string` *required* SKU identifier of the product. It must match the SKU configured in the offer. **line\_items\[].brand** `string` *required* Brand of the product. For example, `apple`. Not case-sensitive. Brand offers are evaluated correctly only when you pass it. **line\_items\[].price** `integer` *required* Unit price of the product in paise. **line\_items\[].quantity** `integer` *required* Number of units of the product. **line\_items\[].name** `string` Name of the product. Shown to the customer on Checkout. **line\_items\[].image\_url** `string` Public URL of the product image. #### Response ```json theme={null} { "id": "order_DtEkng132N71M8", "entity": "order", "amount": 5500000, "amount_paid": 0, "amount_due": 5500000, "currency": "INR", "receipt": "receipt_order_001", "offers": ["offer_DtEhEm3XslgfXE"], "status": "created", "attempts": 0, "created_at": 1748750400 } ``` #### Response Parameters **id** `string` Unique identifier of the order. Pass this to Standard Checkout. **status** `string` Status of the order. It is `created` when the order is created successfully. **offers** `array` Identifiers of the offers that apply to the SKUs in this order. **receipt** `string` Your internal order reference, returned as sent. ### Step 2: Open Standard Checkout Open [Standard Checkout](/docs/payments/payment-gateway/web-integration/standard) with the `order_id` from Step 1. You do not need to pass offer IDs. Checkout reads the `line_items` on the order and fetches and displays the offers that apply. ```js Checkout Options theme={null} var options = { key: "YOUR_KEY_ID", order_id: "order_DtEkng132N71M8", // id from the Create Order API response name: "Acme Corp", // prefill, theme and handler as per your integration }; var rzp = new Razorpay(options); rzp.open(); ``` > [!WARNING] > > **Watch Out!** > > The discount breakdown for each SKU is shown only inside Standard Checkout. The Create Order API response returns only the offers that apply to the order. To confirm which offers were applied after the payment, [fetch the order](#step-4-fetch-the-order-to-confirm-applied-offers). ### Step 3: Handle the payment.authorized Webhook Razorpay sends the [`payment.authorized`](/docs/webhooks/payments#payment-authorised) webhook to your endpoint after the payment is processed. [Set up your webhook endpoint](/docs/webhooks/setup-edit-payments) on the Dashboard. Your endpoint must return HTTP `200`. Otherwise, Razorpay retries the delivery. Know more about [webhook delivery and retries](/docs/webhooks/best-practices#delivery-attempts-and-retries). ```json Sample Payload theme={null} { "entity": "event", "account_id": "acc_BFQ7uQEaa6Kdt8", "event": "payment.authorized", "contains": ["payment"], "payload": { "payment": { "entity": { "id": "pay_A1B2C3D4E5F6G7", "entity": "payment", "amount": 5000000, "currency": "INR", "status": "authorized", "order_id": "order_DtEkng132N71M8", "method": "card", "captured": false, "created_at": 1748750600 } } } } ``` | Field | Description | | - | - | | `payload.payment.entity.id` | Payment ID. Use it to capture or refund the payment. | | `payload.payment.entity.order_id` | The order this payment belongs to. | | `payload.payment.entity.amount` | Amount charged in paise, after the discount. | | `payload.payment.entity.status` | `authorized` means the payment succeeded. [Capture the payment](/docs/payments/payments/capture-settings) if it is not captured automatically. | ### Step 4: Fetch the Order to Confirm Applied Offers After you receive the `payment.authorized` webhook, fetch the order with `expand[]=offers`. The response shows the final order state, the offers applied and the discount on each SKU. Use it for fulfilment, CRM and reconciliation. > [!NOTE] > > **Handy Tips** > > Call this API only after you receive the `payment.authorized` webhook. The order status and applied offers are final only once the payment is authorised. `GET /v1/orders/:id?expand[]=offers` ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X GET 'https://api.razorpay.com/v1/orders/order_DtEkng132N71M8?expand[]=offers' ``` ```json Response theme={null} { "id": "order_DtEkng132N71M8", "entity": "order", "amount": 5500000, "amount_paid": 5000000, "amount_due": 0, "currency": "INR", "receipt": "receipt_order_001", "status": "paid", "attempts": 1, "notes": {}, "offers": ["offer_DtEhEm3XslgfXE"], "offers_applied": { "entity": "collection", "count": 1, "items": [ { "id": "offer_DtEhEm3XslgfXE", "status": "redeemed", "benefits": [ { "type": "instant_discount", "applicable_on": "line_item", "calculated_benefit_value": 500000, "benefit_breakup": [ { "sku": "SKU001", "brand": "acme", "applied_quantity": 1, "calculated_benefit_value": 500000 } ] } ] } ] }, "created_at": 1748750400 } ``` #### Response Parameters **id** `string` Unique identifier of the order. **amount** `integer` Original order amount in paise, before discounts. **amount\_paid** `integer` Amount charged to the customer in paise, after discounts. **amount\_due** `integer` Amount still due in paise. It is `0` for a fully paid order. **status** `string` Status of the order. Possible values are `created`, `attempted` and `paid`. **notes** `object` Key-value pairs of notes for the order. **offers** `array` IDs of the offers on the order, including the ones in `offers_applied`. **offers\_applied** `object` Applied offers: `entity` (always `collection`), `count` and `items`. Returned when you pass `expand[]=offers`. **offers\_applied.items\[].id** `string` Identifier of the applied offer. **offers\_applied.items\[].status** `string` `redeemed` means the offer was applied successfully. **offers\_applied.items\[].benefits** `array` Benefits applied by this offer. * `type`: Benefit type. Possible values are `instant_discount`, `cashback`, `no_cost_emi`, `low_cost_emi` and `already_discounted`. * `applicable_on`: `line_item` for an SKU-level offer or `cart` for a cart-level offer. * `calculated_benefit_value`: Total benefit amount from this benefit in paise. * `benefit_breakup`: Benefit on each SKU, with `sku`, `brand`, `applied_quantity` and `calculated_benefit_value`. Present only for `line_item` benefits. The API returns these responses without an error: | Scenario | Behaviour | | - | - | | `expand[]=offers` is not passed | `offers_applied` is not included. | | No offers were applied to the order | `offers_applied.count` is `0`. | | The order is in `created` state and the payment is not complete | Order details are returned and `offers_applied` is empty. | ## Block and Unblock IMEIs for Brand Offers For Brand Offers, you may need to block the IMEI or serial number of each device you sell against the order. Blocking records the sale of that device with the brand. Unblocking reverses it, for example when the order is refunded or cancelled. > [!WARNING] > > **Watch Out!** > > For certain brands, the brand-funded offer amount is not settled to you unless you block the IMEI of each device sold. Check with your account manager whether this applies to the brands you sell. To block or unblock an IMEI from the Dashboard: 1. Log in to the Dashboard and click **Offers**. 2. Click the **IMEI Block / Unblock** tab. 3. Select **Block** or **Unblock**. 4. Enter the details of the device: * **Razorpay Order ID** (Mandatory): The order the device was sold against. For example, `order_DtEkng132N71M8`. * **SKU** (Mandatory): The SKU of the device. It must match a line item on the order. * **Brand** (Mandatory): The brand of the device. For example, `Apple`. * **IMEI / Serial No.** (Mandatory): The 15-digit IMEI for phones. For other devices, the serial number. * **Dealer Code** (Optional): The identifier issued to you by the brand, if you have one. 5. Click **Block device** or **Unblock device**. ![IMEI Block / Unblock tab under Offers on the Dashboard, with the Block form showing Razorpay Order ID, SKU, Brand, IMEI / Serial No. and Dealer Code fields and a Block device button](https://mintcdn.com/razorpay-881012b3/lDyj6k-g77xZS0F7/static/docs-home/assets/offers-imei-block-unblock.png?fit=max\&auto=format\&n=lDyj6k-g77xZS0F7\&q=85\&s=9cf4bdb86272f12125b434b930c12a62) Submit the form once for each device. For orders with more than one SKU or unit, repeat it for each device. > [!NOTE] > > **Handy Tips** > > * Block the IMEI after the payment is complete. > * If you refund or cancel the order, unblock the IMEI. Refunding the payment does not unblock it. > * The **IMEI Block / Unblock** tab is available on request. Contact your account manager to enable it. ## SKU and Brand Offers on Payment Links You can also apply SKU and Brand Offers to Payment Links by adding product details when you create the link from the Dashboard. Know more about [SKU and Brand Offers on Payment Links](/docs/payments/payment-links/offers#sku-and-brand-offers-on-payment-links). ### Related Information * [About Offers](/docs/payments/offers) * [Integrate Offers with Standard Checkout](/docs/payments/offers/standard-integration) * [Fetch and Match Offers APIs](/docs/payments/offers/fetch-match-offers) * [Standard Checkout Integration](/docs/payments/payment-gateway/web-integration/standard) * [Orders API](/docs/api/orders) * [Payment Webhooks](/docs/webhooks/payments) # Integrate Offers with Standard Checkout Source: https://razorpay.com/docs/payments/offers/standard-integration Display general, order-specific or forced Offers on Standard Checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore After creating [offers](/docs/payments/offers/create) from the Dashboard, you have to integrate them on Razorpay Standard Checkout so that your customers can avail them while making payments. > [!WARNING] > > **Integrate Offers with Orders API** > > If you use our JS, SDK files or other Ecommerce plugins, you **should** integrate offers with the Orders API. ## Exception You need **not** integrate offers with Orders API if you use any of the following Razorpay products or plugins to accept payments: * Plugins: Magento, Shopify or WooCommerce. * Products: Payment Links, Payment Buttons, Payment Pages and Invoices. This is because Razorpay automatically creates orders for these products or plugins when customers initiate payment at the Checkout. > [!NOTE] > > **Handy Tips** > > As per the RBI guidelines, the original card number is replaced with a surrogate value called a token. However, we will continue to support BIN-based offers post tokenisation. Note that BIN-based offers will not work on saved American Express (AMEX) cards. ## Validation Criteria Only those offers that pass the following validations are be displayed at the Checkout: | Criteria | Description | | - | - | | **Amount Match** | Order amount should be more than or equal to the [Minimum Order Amount](/docs/payments/offers/create#instant) set in an offer. | | **Validity** | Offer should be in the active or enabled state. | | **Date Validation** | The current date lies within the range of the offer's `start` and `end` dates. | | **Usage** | You can define the maximum number of times an offer can be availed. The offer will not be displayed at the Checkout if this limit is met. | | **Show Offer on Checkout** | This option must be enabled while creating the offer. This determines whether the offer will be displayed at the Checkout. | ## Display Offers at Checkout There are three ways in which you can display offers at Razorpay Checkout: * [Display Offers by Default](#method-1-display-offers-by-default) * [Display Limited Offers](#method-2-display-limited-offers) * [Force Offer](#method-3-force-offer) ### Method 1: Display Offers by Default This is the easiest way to display offers at the Checkout. While creating the offer from the Dashboard, enable the **Show Offer on Checkout** option. The offer automatically appears at the Checkout. ![Enable the Show Offer on Checkout option](https://razorpay.com/docs/build/browser/assets/images/offers-no-cost-emi-offer-validity.jpg) ### Method 2: Display Limited Offers To display a specific set of offers at the Checkout, you should associate the offers with an order. You can pass the `offers` array as a request attribute in the Create Orders API. Some use cases: * If you have multiple product lines running on the same account and certain business logic on your side for displaying offers. * The discount has already been applied, and you would like to restrict the payment method to avail the offer. > [!WARNING] > > **Watch Out!** > > To display an Offer for a particular customer:\\ > > * **Do not** select the Show Offer on the Checkout check box while creating an Offer.\\ > > * Specify the offer\_id; for example, `offer_ANZoaxsOww2X53` in the `offers` array while creating an order. ### Method 3: Force Offer Use this method when a customer has already selected an offer on your website or app before the payment process begins. By forcing an offer, you lock the checkout to that specific offer, ensuring the customer can only pay using the forced offer. If the customer does not accept the forced offer, the payment will not be processed. > [!WARNING] > > **Watch Out!** > > You must pass only one offer id in the `offers` array when using `force_offer`. Passing multiple offers with `force_offer` set to `true` is not supported. > [!NOTE] > > **Handy Tips** > > To apply offers to specific products in the cart instead of the whole order, pass the cart's SKUs in the order. Know more about [SKU and Brand Offers on Standard Checkout](/docs/payments/offers/sku-offers). ## Integrate Offers with Orders API To integrate offers, follow these steps: 1. [Create an Offer](#step-1-create-an-offer-from-the-dashboard). 2. [Pass the Offer in Orders API](#step-2-pass-the-offer-in-orders-api). 3. [Pass order\_id and Trigger Checkout](#step-3-pass-order_id-and-trigger-the-checkout). ### Step 1: Create an Offer from the Dashboard You can [create offers](/docs/payments/offers/create#create-offers) from the [Dashboard](/docs/payments/offers/create). ![Create offers from the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/offers-offer-dashboard.jpg) Let us say you have created an offer `offer_ANZoaxsOww2X53`, such that a discount of is applicable on all transactions done through AXIS netbanking only. ### Step 2: Pass the Offer in Orders API Create an order using the [Orders API](/docs/api/orders). Depending on the method, you can pass specific offers in the request or let Razorpay apply the default offers automatically. > [!NOTE] > > **Handy Tips** > > To display specific offers at checkout, pass them in the `offers` array (see the sample code below). If you don't include anything in the `offers` array, the default offers will automatically appear at checkout. > [tab] For Default Offers (Method 1) > > You do not have to pass any offer id in the request. Razorpay automatically applies the offers created and enabled from the Dashboard. > > #### Sample Code > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/orders \ > -H "content-type: application/json" \ > -d '{ > "amount": 5000, > "currency": "INR", > "receipt": "receipt#1", > "notes": { > "key1": "value3", > "key2": "value2" > } > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount",5000); > orderRequest.put("currency","INR"); > orderRequest.put("receipt", "receipt#1"); > JSONObject notes = new JSONObject(); > notes.put("notes_key_1","Tea, Earl Grey, Hot"); > notes.put("notes_key_1","Tea, Earl Grey, Hot"); > orderRequest.put("notes",notes); > > Order order = razorpay.orders.create(orderRequest); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > client.order.create({ > "amount": 5000, > "currency": "INR", > "receipt": "receipt#1", > "notes": { > "key1": "value3", > "key2": "value2" > } > }) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $$api->order->create(array('receipt' => '123', 'amount' => 100, 'currency' => 'INR', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'))); > ``` > > ```csharp .NET theme={null} > RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > Dictionary options = new Dictionary(); > options.Add("amount", 5000); // amount in the smallest currency unit > options.Add("receipt", "order_rcptid_11"); > options.Add("currency", "INR"); > Order order = client.Order.Create(options); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > para_attr = { > "amount": 5000, > "currency": "INR", > "receipt": "receipt#1", > "notes": { > "key1": "value3", > "key2": "value2" > } > } > > Razorpay::Order.create(para_attr) > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > instance.orders.create({ > amount: 50000, > currency: "INR", > receipt: "receipt#1", > notes: { > key1: "value3", > key2: "value2" > } > }) > ``` > > ```go Go theme={null} > import ( razorpay "github.com/razorpay/razorpay-go" ) > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > data := map[string]interface{}{ > "amount": 5000, > "currency": "INR", > "receipt": "some_receipt_id", > "partial_payment": false, > "notes": map[string]interface{}{ > "key1": "value1", > "key2": "value2", > } > } > body, err := client.Order.Create(data, nil) > ``` > > ```json Response theme={null} > { > "amount": 5000, > "amount_due": 5000, > "amount_paid": 0, > "attempts": 0, > "created_at": 1756455561, > "currency": "INR", > "entity": "order", > "id": "order_RB58MiP5SPFYyM", > "notes": { > "key1": "value3", > "key2": "value2" > }, > "offer_id": null, > "receipt": "receipt#1", > "status": "created" > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` Enter the amount for which the order is to be created in currency subunits. For example, for an amount of , enter `5000`. > > > > `currency` *mandatory* > > : `string` ISO code of the currency associated with the order amount. Here, it is `INR`. > > > > `receipt` *optional* > > : `string` Your receipt id for this order. > > > > `notes` *optional* > > : `object` Key-value pair that can be used to store additional information about the order. > > > [accordion] Response Parameters > > > > For a complete list of response parameters, refer to the [Create an Order API](/docs/api/orders/create) > [tab] For Limited Offers (Method 2) > > Pass one or more offer ids in the `offers` array to display only those offers at the Checkout. > > #### Sample Code > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/orders \ > -H "Content-Type: application/json" \ > -d '{ > "amount": 1000000, > "currency": "INR", > "offers": [ > "offer_ANZoaxsOww2X53" > ] > }' > ``` > > ```java Java theme={null} > RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); > > ArrayList Offer = new ArrayList(); > Offer.add("offer_JTUADI4ZWBGWur"); > > JSONObject orderRequest = new JSONObject(); > orderRequest.put("amount", 1000000); // amount in the smallest currency unit > orderRequest.put("currency", "INR"); > orderRequest.put("offers", Offer); > > Order order = razorpayclient.orders.create(orderRequest); > System.out.print(order); > ``` > > ```python Python theme={null} > import razorpay > client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) > > client.order.create({ > "amount": 1000000, > "currency": "INR", > "receipt": "receipt#1", > "offers": [ > "offer_ANZoaxsOww2X53" > ] > }) > ``` > > ```php PHP theme={null} > $api = new Api($key_id, $secret); > > $api->order->create(array('amount' => 1000000, 'currency' => 'INR', 'offers'=> array('offer_JTUADI4ZWBGWur'))); > ``` > > ```ruby Ruby theme={null} > require "razorpay" > Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') > > order = Razorpay::Order.create amount: 1000000, currency: 'INR', receipt: 'receipt#1', offers: [ > 'offer_ANZoaxsOww2X53"' > ] > ``` > > ```javascript Node.js theme={null} > var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) > > instance.orders.create({ > amount: 1000000, > currency: "INR", > receipt: "receipt#1", > offers: [ > "offer_ANZoaxsOww2X53" > ] > }) > ``` > > ```go Go theme={null} > import ( razorpay "github.com/razorpay/razorpay-go" ) > client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") > > data := map[string]interface{}{ > "amount": 1000000, > "currency": "INR", > "receipt": "receipt#1", > "offers": []interface{}{ > "offer_JTUADI4ZWBGWur", > }, > } > body, err := client.Order.Create(data, nil) > ``` > > ```json Response theme={null} > { > "id": "order_CjyoZFRpB8r0AH", > "entity": "order", > "amount": 1000000, > "amount_paid": 0, > "amount_due": 1000000, > "currency": "INR", > "receipt": null, > "offer_id": "offer_ANZoaxsOww2X53", > "offers": [ > "offer_ANZoaxsOww2X53" > ], > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1561018912 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` Enter the amount for which the order is to be created in currency subunits. For example, for an amount of , enter `1000000`. > > > > `currency` *mandatory* > > : `string` ISO code of the currency associated with the order amount. Here, it is `INR`. > > > > `offers` *mandatory* > > : `array` Unique identifier of the offer. Pass the offer\_id obtained from the response of the previous step. > > > [accordion] Response Parameters > > > > For a complete list of response parameters, refer to the [Create an Order API](/docs/api/orders/create) > [tab] For Force Offer (Method 3) > > Pass a single offer id in the `offers` array and set `force_offer` to `true` to lock the checkout to that offer. > > #### Sample Code > > ```bash Curl theme={null} > curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ > -X POST https://api.razorpay.com/v1/orders \ > -H "Content-Type: application/json" \ > -d '{ > "amount": 5000000, > "currency": "INR", > "offers": [ > "offer_ANZoaxsOww2X53" > ], > "force_offer": "true" > }' > ``` > > ```json Response theme={null} > { > "id": "order_SdHL46SFWnEPR7", > "entity": "order", > "amount": 5000000, > "amount_paid": 0, > "amount_due": 5000000, > "currency": "INR", > "receipt": null, > "offer_id": "offer_ANZoaxsOww2X53", > "offers": [ > "offer_ANZoaxsOww2X53" > ], > "status": "created", > "attempts": 0, > "notes": [], > "created_at": 1776149151 > } > ``` > > > [accordion] Request Parameters > > > > `amount` *mandatory* > > : `integer` Enter the amount for which the order is to be created in currency subunits. For example, for an amount of , enter `5000000`. > > > > `currency` *mandatory* > > : `string` ISO code of the currency associated with the order amount. Here, it is `INR`. > > > > `offers` *mandatory* > > : `array` Pass a single offer\_id in the array. This is the offer that will be forced on the checkout. > > > > `force_offer` *mandatory* > > : `string` Set this to `true` to force the specified offer on the checkout. The customer will only be able to pay using this offer. > > > [accordion] Response Parameters > > > > For a complete list of response parameters, refer to the [Create an Order API](/docs/api/orders/create) ### Step 3: Pass Order\_id and Trigger the Checkout The `order_id` obtained in the previous step can be passed to the Checkout form as follows: ```javascript Checkout theme={null} ``` Know more about [Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). ## Next Steps After the customer has availed the offers and made the payment at the Checkout, you can track the status of the payments: * From the Dashboard. * By [configuring webhooks](/docs/webhooks/setup-edit-payments). * By polling our [payment APIs](/docs/api/payments/fetch-with-id). ### Related Information * [About Offers](/docs/payments/offers) * [Create Offers](/docs/payments/offers/create) * [Tutorial - How to Create Offers](/docs/payments/offers/tutorial) * [SKU and Brand Offers on Standard Checkout](/docs/payments/offers/sku-offers) * [Disable Offers](/docs/payments/offers/create#disabling-offers) * [Offers FAQs](/docs/payments/offers/faqs) # Tutorial - How to Create Offers Source: https://razorpay.com/docs/payments/offers/tutorial Create Offers from the Razorpay Dashboard using an example. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore Let us create an offer from the Dashboard using an example. Assume that you are the manager of Tea Factory, a beverage company that sells packaged teabags using your website. You want to provide discounts on online purchases to attract customers and increase sales. You want to create a Diwali Offer with the following settings: | Offer Criteria | Offer Information | | | - | - | - | | Offer Name | Diwali DhamakaChristmas Offer | | | Display Text | 10% discount on netbankingPayNow payments | | | Offer Type | Discount - PercentageInstant | | | Payment Method | NetbankingPayNow | | | Discount % | 10 -- Minimum Order Amount | | | Maximum Discount Allowed | | | Let us create this offer. ## Creating Offers To create an offer: 1. Log in to the Dashboard. 2. Navigate to **Offers** and click **Create New Offer**. ![Create an Offer](https://razorpay.com/docs/build/browser/assets/images/offers-offers-dashboard.jpg) 3. The **Create an Offer** wizard appears with these four tabs. * [**Description**](#description) * [**Discount Type**](#discount-type) * [**Applicable On**](#applicable-on) * [**Offer Validity**](#offer-validity) ![View components required during creating an offer](https://razorpay.com/docs/build/browser/assets/images/offers-offers-wizard.jpg) You can review the Offer configurations at the end under the [**Overview**](#overview) tab. ### Description Under the **Description** tab, enter the following details. All the fields are mandatory. 1. **Offer Name**: Enter the name of the offer. For example, `Diwali Dhamaka`. This appears at the Checkout. 2. **Display Text**: Enter a meaningful description for the offer. For example, `10% discount on netbanking payments`. This appears at the Checkout. 3. **Terms**: Enter terms and conditions for the offer. 4. **Offer Type**: Select the type of offer that you want to create. For example, **Instant**. This means that the offer is applied instantly. The customer pays only the discounted amount while making the payment. 5. Click **Next**. ![Enter the offer details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-offers-description.jpg) ### Discount Type In the **Discount Type** tab, enter the discount details that should be applied for the offer. 1. **Discount Type**: Select the type of discount that should be applied to the offer. In this case, it is **Percentage**. 1. **Minimum Order amount**: Enter the minimum bill amount for which the offer can be applied. Enter `400`. 2. **Discount Worth**: The percentage by which the original price should be reduced. Enter `10`. 3. **Maximum Discount**: The maximum amount that can be deducted from the bill amount. Enter `500`. 2. Click **Next**. ![Enter the discount details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-offers-discount-type.jpg) ### Applicable On In the **Applicable On** tab, enter details of the payment method you want to enable for the offer. 1. **Payment Method**: Select the payment method to enable offers. For this example, select `Net Banking`. 2. **Issuer**: If you want to restrict the offer to online payments from a specific bank, select the bank name from the list. Otherwise, do not select any bank. For this example, since the offer applies to all banks, we will not choose a bank. 3. Click **Next**. ![Enter the payment method details](https://razorpay.com/docs/build/browser/assets/images/offers-offers-applicable-on.jpg) ### Offer Validity Under the **Offer Validity** tab, set how long the offer should be valid and how you want to handle the payment failure situations: 1. **Starting On**: Select the **Starts Immediately** check box for the offer to come into effect immediately. Alternatively, you can select the date and time the created Offer should become active. 2. **Expires On**: Select the date and time the Offer should end. For example, `31 Oct 2020` at `11:59 pm`. 3. **On Payment Failure**: Define how to handle payment failure. * **Do not allow payment to go through**: The payment is failed. * **Allow customer to pay without availing offer**: The payment is allowed even though the set validations are not met. However, the offer is not applied to the bill amount. The customer will be charged the entire order amount. For this example, we will allow payments to go through. 4. **Max Usage**: Set the number of times the offer should be applied across all transactions. For example, `100`. 5. **Show Offer on Checkout**: Select this check box for the created offer to be displayed for all Standard Checkout payments including [Payment Links](/docs/payments/payment-links). 6. Click **Next**. ![Enter the offer validity details to proceed](https://razorpay.com/docs/build/browser/assets/images/offers-offers-offer-validity.jpg) ### Overview Click the **Overview** tab to view the offer summary you just created. 1. **Terms and Conditions**: Select the check box after you have read the disclaimer. 2. Click **Create Offer**. ![Check the terms and conditions and create an offer](https://razorpay.com/docs/build/browser/assets/images/offers-offers-overview.jpg) By default, all the created offers are in the **enabled** state. ## Integrate Offer with Standard Checkout Now that an offer is created, you should integrate the offers with the Checkout for customers to avail themselves the discounts and make payments. Know more about [integrating offers with Standard Checkout](/docs/payments/offers/standard-integration). ### Related Information * [About Offers](/docs/payments/offers) * [Offers FAQs](/docs/payments/offers/faqs) * [EMIยฒ Suite](/docs/payments/payment-gateway/emiยฒ) # About EMIยฒ Suite Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ Provide affordable payment solutions like Affordability Widget, Eligibility Check, Offers, EMIs, and Pay Later methods to your customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The Razorpay **Affordability Suite** is now rebranded as the **EMIยฒ Suite**, retaining all its features under the new name. > [card] [Affordability Widget](/docs/payments/payment-gateway/emiยฒ#affordability-widget) > > Use Affordability Widget to create awareness about affordable payment options, such as EMI, Cardless EMI, and Pay Later and offers. > [card] [Eligibility Check](/docs/payments/payment-gateway/emiยฒ#eligibility-check) > > Access customer eligibility using pre-eligibility checks on Debit Card EMI, Cardless EMI, and Pay Later instruments and help them choose the most appropriate payment option. > [card] [Payment Methods](/docs/payments/payment-gateway/emiยฒ#payment-methods) > > Offer your customers various payment methods to buy products using Credit Card EMI, Debit Card EMI, Cardless EMI, No Cost EMI, Low Cost EMI and Pay Later. > [card] [Offers](/docs/payments/payment-gateway/emiยฒ#offers) > > Use Offers to attract customers and improve your sales by providing discounts and cashback to customers. [YouTube video player](https://www.youtube.com/embed/videoseries?list=PLQWuy5G1gIOo72xUMyvsv-0d-Q0D6aXyX) ## Affordability Widget The Affordability Widget displays the multiple payment options (such as EMI, Cardless EMI, and Pay Later) and offers to your customers on the product page. This allows customers to discover payment offers before they reach checkout and make an informed buying decision. Know more about the [Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget). > [accordion] Advantages > > * **Enable discovery of affordable payment options early on**: Spread awareness about emiยฒ-based payment methods and offers available to your customers even before they reach checkout using the Affordability Widget. > * **Improve conversion rates**: The availability of affordable payment options such as EMI and Pay Later will help boost conversion rates enabling customers to make more informed buying decisions. > * **Increase Average Order Value**: With affordable payment options, businesses typically see a 30% higher average order value. > * **Easy Integration**: Integrating with the Razorpay Affordability Widget is effortless, involving only a few lines of code. > [!NOTE] > > **Handy Tips** > > * Native web users can integrate the widget with checkout. Your customers can select an offer/payment option on the widget, proceed to checkout and complete the payment. > * For Shopify and WooCommerce user, this is a **view-only** widget. ### Integration You can integrate the widget on your: [Native Website](/docs/payments/payment-gateway/emiยฒ/widget/native-web), [WooCommerce Website](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce), [Shopify Store](/docs/payments/payment-gateway/emiยฒ/widget/shopify) and [Android App](/docs/payments/payment-gateway/emiยฒ/widget/android). ## Eligibility Check Improve success rate and enhance customer experience by offering a pre-eligibility check at checkout. Check eligibility on Debit Card EMI, Cardless EMI, and Pay Later instruments and let your customers easily choose the most relevant EMIยฒ option and complete the purchase seamlessly. Know more about [Eligibility Check](/docs/payments/payment-gateway/emiยฒ/eligibility-check/standard). > [accordion] Advantages > > * **Higher Success Rate**: Increase the success rate of transactions with EMIยฒ instruments by displaying only eligible payment options, thereby reducing failed transactions due to ineligibility. > * **Enhance Customer Experience**: Deliver a seamless customer experience through an intuitive UI that enables customers to discover and choose the most affordable payment options. ## Payment Methods You can offer your customers various payment methods to buy products using [Credit Card EMI](/docs/payments/payment-methods/emi/credit-card-emi), [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi), [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi), [No Cost EMI](/docs/payments/payment-methods/emi/no-cost-emi), [Low Cost EMI](/docs/payments/payment-methods/emi/low-cost-emi) and [Pay Later](/docs/payments/payment-methods/pay-later). > [accordion] Advantages > > #### EMIs > > * **Easy EMI Repayments**: Reduce the upfront amount to be paid by your customers with easy-to-manage EMI repayments. > * **Cardless EMIs**: Target a large segment of consumers who do not have a credit or debit card. > * **Increase sales**: Grow sales by allowing customers to make high-value purchases with low upfront payments. > * **Increase Average Order Value**: EMI options lead to higher average order value, thereby boosting sales. > > #### Pay Later > > * **Best in class**: Razorpay has the widest coverage of Pay Later partners amongst all payment solutions providers. Enjoy a success rate of over 90% (best in class). > * **Flexible Repayments**: Customers can buy now and pay later, with various payment options ranging from a few weeks to several months. > * **Interest-free Options**: Provide Pay Later options with interest-free instalments allowing customers to spread out the purchase cost over time with no interest charges. > * **Cash Flow Management**: You can improve your cash flow by receiving payments from customers upfront while allowing them to pay for their purchases over time. > * **Increase Average Order Value**: Pay Later options lead to higher average order values, thereby boosting sales. ### Credit Card EMI, Debit Card EMI, Cardless EMI and Pay Later Following is the list of payment partners for the various payment methods: > [accordion] Credit Card EMI > > > [tab] Banks > > > > | Bank Code | Issuer Bank | > > | - | - | > > | AMEX | American Express | > > | BARB | Bank of Baroda | > > | CITI | Citibank | > > | FDRL | Federal Bank | > > | HDFC | HDFC Bank | > > | HSBC | HSBC Bank | > > | ICIC | ICICI Bank | > > | INDB | IndusInd Bank | > > | KKBK | Kotak Mahindra Bank | > > | RATN | RBL Bank | > > | SBIN | State Bank of India | > > | SCBL | Standard Chartered | > > | UTIB | Axis Bank | > > | YESB | Yes Bank | > > > [tab] Other Cards > > > > | Code | Card Network Name | > > | - | - | > > | Onecard | OneCard | > > > [!NOTE] > > > > **EMI Plans and Interest Rates** > > > > Refer to the FAQs for the EMI plans and interest rates of different banks for [Credit Card EMIs](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-credit-card-interest). > [accordion] Debit Card EMI > > | Bank Code | Issuer Bank | > | - | - | > | HDFC | HDFC Bank | > > > [!NOTE] > > > > **EMI Plans and Interest Rates** > > > > Refer to the FAQs for the EMI plans and interest rates of different banks for [Debit Card EMI](/docs/payments/payment-gateway/emiยฒ/faqs#5-can-you-provide-a-list-of-the). > [accordion] Cardless EMI > > > [tab] Banks > > > > | Banks | Provider Code | > > | - | - | > > | ICICI Bank | `icic` | > > | IDFC Bank | `idfb` | > > | HDFC Bank | `hdfc` | > > | Kotak Bank | `kkbk` | > > | axio | `walnut369` | > > | Fibe | `earlysalary` | > > | ZestMoney | `zestmoney` | > > > [tab] Non-Banking Payment Partners > > > > | Payment Partner | Provider Code | > > | - | - | > > | Fibe | `earlysalary` | > > | ZestMoney | `zestmoney` | > > | axio | `walnut369` | > > > [!NOTE] > > > > **EMI Plans and Interest Rates** > > > > Refer to the FAQs for the Cardless EMI plans and interest rates charged by [Banks/Partners](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-interest-rates-charged) and [Pay Later Providers](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged). > [accordion] Pay Later > > | Provider | Provider Code | > | - | - | > | LazyPay | `lazypay` | > | PayPal | `paypal` | > > > [!NOTE] > > > > **Standard Interest Rates** > > > > Refer to the FAQs for the standard interest rates charged by [Pay Later providers](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged). ### Integrate Payment Methods If you are using Razorpay Standard Checkout, you **do not need to perform any additional integrations** to display these payment methods to your customers. Get this feature enabled on your account by contacting our [Support team](https://razorpay.com/support/#request). As per your business requirements, you can check the payment methods available on [Standard Checkout](/docs/payments/payment-methods) or [Custom Checkout](/docs/payments/payment-gateway/emiยฒ/payment-methods/custom-integration) ### Try EMI Flow on Checkout You can try the EMI flow by clicking the **Pay with Razorpay** button. This initiates a โ‚น5,500 payment. Provide the relevant details and complete the payment. Use the [Test Card for EMI Payments](/docs/payments/payments/test-card-details#test-card-for-emi-payments). > [!WARNING] > > **Live Transaction with Auto Refund** > > This is a real transaction and money will be deducted from your account. However, the amount debited will be auto-refunded to your account in 5-7 working days. > > [Pay with Razorpay](https://razorpay.com/emidemo/) ## Offers You can use Offers to attract customers and improve your sales by providing discounts and cashback to customers when they make payments on your website or apps. You can restrict the payment methods on which the offers are applied and limit their usage. Know more about [Offers](/docs/payments/offers). You can create Offers including No Cost EMI and Low Cost EMI Offers via the Dashboard and display them to your customers on Checkout. * [No Cost EMI Offers](/docs/payments/offers/no-cost-emi) * [Low Cost EMI Offers](/docs/payments/offers/low-cost-emi) ### Related Information * [Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget) * [Affordability Widget Features](/docs/payments/payment-gateway/emiยฒ/widget/features) * [Payment Methods](/docs/payments/payment-methods) * [FAQs](/docs/payments/payment-gateway/emiยฒ/faqs) # Eligibility Check on Standard Checkout Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/eligibility-check/standard Boost success rate with Eligibility Check on Razorpay Checkout for Debit Card EMI, Cardless EMI and Pay Later payment options. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay offers a pre-eligibility check on Debit Card EMI, Cardless EMI, and Pay Later instruments. By assessing eligibility upfront, your customers can effortlessly choose the most relevant emiยฒ option and complete the purchase quickly. > [!NOTE] > > **Handy Tips** > > * This feature is available by default. > * The eligibility check is performed only for [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi), [Cardless EMI](/docs/payments/payment-methods/emi/credit-card-emi), and [Pay Later](/docs/payments/payment-methods/pay-later). > * Eligibility check is not applicable for Credit Card EMI as it is a pre-eligible form of credit. ## Advantages * **Higher Success Rate**\ Increase the success rate of transactions with EMIยฒ instruments by displaying only eligible payment options, thereby reducing failed transactions due to ineligibility. * **Enhance Customer Experience**: Deliver a seamless customer experience through an intuitive UI that enables customers to discover and choose the most relevant affordable options. ## How it Works A customer selects the products on your website or app and proceeds to Checkout. After choosing EMI or Pay Later as the payment method, the customer can differentiate between the eligible and ineligible payment options. They can opt for an eligible payment option to complete the payment. ![View eligible payment options](https://razorpay.com/docs/build/browser/assets/images/eligible-payment-options.jpg) * **Eligible**: The customer selects an eligible payment instrument and completes the payment successfully. * **Ineligible**: The customer can view the reason for ineligibility as highlighted below. ![Highlight ineligible payment instruments](https://razorpay.com/docs/build/browser/assets/images/ineligibility-highlight.jpg) To proceed with the payment in case of ineligibility, the customer can choose to: * Use a different mobile number for the chosen payment method and try again. * Opt for a different payment instrument/method. ![Demo for ineligible flow](https://razorpay.com/docs/build/browser/assets/images/emi-ineligibility.gif) ## Reasons for Ineligibility The table below provides a list of reasons for customer ineligibility with payment methods/instruments and their descriptions: | Reason | Description | | - | - | | Account does not exist | You are not registered with the provider. You may either update the mobile number below or try another payment option. | | User is not approved | You have not been approved for credit by the provider. You may either update the mobile number below or try another payment option. | | Expired credit limit | The credit limit has expired. You may either update the mobile number below or try another payment option. | | Exhausted credit limit | The credit limit has been exhausted. You may either update the mobile number below or try another payment option. | | Inactive credit limit | The credit limit is inactive. You may either update the mobile number below or try another payment option. | | Minimum amount required | The order amount is less than the minimum transaction amount for this EMI provider. You may try using a higher order amount or another payment option. | | Maximum amount limit | The order amount is above the maximum transaction amount for this EMI provider. You may try using a lower order amount or another payment option. | ## List of Payment Methods View the list of payment methods/instruments and providers on which eligibility check is performed: > [tab] Debit Card EMI > > HDFC Bank > [tab] Cardless EMI > > * axio > * Fibe > * HDFC Bank > * ICICI Bank > * IDFC Bank > * Kotak Bank > [tab] Pay Later > > * LazyPay > * GetSimpl > * ICICI Bank ### Related Information * [FAQs](/docs/payments/payment-gateway/emiยฒ/faqs#eligibility-check) * [EMIยฒ Suite](/docs/payments/payment-gateway/emiยฒ) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/faqs Find answers to frequently asked questions about Razorpay EMIยฒ Suite. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ## Common > [accordion] What are the issuers that Razorpay supports for each EMIยฒ method? > > | Method | Partners | > | - | - | > | Credit Card EMI | 12+ leading issuers including, Amex, HDFC, ICICI and SBI. Find the complete list of [banks supporting Credit Card EMI](/docs/payments/payment-gateway/emiยฒ/faqs#credit-card-emi). | > | Debit Card EMI | HDFC and IndusInd. | > | Cardless EMI | ZestMoney, axio, InstaCred, HDFC Bank, Fibe and more. Find the complete list of [banks supporting Cardless EMI](/docs/payments/payment-gateway/emiยฒ/faqs#cardless-emi). | > | Pay Later | LazyPay and PayPal. | > [accordion] What is the difference between Cardless EMI & Pay Later? > > > [tab] Cardless EMI > > > > [Cardless EMI](/docs/payments/payment-methods/emi/cardless-emi) is a digital EMI option that allows your customer to pay in installments without access to a credit or debit card. Usually, customers prefer this method for making high-value payments. > > > [tab] Pay Later > > > > [Pay Later](/docs/payments/payment-methods/pay-later) is a virtual credit card that lets your customer shop now and pay later. It provides zero-interest digital credit for 14-45 days (varies by provider). Our partners for Pay Later are - FlexiPay by HDFC Bank, ICICI Pay Later, Simpl and LazyPay. > [accordion] Is Instant Refund supported on any EMIยฒ Payment Method? > > No, instant refunds are not supported on EMI, Cardless EMI and Pay Later. > [accordion] How can I disable Payment methods? > > Raise a request with our [Support team](https://razorpay.com/support/) to disable payment methods. ## Pay Later > [accordion] How can my customer pay using Pay Later? > > Pay Later is available as a payment option at Razorpay checkout. To make a payment, customers must be registered with Razorpay's Pay Later partners - LazyPay and PayPal. > [accordion] What are the standard interest rates charged by Pay Later providers? > > The standard interest rates charged by the providers for Pay Later are given below: > > | Pay Later | Provider Code | Minimum Transaction | 15 days | 30 days | 45 days | 60 days | 90 days | > | - | - | - | - | - | - | - | - | > | LazyPay | `lazypay` | โ‚น1 | Interest free | NA | NA | NA | NA | > | PayPal | `paypal` | โ‚น100 | Interest free | NA | NA | NA | NA | > > \* Interest rates are determined on a case-to-case basis. [Contact support](https://razorpay.com/support/#request) for more information. > > > [!WARNING] > > > > **Watch Out!** > > > > All interest rates mentioned above are per annum. ## EMI ### Common > [accordion] Can my customers avail Offers for EMI payments at Checkout? > > Yes, they can avail offers for EMI payments at checkout. Know more about [creating EMI Offers](/docs/payments/offers). > [accordion] If a customer chooses EMI as the payment method, do I get the full amount upfront? > > Yes, you receive the full amount at once and the provider/bank converts it into EMI for the customer. > [accordion] What happens when the customer fails to pay the EMI? > > The loss is borne by the provider/bank. You would have already gotten the full amount. ### Debit Card EMI > [accordion] How do banks perform the EMI eligibility check during the transaction flow? > > Eligibility is checked using the card number and registered phone number. Therefore, customers should always use the phone number registered with the bank while making a payment. > [accordion] What is the minimum balance required in the customer's account to avail Debit Card EMI? > > None. Customers need not have any minimum balance in their accounts while placing the order. However, they need to ensure that their accounts have sufficient funds to pay the EMI due every month. > [accordion] How will the customers know that they are eligible for Debit Card EMI? > > Customers can check their eligibility by sending the SMS > > `DCEMI last 4 digits of Debit Card number` to `56767`, from their registered mobile number. > [accordion] What is the criteria to avail Debit Card EMI? > > To avail [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi), your customers should pass the eligibility criteria set by their banks. The minimum order amount on the Checkout should be โ‚น5000 (for HDFC and IndusInd debit cards). > [accordion] Can you provide a list of the EMI plans and interest rates of different banks that support Debit card EMI? > > The interest rates applied by each bank for Debit Card EMIs is provided below. > > * The minimum transaction amount for which EMIs can be availed on debit cards can vary for each bank. > > * The maximum transaction amount depends upon the available pre-approved limit for the customer. > > > [accordion] For **HDFC Bank (HDFC)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Interest rates | Maximum Amount | > > | - | - | - | - | > > | 3 months | 3000 | 16% | NA | > > | 6 months | 5000 | 16% | NA | > > | 9 months | 5000 | 16% | NA | > > | 12 months | 5000 | 16% | NA | > > | 18 months | 5000 | 16% | NA | > > | 24 months | NA | NA | NA | > [accordion] Can the customers change the EMI plan after placing the order? > > No, EMI plans cannot be changed after an order is placed. > [accordion] Do customers need to pay any down-payment to avail Debit Card EMI? > > No, the customers need not pay any down-payment amount to avail the Debit Card EMI option. > [accordion] Is there a possibility to foreclose EMIs availed on Debit Cards? > > Yes, Debit Card EMIs can be foreclosed after clearing the first three EMIs. > [accordion] Which are the business categories for which Debit Card EMI is not allowed? > > The Debit Card EMI payment method is not allowed for certain business categories. Check the relevant Category section below for the list of sub-categories and support status. Debit Card EMI is not allowed for categories with **N** as the status. > > > [!WARNING] > > > > **Watch Out!** > > > > Due to our partner bank restrictions, the Debit Card EMI payment methods may not be available to all the Merchant Categories and Subcategories. > > > [accordion] Financial Services > > > > | Sub Category | Description | Status | > > | - | - | - | > > | mutual\_fund | Mutual Fund | N | > > | lending | Lending | N | > > | cryptocurrency | Cryptocurrency | N | > > | insurance | Insurance | Y | > > | nbfc | NBFC | N | > > | cooperatives | Cooperatives | Y | > > | pension\_fund | Pension Fund | Y | > > | forex | Forex | N | > > | securities | Securities | N | > > | commodities | Commodities | N | > > | accounting | Accounting and Taxes | Y | > > | financial\_advisor | Financial and Investment Advisors/Financial Advisor | Y | > > | crowdfunding | Crowdfunding Platform | N | > > | trading | Stock Brokerage and Trading | N | > > | betting | Betting | N | > > | get\_rich\_schemes | Get Rich Schemes | N | > > | moneysend\_funding | MoneySend Funding | Y | > > | wire\_transfers\_and\_money\_orders | WIRE TRANSFER MONEY ORDER | N | > > | tax\_preparation\_services | Tax Preparation Service | Y | > > | tax\_payments | Tax Payments | Y | > > | digital\_goods | Digital Goods-Multi-Category | Y | > > | atms | Financial Institutions-Automated Cash Disbursements | N | > > > [accordion] Education > > > > | college | College | > > | - | - | > > | schools | Schools | > > | university | University | > > | professional\_courses | Professional Courses | > > | distance\_learning | Distance Learning | > > | day\_care | Pre-School/Day Care | > > | coaching | Coaching Institute | > > | elearning | E-Learning | > > | vocational\_and\_trade\_schools | SCHOOLS, TRADE AND VOCATIONAL | > > | sporting\_clubs | ATHLETIC FEES | > > | dance\_halls\_studios\_and\_schools | Dance Halls, Studios and Schools | > > | correspondence\_schools | Schools, Correspondence | > > > [accordion] Healthcare > > > > | Category Code | Category Name | Status | > > | - | - | - | > > | pharmacy | Pharmacy | N | > > | clinic | Clinic | Y | > > | hospital | Hospital | Y | > > | lab | Lab | Y | > > | dietician | Dietician/Diet Services | Y | > > | fitness | Gym and Fitness | Y | > > | health\_coaching | Health and Lifestyle Coaching | Y | > > | health\_products | Health Products | Y | > > | healthcare\_marketplace | Marketplace/Aggregator | N | > > | osteopaths | Osteopaths | Y | > > | medical\_equipment\_and\_supply\_stores | Dental/Laboratory/Medical/Ophthalmic Hospital Equipment and Supplies | Y | > > | drug\_stores | DRUGS, DRUG PROPRIETARIES | N | > > | podiatrists\_and\_chiropodists | Podiatrists and Chiropodists | Y | > > | dentists\_and\_orthodontists | Dentists, Orthodontists | Y | > > | hardware\_stores | Hardware Stores | Y | > > | ophthalmologists | Optometrists, Ophthalmologists | Y | > > | orthopedic\_goods\_stores | Orthopedic Goods-Artificial Limb Stores | Y | > > | health\_practitioners\_medical\_services | Health Practitioners, Medical Services-not elsewhere classified | Y | > > | testing\_laboratories | Testing Laboratories-Non medical | Y | > > | doctors | Doctors-not elsewhere classified | Y | > > > [accordion] Utilities > > > > | Sub Category | Description | Status | > > | - | - | - | > > | electricity | Electricity | Y | > > | gas | Gas | Y | > > | telecom | Telecom Service Provider | Y | > > | water | Water | Y | > > | cable | Cable operator | Y | > > | broadband | Broadband | Y | > > | dth | DTH | Y | > > | internet\_provider | Internet service provider | Y | > > | bill\_and\_recharge\_aggregators | Bill Payment and Recharge Aggregators | Y | > > | central | Central Department | Y | > > > [accordion] Government > > > > | Sub Category | Description | Status | > > | - | - | - | > > | central | Central Department | Y | > > | state | State Department | Y | > > | intra\_government\_purchases | Intra-Government Purchases -Government Only | Y | > > | goverment\_postal\_services | Postal Services -Government Only | Y | > > > [accordion] Logistics > > > > | Sub Category | Description | Status | > > | - | - | - | > > | freight | Freight Consolidation/Management | Y | > > | courier | Courier Shipping | Y | > > | warehousing | Public/Contract Warehousing | Y | > > | distribution | Distribution Management | Y | > > | end\_to\_end\_logistics | End-to-end logistics | Y | > > | courier\_services | Courier Services-Air \&, Ground, Freight Forwarders | Y | > > > [accordion] Tours and Travel > > > > | Sub Category | Description | Status | > > | - | - | - | > > | aviation | Aviation | Y | > > | accommodation | Lodging and Accommodation | Y | > > | ota | OTA | Y | > > | travel\_agency | Tours and Travel Agency | Y | > > | tourist\_attractions\_and\_exhibits | Tourist Attractions and Exhibits | Y | > > | aquariums\_dolphinariums\_and\_seaquariums | Aquariums, Dolphinariums, and Seaquariums | Y | > > | timeshares | Timeshares | Y | > > > [accordion] Transport > > > > | Sub Category | Description | Status | > > | - | - | - | > > | cab\_hailing | Cab/auto hailing | Y | > > | bus | Bus ticketing | Y | > > | train\_and\_metro | Train and metro ticketing | Y | > > | automobile\_rentals | National Car Rental | Y | > > | cruise\_lines | CRUISE LINES | Y | > > | parking\_lots\_and\_garages | Automobile Parking Lots and Garages | Y | > > | bridge\_and\_road\_tolls | BRIDGE & ROAD FEES, TOLLS | Y | > > | freight\_transport | Railroads and Freight | Y | > > | truck\_and\_utility\_trailer\_rentals | Truck and Utility Trailer Rentals | Y | > > | transportation | Transportationโ€”Suburban and Local Commuter Passenger, including Ferries | Y | > > > [accordion] Ecommerce > > > > | Sub Category | Description | Status | > > | - | - | - | > > | ecommerce\_marketplace | Horizontal Commerce/Marketplace | N | > > | agriculture | Agricultural products | Y | > > | books | Books and Publications | Y | > > | electronics\_and\_furniture | Electronics and Furniture | Y | > > | coupons | Coupons and deals | Y | > > | rental | Product Rental | Y | > > | fashion\_and\_lifestyle | Fashion and Lifestyle | Y | > > | gifting | Flowers and Gifts | Y | > > | grocery | Grocery | Y | > > | baby\_products | Baby Care and Toys | Y | > > | office\_supplies | Office Supplies | Y | > > | wholesale | Wholesale/Bulk trade | Y | > > | religious\_products | Religious products | Y | > > | pet\_products | Pet Care and Supplies | Y | > > | sports\_products | Sports goods | Y | > > | arts\_and\_collectibles | Arts, crafts and collectibles | Y | > > | sexual\_wellness\_products | Sexual Wellness Products | Y | > > | drop\_shipping | Dropshipping | N | > > | crypto\_machinery | Crypto Machinery | Y | > > | tobacco | Tobacco | Y | > > | weapons\_and\_ammunitions | Weapons and Ammunitions | Y | > > | stamps\_and\_coins\_stores | Stamps & Coins Stores | Y | > > | automobile\_parts\_and\_equipements | MOTOR VEHICLE SUPPLIES | Y | > > | office\_equipment | Office, Photographic, Photocopy, and Microfilm Equipment | Y | > > | garden\_supply\_stores | Lawn and Garden Supply Stores | Y | > > | household\_appliance\_stores | Household Appliance Stores | Y | > > | non\_durable\_goods | NONDURABLE GOODS | Y | > > | electrical\_parts\_and\_equipment | Electrical Parts and Equipment | Y | > > | wig\_and\_toupee\_shops | Wig and Toupee Shops | Y | > > | gift\_novelty\_and\_souvenir\_shops | Card, Gift, Novelty, and Souvenir Shops | Y | > > | duty\_free\_stores | Duty Free Stores | Y | > > | office\_and\_commercial\_furniture | Office and Commercial Furniture | Y | > > | dry\_goods | Piece Goods, Notions, and Other Dry Goods | Y | > > | books\_and\_publications | Book Stores | Y | > > | camera\_and\_photographic\_stores | Camera and Photographic Supply Stores | Y | > > | meat\_supply\_stores | Freezer, Locker Meat Provisioners | Y | > > | leather\_goods\_and\_luggage | Leather Goods and Luggage Stores | Y | > > | snowmobile\_dealers | Snowmobile Dealers | Y | > > | men\_and\_boys\_clothing\_stores | Menโ€™s and Boyโ€™s Clothing and Furnishings Store | Y | > > | paint\_supply\_stores | Varnishes, Paints, Supplies | Y | > > | automotive\_parts | Automotive Parts, Accessories Stores | Y | > > | jewellery\_and\_watch\_stores | Precious Stones and Metals, Watches and Jewelry | Y | > > | auto\_store\_home\_supply\_stores | Auto Store, Home Supply Stores | Y | > > | tent\_stores | Tent and Awning Shops | Y | > > | petroleum\_and\_petroleum\_products | Petroleum and Petroleum Products | N | > > | department\_stores | Department Stores | Y | > > | shoe\_stores\_retail | Shoe Stores | Y | > > | automotive\_tire\_stores | Automotive Tire Stores | Y | > > | sport\_apparel\_stores | Sports Apparel, Riding Apparel Stores | Y | > > | chemicals\_and\_allied\_products | Chemicals and Allied Products | Y | > > | fireplace\_parts\_and\_accessories | FIREPLACE FIREPLACE SCREENS AND ACCESSORIES STORES | Y | > > | commercial\_equipments | COMMERCIAL EQUIPMENTS | Y | > > | family\_clothing\_stores | Family Clothing Stores | Y | > > | fabric\_and\_sewing\_stores | Fabric, Needlework, Piece Goods, and Sewing Stores | Y | > > | camper\_recreational\_and\_utility\_trailer\_dealers | Camper, Recreational and utility trailer dealers | Y | > > | record\_shops | Record Shops | Y | > > | home\_supply\_warehouse | Home Supply Warehouse | Y | > > | clocks\_and\_silverware\_stores | Clock, Jewelry, Watch, and Silverware Store | N | > > | art\_supply\_stores | Artist Supply Stores, Craft Shops | Y | > > | pawn\_shops | Pawn Shops | Y | > > | school\_supplies\_and\_stationery | Office, School Supply, and Stationery Stores | Y | > > | opticians\_optical\_goods\_and\_eyeglasse\_stores | Opticians, Optical Goods, and Eyeglasses | Y | > > | watch\_and\_jewellery\_repair\_stores | Clock, Jewelry, and Watch Repair Shops | N | > > | wholesale\_footwear\_stores | Commercial Footwear | Y | > > | antique\_stores | Antique Reproduction Stores | Y | > > | plumbing\_and\_heating\_equipment | Plumbing and Heating Equipment | Y | > > | variety\_stores | Variety Stores | Y | > > | liquor\_stores | Package Stores, Beer, Wine, Liquor | N | > > | boat\_dealers | Boat Dealers | Y | > > | cosmetic\_stores | Cosmetic Stores | Y | > > | home\_furnishing\_stores | Miscellaneous House Furnishing Specialty Shops | Y | > > | telecommunication\_equipment\_stores | Telecommunication Equipment Including Telephone Sales | Y | > > | women\_clothing | Womens Ready to Wear Stores | Y | > > | florists | Florists | Y | > > | commercial\_photography\_and\_graphic\_design\_services | Commercial Art, Graphics, Photography | Y | > > | building\_matrial\_stores | Building Materials, Lumber Stores | Y | > > | candy\_nut\_confectionery\_shops | Candy, Nut, Confectionery Stores | Y | > > | glass\_and\_wallpaper\_stores | Glass, Paint, Wallpaper Stores | Y | > > | video\_game\_supply\_stores | Video Amusement Game Supplies | Y | > > | drapery\_and\_window\_coverings\_stores | Drapery, Upholstery, and Window Coverings Stores | Y | > > | uniforms\_and\_commercial\_clothing\_stores | Menโ€™s, Womenโ€™s, and Childrenโ€™s Uniforms and Commercial Clothing | Y | > > | automotive\_paint\_shops | Automotive Paint Shops | Y | > > | durable\_goods\_stores | Durable Goods not elsewhere classified | Y | > > | fur\_shops | Furriers and Fur Shops | Y | > > | industrial\_supplies | Industrial Supplies | Y | > > | motorcycle\_shops\_and\_dealers | Motorcycle Shops and Dealers | Y | > > | children\_and\_infants\_wear\_stores | Childrenโ€™s and Infantsโ€™ Wear Stores | Y | > > | computer\_software\_stores | Computer Software Stores | Y | > > | women\_accessory\_stores | Women Accessory and Specialty Stores | Y | > > | books\_periodicals\_and\_newspaper | Books, Periodicals and Newspapers | Y | > > | floor\_covering\_stores | Floor Covering Stores | Y | > > | crystal\_and\_glassware\_stores | Crystal and Glassware Stores | Y | > > | hardware\_equipment\_and\_supply\_stores | Hardware Equipment and Supplies | Y | > > | discount\_stores | Discount stores | Y | > > | computers\_peripheral\_equipment\_software | Computers, Computer Peripheral Equipment, Software | Y | > > | automobile\_and\_truck\_dealers | Automobile and Truck Dealers-Used Only-Sales | Y | > > | aircraft\_and\_farm\_equipment\_dealers | Miscellaneous Automotive, Aircraft, and Farm Equipment Dealers-not elsewhere classified | Y | > > | antique\_shops\_sales\_and\_repairs | Antique Shops-Sales, Repairs, and Restoration Services | Y | > > | bicycle\_stores | Bicycle Shops-Sales and Service | Y | > > | hearing\_aids\_stores | Hearing Aids-Sales, Service, Supply Stores | Y | > > | music\_stores | Music Stores-Musical Instruments, Pianos, Sheet Music | Y | > > | construction\_materials | Construction Materials-not elsewhere classified | Y | > > | accessory\_and\_apparel\_stores | Accessory and Apparel Stores-Miscellaneous | Y | > > | second\_hand\_stores | SECOND HAND STORES-USED MERCHANDISE STORES | Y | > > | fuel\_dealers | Fuel Dealers-Coal, Fuel Oil, Liquefied Petroleum, Wood | N | > > | furniture\_and\_home\_furnishing\_store | Furniture and Home Furnishing store | Y | > > > [accordion] Food and Beverages > > > > | Sub Category | Description | Status | > > | - | - | - | > > | online\_food\_ordering | Online Food Ordering | Y | > > | restaurant | Restaurants | Y | > > | food\_court | Food Courts/Corporate Cafeteria | Y | > > | catering | Catering Services | Y | > > | alcohol | Alcoholic Beverages | Y | > > | restaurant\_search\_and\_booking | Restaurant search and reservations | Y | > > | dairy\_products | Dairy Products Stores | Y | > > | bakeries | Bakeries | Y | > > > [accordion] IT and Software > > > > | Sub Category | Description | Status | > > | - | - | - | > > | saas | SaaS (Software as a service) | N | > > | paas | Platform as a service | N | > > | iaas | Infrastructure as a service | N | > > | consulting\_and\_outsourcing | Consulting and Outsourcing | N | > > | web\_development | Web designing, development and hosting | Y | > > | technical\_support | Technical Support | Y | > > | data\_processing | Data processing | Y | > > > [accordion] Gaming > > > > | Sub Category | Description | Status | > > | - | - | - | > > | game\_developer | Game developer and publisher | N | > > | esports | E-sports | N | > > | online\_casino | Online Casino | N | > > | fantasy\_sports | Fantasy Sports | N | > > | gaming\_marketplace | Game distributor/Marketplace | N | > > > [accordion] Media and Entertainment > > > > | Sub Category | Description | Status | > > | - | - | - | > > | video\_on\_demand | Video on demand | Y | > > | music\_streaming | Music streaming services | Y | > > | multiplex | Multiplexes | Y | > > | content\_and\_publishing | Content and Publishing | Y | > > | ticketing | Events and movie ticketing | Y | > > | news | News | Y | > > | video\_game\_arcades | Video Game Arcades/Establishments | N | > > | video\_tape\_production\_and\_distribution | Motion Pictures and Video Tape Production and Distribution | Y | > > | bowling\_alleys | Bowling Alleys | Y | > > | billiard\_and\_pool\_establishments | Billiard and Pool Establishments | Y | > > | amusement\_parks\_and\_circuses | Amusement Parks, Carnivals, Circuses, Fortune Tellers | Y | > > | ticket\_agencies | Theatrical Producers-except Motion Pictures, Ticket Agencies | Y | > > > [accordion] Services > > > > | Sub Category | Description | Status | > > | - | - | - | > > | repair\_and\_cleaning | Repair and cleaning services | Y | > > | interior\_design\_and\_architect | Interior Designing and Architect | Y | > > | movers\_and\_packers | Movers and Packers | Y | > > | legal | Legal Services | Y | > > | event\_planning | Event planning services | Y | > > | service\_centre | Service Centre | Y | > > | consulting | Consulting Services | N | > > | ad\_and\_marketing | Ad and marketing agencies | Y | > > | services\_classifieds | Services Classifieds | Y | > > | multi\_level\_marketing | Multi-level Marketing | Y | > > | construction\_services | GENERAL CONTRACTORS | Y | > > | architectural\_services | Horticultural and Landscaping Services | Y | > > | car\_washes | CAR WASHES | Y | > > | motor\_home\_rentals | A MOTOR HOME AND RECREATIONAL | Y | > > | stenographic\_and\_secretarial\_support\_services | Stenographic and Secretarial Support Services | Y | > > | chiropractors | Chiropractors | Y | > > | automotive\_service\_shops | Automotive Service Shops | Y | > > | shoe\_repair\_shops | Hat Cleaning Shops, Shoe Repair Shops, Shoe Shine Parlors | Y | > > | telecommunication\_service | Telecom Servc including but not ltd to prepaid phone serv | Y | > > | fines | FINES | N | > > | security\_agencies | Agencies โ€“ Security Services | Y | > > | type\_setting\_and\_engraving\_services | Typesetting, Plate Making, Related Services | Y | > > | small\_appliance\_repair\_shops | Appliance Repair Shops, Electrical and Small | Y | > > | photography\_labs | Photo Developing, Photofinishing Laboratories | Y | > > | dry\_cleaners | Dry Cleaners | Y | > > | electronic\_repair\_shops | Electronic Repair Shops | Y | > > | cleaning\_and\_sanitation\_services | Specialty Cleaning, Polishing, and Sanitation Preparations | Y | > > | nursing\_care\_facilities | Nursing and Personal Care Facilities | Y | > > | direct\_marketing | Direct Marketing Other Direct Marketers not elsewhere classified | Y | > > | veterinary\_services | Veterinary Services | Y | > > | affliated\_auto\_rental | AFFILIATED AUTO RENTAL | Y | > > | alimony\_and\_child\_support | COURT COST INCLUDING ALIMONY AND CHILD SUPPORT | Y | > > | airport\_flying\_fields | AIRPORT FLYING FIELDS | Y | > > | tire\_retreading\_and\_repair\_shops | Tire Retreading and Repair Shops | Y | > > | television\_cable\_services | Cable and other Pay Television Services | Y | > > | recreational\_and\_sporting\_camps | Recreational and Sporting Camps | Y | > > | agricultural\_cooperatives | AGRICULTURAL COOPERATIVES | Y | > > | carpentry\_contractors | Carpentry Contractors | Y | > > | wrecking\_and\_salvaging\_services | Wrecking and Salvage Yards | Y | > > | automobile\_towing\_services | Towing Services | Y | > > | barber\_and\_beauty\_shops | Barber and Beauty Shops | Y | > > | video\_tape\_rental\_stores | Video Tape Rental Stores | Y | > > | golf\_courses | Golf Courses, Public | Y | > > | miscellaneous\_repair\_shops | Miscellaneous Repair Shops and Related Services | Y | > > | motor\_homes\_and\_parts | MOTOR HOME DEALERS | Y | > > | debt\_marriage\_personal\_counseling\_service | Debt, Marriage, Personal Counseling Service | Y | > > | air\_conditioning\_and\_refrigeration\_repair\_shops | Air Conditioning and Refrigeration Repair Shops | Y | > > | tailors | Alterations, Mending, Seamstresses, Tailors | Y | > > | massage\_parlors | Massage Parlors | Y | > > | horse\_or\_dog\_racing | Government Licensed Horse/Dog Racing | N | > > | credit\_reporting\_agencies | Consumer Credit Reporting Agencies | Y | > > | heating\_and\_plumbing\_contractors | Air Conditioning, Heating, and Plumbing Contractors | Y | > > | electrical\_contractors | ELECTRICAL CONTRACTORS | Y | > > | carpet\_and\_upholstery\_cleaning\_services | Carpet and Upholstery Cleaning | Y | > > | roofing\_and\_metal\_work\_contractors | Roofing and Siding, Sheet Metal Work Contractors | Y | > > | internet\_service\_providers | Computer Network/Information Services | Y | > > | laundry\_services | Cleaning, Garment, and Laundry Services | Y | > > | recreational\_camps | Trailer Parks and Campgrounds | Y | > > | masonry\_contractors | Insulation, Masonry, Plastering, Stonework, and Tile Setting Contractors | Y | > > | exterminating\_and\_disinfecting\_services | Exterminating and Disinfecting Services | Y | > > | ambulance\_services | Ambulance Services | Y | > > | funeral\_services\_and\_crematories | Funeral Services and Crematories | Y | > > | metal\_service\_centres | Metal Service Centers and Offices | Y | > > | copying\_and\_blueprinting\_services | Quick Copy, Reproduction, and Blueprinting Services | Y | > > | fuel\_dispensers | Fuel Dispenser, Automated | N | > > | lottery | Government Owned Lottery,Government Owned Lottery | N | > > | welding\_repair | WELDING REPAIR | Y | > > | mobile\_home\_dealers | Mobile Home Dealers | Y | > > | concrete\_work\_contractors | CONCRETE WORK CONTRACTORS | Y | > > | boat\_rentals | Boat Leases and Boat Rentals | Y | > > | personal\_shoppers\_and\_shopping\_clubs | Buying/Shopping Clubs, Services | Y | > > | door\_to\_door\_sales | DOOR-TO-DOOR SALES | Y | > > | travel\_related\_direct\_marketing | Direct Marketing-Travel-Related Arrangement Services | Y | > > | lottery\_and\_betting | Betting -including Lottery Tickets, Chips at Gaming Casinos, Off-Track Betting and Wagers at Race Tracks | N | > > | bands\_orchestras\_and\_miscellaneous\_entertainers | Bands, Orchestras, and Miscellaneous Entertainers-not elsewhere classified | Y | > > | furniture\_repair\_and\_refinishing | Furniture-Reupholstery and Repair, Refinishing | Y | > > | direct\_marketing\_and\_subscription\_merchants | Direct Marketing-Continuity/Subscription Merchants | N | > > | typewriter\_stores\_sales\_service\_and\_rentals | Typewriter Stores-Sales, Service, and Rentals | Y | > > | direct\_marketing\_insurance\_services | Direct Marketing-Insurance Services | Y | > > | business\_services | Business Services-not elsewhere classified | Y | > > | inbound\_telemarketing\_merchants | Direct Marketing-Inbound Telemarketing Merchants | N | > > | recreation\_services | Recreation Services-not elsewhere classified | Y | > > | swimming\_pools | Swimming Pools-Sales and Supplies | Y | > > | outbound\_telemarketing\_merchants | Direct Marketing-Outbound Telemarketing Merchants | N | > > | public\_warehousing | Public Warehousing-Farm Products, Refrigerated Goods, | Y | > > | clothing\_rental\_stores | Clothing Rental-Costumes, Uniforms, and Formal Wear | Y | > > | contractors | Contractors, Special Trade-not elsewhere classified | Y | > > | transportation\_services | Transportation Services-not elsewhere classified | Y | > > | electric\_razor\_stores | Electric Razor Stores-Sales and Service | Y | > > | service\_stations | Service Stations with or without Ancillary Services | N | > > | photographic\_studio | Photographic studios | Y | > > | professional\_services | Professional services | Y | > > > [accordion] Housing and Real Estate > > > > | Sub Category | Description | Status | > > | - | - | - | > > | developer | Developer | N | > > | facility\_management | Facility Management Company | Y | > > | rwa | RWA | Y | > > | coworking | Co-working spaces | N | > > | realestate\_classifieds | Real estate classifieds | N | > > | space\_rental | Home or office rentals | N | > > > [accordion] Not-for-Profit > > > > | Sub Category | Description | Status | > > | - | - | - | > > | charity | Charity | Y | > > | educational | Educational | Y | > > | religious | Religious | Y | > > | personal | Personal | Y | > > > [accordion] Social > > > > | Sub Category | Description | Status | > > | - | - | - | > > | matchmaking | Dating and Matrimony platforms | N | > > | social\_network | Social Network | Y | > > | messaging | Messaging and Communication | Y | > > | professional\_network | Professional Network | Y | > > | neighbourhood\_network | Local/Neighbourhood network | Y | > > | automobile\_associations\_and\_clubs | Automobile Associations | Y | > > | political\_organizations | Political Organizations | N | > > | country\_and\_athletic\_clubs | Clubs-Country Clubs, Membership-Athletic, Recreation, Sports, Private Golf Courses | Y | > > | associations\_and\_membership | Associations and membership | Y | ### Credit Card EMI > [accordion] What are the standard credit card interest rates charged by the banks for EMI? > > The interest rates charged by various banks for each of the tenures are provided for your reference. The minimum transaction amount for which EMIs are applicable can vary for each bank. The maximum amount is dependent on the card limit set by the issuing bank. > > > [accordion] **American Express (AMEX)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 5000 ^^^^^^^ | 199 ^^^^^^^ | 14% | October 12, 2023 ^^^^^^^ | > > | 6 months | | | 14% | | > > | 9 months | | | 14% | | > > | 12 months | | | 14% | | > > | 18 months | | | 15% | | > > | 24 months | | | 15% | | > > | 36 months | | | NA | | > > > [accordion] **Bank of Baroda (BARB)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | NA ^^^^^^^ | 16% | July 26, 2024 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | NA | | > > > [accordion] **Citibank (CITI)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | A one-time processing fee of 1% or โ‚น100, whichever is higher, will be charged by the bank. ^^^^^^^ | 16% | April 08, 2024 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | NA | | > > > [accordion] **Federal Bank (FDRL)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | NA ^^^^^^^ | 15.99% | July 26, 2024 ^^^^^^^ | > > | 6 months | | | 15.99% | | > > | 9 months | | | 15.99% | | > > | 12 months | | | 15.99% | | > > | 18 months | | | 15.99% | | > > | 24 months | | | 15.99% | | > > | 36 months | | | NA | | > > > [accordion] **HDFC Bank (HDFC)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 1000 | 299 ^^^^^^^ | 16% | July 23, 2025 ^^^^^^^ | > > | 6 months | 1000 | | 16% | | > > | 9 months | 1000 | | 16% | | > > | 12 months | 1000 | | 16% | | > > | 18 months | 3000 | | 16% | | > > | 24 months | 3000 | | 16% | | > > | 36 months | NA | | NA | | > > > [accordion] **HSBC Bank (HSBC)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2000 ^^^^^^^ | 99 ^^^^^^^ | 15% | 21 February 2024 ^^^^^^^ | > > | 6 months | | | 15% | | > > | 9 months | | | 15% | | > > | 12 months | | | 15% | | > > | 18 months | | | 15% | | > > | 24 months | | | 15% | | > > | 36 months | | | NA | | > > > [accordion] **ICICI Bank (ICIC)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 1500 ^^^^^^^ | 199 ^^^^^^^ | 15.99% | November 29, 2023 ^^^^^^^ | > > | 6 months | | | 15.99% | | > > | 9 months | | | 15.99% | | > > | 12 months | | | 15.99% | | > > | 18 months | | | 15.99% | | > > | 24 months | | | 15.99% | | > > | 36 months | | | NA | | > > > [accordion] **IDFB Bank (IDFB)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | A one-time processing fee of 1% or โ‚น99, whichever is higher, will be charged by the bank. ^^^^^^^ | 16% | September 17, 2025 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | 16% | | > > > [accordion] **IndusInd Bank (INDB)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2000 ^^^^^^^ | 249 ^^^^^^^ | 16% | September 12, 2024 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | 16% | | > > > [accordion] **Kotak Mahindra Bank (KKBK)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | 249 ^^^^^^^ | 16% | February 21, 2024 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | NA | | > > > [accordion] **RBL Bank (RATN)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2000 ^^^^^^^ | 199 ^^^^^^^ | 13% | April 05, 2023 ^^^^^^^ | > > | 6 months | | | 14% | | > > | 9 months | | | 15% | | > > | 12 months | | | 15% | | > > | 18 months | | | 15% | | > > | 24 months | | | 15% | | > > | 36 months | | | NA | | > > > [accordion] **State Bank of India (SBIN)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | NA | 16.75% | January 7, 2026 ^^^^^^^ | > > | 6 months | | A one-time processing fee of โ‚น40 will be charged if the transaction amount exceeds โ‚น20,000. | 16.50% | | > > | 9 months | | A one-time processing fee of โ‚น79 will be charged if the transaction amount exceeds โ‚น20,000. | 16.50% | | > > | 12 months | | A one-time processing fee of โ‚น159 will be charged if the transaction amount exceeds โ‚น20,000. | 16% | | > > | 18 months | | A one-time processing fee of โ‚น199 will be charged if the transaction amount exceeds โ‚น20,000. | 16.25% | | > > | 24 months | | A one-time processing fee of โ‚น299 will be charged if the transaction amount exceeds โ‚น20,000. | 16.25% | | > > | 36 months | | NA | NA | | > > > [accordion] **Standard Chartered (SCBL)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 2500 ^^^^^^^ | A one-time processing fee of 1% will be charged by the bank. ^^^^^^^ | 11.88% | July 26, 2024 ^^^^^^^ | > > | 6 months | | | 13% | | > > | 9 months | | | 14% | | > > | 12 months | | | 14% | | > > | 18 months | | | NA | | > > | 24 months | | | NA | | > > | 36 months | | | NA | | > > > [accordion] **Axis Bank (UTIB)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 3000 ^^^^^^^ | A one-time processingfee of 1% or โ‚น100, whichever is higher, will be charged by the bank. ^^^^^^^ | 16% | December 12, 2023 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | NA | | > > > [accordion] **Yes Bank (YESB)**: > > > > | Tenures in Months | Minimum Amount (in INR) | Processing Fee (in INR) | Interest rates | Last Updated | > > | - | - | - | - | - | > > | 3 months | 1500 ^^^^^^^ | 299 ^^^^^^^ | 16% | December 12, 2023 ^^^^^^^ | > > | 6 months | | | 16% | | > > | 9 months | | | 16% | | > > | 12 months | | | 16% | | > > | 18 months | | | 16% | | > > | 24 months | | | 16% | | > > | 36 months | | | NA | | > [accordion] What are the interest rates charged by other credit cards for EMI? > > The interest rates charged by other cards for EMI is given below. > > > [accordion] **OneCard**: > > > > | Tenures in Months | Minimum Amount (in INR) | Interest rates | > > | - | - | - | > > | 3 months | 2500 ^^^^^^ | 16% | > > | 6 months | | 16% | > > | 9 months | | 16% | > > | 12 months | | 16% | > > | 18 months | | 16% | > > | 24 months | | 16% | ### Cardless EMI > [accordion] What are the standard interest rates charged by the banks for cardless EMI? > > The standard interest rates charged by various banks for cardless EMI are provided for your reference. > > | Cardless EMI | Issuer Bank | Provider Code | Minimum Amount (in INR) | 3 months | 6 months | 9 months | 12 months | 18 months | > | - | - | - | - | - | - | - | - | - | > | InstaCred | HDFC Bank | `hdfc` | 5000 | 16% | 16% | 16% | 16% | 16% | > | InstaCred | ICICI Bank | `icic` | 7000 | 16% | 16% | 16% | 16% | NA | > | InstaCred | IDFC First | `idfb` | 5000 | 24% | 24% | 24% | 24% | NA | > | InstaCred | Kotak Mahindra Bank | `kkbk` | 3000 | 20% | 20% | 20% | 20% | NA | > | axio | NA | `walnut369` | 900 | 24% | 24% | 24% | NA | NA | > | Fibe | NA | `earlysalary` | 3000 | 30% | 30% | 30% | NA | NA | > | ZestMoney | NA | `zestmoney` | 3000 | 22% | 24% | 24% | NA | NA | > [accordion] What are the standard interest rates charged by Pay Later providers for cardless EMI? > > The standard interest rates charged by the providers for Pay Later providers are given below: > > | Pay Later | 15 days | 30 days | 45 days | 60 days | 90 days | > | - | - | - | - | - | - | > | LazyPay | Interest free | NA | NA | NA | NA | > | PayPal | Interest free | NA | NA | NA | NA | > > \* Interest rates are determined on a case-to-case basis. [Contact support](https://razorpay.com/support/#request) for more information. > > > [!WARNING] > > > > **Watch Out!** > > > > All interest rates mentioned above are per annum. ## Eligibility Check > [accordion] How does eligibility check work? > > Razorpay has partnered with various Debit Card EMI, Cardless EMI, and Pay Later providers. The providers determine customer eligibility for payment instruments based on their respective pre-defined criteria. Razorpay aggregates the information and presents customers with eligible payment options on checkout. > > The customer proceeds with the selected payment option on Razorpay checkout if eligible. If ineligible, alternate options are presented. > [accordion] What is the pre-defined criteria to determine customer eligibility? > > The pre-defined criteria are specific factors each provider uses, such as repayment history, digital footprint, and bureau score, to assess a customer's creditworthiness. > [accordion] What parameters are required during the eligibility check process? > > The providers determine customer eligibility based on their mobile number and order amount for the requested transaction. > [accordion] If a customer is ineligible for payment, what should they do next? > > The customer can view the reason for ineligibility and choose to: > > * Use a different mobile number for the chosen payment instrument and try again. > * Opt for a different payment instrument/method. > [accordion] What are the reasons for ineligibility? > > You can view the [list of reasons for ineligibility](/docs/payments/payment-gateway/emiยฒ/eligibility-check/standard#reasons-for-ineligibility) and their descriptions. > [accordion] Where can I find the minimum and maximum order amount eligible for a specific payment method/instrument? > > You can view the minimum and maximum order amount for the following payment methods. However, ensure you [check the providers](/docs/payments/payment-gateway/emiยฒ/eligibility-check/standard#list-of-payment-methods) on which eligibility check is performed. > > * [Debit Card EMI](#5-can-you-provide-a-list-of-the) > * [Cardless EMI](#1-what-are-the-standard-interest-rates-charged) > * [Pay Later](#2-what-are-the-standard-interest-rates-charged) > > Please note that not all the providers listed under the above methods are applicable for an eligibility check. # Glossary Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/glossary List of commonly used terms related to Razorpay EMIยฒ Suite. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The following table lists all the commonly used terms and their definitions used in EMIยฒ Suite: | Terms | Description | | - | - | | EMIยฒ Suite | The EMIยฒ suite enables businesses to attract and retain their customer base by providing affordable payment options. | | EMI | An equated monthly installment (EMI) is a fixed payment amount made by a borrower to a lender at a specified date each calendar month. | | No Cost EMI | A No Cost EMI is when you pay for a product in installments without any interest charged on it. | | Offers | An offer is a conditional proposal made by a buyer or seller to buy or sell an asset, which becomes legally binding if accepted. Using Razorpay Offers, you can have a complete control of the discounts that can be offered to your customers. | # EMIยฒ Use Cases Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/use-cases Discover how EMIยฒ can help you attract customers for your business and boost sales through innovative features, such as the Affordability Widget, Eligibility Check, Offers and Payment Methods. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Go through the use cases of how EMIยฒ has helped businesses across the following industries improve conversion rates, build on their brand image and goodwill, enhance customer experience, and reduce drop-offs. > [accordion] Ecommerce > > Acme Corp, an online retailer, faced challenges in providing customers with flexible payment options and discounts. The lack of customer awareness about these offers decreased engagement and conversion rates on the platform. > > Here is how EMIยฒ helped Acme Corp: > > > [accordion] Affordable Payment Options > > > > EMIยฒ enables Acme Corp to offer flexible payment options, including EMIs and Pay Later, making their products more affordable and accessible to customers. > > > [accordion] Offering Exclusive Discounts > > > > Acme Corp uses EMIยฒ to provide exclusive deals and discounts, including Offers, No Cost EMI and Low Cost EMI offers, encouraging customers to make more purchases and increasing their loyalty to the brand. > > > [accordion] Help Unlock Discounts > > > > EMIยฒs Discount Whisperer is a real-time indicator of potential savings for customers. It intelligently analyses customer spending and guides them to unlock bigger discounts. > > > > It also calculates the additional savings they can receive and how much more they need to shop for to get even bigger discounts, resulting in higher conversions and a boost in average order value. > > > [accordion] Affordability Widget > > > > Acme Corp uses EMIยฒ Affordability Widget to create awareness upfront about the EMIยฒ-based payment options and offers available to customers on their website/app before they reach checkout. > > > > Acme Corp embedded these EMIยฒ-based payment options and offers on their product listing pages, checkout pages, and other relevant screens to educate the customers and incentivise them to make purchases, thus reducing cart abandonment and decision-making time. > > > [accordion] Integrate Checkout from Widget > > > > Acme Corp integrated their checkout with EMIยฒ Affordability Widget, enabling their customers to complete their purchase directly from the widget itself, thus eliminating friction in the checkout process. > > > > Our Affordability Widget's auto-selection functionality helps apply the chosen payment option or offer from the Affordability Widget to the payment checkout page, which helps Acme Corp avoid confusion and reduce the risk of abandoned carts. > [accordion] Travel and Hospitality > > Acme Trip, a leading travel agency, offers travellers diverse services and accommodations to deliver a seamless booking experience. However, the company encountered challenges in providing convenient payment options and offers to its customers. > > This affected customer satisfaction and loyalty, as travellers seek flexibility and appealing deals when making travel arrangements. Customers could not complete the payment process due to ineligible payment options and a lack of guidance, leading to drop-offs and lost sales. > > Here is how EMIยฒ helped Acme Trip: > > > [accordion] Convenient Payment Methods > > > > EMIยฒ enables Acme Trip to offer a variety of payment methods tailored to their customer's preferences, including EMIs and Pay Later options. This ensures that Acme Trip's customers can book their travel plans without any financial constraints. > > > [accordion] Exclusive Deals and Discounts > > > > Acme Trip uses EMIยฒ to provide exclusive deals and discounts to its customers, making their travel bookings more affordable and attractive. > > > [accordion] Integrate with Affordability Widget > > > > Acme Corp uses EMIยฒs Affordability Widget to create awareness upfront about the EMIยฒ-based payment options and offers available to customers on their website/app before they reach checkout. > > > > Acme Corp embedded these EMIยฒ-based payment options and offers on their product listing pages, checkout pages, and other relevant screens to educate the customers and incentivise them to make purchases, thus reducing cart abandonment and purchase decision-making time. > > > [accordion] Seamless Checkout Integration > > > > Acme Corp integrated their checkout with EMIยฒs Affordability Widget, enabling their customers to complete their purchase directly from the widget itself, thus eliminating friction in the checkout process. > > > > Our Affordability Widget's auto-selection functionality helps apply the chosen payment option or offer from the Affordability Widget to the payment checkout page, which helps Acme Corp avoid confusion and reduce the risk of abandoned carts. > > > [accordion] Efficient Eligibility Check > > > > EMIยฒ offers a pre-eligibility check on EMIยฒ instruments so customers can check their credit eligibility directly from the widget itself. This helps customers choose the most relevant EMIยฒ option and complete the purchase faster. > [accordion] Education > > Acme Ed, an online education platform, faced challenges providing diverse payment options and attractive offers. Limited payment options hindered enrollment, while a lack of attractive offers affected student attraction. Customers dropped off during payment due to confusion over ineligible payment options, resulting in lost sales and customer dissatisfaction. > > Here is how EMIยฒ helped Acme Ed: > > > [accordion] Enable Flexible Payment Options > > > > EMIยฒ enables Acme Ed to offer flexible payment plans, including EMIs and Pay Later options, making their courses more accessible to students with varying financial capabilities. > > > [accordion] Offer Discounts and Offers > > > > Acme Ed uses EMIยฒ to provide exclusive discounts and offers to its students, incentivising them to enrol in more courses. > > > [accordion] Boost Success Rate with Eligibility Check > > > > EMIยฒ offers a pre-eligibility check on Debit Card EMI, Cardless EMI and Pay Later instruments at checkout. Acme Ed's customers can effortlessly choose the most affordable option and complete the purchase quickly by assessing eligibility upfront. > [accordion] Healthcare and Wellness > > Acme Wellness, a leading healthcare provider, encountered challenges in providing its customers secure and convenient payment options, leading to issues with customer satisfaction and efficient payment processing. > > Customers often faced difficulties in making payments, which resulted in delays in receiving care and added administrative burdens for the healthcare provider. > > Here is how EMIยฒ helps Acme Wellness: > > > [accordion] Enable Secure Payment Methods > > > > EMIยฒ enables Acme Wellness to offer secure payment options, including EMIs and Pay Later, ensuring customers can pay for their medical services and products without hassle or security concerns. > > > [accordion] Offer Discounts > > > > Acme Wellness uses EMIยฒ to provide exclusive discounts and packages to its patients, making healthcare more affordable and accessible. > [accordion] Electric Vehicles > > Acme EV, a leading EV business, faced challenges in offering flexible payment options to its customers. The upfront cost of EVs is often a barrier for potential buyers, and traditional financing options may not always be convenient or feasible. This led to lost sales opportunities for Acme EV as customers sought more affordable and flexible financing solutions. > > Here is how EMIยฒ helped Acme EV: > > > [accordion] Flexible EMI Plans > > > > With EMIยฒ, Acme EV's customers can choose to pay for their EV in EMIs using a variety of instruments from top lending partners, including Cardless, Debit Card & Credit Card. The ability to buy their EV at No Cost and Low Cost EMI helps the customer spread the cost over time, thus making the purchase more manageable and hassle-free. > [accordion] Insurance > > Acme Insurance, a leading insurance company, faced challenges in offering their customers flexible payment options. The upfront cost of insurance premiums is often a barrier for potential policyholders, and traditional financing options may not always be convenient or feasible. This led to lost sales opportunities for Acme Insurance as customers sought more affordable and flexible insurance plans. > > Here is how EMIยฒ helps Acme Insurance: > > > [accordion] Flexible Premium Payment Options > > > > EMIยฒ enables Acme Insurance to offer flexible premium payment options. Customers can pay their insurance premiums in equated monthly instalments (EMIs), spreading the cost over time and making it more manageable. > > > [accordion] Zero Interest EMI > > > > With EMIยฒ, customers can avail of zero-interest EMIs for insurance premiums, making purchasing more affordable and attractive. > > > [accordion] Customised Insurance Plans > > > > EMIยฒ allows Acme Insurance to offer customised insurance plans tailored to customers' specific needs and budgets, ensuring that they get the coverage they need at a price they can afford. # About Affordability Widget Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget Use the Affordability Widget to influence your customer's purchase decision by displaying various affordable payment options and offers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Use our Affordability Widget to spread awareness about the EMIยฒ-based payment options (such as EMI, Cardless EMI, and Pay Later) and offers available to your customers before they checkout. You can embed these payment options and offers on product listing pages, checkout pages, and other relevant screens to educate the customers and reduce cart abandonment. ![Glimpse of the default widget](https://razorpay.com/docs/build/browser/assets/images/default-widget1-v2.jpg) A quick glimpse of Affordability Widget: > [accordion] On Web > > ![View affordability widget on web](https://razorpay.com/docs/build/browser/assets/images/affordability-widget-offers.jpg) > [accordion] On Mobile > > ![View affordability widget on mobile](https://razorpay.com/docs/build/browser/assets/images/affordability-widget-mobile.jpg) > [!NOTE] > > **Handy Tips** > > * For Native users, you can [integrate the widget with checkout](/docs/payments/payment-gateway/emiยฒ/widget/features#checkout-from-widget). > * For Shopify and WooCommerce user, this is a **view-only** widget. > * Only **offers** and **payment methods** configured via the Dashboard will appear on the widget. > * The widget **does not** support Internet Explorer browser and iOS SDKs. > [accordion] Advantages > > * **Initiate checkout from widget** \\ > > Customers can complete their purchase directly from the widget itself. The auto-selection functionality helps apply the chosen payment option/offer from the widget to the payment checkout page. > > * **Enable discovery of affordable payment options early on** \\ > > Customers can discover affordable payment options and payment offers early on in the buying journey and \`make an informed buying decision. > > * **Improve conversion rates** \\ > > The availability of affordable payment options such as [EMI](/docs/payments/payment-methods/emi) and [Pay Later](/docs/payments/payment-methods/pay-later) help boost conversion rates. > > * **Increase Average Order Value** \\ > > Businesses typically see a 30% higher average order value with affordable payment options. > > * **Stand out from your competitors** \\ > > Cultivate customer loyalty and establish a distinctive brand identity that distinguishes you from the competition. > > * **Built for every business** \\ > > Whether you operate in e-commerce, education, healthcare, food and beverage, travel, hospitality, IT, or any other vertical, you can influence customers' purchasing decisions using the Affordability Widget. ## How Affordability Widget Works The following diagram depicts the workflow: ![Know how Affordability Widget works](https://razorpay.com/docs/build/browser/assets/images/affordability-widget-workflow.jpg) The workflow involves the following: 1. Set up your [Razorpay account](/docs/payments/set-up). 2. Integrate the widget with your [custom built-website](/docs/payments/payment-gateway/emiยฒ/widget/native-web), [WooCommerce website](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce) or [Shopify store](/docs/payments/payment-gateway/emiยฒ/widget/shopify). 3. Once you successfully integrate the widget on your website, you can choose to customise the [offers](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise#1-offers), [payment methods](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise#2-payment-methods) and the [themes and colours](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise#3-themes-and-colours) based on your requirement. ## Customer Experience On the product page, the customer: 1. Views the products on your website or app. 2. Clicks **View offers** to check the offers available on the widget. 3. Clicks **View plans** to choose EMI or Pay Later as the payment option on the widget. ![Glimpse of the default widget](https://razorpay.com/docs/build/browser/assets/images/default-widget1-v2.jpg) 1. Enters the phone number and clicks **Check** to check their eligibility for payment options. 2. Enters the OTP sent to their phone number and clicks **Verify**. Our eligibility check is safeguarded by a secure OTP flow to eliminate the risk of unauthorised access. ![Verify phone number for eligibility check](https://razorpay.com/docs/build/browser/assets/images/aff-widget-eligibility-verify.jpg) 3. They can clearly differentiate between the eligible and ineligible payment options. * **Eligible**: The customer selects an eligible payment instrument and proceeds to checkout. * **Ineligible**: The customer can view the reason for ineligibility as highlighted below. ![View reason for ineligibility](https://razorpay.com/docs/build/browser/assets/images/aff-widget-ineligible.jpg) To proceed with the payment in case of ineligibility, the customer can choose to: * Change the phone number for the chosen payment instrument and try again. * Opt for an eligible payment instrument. > [!WARNING] > > **Watch Out!** > > [Eligibility Check on Widget](/docs/payments/payment-gateway/emiยฒ/widget/features#eligibility-check) is an on-demand feature. Write to us at [affordability-widget@razorpay.com](mailto:affordability-widget@razorpay.com) to get this feature enabled. 4. Chooses an eligible payment instrument or a relevant offer and clicks **Buy Now**. 5. They are redirected to your checkout page, where they enter their contact and address details and proceed to checkout. 6. The customer is redirected to the Razorpay checkout if you have integrated the widget with our [Standard Checkout](/docs/payments/payment-gateway/emiยฒ/widget/standard-integration). If not, they are redirected to your custom-built checkout. Once redirected to our Standard Checkout, the payment option or offer the customer selects on the widget appears pre-selected on checkout. > [!WARNING] > > **Watch Out!** > > * [Checkout from the Widget](/docs/payments/payment-gateway/emiยฒ/widget/features#checkout-from-widget) is an on-demand feature. Write to us at [affordability-widget@razorpay.com](mailto:affordability-widget@razorpay.com) to get this feature enabled. > * If you have a [custom-built checkout](/docs/payments/payment-gateway/web-integration/custom), integrate with checkout from the widget using [Custom Integration](/docs/payments/payment-gateway/emiยฒ/widget/custom-integration). 7. They enter the relevant details and complete the payment. ![Initiate checkout from widget](https://razorpay.com/docs/build/browser/assets/images/aff-widget-checkout1.jpg) > [!WARNING] > > **Watch Out!** > > For Shopify and WooCommerce users, this is a view-only widget. Customers can select their preferred offer and plan **only** at checkout. ## Supported Platforms Razorpay Affordability Widget is supported on the following platforms: > [tab] Standard Checkout > > | DWeb | MWeb | Android | iOS | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | x | > [tab] Custom Checkout > > | DWeb | MWeb | Android | iOS | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | x | ## Next Steps You can choose to: * [Integrate Affordability Widget on Web](/docs/payments/payment-gateway/emiยฒ/widget/native-web) * [Integrate Affordability Widget on Woocommerce website](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce) * [Integrate Affordability Widget on your Shopify store](/docs/payments/payment-gateway/emiยฒ/widget/shopify) * [Integrate Affordability Widget on Android App](/docs/payments/payment-gateway/emiยฒ/widget/android) ### Related Information * [Features](/docs/payments/payment-gateway/emiยฒ/widget/features) * [FAQs](/docs/payments/payment-gateway/emiยฒ/widget/faqs) * [Customise the Widget on Web](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise) * [Customise the Widget on WooCommerce](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce/customise) * [Customise the Widget on Shopify](/docs/payments/payment-gateway/emiยฒ/widget/shopify/customise) * [Create Offers](/docs/payments/offers/create) * [Create No Cost EMI Offers](/docs/payments/offers/no-cost-emi/create) * [Create Low Cost EMI Offers](/docs/payments/offers/low-cost-emi/create) * [Payment Methods](/docs/payments/payment-gateway/emiยฒ#payment-methods) # Integrate Affordability Widget With Android App Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/android Integrate the Razorpay Affordability Widget on your Android application to spread awareness about the EMIยฒ-based payment options pre-checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Integrate the Affordability Widget with your Android app to influence your customers' purchase decisions before they reach checkout by displaying various affordable payment options and offers. ## Prerequisites * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Generate the [API keys](/docs/api/authentication#generate-api-keys) from the Dashboard by navigating to **Account & Settings** โ†’ **Website and app settings** โ†’ **API keys**. * You can use the **Test Mode** keys to test the integration and preview the Widget. Later, switch to **Live Mode** of the Dashboard, generate the [Live API keys](/docs/api/authentication#live-mode-api-keys) and replace it with the test keys. ## Integration Steps Follow the integration steps given below to embed the widget on your website. 1. [Add Dependency in Build Gradle File](#step-1-add-dependency-in-build-gradle-file) 2. [Integrate the Widget](#step-2-integrate-the-widget) * [Static Integration](#static-integration) * [Dynamic Integration](#dynamic-integration) 3. [Render the Widget](#step-3-render-the-widget) ### Step 1: Add Dependency in Build Gradle File Add the Affordability Widget dependency to your app's `build.gradle` file in the dependencies section. ```xml theme={null} dependencies { implementation 'com.razorpay:affordability-widget:1.0.0'//maven repo link } ``` ### Step 2: Integrate the Widget You can integrate the widget statically (via XML) or dynamically (via class and objects) as per your project requirement. #### Static Integration Use the code given below to define the ` com.razorpay.affordability.Widget` layout in XML: ```xml theme={null} ``` > [!NOTE] > > **Handy Tips** > > You must add a frame layout if you want to use the widget without the parent layout in XML: > > ```xml theme={null} > android:layout_width="match_parent" > android:layout_height="wrap_content"> > > android:id="@+id/web_item" > android:layout_width="match_parent" > android:layout_height="wrap_content" > /> > > ``` #### Dynamic Integration Use the code given below to define the `com.razorpay.affordability.Widget` layout in the class file: ```java Java theme={null} Widget widget = new Widget(this); ``` ```kotlin Kotlin theme={null} val widget = Widget(this) ``` > [!NOTE] > > **Handy Tips** > > You must add a frame layout if you want to use the widget without the parent layout to create `Widget`: > > ```java Java theme={null} > Widget widget = new Widget(this); > FrameLayout frameLayout = new FrameLayout(this); > frameLayout.addView(widget); > ``` > > ```kotlin Kotlin theme={null} > val widget = Widget(this) > val frameLayout = FrameLayout(this); > frameLayout.addView(widget) > ``` ### Step 3: Render the Widget Call the `render()` method to render the widget. Add the context, test key id generated from the Dashboard and amount (in paise). ```java Java theme={null} JSONObject widgetConfig = new JSONObject( "{" + "\"key\": \"YOUR_KEY_ID\"," + // Enter your Test Key ID generated from the Dashboard "\"amount\": 400000," + "\"currency\": \"INR\"" + "}" ); widget.render(this, widgetConfig); ``` ```kotlin Kotlin theme={null} val widgetConfig = JSONObject( """ { "key": "YOUR_KEY_ID", // Enter your Test Key ID generated from the Dashboard "amount": 400000, "currency": "INR" } """.trimIndent() ) widget.render(this, widgetConfig) ``` > [!WARNING] > > **Watch Out!** > > Ensure you pass the final amount in paise to the widget you want to display to your customers on the product and checkout pages. You have successfully integrated the Affordability Widget with your Android application. #### Proguard Rules If you are using Proguard for your builds, you must add the following lines to your `proguard-rules.pro` file: ``` -keepclassmembers class * { @android.webkit.JavascriptInterface ; } -keepattributes JavascriptInterface -keepattributes *Annotation* -dontwarn com.razorpay.** -keep class com.razorpay.** { *; } -optimizations !method/inlining/* ``` ### Switch to Live Mode After you preview the widget, switch to live mode and replace the test API keys in the sample code with the live ones to take the integration live. Know more about [live API keys](/docs/api/authentication#live-mode-api-keys). ## Successful Activation Here is a glimpse of the default widget with enabled offers and payment method options. ![Glimpse of the default widget](https://razorpay.com/docs/build/browser/assets/images/default-widget.jpg) ## Next Steps After you successfully integrate the widget on your Android app, you can choose to [customise the widget](/docs/payments/payment-gateway/emiยฒ/widget/android/customise) based on your requirement. > [!NOTE] > > **Handy Tips** > > * Fill in the [integration support form](https://form.typeform.com/to/Ro3nJPzp) in case you are facing any issues with the integration. > * In case you have any queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/). ### Related Information * [Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget) * [Affordability Widget FAQs](/docs/payments/payment-gateway/emiยฒ/widget/faqs) # Customisation Options Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/android/customise Customise the Affordability Widget on your Android App. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India After you successfully integrate the widget on your Android app, create a JSON Object as per your customisation requirements and add it as an additional parameter in the `loadwidget()` method. Check all the [customisation options](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise) available. ```java Java theme={null} JSONObject widgetConfig = new JSONObject( "{" + "\"key\": \"YOUR_KEY_ID\"," + // Enter your Live Key ID generated from the Dashboard "\"amount\": 400000," + "\"currency\": \"INR\"," + "\"display\": {" + "\"offers\": false" + "}" + "}" ); widget.render(this, widgetConfig); ``` ```kotlin Kotlin theme={null} val widgetConfig = JSONObject( """ { "key": "YOUR_KEY_ID", // Enter your Live Key ID generated from the Dashboard "amount": 400000, "currency": "INR", "display": { "offers": false } } """.trimIndent() ) widget.render(this, widgetConfig) ``` ### Related Information * [FAQs](/docs/payments/payment-gateway/emiยฒ/faqs) * [About Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/faqs Find answers to frequently asked questions about Razorpay Affordability Widget. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Find answers to the commonly asked questions about the Affordability Widget. * [Generic](#generic) * [Native Website](#native-website) * [WooCommerce Website](#woocommerce) * [Shopify Store](#shopify) ## Generic > [accordion] Who can use this widget? > > All brands that provide payment offers and/or accept payments made through EMI, Cardless EMI and Pay Later methods **only via Razorpay** can use this widget. > [accordion] What does the widget include? > > The widget includes: > > * All the offers that you have set up on Razorpay (along with an expandable view to read the details about each offer). > * All EMI, Cardless EMI, and Pay Later options enabled by you which satisfies the minimum order limit. Know more about the minimum order limit for [EMI](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-credit-card-interest), [Cardless EMI](/docs/payments/payment-gateway/emiยฒ/faqs#cardless-emi) and [Pay Later](/docs/payments/payment-gateway/emiยฒ/faqs#pay-later). > [accordion] How does the integration work? > > Follow the steps below to start the integration process: > > 1. Create a [Razorpay account](https://dashboard.razorpay.com/signup). > 2. Follow the integration steps specific to your integration. It is that simple! > > You can integrate the Affordability Widget with: > > * [Native website](/docs/payments/payment-gateway/emiยฒ/widget/native-web). > * [WooCommerce website](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce). > * [Shopify store](/docs/payments/payment-gateway/emiยฒ/widget/shopify). > [accordion] Where should I place the widget on my website? > > We recommend placing the widget below the product price. It will help your customers discover affordable payment options and offers early on in the buying journey and make an informed buying decision. > [accordion] Is the widget available on Android and iOS SDKs? > > The widget is available on [Android](/docs/payments/payment-gateway/emiยฒ/widget/android) but **not** on iOS SDK. > [accordion] Is it possible to integrate the widget on my website using plugins? > > Yes, it is possible to integrate the widget on your website using [WooCommerce](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce) and [Shopify](/docs/payments/payment-gateway/emiยฒ/widget/shopify). > [accordion] How can I disable the Affordability Widget from the Dashboard? > > Follow the steps given below to disable the Affordability Widget: > > 1. Log in to the Dashboard and navigate to **Affordability** โ†’ **Settings**. > 2. Click **Disable Widget**. > 3. Click **Yes, disable** to remove the Affordability Widget from your website. > > Once you disable the widget, your website/app will automatically fall back to the default experience. > [accordion] What are the various features of the Affordability Widget that will help increase customer conversion? > > Following are the features of the Affordability Widget: > > * [Discount Whisperer](/docs/payments/payment-gateway/emiยฒ/widget/features#discount-whisperer). > * [Eligibility Check](/docs/payments/payment-gateway/emiยฒ/widget/features#eligibility-check). > * [Checkout from Widget](/docs/payments/payment-gateway/emiยฒ/widget/features#checkout-from-widget). > [accordion] If a customer is ineligible for payment, what should they do next? > > The customer can view the reason for ineligibility on the widget itself and choose to: > > * Try again using a different mobile number for the chosen payment instrument. > * Opt for a different payment instrument/method. ## Native Website > [accordion] What customisations are possible in the widget? > > You can customise the following options:\\ > > * Offers > * Payment Methods > * Theme > > Know more about the [customisation options](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise). > [accordion] Can I disable offers? > > Yes, you can disable offers and your customers will not be able to view them on the widget. This will not impact the checkout; customers will be able to view the offers on the checkout. > > Know more about how to [disable offers](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise#14-disable-the-offers). > > You can also disable [EMI](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise#212-disable-emi-options), [Cardless EMI](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise#222-disable-cardless-emi-options) and [Pay Later](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise#232-disable-pay-later-options) options on the widget. > [accordion] How can I alter the appearance of the widget? > > You can alter the appearance of the widget using the following options: > > * Customise the theme colour. > * Change the heading colour and font size. > * Change content colour and font size. > * Change link colour and font size. > * Change footer colour, font size and logo variants. > > Know more about [themes and colours](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise#3-themes-and-colours). > [accordion] What is Checkout from Affordability Widget and how does it benefit my business? > > [Checkout from Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget/standard-integration) is a feature that allows customers browsing EMI plans via the Affordability Widget on your website to directly checkout from the Widget itself. This enables a frictionless checkout journey for customers. > > This feature is projected to increase the conversion rate from Widget to Checkout from 2.7% to 5-10%, thereby benefiting your business by improving customer experience and increasing sales. > [accordion] What does the customer journey look like after integrating Checkout from Affordability Widget? > > Below is the customer journey: > > 1. Customers view the existing plans and offers on the widget, choose an eligible payment instrument or offer, and click **Buy now**. > > 2. They are redirected to your checkout page, where they enter their contact and shipping details and proceed to checkout. > > 3. They are then redirected to the Razorpay checkout if you have integrated the widget with our [Standard Checkout](/docs/payments/payment-gateway/emiยฒ/widget/standard-integration). If not, they are redirected to your custom-built checkout. > > 4. Once redirected to our Standard Checkout, the payment option or offer the customer selects on the widget appears pre-selected on checkout. > > 5. They enter the relevant details and complete the payment. > > ![Checkout from widget](https://razorpay.com/docs/build/browser/assets/images/checkout-widget.gif) > [accordion] What are the prerequisites to enable the Checkout from Affordability Widget feature? > > * Create a [Razorpay account](https://dashboard.razorpay.com/signup). > > * Integrate with the [Razorpay Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget/native-web). This feature is only supported on Native Website. > > * Integrate with [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > > * Integrate Checkout from Widget using [Standard Integration](/docs/payments/payment-gateway/emiยฒ/widget/standard-integration). > > > [!NOTE] > > > > **Handy Tips** > > > > If you have a [custom-built checkout](/docs/payments/payment-gateway/web-integration/custom), integrate with Checkout from Widget using [Custom Integration](/docs/payments/payment-gateway/emiยฒ/widget/custom-integration). > > > [!WARNING] > > > > **Watch Out!** > > > > This is an on-demand feature. Write to us at [affordability-widget@razorpay.com](mailto:affordability-widget@razorpay.com) to get this feature enabled on your account. > [accordion] Will the Checkout from Affordability Widget feature affect my website's page load time? > > No, the Checkout from Affordability Widget feature will not impact your website's page load time. ## WooCommerce > [accordion] I am integrating with Razorpay Plugin for the first time. What are the steps that I need to follow? > > Follow the steps given below if you are integrating with our plugin for the first time: > > 1. Log in to the [WordPress account](https://wordpress.com/log-in), navigate to **WooCommerce** โ†’ **Settings** and click the **Payments** tab. > > ![WooCommerce settings](https://razorpay.com/docs/build/browser/assets/images/woocommerce-settings.jpg) > 2. In the **Payments** tab, scroll down to **Razorpay** and click **Manage** to edit the settings. > > ![edit](https://razorpay.com/docs/build/browser/assets/images/widget-razorpay-edit.jpg) > 3. In the **Plugin Settings**, enter the **Key ID** and **Key Secret** generated from the Dashboard. Click **Save Changes**. > > ![API Keys](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-keys.jpg) > > You can now follow the [integration steps](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce#integration-steps). > [accordion] How does the integration work? > > You can integrate with the Affordability Widget in a few simple steps: > > 1. Install the WooCommerce plugin version **4.3.4** directly from the [WordPress Plugin Directory](https://wordpress.org/plugins/woo-razorpay/). > 2. Create a [Razorpay account](https://dashboard.razorpay.com/signup) and follow the [integration steps](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce#integration-steps). > 3. You can enable the widget from the Dashboard. > [accordion] How can I test the widget before taking it live? > > Follow the steps given below to test the widget: > > 1. On the WordPress Dashboard hover over **Razorpay WordPress** and click **Visit Store**. > > ![Test widget](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-test.jpg) > 2. Click on a product to view the widget. > > ![Preview](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-preview.jpg) > [accordion] What customisations are possible in the widget? > > You can customise the following options:\\ > > * Offers > * Payment Methods > * Theme > > Know more about the [customisation options](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce/customise). > [accordion] The Affordability widget does not appear on the product page. What should I do? > > In some cases, the Affordability widget may not appear on your website if you are using a third-party caching plugin, like WP Rocket. > > To resolve this: > > 1. Log in to your [WP Rocket Dashboard](https://wp-rocket.me/account/). > 2. Navigate to the WP Rocket plugin's settings page. > 3. Add `/widgets/affordability/affordability.js` to the following sections in your settings: > 1. Navigate to **ADVANCE RULES** in the left menu โ†’ **Never Cache URL(s)** > > ![Add URL to Never Cache URL(s) section](https://razorpay.com/docs/build/browser/assets/images/affordability-add-url-1.jpg) > 2. Navigate to **CDN** in the left menu โ†’ **Exclude files from CDN** > > ![Add the URL to Exclude files from CDN](https://razorpay.com/docs/build/browser/assets/images/affordability-add-url-2.jpg) > 4. Navigate to **File Optimization** in the left nav and enable **Minify Javascript files** and > 5. Add `/widgets/emiยฒ/affordability.js` within the **Excluded Javascript Files** section. > > ![Configure file optimization section](https://razorpay.com/docs/build/browser/assets/images/aff-wooc-file-optimization.jpg) > 6. Click **SAVE CHANGES**. The Affordability widget will appear again on your product page. ## Shopify > [accordion] How can I enable the widget on my Shopify store? > > You can integrate with the Affordability Widget on your Shopify Store in a few simple steps: > > 1. Enable the widget directly from your [Shopify app](https://accounts.shopify.com/store-login). > 2. Create a [Razorpay account](https://dashboard.razorpay.com/signup) and perform the [EMIยฒ integration](/docs/payments/payment-gateway/emiยฒ/widget/shopify#integration-steps) steps on your Shopify store. > [accordion] Where should I place the widget on my Shopify store? > > We recommend placing the widget below the product price. It will help your customers discover affordable payment options and offers early on in the buying journey and make an informed buying decision. > [accordion] Where can I find the Razorpay Live API Key ID? > > Follow the steps given below to generate your Key ID: > > 1. Log in to the Dashboard in live mode and navigate to **Account & Settings**. > 2. In the **Website and app settings** section, click **API keys**. > 3. Click **Generate new key** and save the keys in your system. > [accordion] I am not able to view the Widget on my Shopify Store. What should I do? > > Ensure your website's theme version supports [Online Store Theme 2.0](https://shopify.dev/docs/themes/os20). You can [verify](https://community.shopify.com/c/shopify-design/how-to-identify-shopify-online-2-0-theme-or-later/td-p/1521884#:~:text=Next%20Topic-,REPLIES%20\(3\),-Halothemes) if the Online Store Theme 2.0 is supported on your website. > [accordion] What should I do if my current theme does not support Online Store Theme 2.0? > > If your current theme does not support Online Store Theme 2.0, you have a few options: > > * Check if any version updates are available for your current theme that supports Online Store Theme 2.0. > * Look for themes that explicitly mention compatibility with Online Store Theme 2.0. > * Fill in the [integration support form](https://form.typeform.com/to/Ro3nJPzp) in case you are still facing issues with the integration. > [accordion] What customisations are possible in the widget? > > You can customise the following options:\\ > > * Offers \\ > > * Payment Methods \\ > > * Theme \\ > > Know more about the [customisation options](/docs/payments/payment-gateway/emiยฒ/widget/shopify/customise). > [accordion] Is the Affordability Widget compatible with all the free themes? > > Yes, the Affordability Widget is compatible with all free themes. > [accordion] What themes are compatible with the Razorpay Affordability Widget on the Shopify store? > > To see the list of themes that are compatible with the Razorpay Affordability Widget on the Shopify store, refer to [Compatible Themes](/docs/payments/payment-gateway/emiยฒ/widget/faqs#is-the-affordability-widget-compatible-with-all-the-free-themes). ### Related Information * [EMIยฒ Suite FAQs](/docs/payments/payment-gateway/emiยฒ/faqs) * [About Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget) # Features Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/features List of features that will help you increase customer conversion using Affordability Widget. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Razorpay Affordability Widget consists of the following additional features. These features are available only after you integrate the Affordability Widget on your: * [Native Website](/docs/payments/payment-gateway/emiยฒ/widget/native-web) * [WooCommerce Website](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce) * [Shopify Store](/docs/payments/payment-gateway/emiยฒ/widget/shopify) * [Android App](/docs/payments/payment-gateway/emiยฒ/widget/android) ## Discount Whisperer Businesses often struggle to maximise customer engagement and sales due to the lack of visibility for potential offers based on customer behaviour and spending habits. Discount Whisperer is a real-time indicator of potential savings for your customers. It intelligently analyses their spending amount and guides them on unlocking bigger discounts. It also calculates the additional savings they can receive and how much more they can shop for to unlock even bigger discounts, resulting in higher conversions and a boost in average order value. > [accordion] Advantages > > > [tab] For Businesses > > > > * Drive higher sales volumes by motivating customers to shop more for greater discounts. > > * Increase the likelihood of customers purchasing by highlighting the value they get for their spending, leading to higher conversions. > > * Enhance profitability and maximise the value of each transaction with irresistible offers. > > > [tab] For Customers > > > > * Customers can access extra savings by taking advantage of the offers available to them, ensuring they get the most value out of their shopping experience. > > * They receive real value for their money spent, ensuring that every purchase is worthwhile. > > * With irresistible offers and guidance, they can shop intelligently, stretching their budget to its potential. > [accordion] Customer Experience > > Customers click **View offers** on the widget and view the discounts already unlocked or how much more they can shop for to unlock even bigger discounts. > > ![View the discount whisperer section on the widget](https://razorpay.com/docs/build/browser/assets/images/aff-widget-discount-whisperer.jpg) > [accordion] Prerequisites > > * Create a [Razorpay account](https://dashboard.razorpay.com/signup). > > * Integrate with the [Razorpay Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget). > > * Create instant discount and cashback offers with minimum order amount via [Razorpay Offers](/docs/payments/offers/create). > > > [!NOTE] > > > > **Handy Tips** > > > > Only offers created on the Razorpay Dashboard will appear on the widget. > > > [!WARNING] > > > > **Watch Out!** > > > > This is an on-demand feature. Write to us at [affordability-widget@razorpay.com](mailto:affordability-widget@razorpay.com) to get this feature enabled on your account. > [accordion] Supported Integrations > > > [tab] Standard and Custom Checkout > > > > | Native | WooCommerce | Shopify | Android | > > | - | - | - | - | > > | โœ“ | โœ“ | โœ“ | โœ“ | ## Eligibility Check Razorpay offers a pre-eligibility check on EMIยฒ instruments for customers to check their credit eligibility directly from the widget itself which helps customers choose the most relevant EMIยฒ option and complete the purchase faster. > [!NOTE] > > **Handy Tips** > > * The eligibility check is performed only for [Debit Card EMI](/docs/payments/payment-methods/emi/debit-card-emi), [Cardless EMI](/docs/payments/payment-methods/emi/credit-card-emi), and [Pay Later](/docs/payments/payment-methods/pay-later). > * It is not applicable for Credit Card EMI as it is a pre-eligible form of credit. > [accordion] Advantages > > * **Improve Conversion Rates** \\ > > Boost conversion rates as customers can check eligibility directly from the widget, eliminating friction and unnecessary ineligible failures in the buying process. > > * **Enhance Customer Experience**\\ > > The intuitive UI and seamless transitions create a hassle-free experience, boosting customer confidence and purchase completion. > > * **OTP Based Flow**\\ > > Our eligibility check is safeguarded by a secure OTP flow to eliminate the risk of unauthorised access. > [accordion] Customer Experience > > Customers view the product and click **View plans** on the widget. They enter the phone number and OTP to check their eligibility for payment options. > > ![Verify phone number for eligibility check](https://razorpay.com/docs/build/browser/assets/images/eligibility-widget.gif) > > They can clearly differentiate between the eligible and ineligible payment options. > > * **Eligible**: The customer selects an eligible payment instrument and proceeds to checkout. > > * **Ineligible**: The customer can view the reason for ineligibility as highlighted below. > > ![View reason for ineligibility](https://razorpay.com/docs/build/browser/assets/images/aff-widget-ineligible.jpg) > > To proceed with the payment in case of ineligibility, the customer can choose to: > > * Change the phone number for the chosen payment instrument and try again. > * Opt for an eligible payment instrument. > [accordion] Prerequisites > > * Create a [Razorpay account](https://dashboard.razorpay.com/signup). > > * Integrate with the [Razorpay Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget). > > > [!WARNING] > > > > **Watch Out!** > > > > This is an on-demand feature. Write to us at [affordability-widget@razorpay.com](mailto:affordability-widget@razorpay.com) to get this feature enabled on your account. > [accordion] Supported Integrations > > > [tab] Standard and Custom Checkout > > > > | Native | WooCommerce | Shopify | Android | > > | - | - | - | - | > > | โœ“ | โœ“ | โœ“ | โœ“ | ## Checkout from Widget Your customers can check the eligibility and complete their purchase directly from the widget itself, eliminating any friction. The auto-selection functionality helps in applying the chosen payment option or offer from the Affordability Widget to the payment checkout page, which helps businesses avoid confusion and reduce the risk of abandoned carts. > [accordion] Advantages > > * **Improved Conversion Rates** \\ > > The improved Affordability Widget simplifies the checkout process, leading to more customers completing their purchases and thus higher conversion rates. > > * **Frictionless Customer Experience** \\ > > The widget provides a seamless and hassle-free experience, boosting customer confidence and encouraging them to finalise their purchases with ease. > > * **Auto-Selection Convenience** \\ > > The widget's auto-selection functionality automatically applies the chosen payment option or offer to the checkout, reducing confusion and making the process more convenient. > [accordion] Customer Experience > > Customers view the existing plans and offers on the widget, choose an eligible payment instrument or offer and click **Buy Now**. They are redirected to your checkout page, where they enter their contact and shipping details and proceed to checkout. > > They are then redirected to the Razorpay checkout if you have integrated the widget with our [Standard Checkout](/docs/payments/payment-gateway/emiยฒ/widget/standard-integration). If not, they are redirected to your custom-built checkout. Once redirected to our Standard Checkout, the payment option or offer the customer selects on the widget appears pre-selected on checkout. They enter the relevant details and complete the payment. > > ![Checkout from widget](https://razorpay.com/docs/build/browser/assets/images/checkout-widget.gif) > [accordion] Prerequisites > > * Create a [Razorpay account](https://dashboard.razorpay.com/signup). > > * Integrate with the [Razorpay Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget/native-web). > > * Integrate with [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard). > > * Integrate Checkout from Widget using [Standard Integration](/docs/payments/payment-gateway/emiยฒ/widget/standard-integration). > > > [!NOTE] > > > > **Handy Tips** > > > > If you have a [custom-built checkout](/docs/payments/payment-gateway/web-integration/custom), integrate with checkout from widget using [Custom Integration](/docs/payments/payment-gateway/emiยฒ/widget/custom-integration). > > > [!WARNING] > > > > **Watch Out!** > > > > This is an on-demand feature. Write to us at [affordability-widget@razorpay.com](mailto:affordability-widget@razorpay.com) to get this feature enabled on your account. > [accordion] Supported Integrations > > > [tab] Standard and Custom Checkout > > > > | Native | WooCommerce | Shopify | Android | > > | - | - | - | - | > > | โœ“ | x | x | x | # Integrate the Widget on Your Website Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/native-web Integrate Affordability Widget on your Website to spread awareness about the EMIยฒ-based payment options before they reach checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Integrate with Affordability Widget to influence your customer's purchase decisions before they reach checkout by displaying various affordable payment options and offers. > [!NOTE] > > **Handy Tips** > > Razorpay Affordability Widget is compatible with all JavaScript frameworks like React, Vue, Angular, Svelte and so on. ## Prerequisites * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Generate the [API keys](/docs/api/authentication#generate-api-keys) from the Dashboard by navigating to **Account & Settings** โ†’ **Website and app settings** โ†’ **API keys**. * You can use the **Test Mode** keys to test the integration and preview the Widget. Later, switch to **Live Mode** of the Dashboard, generate the [Live API keys](/docs/api/authentication#live-mode-api-keys) and replace it with the test keys. > [!NOTE] > > **Handy Tips** > > Only the Owner, Admin and Manager roles can enable the widget. ## Integration Steps Follow the integration steps given below to embed the widget on your website. 1. [Integrate the Widget](#step-1-integrate-the-widget). 2. [Enable the Widget](#step-2-enable-the-widget). ### Step 1: Integrate the Widget Follow the integration steps given below to integrate the widget: 1. Embed the JavaScript file into your website. Copy the snippet and add it to the head section of your website. ```javascript JavaScript theme={null} ``` 2. Create an HTML element with the below id under the product price. This is to indicate where the affordability widget should appear. ```javascript Add Parameter theme={null}
``` 3. Copy-paste the following snippet to the JS file and link it to your HTML file. Add the test key ID generated from the [Dashboard](#prerequisites). ```javascript Add Parameter theme={null} const key = "rzp_test_XXXX00000XXXX"; //Replace it with your Test Key ID generated from the Dashboard const amount = 400000; //in paise window.onload = function() { const widgetConfig = { "key": key, "amount": amount, }; const rzpAffordabilitySuite = new RazorpayAffordabilitySuite(widgetConfig); rzpAffordabilitySuite.render(); } ``` `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). For example, `rzp_test_XXXX00000XXXX`. `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. > [!WARNING] > > **Watch Out!** > > Ensure you pass the final amount in paise to the widget which you want to display to your customers on the product and checkout pages. You can now preview the widget on your product description page in test mode. Here is a glimpse of the default widget. ![Preview the widget in test mode](https://razorpay.com/docs/build/browser/assets/images/widget-native-test-v2.jpg) #### Switch to Live Mode After you preview the widget, switch to live mode and replace the test API keys in the sample code with the live ones to take the integration live. Know more about [live API keys](/docs/api/authentication#live-mode-api-keys). ### Step 2: Enable the Widget Once you preview the widget on your product description page, you have to enable the widget to display it on your website for your customers. 1. Log in to the Dashboard and navigate to **Affordability** in the **Payment Products** section. 2. Choose **Others** as your **website platform**. ![Select website platform for widget](https://razorpay.com/docs/build/browser/assets/images/widget-native-platform.jpg) 3. Click **Enable Widget** in the **Go live!** section. ![Enable the widget](https://razorpay.com/docs/build/browser/assets/images/widget-native-enable.jpg) 4. Select the check box if you consent to enable the widget and click **Yes, enable**. ## Successful Activation Here is a glimpse of the default widget with offers and payment method options enabled. ![Glimpse of the default widget](https://razorpay.com/docs/build/browser/assets/images/default-widget1-v2.jpg) > [!NOTE] > > **Minimum Order Limit** > > All the payment method options that are enabled and that satisfy the minimum order limit appear on the widget. Know more about the minimum order limit for: > > * [EMI](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-credit-card-interest) > * [Cardless EMI](/docs/payments/payment-gateway/emiยฒ/faqs#cardless-emi) > * [Pay Later](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged) > [!NOTE] > > **Feature Enablement** > > Raise a request with our [Support team](https://razorpay.com/support/#request) to integrate Razorpay Affordability Widget with Checkout. Your customers can select an offer/payment option on the widget, proceed to checkout and complete the payment. ## Next Steps After you successfully integrate the widget on your website, you can choose to [customise the widget](/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise) based on your requirement. > [!NOTE] > > **Handy Tips** > > * Fill in the [integration support form](https://form.typeform.com/to/Ro3nJPzp) in case you are facing any issues with the integration. > * In case you have any queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/). ### Related Information * [Affordability Widget FAQs for Native website](/docs/payments/payment-gateway/emiยฒ/widget/faqs#native-website) * [Integrate Affordability Widget on WooCommerce website](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce) * [Integrate Affordability Widget on your Shopify store](/docs/payments/payment-gateway/emiยฒ/widget/shopify) * [Integrate Affordability Widget on your Android app](/docs/payments/payment-gateway/emiยฒ/widget/android) # Customisation Options Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/native-web/customise Customise the Widget using Razorpay Affordability Widget. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India After you successfully integrate the widget on your website, you can customise the following options: 1. [Offers](#1-offers). * Add additional Offers. * Show limited Offers. * Disable Offers. 2. [Payment Methods](#2-payment-methods) (EMI, Cardless EMI and Pay Later). * Configure the list of providers for various payment methods. * Disable payment methods. 3. [Themes and Colours](#3-themes-and-colours). * Customise theme colour. * Change heading colour and font size. * Change content colour, font size and background colour. * Change discount value colour. * Change button appearance, colour and font size. * Change footer colour, font size and logo variants. * Enable Dark Mode. > [!WARNING] > > **Watch Out!** > > Customisations on the widget are not applicable for Checkout. ## Video Tutorial Watch this video to learn how to customise the Affordability Widget. [Integrate Affordability Widget](https://www.youtube.com/embed/vLVXL2b-6Z0) ## 1. Offers Configure the offers you want to display on the website based on your requirement. The customers can make a choice from a wide range of offers available for your product or service. Know how to [create offers](/docs/payments/offers/create). > [!NOTE] > > **Handy Tips** > > By default all the offers which are marked visible on the Dashboard during the offer creation will appear on the widget. ### 1.1 Additional Offers By default, all those offers with the **Show Offer on Checkout** option enabled during creation will appear on the widget. Additionally, you can enter the `offer_id` of the offer that did not have the [Show Offer on Checkout](/docs/payments/offers/create#offer-validity:~:text=Show%20Offer%20on%20Checkout) option enabled during offer creation. ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "features": { "offers": { "list": [ "offer_ANZoaxsOww2X53" ] } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `features.offers` : `object` Display a set of additional offers on the widget by passing the `offer_id` `list` *optional* : `array` Display a list of `offer_id` of the offers. ### 1.2 Limited Offers By default, all offers which had the **Show Offer on Checkout** option enabled during the offer creation will appear on the widget. In case you want to display limited offers on the widget, enter the `offer_id` of the offers of your choice.\ To show limited offers: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "offers": { "offerIds": [ "offer_ANZoaxsOww2X53" ] } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `display.offers` : `object` Display a set of limited offers. `offerIds` *optional* : `array` Unique identifier of the offer. ### 1.3 Disable the Offers If you disable the offers completely, they will not appear on the widget and the customers will not be able to view them.\ To completely disable the offers: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "offers": false } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `display` : `object` Display various offers on the widget. `offers` *optional* : `boolean` Indicates whether the offers should be displayed. Possible values: * `true` (default): Display the offers on the widget. * `false`: Disable the offers on the widget. ## 2. Payment Methods Configure the payment methods you want to display on the website based on your requirement. ### 2.1 EMI > [!NOTE] > > **Handy Tips** > > All EMI options applicable for the payment amount will appear on the widget by default. For example, if the payment amount is โ‚น3000, the widget displays only the suitable EMI options. #### 2.1.1 Limited Providers for EMI Razorpay supports [Debit Card](/docs/payments/payment-gateway/emiยฒ/faqs#5-can-you-provide-a-list-of-the) and [Credit Card](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-credit-card-interest) EMI providers for EMI options. By default, all EMI options satisfying the minimum transaction amount will appear on the widget. In case you want to display limited EMI options on the widget, enter the list of **provider codes** based on your requirement.\ To show a limited set of providers: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 300000, "display": { "emi": { "issuers": [ "KKBK" ] } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น3000, enter `300000`. `display.emi.issuers` *optional* : `array` List of limited set of [providers](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-issuers-that-razorpay-supports) for EMI options. #### 2.1.2 Disable EMI Options If you disable the EMI options completely, they will not appear on the widget and the customers will not be able to view them.\ To completely disable EMI options: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "emi": false } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `display` : `object` Display different payment method options on the widget. `emi` *optional* : `boolean` Indicates whether the EMI options should appear on the widget. Possible values: * `true` (default): Display the EMI options on the widget. * `false`: Disable the EMI options on the widget. ### 2.2 Cardless EMI > [!NOTE] > > **Handy Tips** > > All Cardless EMI options applicable for the payment amount will appear on the widget by default. For example, if the payment amount is โ‚น3000, the widget displays only the suitable Cardless EMI options. #### 2.2.1 Limited providers for Cardless EMI Razorpay supports these [Cardless EMI providers](/docs/payments/payment-gateway/emiยฒ/faqs#cardless-emi). By default, all Cardless EMI options satisfying the minimum transaction amount will appear on the widget. In case you want to display limited Cardless EMI options on the widget, enter the list of **provider codes** based on your requirement.\ To show a limited set of providers: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 300000, "display": { "cardlessEmi": { "providers": [ "zestmoney", "earlysalary" ] } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น3000, enter `300000`. `display.cardlessEmi.providers` *optional* : `array` List of limited set of [providers](/docs/payments/payment-methods/emi/cardless-emi#supported-payment-partners) for Cardless EMI options. #### 2.2.2 Disable Cardless EMI Options If you disable the Cardless EMI options completely, they will not appear on the widget and the customers will not be able to view them.\ To completely disable Cardless EMI options: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "cardlessEmi": false } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `display` : `object` Display different payment method options on the widget pages. `cardlessEmi` *optional* : `boolean` Indicates whether the Cardless EMI options should appear on the widget. Possible values: * `true` (default): Display the Cardless EMI options on the widget. * `false`: Disable the Cardless EMI options on the widget. ### 2.3 Pay Later > [!NOTE] > > **Handy Tips** > > All Pay Later options applicable for the payment amount will appear on the widget by default. For example, if the payment amount is โ‚น4000, the widget displays only the suitable Pay Later options. #### 2.3.1 Limited Providers for Pay Later Razorpay supports these [Pay Later providers](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged). By default, all Pay Later options satisfying the minimum transaction amount will appear on the widget. In case you want to display limited Pay Later options on the widget, enter the list of **provider codes** based on your requirement.\ To show a limited set of providers: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "paylater": { "providers": [ "lazypay" ] } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น100, enter `400000`. `display.paylater.providers` *optional* : `array` List of limited set of [providers](/docs/payments/payment-methods/pay-later/custom-integration#providers) for Pay Later options. #### 2.3.2 Disable Pay Later Options If you disable the Pay Later options completely, they will not appear on the widget and the customers will not be able to view them.\ To completely disable Pay Later options: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "paylater": false } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น100, enter `400000`. `display` : `object` Display different payment method options on the widget. `paylater` *optional* : `boolean` Indicates whether the Pay Later options should appear on the widget. Possible values: * `true` (default): Display the Pay Later options on the widget. * `false`: Disable Pay Later options on the widget. ## 3. Themes and Colours Change the appearance of the widget based on your website. Following are the customisations you can perform on the widget: ### 3.1 Customise Theme Colour (Only Header) Customise the theme colour based on your requirement. For example, if the background colour of the header is blue, you can change the colour to purple. ![Customise the widget theme colour](https://razorpay.com/docs/build/browser/assets/images/widget-theme-colour-v2.jpg) > [!NOTE] > > **Handy Tips** > > * The default theme colour (blue) set on the widget will be considered if no colour is passed here.\\ > > * Only a 6-character HEX code is supported. To change the theme colour: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "theme": { "color": "#800080" } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `theme` : `object` Thematic options to modify the appearance of the header. `color` *optional* : `string` Enter the HEX code of your choice to change the appearance of the header. ### 3.2 Change Heading Colour and Font Size You can customise the colour and font size of the headings on the widget. For example, if the colour of the heading is white and the font size is 12px you can change the colour to black and the font size to 14px. ![Customise the heading colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-heading-v2.jpg) > [!NOTE] > > **Handy Tips** > > The default colour (white) and font size set on the widget will be considered if nothing is passed here. To change the heading colour and font size: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "widget": { "main": { "heading": { "color": "black", "fontSize": "14px" } } } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `display.widget.main.heading` : `object` Customise the heading on the widget. `color` *optional* : `string` Enter the colour of your choice. `fontSize` *optional* : `string` Enter the font size of your choice. ### 3.3 Change Content Colour, Font Size and Background Colour You can customise the colour and font size of the content on the widget. For example, if the colour of the content is black and the font size is 12px you can change the colour to blue and the font size to 13px. Additionally, you can also customise the background colour to match the look and feel of your website. ![Customise the content colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-content-v2.jpg) > [!NOTE] > > **Handy Tips** > > The default colour (black), font size and background colour (white) set on the widget will be considered if nothing is passed here. To change the content colour, font size and background colour: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "widget": { "main": { "content": { "backgroundColor": "#e6f0ff", "color": "#003380", "fontSize": "13px" } } } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `display.widget.main.content` : `object` Customise the content on the widget. `backgroundColor` *optional* : `string` Enter the background colour of your choice. `color` *optional* : `string` Enter the colour of your choice. `fontSize` *optional* : `string` Enter the font size of your choice. ### 3.4 Change Discount Value Colour You can customise the colour of the discount value on the widget. For example, if the colour of the value is green, you can change the colour to pink. ![Customise the content colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-discount-v2.jpg) > [!NOTE] > > **Handy Tips** > > The default colour (green) set on the widget will be considered if nothing is passed here. To change the discount value colour: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "widget": { "main": { "discount": { "color": "#e60099" } } } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `display.widget.main.discount` : `object` Customise the discount value on the widget. `color` *optional* : `string` Enter the colour of your choice. ### 3.5 Change Button Appearance, Colour and Font Size By default, a button appears on the widget to view the plans, offers and options. You can change the appearance of the button to a link based on your requirement. Additionally, you can customise the colour and font size of the link on the widget. For example, if the colour of the link is blue and the font size is 10px you can change the colour to black and the font size to 12px. ![Customise the link colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-button-link.jpg) > [!NOTE] > > **Handy Tips** > > The default colour (blue) and font size set on the widget will be considered if nothing is passed here. To change the button to a link and its colour and font size: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "widget": { "main": { "link": { "button": false, // default is true, shown as a button "color": "black", "fontSize": "12px" } } } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `display.widget.main.link` : `object` Customise the link on the widget. `button` *optional* : `boolean` Determine the presentation of EMI plans, offers, and Pay Later options. Possible values: * `true` (default): Display the EMI plans, offers and Pay Later options as buttons. * `false`: Display the EMI plans, offers and Pay Later options as links. `color` *optional* : `string` Enter the colour of your choice. `fontSize` *optional* : `string` Enter the font size of your choice. ### 3.6 Change Footer Colour, Font Size and Logo You can customise the colour and font size of the footer on the widget. For example, if the colour of the footer is white and the font size is 10px you can change the colour to black and the font size to 12px.\ Razorpay provides customisation option for the logo in two variants: * Light (default) * Dark ![Customise the appearance of the logo on the widget](https://razorpay.com/docs/build/browser/assets/images/widget-dark-logo-v2.jpg) > [!NOTE] > > **Handy Tips** > > The default colour, font size and Razorpay logo set on the widget will be considered if nothing is passed here. To change the footer colour, font size and logo: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "widget": { "main": { "footer": { "color": "black", "fontSize": "12px", "darkLogo": true // default is false, shown as light } } } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `display.widget.main.footer` : `object` Customise the footer of the widget. `color` *optional* : `string` Enter the colour of your choice. `fontSize` *optional* : `string` Enter the font size of your choice. `darklogo` *optional* : `boolean` Indicates the colour of the Razorpay logo. Possible values: * `true`: Display the Razorpay logo in a darker tone on the widget with a lighter theme colour. * `false` (default): Display the default Razorpay logo on the widget with a darker theme colour. ### 3.7 Enable Dark Mode Activate the widget's dark mode when your website utilises dark mode. This is specifically designed for websites with darker background colors, improving the presentation of offers, plans, and options. ![Enable widget dark mode on your website](https://razorpay.com/docs/build/browser/assets/images/widget-dark-mode.jpg) To enable dark mode: ```javascript Add Parameter theme={null} { "key": "YOUR_KEY_ID", "amount": 400000, "display": { "widget": { "main": { "isDarkMode": true //default is false } } } } ``` #### Parameters `key` *mandatory* : `string` API Key ID generated from the [Dashboard](/docs/api/authentication#generate-api-keys). `amount` *mandatory* : `integer` The amount to be paid by the customer in paise. For example, if the amount is โ‚น4000, enter `400000`. `display.widget.main` : `object` Customise dark mode on the widget. `isDarkMode` *optional* : `boolean` Specifies whether dark mode is enabled for the widget. Possible values: * `true`: Displays the widget in dark mode. (recommended for websites with darker background colors) * `false` (default): Displays the widget in light mode. ### Related Information * [Integration steps](/docs/payments/payment-gateway/emiยฒ/widget/native-web) * [Affordability Widget FAQs](/docs/payments/payment-gateway/emiยฒ/widget/faqs) * [About Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget) # Integrate Affordability Widget With Shopify Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/shopify Integrate the Razorpay Affordability Widget on your Shopify store to spread awareness about the EMIยฒ-based payment options before they reach checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Integrate the Razorpay Affordability Widget with your Shopify store to influence your customer's purchase decisions before they reach checkout by displaying various affordable payment options and offers. ## Prerequisites * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Generate the [API keys](/docs/api/authentication#generate-api-keys) from the Dashboard by navigating to **Account & Settings** โ†’ **Website and app settings** โ†’ **API keys**. * Ensure your website's theme version supports [Online Store Theme 2.0](https://shopify.dev/docs/themes/os20). You can [verify](https://community.shopify.com/c/shopify-design/how-to-identify-shopify-online-2-0-theme-or-later/td-p/1521884#:~:text=Next%20Topic-,REPLIES%20\(3\),-Halothemes) if the Online Store Theme 2.0 is supported on your website. > [accordion] List of Supported Themes > > Razorpay Affordability Widget Shopify is supported on the following popular themes: > > | Theme | Paid | Free | > | - | - | - | > | Craft | x | โœ“ | > | Crave | x | โœ“ | > | Colorblock | x | โœ“ | > | Dawn | x | โœ“ | > | Focal | โœ“ | x | > | Impulse | โœ“ | x | > | Origin | x | โœ“ | > | Motion | โœ“ | x | > | Pipeline | โœ“ | x | > | Publisher | x | โœ“ | > | Refresh | x | โœ“ | > | Ride | x | โœ“ | > | Sense | x | โœ“ | > | Spotlight | x | โœ“ | > | Studio | x | โœ“ | > | Taste | x | โœ“ | > [!WARNING] > > **Watch Out!** > > If you use a theme not listed above and encounter issues integrating the Razorpay Affordability Widget, we recommend switching to one of the above supported themes. ## Integration Steps Perform the following integration steps: 1. Go to the [Shopify app store](https://apps.shopify.com/affordability-widget). 2. Click **Add app** to install Razorpay Affordability Widget. ![Add the app to your shopify store](https://razorpay.com/docs/build/browser/assets/images/shopify-add-app.jpg) 3. Click **Install app**. ![Install the App](https://razorpay.com/docs/build/browser/assets/images/shopify-install-app.jpg) 4. In the **Account Details** section, enter the **Live API Key ID** and click **Save**. > [!NOTE] > > **Handy Tips** > > In case you cannot find your **API key ID**, use the *Click here* option below the field to find the key on the Dashboard. ![Enter the live API key ID](https://razorpay.com/docs/build/browser/assets/images/shopify-api-key.jpg) 5. You are redirected to the Shopify theme editor page. In the **Product information** section, click **Add block**. ![Add widget block](https://razorpay.com/docs/build/browser/assets/images/shopify-widget-block.jpg) > [!NOTE] > > **Handy Tips** > > In case you are not redirected to the theme editor page, then navigate to **Online Store** in the **Sales channels** section and click **Themes**. Click **Customize**. > > ![Shopify theme editor page](https://razorpay.com/docs/build/browser/assets/images/shopify-widget-theme-editor.jpg) 6. Click **Apps**. The **Razorpay Affordability Widget** app appears. ![The affordability widget app appears in the apps sections](https://razorpay.com/docs/build/browser/assets/images/aff-shopify-rzp-widget-add.jpg) 7. Select **razorpay-afd-widget** and drag it below the **Price** field. The customers will be able to view the widget below the product price. 8. Click **Save** in the Shopify theme editor page to display the widget to your customers. ![Save the widget settings](https://razorpay.com/docs/build/browser/assets/images/shopify-widget-save.jpg) ## Successful Activation Here is a glimpse of the default widget with offers and payment method options enabled. ![Glimpse of the default widget](https://razorpay.com/docs/build/browser/assets/images/default-widget1-v2.jpg) > [!NOTE] > > **Minimum Order Limit** > > All the payment method options that are enabled and that satisfy the minimum order limit appear on the widget. Know more about the minimum order limit for: > > * [EMI](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-credit-card-interest) > * [Cardless EMI](/docs/payments/payment-gateway/emiยฒ/faqs#cardless-emi) > * [Pay Later](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged) ## Next Steps Once you successfully integrate the widget on your Shopify store, you can choose to [customise the widget](/docs/payments/payment-gateway/emiยฒ/widget/shopify/customise) based on your requirement. > [!NOTE] > > **Handy Tips** > > * Fill in the [integration support form](https://form.typeform.com/to/Ro3nJPzp) in case you are facing any issues with the integration. > * In case you have any queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/). ### Related Information [Affordability Widget FAQs for Shopify](/docs/payments/payment-gateway/emiยฒ/widget/faqs#shopify) # Customisation Options Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/shopify/customise Customise the Affordability Widget on your Shopify store. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India After successfully integrating Affordability Widget on your Shopify store, you can choose to customise the widget based on your requirement. > [!WARNING] > > **Watch Out!** > > Customisations on the widget are not applicable for Payments Checkout. To customise the widget: 1. Log in to the [Shopify Store](https://accounts.shopify.com/store-login) and navigate to **Apps** โ†’ **Razorpay Affordability Widget**. 2. Select **Customisation Options**. ![Customise the widget on Shopify](https://razorpay.com/docs/build/browser/assets/images/shopify-widget-customise.jpg) You can now customise the following options: 1. [Themes and Colours](#1-themes-and-colours) * Widget Color * Heading Color * Heading Font Size * Content Color * Content Background Color * Content Font size * Link Color * Link Font Size * Discount Color * Footer Color * Footer Font Size * Razorpay Dark Logo * Enable Button Link * Widget Dark Mode 2. [Payment Methods](#2-payment-methods) * Card EMI * Cardless EMI * Pay Later * Card EMI Providers * Cardless EMI Providers * Pay Later Providers 3. [Offers](#3-offers) * Offers * Limit Offers * Hide Offer Amount * Show hidden Offers > [!WARNING] > > **Watch Out!** > > Once you customise the widget, click **Save** at the end of the customisation page for the changes to reflect. ## 1. Themes and Colours Alter the appearance of the widget based on your store. The following customisation options are available: ![Theme and colour customisation](https://razorpay.com/docs/build/browser/assets/images/shopify-widget-theme.jpg) * **Widget Color**: Customise the widget theme colour based on your requirement. For example, if the background colour of the header is blue, you can change the colour to purple. > [!NOTE] > > **Handy Tips** > > * The default theme colour (blue) set on the widget will be considered if no colour is passed here.\\ > > * Only a 6-character HEX code is supported. ![Customise the widget theme colour](https://razorpay.com/docs/build/browser/assets/images/widget-theme-colour-v2.jpg) * **Heading Color**: Enter the 6-character HEX code of the heading colour based on your requirement. For example, if the default colour of the header is white, you can change the colour to black. > [!WARNING] > > **Watch Out!** > > Enter the font size as per pixels (px). You only have to enter the required size. For example, 14. * **Heading Font Size**: Enter the font size of the heading based on your requirement. The default size is 12. ![Customise the heading colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-heading-v2.jpg) * **Content Color**: Enter the 6-character HEX code of the content colour based on your requirement. For example, if the default colour of the content is black, you can change the colour to dark blue. * **Content Background Color**: Enter the 6-character HEX code to customise the background colour to match the look and feel of your website. For example, if the default colour of the background is white, you can change the colour to blue. * **Content Font Size**: Enter the font size of the content based on your requirement. The default size is 14. ![Customise the content colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-content-v2.jpg) * **Link Color**: Enter the 6-character HEX code of the link colour based on your requirement. For example, if the colour of the link is blue, you can change the colour to black. * **Link Font Size**: Enter the font size of the link based on your requirement. For example, if the font size is 10px, you can change the font size to 12px. > [!NOTE] > > **Handy Tips** > > The link customisations work only when button link is disabled. ![Customise the link colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-link-color-size.jpg) ![Theme and colour customisation](https://razorpay.com/docs/build/browser/assets/images/shopify-widget-theme2.jpg) * **Discount Color**: Enter the 6-character HEX code of the discount value colour based on your requirement. For example, if the colour of the value is green, you can change the colour to pink. ![Customise the content colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-discount-v2.jpg) * **Footer Color**: Enter the 6-character HEX code of the footer colour based on your requirement. The default colour is white. * **Footer Font Size**: Enter the font size of the footer based on your requirement. The default size is 12. * **Razorpay Dark Logo**: Razorpay provides customisation option for the logo in two variants: * Light (default): Display the default Razorpay logo on the widget with a darker theme colour. * Dark: Display the Razorpay logo in a darker tone on the widget with a lighter theme colour. If you want to display the light variant of the logo, click **Activate**. \ ![Customise the appearance of the logo on the widget](https://razorpay.com/docs/build/browser/assets/images/widget-dark-logo-v2.jpg) * **Enable Button Link**: By default, a button appears on the widget to view the plans, offers and options. Click **Activate** to change the appearance of the button to a link based on your requirement. ![Customise the link colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-button-link.jpg) * **Widget Dark Mode**: Enable the widget's dark mode when your website utilises dark mode. This is specifically designed for websites with darker background colors, improving the presentation of offers, plans, and options. Click **Activate**. ![Enable widget dark mode on your website](https://razorpay.com/docs/build/browser/assets/images/widget-dark-mode.jpg) ## 2. Payment Methods Configure the payment methods you want to display on the store based on your requirement. ![Customise payment methods](https://razorpay.com/docs/build/browser/assets/images/shopify-widget-payment-methods.jpg) #### 2.1 Card EMI EMI is enabled by default. To deactivate the EMI payment option, click **Deactivate**. The EMI options will not appear on the widget and the customers will not be able to view them. > [!NOTE] > > **Handy Tips** > > All EMI options applicable for the payment amount will appear on the widget by default. For example, if the payment amount is โ‚น3000, the widget displays only the suitable EMI options. #### 2.2 Cardless EMI Cardless EMI is enabled by default if it is activated for your account. To deactivate the Cardless EMI payment option, click **Deactivate**. The Cardless EMI options will not appear on the widget and the customers will not be able to view them. > [!NOTE] > > **Handy Tips** > > All Cardless EMI options applicable for the payment amount will appear on the widget by default. For example, if the payment amount is โ‚น3000, the widget displays only the suitable Cardless EMI options. #### 2.3 Pay Later Pay Later is enabled by default if it is activated for your account. To deactivate the Pay Later payment option, click **Deactivate**. The Pay Later options will not appear on the widget and the customers will not be able to view them. > [!NOTE] > > **Handy Tips** > > All Pay Later options applicable for the payment amount will appear on the widget by default. For example, if the payment amount is โ‚น4000, the widget displays only the suitable Pay Later options. #### 2.4 Card EMI Providers Razorpay supports [Debit Card](/docs/payments/payment-gateway/emiยฒ/faqs#5-can-you-provide-a-list-of-the) and [Credit Card](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-credit-card-interest) EMI providers for EMI options. By default, all EMI options satisfying the minimum transaction amount will appear on the widget. If you want to display limited EMI options on the widget, in the **Options** drop-down list, select/unselect the providers of your choice. #### 2.5 Cardless EMI Providers Razorpay supports [these Cardless EMI providers](/docs/payments/payment-gateway/emiยฒ/faqs#cardless-emi). By default, all Cardless EMI options satisfying the minimum transaction amount will appear on the widget. To display limited Cardless EMI options on the widget, in the **Options** drop-down list, select/unselect the provider of your choice. #### 2.6 Pay Later Providers Razorpay supports [these Pay Later providers](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged). By default, all Pay Later options satisfying the minimum transaction amount will appear on the widget. If you want to display limited Pay Later options on the widget, in the **Options** drop-down list, select/unselect the provider of your choice. ## 3. Offers Configure the offers you want to display on the store based on your requirement. Customers can choose from a wide range of offers for your product or service. Know how to [create offers](/docs/payments/offers/create). > [!NOTE] > > **Handy Tips** > > By default, all the offers marked visible on the Dashboard during the offer creation appear on the widget. ![Customise offers](https://razorpay.com/docs/build/browser/assets/images/shopify-widget-offers.jpg) > [!WARNING] > > **Watch Out!** > > For comma-separated lists, add the information without a space. For example, if you are adding a list of `offer_ids` then follow this format: `offer_ANZoaxsOww2X53`,`offer_LAZoazsOcc2X55`,`offer_QAFoazsOww2X78`. #### 3.1 Offers Offers are enabled by default. To deactivate offers, click **Deactivate**. Offers will not appear on the widget and the customers will not be able to view them. #### 3.3 Limit Offers To display limited offers on the widget, enter the `offer_id` of the offers of your choice. #### 3.3 Hide Offer Amount By default, the customers can view the exact discount amount. This helps the new customers compare and choose your products over your competitors. Click **Activate** to hide the discount amount on the widget if required. #### 3.4 Show Hidden Offers By default, all those offers with the **Show Offer on Checkout** option enabled during creation will appear on the widget. Additionally, you can enter the `offer_id` of the offer that did not have the [Show Offer on Checkout](/docs/payments/offers/create#offer-validity:~:text=Show%20Offer%20on%20Checkout) option enabled during offer creation. ### Related Information * [Affordability Widget: Shopify FAQs](/docs/payments/payment-gateway/emiยฒ/widget/faqs#shopify) * [About Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget) # Integrate Checkout From Widget Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/standard-integration Integrate Checkout from Affordability Widget using Standard Integration and allow your customers to complete their purchase directly from the widget. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Integrate Checkout from Affordability Widget using Standard Integration and provide customers with a direct and convenient avenue to complete their purchases within the widget itself. This helps businesses improve conversion rates and eliminate any friction or unnecessary steps in the buying process. > [!NOTE] > > **Handy Tips** > > If you have a [custom-built checkout](/docs/payments/payment-gateway/web-integration/custom), integrate with checkout from widget using [Custom Integration](/docs/payments/payment-gateway/emiยฒ/widget/custom-integration). > [!WARNING] > > **Watch Out!** > > * This is an on-demand feature. Write to us at [affordability-widget@razorpay.com](mailto:affordability-widget@razorpay.com) to get this feature enabled on your account. > * This feature is only supported on [Native Website](/docs/payments/payment-gateway/emiยฒ/widget/native-web) integration. > [accordion] Advantages > > * **Improved Conversion Rates** \\ > > The improved Affordability Widget simplifies the checkout process, leading to more customers completing their purchases, resulting in higher conversion rates. > > * **Frictionless Customer Experience** \\ > > The widget provides a seamless and hassle-free experience, boosting customer confidence and encouraging them to finalise their purchases easily. > > * **Auto-Selection Convenience** \\ > > The widget's auto-selection functionality automatically applies the chosen payment option or offer to the checkout, reducing confusion and making the process more convenient. ## Prerequisites * Create a [Razorpay account](https://dashboard.razorpay.com/signup). * Generate the [API keys](/docs/api/authentication#generate-api-keys) from the Dashboard. You can use the **Test Mode** keys to test the integration and preview the Widget. Later, switch to **Live Mode** of the Dashboard, generate the [Live API keys](/docs/api/authentication#live-mode-api-keys) and replace it with the test keys. * Integrate with the [Razorpay Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget/native-web). ## Integration Steps Follow the integration steps given below on your website: > [accordion] 1 Define Checkout Callback Function > > Define a callback function that receives the `affordabilityWidgetPrefill` as an argument. This function is invoked when the customer clicks the **Buy Now** button on the widget. > > The prefill data is a string that contains the payment instrument details or `offer_id` used to invoke checkout from the widget. You can use any custom logic to save this data for the future. After saving the prefill data, you can seamlessly initiate your websiteโ€™s checkout process and redirect the customer to the preferred location as per your websiteโ€™s checkout journey. > > ```javascript JavaScript theme={null} > function checkoutCallback(affordabilityWidgetPrefill) { > // Your logic to save affordabilityWidgetPrefill > > // Perform redirection to cart page or any other preferred location as per your websiteโ€™s checkout journey > } > ``` > > > [!NOTE] > > > > **Handy Tips** > > > > * Consider storing the prefill data as a component state if you use a frontend framework like React. > > * Alternatively, you can store it in `localstorage` or use any other storage method. > [accordion] 2 Pass Function in Affordability Widget Configuration > > Pass the callback function [previously defined](#1-define-checkout-callback-function) to `widgetConfig` as `checkout_callback`, when initialising Razorpay Affordability Widget. > > ```javascript JavaScript theme={null} > window.addEventListener('DOMContentLoaded', () => { > const widgetConfig = { > key: 'YOUR_KEY_ID', // Replace it with your live Key ID generated from Razorpay Dashboard > amount: 400000, // Amount in paise > currency: 'INR', > checkout_callback: checkoutCallback // new > }; > > const rzpAffordabilityWidget = new RazorpayAffordabilitySuite(widgetConfig); > rzpAffordabilityWidget.render(); > }); > ``` > > `key` *mandatory* > : `string` API Key ID generated from the Dashboard. > > `amount` *mandatory* > : `integer` The amount to be paid by the customer in currency subunits. For example, if the amount is โ‚น500, enter `50000`. > > `currency` *mandatory* > : `string` The currency in which the customer should make the payment. Check the list of [supported currencies](/docs/payments/international-payments#supported-currencies). > > `checkout_callback` *mandatory* > : `function` The callback function is called when the user clicks the Buy button on the widget. This function receives `affordabilityWidgetPrefill` as an argument. > [accordion] 3 Initiate Payment Checkout with Option Selected > > Before opening the payment checkout for your customer with the selected option on the widget, retrieve `affordabilityWidgetPrefill` from your global store/localstorage or anywhere you stored it and pass it in the checkout options that you use to open Razorpay Standard Checkout. > > ```javascript JavaScript theme={null} > > > // new > > ``` # Integrate Affordability Widget With WooCommerce Website Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/woocommerce Integrate your WooCommerce website with Affordability Widget to spread awareness about the EMIยฒ-based payment options before they reach checkout. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can integrate Affordability Widget with your WooCommerce website to influence your customer's purchase decisions before they reach checkout by displaying various affordable payment options and offers. > [!NOTE] > > **Handy Tips** > > Only the Owner, Admin and Manager roles can enable the widget. ## Prerequisites * Create a [Razorpay account](https://dashboard.razorpay.com/). * Generate the [API keys](/docs/api/authentication#generate-api-keys) from the Dashboard by navigating to **Account & Settings** โ†’ **Website and app settings** โ†’ **API keys**. * You can use the **Test Mode** keys to test the integration and preview the Widget. * Switch to **Live Mode** on the Razorpay Dashboard โ†’ Generate the [Live API keys](/docs/api/authentication#live-mode-api-keys) and replace it with the test keys. * Install the plugin version **4.3.4** directly from the [WordPress Plugin Directory](https://wordpress.org/plugins/woo-razorpay/). > [!NOTE] > > **Handy Tips** > > Ensure you have the PHP-curl extension installed to make network requests. > [!WARNING] > > **Watch Out!** > > Refer to [FAQs](/docs/payments/payment-gateway/emiยฒ/widget/faqs#1-i-am-integrating-with-razorpay-plugin-for) if you are integrating with our plugin for the first time. > [accordion] List of Supported Themes > > Razorpay Affordability Widget WooCommerce is supported on the following popular themes: > > | Theme | Supported | > | - | - | > | Asta | โœ“ | > | BigStore | โœ“ | > | Blossom Shop | โœ“ | > | Electro | โœ“ | > | Elessi | โœ“ | > | Flatsome | โœ“ | > | Lebe | โœ“ | > | Martfury Porto | โœ“ | > | Molla | โœ“ | > | Puca | โœ“ | > | Razzi | โœ“ | > | Rehub | x | > | Shoptimizer | โœ“ | > | Storefront | โœ“ | > | TwentyNineteen | โœ“ | > | TwentyTwenty | โœ“ | > | TwentyTwentyOne | โœ“ | > | TwentyTwentyTwo | โœ“ | > | Woodmart | x | > | Woostify | โœ“ | > | WooVina | โœ“ | > | Zoa | โœ“ | > > > [!NOTE] > > > > **Handy Tip** > > > > This is not a complete list, and it is recommended to try it on your themes as well. ## Integration Steps 1. [Enable the Widget](#step-1-enable-the-widget). 2. [Preview and Go Live](#step-2-preview-and-go-live). ### Step 1: Enable the Widget Follow the steps given below to enable the widget: 1. Log in to the Dashboard and navigate to **Affordability** in the **Payment Products** section. 2. Choose **WooCommerce** as your **website platform**. ![Select website platform for widget](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-platform.jpg) 3. In the **Activate on your website** section, click **Enable Widget**. ![Enable the widget](https://razorpay.com/docs/build/browser/assets/images/woocommerce-widget-enable.jpg) 4. Select the check box if you consent to enable the widget and click **Yes, enable**. ### Step 2: Preview and Go Live Follow the steps given below: 1. Log in to the [WordPress account](https://wordpress.com/log-in). 2. Follow the steps given below to preview the widget in admin mode: 1. Hover over **Razorpay Wordpress** and click **Visit Store**. ![Click visit store to test the widget](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-test.jpg) 2. Click on a product to view the widget. ![Preview the widget before publishing](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-preview.jpg) > [!WARNING] > > **Watch Out!** > > It is mandatory to preview the widget before displaying it to your customers on the WooCommerce website. ## Successful Activation Here is a glimpse of the default widget with offers and payment method options enabled. ![Glimpse of the default widget](https://razorpay.com/docs/build/browser/assets/images/default-widget.jpg) > [!NOTE] > > **Minimum Order Limit** > > All the payment method options that are enabled and that satisfy the minimum order limit appear on the widget. Know more about the minimum order limit for: > > * [EMI](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-credit-card-interest) > * [Cardless EMI](/docs/payments/payment-gateway/emiยฒ/faqs#cardless-emi) > * [Pay Later](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged) ## Next Steps After you successfully integrate the widget on your WooCommerce website, you can choose to [customise the widget](/docs/payments/payment-gateway/emiยฒ/widget/woocommerce/customise) based on your requirement. > [!NOTE] > > **Handy Tips** > > * Fill in the [integration support form](https://form.typeform.com/to/Ro3nJPzp) in case you are facing any issues with the integration. > * In case you have any queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/). ### Related Information [Affordability Widget FAQs for WooCommerce](/docs/payments/payment-gateway/emiยฒ/widget/faqs#woocommerce) # Customisation Options Source: https://razorpay.com/docs/payments/payment-gateway/emiยฒ/widget/woocommerce/customise Customise the Affordability Widget on your WooCommerce Website. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India After successfully integrating Affordability Widget with your WooCommerce website, you can choose to customise the widget based on your requirement. > [!WARNING] > > **Watch Out!** > > Customisations on the widget are not applicable for Payments Checkout. To customise the widget: 1. Log in to the [WordPress account](https://wordpress.com/log-in), navigate to **WooCommerce** โ†’ **Settings** and click the **Payments** tab. ![WooCommerce settings](https://razorpay.com/docs/build/browser/assets/images/woocommerce-settings.jpg) 2. In the **Payments** tab, scroll down to **Razorpay** and click **Manage** to edit the settings. ![edit](https://razorpay.com/docs/build/browser/assets/images/widget-razorpay-edit.jpg) 3. Select **Affordability Widget**. ![Select Affordability Widget to customise the widget](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-affordability.jpg) You can now customise the following options: 1. [Offers](#1-offers). * Offers Enable/Disable. * Additional Offers. * Limited Offers. * Show Discount Amount. 2. [Payment Methods](#2-payment-methods) (EMI, Cardless EMI and Pay Later). * Card EMI Enable/Disable. * Limited Card EMI Providers. * Cardless EMI Enable/Disable. * Limited Cardless EMI Providers. * Pay Later Enable/Disable. * Limited Pay Later Providers. 3. [Themes and Colours](#3-themes-and-colours). * Theme. * Heading Colour. * Heading Font Size. * Content Colour. * Content Font size. * Link Colour. * Link Font Size. * Footer Colour. * Footer Font Size. * Dark Logo Enable/Disable. > [!WARNING] > > **Watch Out!** > > For comma-separated lists, add the information without a space. For example, if you are adding a list of `offer_ids` then follow this format: `offer_ANZoaxsOww2X53`,`offer_LAZoazsOcc2X55`,`offer_QAFoazsOww2X78`. ## 1. Offers Configure the offers you want to display on the website based on your requirement. The customers can choose from a wide range of offers for your product or service. Know how to [create offers](/docs/payments/offers/create). > [!NOTE] > > **Handy Tips** > > By default, all the offers marked visible on the Dashboard during the offer creation appear on the widget. ![Configure the offers on the widget](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-offers.jpg) #### 1.1 Offers Enable/Disable To display the offers on the widget, select the **Enable Offers** check box. To disable the offers, clear the check box. If you disable the offers completely, they will not appear on the widget and the customers will not be able to view them. #### 1.2 Additional Offers By default, all those offers with the **Show Offer on Checkout** option enabled during creation will appear on the widget. Additionally, you can enter the `offer_id` of the offer that did not have the [Show Offer on Checkout](/docs/payments/offers/create#offer-validity:~:text=Show%20Offer%20on%20Checkout) option enabled during offer creation. #### 1.3 Limited Offers To display limited offers on the widget, enter the offer\_id of the offers of your choice. #### 1.4 Show Discount Amount Select the check box to display the exact discount amount on the widget. This will help new customers compare and choose your products over your competitors. ## 2. Payment Methods Configure the payment methods you want to display on the website based on your requirement. ![Configure the Payment Methods on the widget](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-payment-methods.jpg) #### 2.1 Card EMI Enable/Disable To display the **Card EMI** payment option, select the **Enable Card EMI** check box. To disable the card EMI payment option, clear the check box. If you disable the EMI options completely, they will not appear on the widget and the customers will not be able to view them. #### 2.2 Limited Card EMI Providers Razorpay supports [Debit Card](/docs/payments/payment-gateway/emiยฒ/faqs#5-can-you-provide-a-list-of-the) and [Credit Card](/docs/payments/payment-gateway/emiยฒ/faqs#1-what-are-the-standard-credit-card-interest) EMI providers for EMI options. By default, all EMI options satisfying the minimum transaction amount will appear on the widget. If you want to display limited EMI options on the widget, enter the list of **provider codes** based on your requirement. > [!NOTE] > > **Handy Tips** > > All EMI options applicable for the payment amount will appear on the widget by default. For example, if the payment amount is โ‚น3000, the widget displays only the suitable EMI options. #### 2.3 Cardless EMI Enable/Disable To display the **Cardless EMI** payment option, select the **Enable Cardless EMI** check box. To disable the cardless EMI payment option, clear the check box. If you disable the cardless EMI options, they will not appear on the widget and the customers will not be able to view them. #### 2.4 Limited Cardless EMI Providers Razorpay supports [these providers](/docs/payments/payment-gateway/emiยฒ/faqs#cardless-emi) for Cardless EMI options. By default, all Cardless EMI options satisfying the minimum transaction amount will appear on the widget. To display limited Cardless EMI options on the widget, enter the list of **provider codes** based on your requirement. > [!NOTE] > > **Handy Tips** > > All Cardless EMI options applicable for the payment amount will appear on the widget by default. For example, if the payment amount is โ‚น3000, the widget displays only the suitable Cardless EMI options. #### 2.5 Pay Later Enable/Disable To display the [Pay Later](/docs/payments/payment-methods/pay-later) payment option, select the **Enable Pay Later** check box. To disable the Pay Later payment option, clear the check box. If you disable the Pay Later options, they will not appear on the widget and the customers will not be able to view them. ### 2.6 Limited Pay Later Providers Razorpay supports [these providers](/docs/payments/payment-gateway/emiยฒ/faqs#2-what-are-the-standard-interest-rates-charged) for Pay Later options. By default, all Pay Later options satisfying the minimum transaction amount will appear on the widget. If you want to display limited Pay Later options on the widget, enter the list of **provider codes** based on your requirement. > [!NOTE] > > **Handy Tips** > > All Pay Later options applicable for the payment amount will appear on the widget by default. For example, if the payment amount is โ‚น4000, the widget displays only the suitable Pay Later options. ## 3. Themes and Colours Alter the appearance of the widget based on your website. You can customise the widget based on the following themes and colors. ![Configure the themes and colours of the widget](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-theme.jpg) * **Widget Theme Colour**: Enter the 6-character HEX code of the theme based on your requirement. The default theme colour is blue. ![Configure the widget theme colour](https://razorpay.com/docs/build/browser/assets/images/widget-theme-colour.jpg) * **Heading Colour**: Enter the 6-character HEX code of the heading colour based on your requirement. The default colour is black. > [!WARNING] > > **Watch Out!** > > Enter the font size as per pixels (px). You only have to enter the required size: for example, 14. * **Heading Font Size**: Enter the font size of the heading based on your requirement. The default size is 12. ![Customise the heading colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-heading.jpg) * **Content Colour**: Enter the 6-character HEX code of the content colour based on your requirement. The default colour is grey. * **Content Font Size**: Enter the font size of the content based on your requirement. The default size is 12. ![Customise the content colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-content.jpg) ![View the customisation field on the WooCommerce Dashboard](https://razorpay.com/docs/build/browser/assets/images/widget-woocommerce-theme2.jpg) * **Link Colour**: Enter the 6-character HEX code of the link colour based on your requirement. The default colour is blue. * **Link Font Size**: Enter the font size of the link based on your requirement. The default size is 12. ![Customise the link colour and font size](https://razorpay.com/docs/build/browser/assets/images/widget-link.jpg) * **Footer Colour**: Enter the 6-character HEX code of the footer colour based on your requirement. The default colour is grey. * **Footer Font Size**: Enter the font size of the footer based on your requirement. The default size is 12. * **Dark Logo Enable/Disable**: Razorpay provides customisation option for the logo in two variants: * Light * Dark (default) \ If you want to display the light variant of the logo, clear the **Enable Dark Logo** check box. ![Customise the appearance of the logo on the widget](https://razorpay.com/docs/build/browser/assets/images/widget-dark-logo.jpg) Once you customise the widget based on your requirement, click **Save Changes**. ### Related Information * [Affordability Widget: WooCommerce FAQs](/docs/payments/payment-gateway/emiยฒ/widget/faqs#woocommerce) * [About Affordability Widget](/docs/payments/payment-gateway/emiยฒ/widget) # QR Code APIs Source: https://razorpay.com/docs/payments/qr-codes/apis Checklist to integrate using QR Code APIs. List of QR Code APIs and GST QR Code APIs - Create, Close, Fetch and Refund. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can use the QR Codes APIs to perform various actions. You can perform all of these actions from the Dashboard as well. > [accordion] Integration Checklist > > > [!WARNING] > > > > **Watch Out!** > > > > Once the QR Code has been created, you cannot edit its details. > > 1. If you are creating a Dynamic QR Code, we suggest you create a single `customer_id` rather than making multiple ids for the same customer. In any case, if their details change, you can use the [Edit Customer Details API](/docs/api/customers/edit). > 2. To keep a check on the duplicate customer details: > * If you use the `fail_existing : "1"` parameter, the API throws an error when existing customer details are added. > * If you use the `fail_existing : "0"` parameter, the API returns the `customer_id` when existing customer details are added. > 3. Use [Payment Downtime API](/docs/api/payments/downtime) to check for any downtimes that might affect the UPI generation/transactions. > 4. Please note that the Razorpay order id gets generated automatically when a customer makes the payment using the QR Code provided by you. > 5. While [creating a QR Code via API](/docs/api/qr-codes/create) or using the Dashboard, make sure that you pass all the critical parameters for non-GST and GST QR Codes. > 6. Pass the type as `upi_qr` while creating the QR Code. Since we also have a BharatQR feature, not passing the type can lead to errors. > 7. Check the difference between Static and Dynamic QR Codes: > > | Dynamic QR | Static QR | > | - | - | > | Single use. Can be used only once. | Can be used multiple times. | > | If it is generated for specific customers, then you can pass `customer_id`. | Not required to pass `customer_id`. | > > 8. If the `fixed_amount` parameter is passed, you must pass the `amount` parameter at the time of QR Code creation. > > 9. To fetch the details about the QR Codes, you can use [QR Code webhooks](/docs/payments/qr-codes/subscribe-to-webhooks) or use [Fetch a QR Code API](/docs/api/qr-codes/fetch-with-id) to get details about payment activity or the status of your QR Codes. > > 10. We recommend using the [Fetch a QR Code API](/docs/api/qr-codes/fetch-with-id) to fetch relative information about QR Codes. > > > [!NOTE] > > > > **Best Practices for Image Content Integration** > > > > You can check the contents passed in the QR Code using the response payload for [Create a QR Code](/docs/api/qr-codes/create). The `image_content` parameter displays the QR Code content. For Example, once the `qr_image_content` feature is enabled, you can get the Create QR Code response as given on the right-hand side. ## List of QR Code APIs The table below lists the various QR Code APIs and gives a brief description of each API: | API | Description | | - | - | | [Create a QR Code](/docs/api/qr-codes/create) | API to create a new QR Code | | [Close a QR Code](/docs/api/qr-codes/close) | API to close a QR Code | | [Fetch a QR Code](/docs/api/qr-codes/fetch-with-id) | API to view details of a QR Code | | [Fetch a QR Code for Customer ID](/docs/api/qr-codes/fetch-customer-id) | API to view details of a QR Code for a customer id | | [Fetch a QR Code for Payment ID](/docs/api/qr-codes/fetch-payment-id) | API to view details of a QR Code for a payment id | | [Fetch payments made to a QR Code](/docs/api/qr-codes/fetch-payments) | API to view details of payments made to a QR Code | | [Fetch multiple QR Codes](/docs/api/qr-codes/fetch-all) | API to view a list of all QR Codes | ## List of QR GST Code APIs The table below lists the various QR Code APIs and gives a brief description of each API: | API | Description | | - | - | | [Create a QR Code](/docs/api/qr-codes/gst/create/) | API to create a new QR Code | | [Close a QR Code](/docs/api/qr-codes/gst/close/) | API to close a QR Code | | [Fetch a QR Code](/docs/api/qr-codes/gst/fetch-with-id/) | API to view details of a QR Code | | [Fetch a QR Code for Customer ID](/docs/api/qr-codes/gst/fetch-customer-id) | API to view details of a QR Code for a customer id | | [Fetch a QR Code for Payment ID](/docs/api/qr-codes/gst/fetch-payment-id) | API to view details of a QR Code for a payment id | | [Fetch payments made to a QR Code](/docs/api/qr-codes/gst/fetch-payments) | API to view details of payments made to a QR Code | | [Fetch multiple QR Codes](/docs/api/qr-codes/gst/fetch-all) | API to view a list of all QR Codes | | [Refund Payment](/docs/api/refunds) | API to refund a payment | ### Related Information * [Create a QR Code](/docs/payments/qr-codes/create) * [Search a QR Code](/docs/payments/qr-codes/search) * [Close a QR Code](/docs/payments/qr-codes/close) * [Subscribe to Webhooks](/docs/payments/qr-codes/subscribe-to-webhooks) # Close a QR Code Source: https://razorpay.com/docs/payments/qr-codes/close Know how to close a QR Code. A customer cannot make payments for closed QR Codes. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can close a QR Code. A customer cannot make payments for the closed QR Codes. Know more about [QR Code States](/docs/payments/qr-codes/states). > [!NOTE] > > **Handy Tips** > > QR Codes that support multiple payments cannot be closed. ## Close a QR Code from the Dashboard Here is short video on how to close a QR code from the Dashboard. [YouTube video player](https://www.youtube.com/embed/gL9rYd4gv0w?si=NZIuLT42iCeY4_Dk) To close a QR Code: 1. Log in to the Dashboard. 2. Click on **QR Code**. 3. [Search for the QR Code](/docs/payments/qr-codes/search) that you want to close using the search criteria. 4. Select the **QR Code ID**. 5. On the right-hand side panel, click the **Close** button. ![Close a QR code from the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/qr-codes-close-close.jpg) 6. On the **Close QR Code?** dialog box, click **Yes** to confirm the closure. ![Confirm the closure of a QR code from the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/qr-codes-close-confirm-close.jpg) The closed QR Codes display a **Closed** status label. ![QR code closed from the Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/qr-codes-close-closed.jpg) ### Related Information * [QR Code](/docs/payments/qr-codes) * [How QR Code Works](/docs/payments/qr-codes/how-it-works) * [QR Code States](/docs/payments/qr-codes/states) * [Create a QR Code](/docs/payments/qr-codes/create) * [Search a QR Code](/docs/payments/qr-codes/search) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/qr-codes/faqs Find answers to frequently asked questions about Razorpay QR Codes. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [accordion] Can I use QR Codes to accept international payments using Razorpay QR Codes? > > No, you cannot use QR Codes to accept international payments. > [accordion] I want to set a date by which the customer must make the payment. How do I do that? > > You can set a Close By Date for the QR Code. The customer should make a payment using the QR Code within this Close By Date. The customer cannot make payments for a closed QR Code. Know more about [setting Close By Date for QR Codes](/docs/payments/qr-codes/create#create-a-qr-code-from-the-dashboard). > [accordion] A customer wants to make payments in parts. How do I create such QR Codes? > > If a customer wants to pay in parts, during QR Code creation, you must ensure that: > > 1. The full payment amount is entered in the **Total Amount Expected** field. > 2. The **Allow Multiple Payments on QR** option is enabled. > [accordion] What are the payment methods available to customers? > > Customers can make payments using UPI PSP apps such as PhonePe, GooglePay only. If the QR Code type is `bharat_qr`, customers can also make payments using cards. > [accordion] Where do I track the QR Code and their states? > > You get instant notifications about the QR Code. You can also subscribe to webhook events and generate reports. Know more about [tracking QR Code and viewing reports](/docs/payments/qr-codes/how-it-works#4-track-qr-code-payments-and-reports). > [accordion] My customer has made payments using Airtel Payments Bank. However, these payments are not getting settled to my account and are instead getting auto-refunded. Why? > > We do not support payments made using Airtel Payments Bank. Such payments will be auto-refunded to the customers. Please ask your customer to use another bank. > [accordion] How can I get access to BharatQR? > > You can raise a support ticket from your Dashboard to activate BharatQR. Once activated, you will see BharatQR as an option while generating a QR Code. > [accordion] I created a QR Code in Test mode. Why am I not able to scan it? > > You can scan QR Codes that are created only in **Live Mode**. > [accordion] How can I create a QR Code to receive multiple payments from different customers? > > You can create a multiple-use QR Code that accepts unlimited payments from different customers without expiring. > > **Via Dashboard:** > > 1. Log in to the Dashboard and navigate to **QR Codes**. > 2. Click **+ Create QR Codes** > 3. Enable the **Multiple Payments** option under QR Usage. > 4. Complete the setup and generate the QR Code. > > **Via API:** > Use the [Create QR Code API](/docs/api/qr-codes/create) and set the `usage` parameter to `multiple_use`. > > Know more about [Create a QR Codes from Dashboard](/docs/payments/qr-codes/create) or [Create a QR Code using API](/docs/api/qr-codes/create). # Glossary Source: https://razorpay.com/docs/payments/qr-codes/glossary List of commonly used terms related to Razorpay QR Codes and their definitions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The following table lists all the commonly used terms and their definitions used in QR Code: | Terms | Description | | - | - | | QR Code | QR (Quick Response) code is a machine-readable code consisting of an array of black and white squares, typically used for storing URLs or other information for reading using a smartphone camera. | | Multiple Payments | A QR Code which can receive multiple payments. Multiple payments can be made by many customers or one customer. | | Single Payments | A QR Code which can receive only one payment. This QR Code is automatically closed once the payment is received. | | Close By Date | Close By Date is the date after which the customer cannot pay using the QR Code. | # Migrate from BharatQR APIs to QR Codes APIs Source: https://razorpay.com/docs/payments/qr-codes/migrate Migrate from our BharatQR APIs to QR Code APIs. Compare features, API Parameters and Webhook events. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Given below is the high-level migration process. 1. Explore the QR Codes APIs using the Postman collection. 2. Understand the QR Code API Request and Response structure and the webhook payloads. 3. Integrate with QR Code APIs. You can refer to the provided sample codes. > [accordion] Feature Comparison > > The table below lists the features availability on BharatQR API and QR Codes API: > > | Feature | BharatQR API | QR Codes API | > | - | - | - | > | Dynamic BharatQR | x | โœ“ | > | Static BharatQR | โœ“ | โœ“ | > | Dynamic UPI QR | โœ“ | โœ“ | > | Static UPI QR | x | โœ“ | > | Get count of payments collected on QR Code | x | โœ“ | > | Dashboard access | x | โœ“ | > | Your business branding on QR image | x | โœ“ | > | Dedicated VPA for your business | x | โœ“ | > [accordion] Comparison of API Parameters > > Compare BharatQR and QR Code API parameters. > > > [tab] Create QR Codes > > > > | BharatQR Parameter | QR Codes Parameter | Description | > > | - | - | - | > > | receivers.types | type | The type of QR Code. Possible values:
  • `upi_qr`: Create a QR Code that accepts only UPI payments.
  • `bharat_qr`: Create a QR Code that accepts UPI and card payments.
For `receivers.types`, the only possible value was `qr_code`. | > > | description | description | A brief description of the QR Code. | > > | customer\_id | customer\_id | Unique identifier of the customer the QR Code is linked with. | > > | close\_by | close\_by | UNIX timestamp at which the QR Code is scheduled to be automatically closed. The time must be at least 15 minutes after the current time. | > > | notes | notes | Key-value pair that can be used to store additional information about the QR Code. Maximum 15 key-value pairs, 256 characters (maximum) each. | > > | amount\_expected | NA | The maximum amount you expect to receive in this virtual account. | > > | NA | name | Label entered to identify the QR Code. For example, `Store Front Display`. | > > | NA | usage | Indicates if the QR Code should be allowed to accept single payment or multiple payments. Possible values:
  • `single_use`: QR Code will accept only one payment and then close automatically.
  • `multiple_use` (default): QR Code will accept multiple payments.
| > > | NA | fixed\_amount | Indicates if the QR should accept payments of specific amounts or any amount. Possible values:
  • `true`: QR Code accepts only a specific amount.
  • `false` (default): QR Code will accept any amount.
| > > | NA | payment\_amount | This parameter is mandatory if fixed\_amount parameter is in use. The amount allowed for a transaction. If this is specified, then any transaction of amount less than or more than this value will not be allowed. For example, if this amount is set as `500000`, the customer cannot pay an amount less than or more than โ‚น5000. | > > > > **API Reference Links** > > > > * BharatQR: [Create a virtual account](/docs/payments/payment-methods/bharatqr/api#create) > > * QR Code: [Create a QR Code](/docs/api/qr-codes/create) > > > [tab] Close QR Codes > > > > For this action, only one path parameter needs to be passed, the QR Code id. > > > > | BharatQR Parameter | QR Codes Parameter | Description | > > | - | - | - | > > | Virtual Account ID | QR Code ID | The unique identifier of the virtual account/QR Code that is to be closed. | > > > > **API Reference Links** > > > > * BharatQR: [Close a virtual account](/docs/payments/payment-methods/bharatqr/api#close) > > * QR Code: [Close a QR Code](/docs/api/qr-codes/close) > > > [tab] Fetch All QR Codes > > > > The fetch query parameters remain the same across the APIs as given below: > > > > | BharatQR Parameter | QR Codes Parameter | Description | > > | - | - | - | > > | from | from | Timestamp, in seconds, from when QR Codes are to be fetched. | > > | to | to | Timestamp, in seconds, till when QR Codes are to be fetched. | > > | count | count | Number of QR Codes to be fetched. The default value is 10 and the maximum value is 100. This can be used for pagination, in combination with skip. | > > | skip | skip | Number of records to be skipped while fetching the QR Codes. This can be used for pagination, in combination with count. | > > > > **API Reference Links** > > > > * BharatQR: [Fetch all virtual accounts](/docs/payments/payment-methods/bharatqr/api#fetch-all-payments) > > * QR Code: [Fetch all QR Codes](/docs/api/qr-codes/fetch-all) > > > [tab] Fetch a QR Code > > > > For this action, only one path parameter needs to be passed, the QR Code id. > > > > | BharatQR Parameter | QR Codes Parameter | Description | > > | - | - | - | > > | Virtual Account ID | QR Code ID | The unique identifier of the virtual account/QR Code whose details are to be fetched. | > > > > **API Reference Links** > > > > * BharatQR: [Fetch a virtual account](/docs/payments/payment-methods/bharatqr/api#fetch-a-payment) > > * QR Code: [Fetch a QR Code](/docs/api/qr-codes/fetch-with-id) > > > [tab] Fetch Payments made to a QR Code > > > > For this action, only one path parameter needs to be passed, the QR Code identifier. > > > > | BharatQR Parameter | QR Codes Parameter | Description | > > | - | - | - | > > | Virtual Account ID | QR Code ID | The unique identifier of the virtual account/QR Code whose payment details are to be fetched. | > > > > **API Reference Links** > > > > * BharatQR: [Fetch payments by id](/docs/payments/payment-methods/bharatqr/api#fetch-a-payment) > > * QR Code: [Fetch payments made to a QR Code](/docs/api/qr-codes/fetch-payments) > [accordion] Comparison of Webhook Events > > Given below is a comparison of BharatQR and QR Codes webhook events: > > | Webhook Events | BharatQR | QR Codes | > | - | - | - | > | QR Code created | [virtual\_account.created](/docs/webhooks/smart-collect#virtual-account-created) | [qr\_code.created](/docs/webhooks/qr-codes#qr-code-created) | > | QR Code credited | [virtual\_account.credited](/docs/payments/payment-methods/bharatqr/notification#webhooks) | [qr\_code.credited](/docs/webhooks/qr-codes#qr-code-credited) | > | QR Code closed | [virtual\_account.closed](/docs/webhooks/smart-collect#virtual-account-closed) | [qr\_code.closed](/docs/webhooks/qr-codes#qr-code-closed) | # Subscribe to Webhooks Source: https://razorpay.com/docs/payments/qr-codes/subscribe-to-webhooks Subscribe to various webhook events related to QR Codes to receive instant notifications. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow these steps to subscribe to webhook events: 1. Log in to the Dashboard. 2. Navigate to **Account & Settings** โ†’ **Webhooks** to subscribe to any of the events mentioned in the following section. ## Webhook Events and Descriptions | Webhook Events | Description | | - | - | | `qr_code.created` | Triggered when a QR Code is created. | | `qr_code.credited` | Triggered when a payment is made using a QR Code. | | `qr_code.closed` | Triggered when a QR Code is closed. | ### Signature Validation If you need to validate QR Code webhook payloads, please use the following Node.js code: ```javascript Node.js theme={null} const {validateWebhookSignature} = require('razorpay/dist/utils/razorpay-utils') webhookBodyNew = JSON.stringify(webhookBody).replace(/\//g, "\\/") validateWebhookSignature(webhookBodyNew, webhookSignature, webhookSecret) ``` Know more about [Webhooks](/docs/webhooks) and check the [sample payloads](/docs/webhooks/qr-codes). ### Related Information * [QR Code States](/docs/payments/qr-codes/states) * [QR Code APIs](/docs/payments/qr-codes/apis) # View Reports Source: https://razorpay.com/docs/payments/qr-codes/view-reports Find out how to generate the QR Codes report from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can generate the QR Codes report from the Dashboard. > [accordion] To generate reports: > > 1. Log in to the Dashboard. > 2. Navigate to **Reports**. > 3. On the Reports page, enter the following details: > 1. **Select Report Type**: Select the **QR Codes Report**. > > ![Select QR Codes Report](https://razorpay.com/docs/build/browser/assets/images/qr-codes-report.jpg) > 2. **Select Period**: Select the period for which the report should be generated. > 3. **Select Format**: Select the file format. You can report in CSV, XLS and XLSX formats. > 4. **Email Report To**: You can send the report to the email address registered with Razorpay. > 4. Click **Generate Report**. > > ![Generate a QR Codes Report](https://razorpay.com/docs/build/browser/assets/images/qr-codes-report-2.jpg) > > Download a [sample QR Codes Report](https://razorpay.com/docs/build/browser/assets/images/sample-qrcode-report.xlsx). Once the report is generated, you can view the following fields: | Field | Description | | - | - | | `id` | The unique id of a QR Code. | | `status` | The status of the QR Code. This can be either `active` or `closed`. | | `name` | The name given to the QR Code during its generation. | | `description` | The description given to the QR Code during its generation. | | `notes` | Any Internal Note added during the generation of the QR Code. | | `usage_type` | Indicates if the QR can accept only one payment or multiple payments. | | `fixed_amount` | Indicates if the QR Code can accept only a fixed amount or not. | | `amount` | This section displays the QR Code's amount only if it accepts a fixed amount. | | `provider` | Indicates which type of QR Code it is. This can either be `upi_qr` or `bharat_qr`. | | `payments_amount_received` | Indicates the total amount paid through a particular QR Code. | | `payments_received_count` | Indicates the total number of payments made through a particular QR Code. | | `close_reason` | Indicates the reason why a QR Code is Closed. | # About Smart Collect Source: https://razorpay.com/docs/payments/smart-collect Create Customer Identifiers on-demand for customers to pay via NEFT, RTGS and IMPS using Smart Collect and UPI transfers via Smart Collect 2.0. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India > [card] [Smart Collect Changelog](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to Razorpay Smart Collect (since Jan 2024). Razorpay Smart Collect empowers businesses to create on-demand Customer Identifiers (CI) for receiving payments via NEFT, RTGS, and IMPS. Smart Collect 2.0 expands this functionality to include UPI payments through Virtual UPI IDs. These identifiers are linked to your registered bank account, and Razorpay automates payment reconciliation and provides notifications for received payments. #### What is a Customer Identifier and a Virtual UPI ID? **Customer Identifier** \ Customer identifier is a customisable virtual receiver (with customer identifier number and IFSC) created on top of your current/escrow account. You can share the Customer Identifier information with your customers/businesses and collect payments. **Virtual UPI ID** \ Virtual UPI id is an extension of Customer Identifier. It is a customisable UPI id that your customers/businesses can use to pay you. It combines the ease of UPI payments and id customisation to offer you a seamless payment reconciliation experience. > [!NOTE] > > **Handy Tips** > > * Understand the Razorpay [payment flow](/docs/payments/payment-gateway/how-it-works) that Smart Collect follows to collect payments. > * Smart Collect also supports [Third-Party Validation (TPV)](/docs/payments/smart-collect/third-party-validation). > [accordion] Advantages > > > [tab] Smart Collect > > > > Smart Collect has the following advantages: > > > > * **Instant Identifier Creation**: Generate Customer Identifiers in real-time using the Dashboard and APIs. > > * **Multiple Payment Avenues**: Enable customers to make payments via NEFT, RTGS and IMPS. > > * **Automatic Reconciliation**: Eliminate the difficulty of manual reconciliation and save time and cost. > > * **Account-level Visibility**: View and manage every payment received from customers. > > * **Real-time Notifications**: Get real-time notifications on payments with Webhooks. > > * **Third-Party Validation (TPV)**: Smart Collect supports Third-Party Validation. > > > [tab] Smart Collect 2.0 > > > > Smart Collect 2.0 offers the following additional advantages: > > > > * **UPI Transactions**: In addition to NEFT, RTGS, and IMPS, use Smart Collect 2.0 to accept payments using UPI. > > * **Customisable Customer Identifiers**: Personalise your Customer Identifiers to align with your brand, making it easier for internal tracking. > > * **Automatic Payment Mode Differentiation**: Automated distinction based on the payment method used, simplifying reconciliation and reporting. > > * **Real-time Payment Confirmations via Webhooks**: Receive instant notifications through webhooks (if enabled), allowing for immediate updates and actions. > > * **Creation of Unlimited Identifiers**: Generate unlimited Customer Identifiers and Virtual UPI IDs, providing scalability for businesses with diverse needs. > > * **Transaction-Level Breakup of Payments**: Detailed, transaction-level information for all payments, enhancing reconciliation accuracy. > [accordion] Smart Collect 2.0 vs Smart Collect > > Smart Collect and Smart Collect 2.0 use the same APIs to create and maintain Customer Identifiers. Smart Collect 2.0 offers additional benefits, such as: > > | Features | Smart Collect 2.0 | Smart Collect | > | - | - | - | > | NEFT/RTGS/IMPS | โœ“ | โœ“ | > | UPI | โœ“ | x | > | Settlement time | Direct and real time | T+2 working days | > | APIs to create/disable customer identifiers/VPAs | โœ“ | โœ“ | > | API-based notifications | โœ“ | โœ“ | > | TPV Check | โœ“ | โœ“ | > | Auto-refund for closed/disabled customer identifiers/virtual UPI ids | โœ“ | โœ“ | > | Supported banks | Yes Bank, Axis Bank, RBL Bank | NA | > | Receive Payment Gateway Settlements via customer identifiers/Virtual UPI ids | โœ“ | x | > | Transaction-level breakup in account | โœ“ | x | > [accordion] Smart Collect Use Cases > > Explore the [Smart Collect Use Cases](/docs/payments/smart-collect/use-cases) to gain deeper insights into the capabilities and practical applications of Smart Collect and Smart Collect 2.0. ## Prerequisites > [tab] Smart Collect > > 1. Ensure that you do not fall under the `Individuals` merchant category as Smart Collect is not available for this Merchant Category Code (MCC). > 2. Read and understand the [pricing model](https://razorpay.com/smart-collect/#pricing) and have the [API documentation](/docs/api/payments/smart-collect) for Smart Collect handy. > 3. Ensure that the business use case is well charted. Smart Collect supports **many customers - one account** and **many customers - many accounts** models. > 4. Raise a request through a Point of Contact (POC) or the Dashboard to enable Smart Collect and Smart Collect TPV for your account. > 5. Do check the [list of banks](/docs/payments/smart-collect/apis#list-of-banks-supporting-tpv-for-smart-collect) which support Smart Collect with TPV. > [tab] Smart Collect 2.0 > > 1. You must open a [Current account](/docs/x/account-types/current-account)/[Escrow account](/docs/x/account-types/escrow). We enable you in this process. > 2. All the prerequisites for Smart Collect are also applicable for Smart Collect 2.0. ## Supported Platforms Razorpay Smart Collect is supported on the following platforms: > [tab] Standard Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | > [tab] Custom Checkout > > | Web | Android | iOS | Webview | > | - | - | - | - | > | โœ“ | โœ“ | โœ“ | โœ“ | ### Related Information * [How Smart Collect Works](/docs/payments/smart-collect/how-it-works) * [Customer Identifier States](/docs/payments/smart-collect/states) * [Auto Third Party Validation (TPV) on Smart Collect](/docs/payments/smart-collect/third-party-validation) * [Smart Collect APIs](/docs/api/payments/smart-collect) * [Subscribe to Webhooks](/docs/payments/smart-collect/subscribe-to-webhooks) # Close Customer Identifiers Source: https://razorpay.com/docs/payments/smart-collect/close Close a Customer Identifier using the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Customer Identifiers can be closed in two ways, automatically and manually. ## Close Customer Identifiers Automatically To close Customer Identifiers automatically, specify a **Close By** date and time during [Customer Identifier creation](/docs/payments/smart-collect/create). ![Enable/Disable Auto close by while creating Virtual Account.](https://razorpay.com/docs/build/browser/assets/images/smart-collect-auto-close-by.jpg) ## Close Customer Identifiers Manually To close Customer Identifiers manually: 1. Log in to the Dashboard and click **Smart Collect**. 2. Select the Customer Identifier id you wish to close from the Customer Identifier list. ![Customer Identifier List](https://razorpay.com/docs/build/browser/assets/images/ci-list-sm.jpg) 3. In the right pane that appears, click **Close Customer Identifier**. ![Smart Collect Close Button](https://razorpay.com/docs/build/browser/assets/images/sm-ci-close-button.jpg) 4. A dialog box appears to confirm the closing. Click **Yes**. ### Related Information * [Create Customer Identifiers](/docs/payments/smart-collect/create) * [Refund Payments](/docs/payments/smart-collect/refund) * [Make Test Payments](/docs/payments/smart-collect/test-payments) * [Search for a Customer Identifier](/docs/payments/smart-collect/search) # Create Customer Identifiers Source: https://razorpay.com/docs/payments/smart-collect/create Create and view Customer Identifiers and UPI IDs using the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Smart Collect simplifies the reconciliation of payments received via bank transfers. It allows you to create unique Customer Identifiers for specific customers. Payments are then automatically reconciled against these identifiers, reducing manual effort. > [!WARNING] > > **Watch Out** > > * You can create Customer Identifiers associated with UPI Transfers only with Smart Collect 2.0. > * Bank account is mandatory to create a Customer Identifier. You cannot create a Customer Identifier using VPA (UPI) alone. ## Create Customer Identifiers for Smart Collect You can create a Customer Identifier from the Dashboard: > [accordion] To create Smart Collect Customer Identifiers: > > 1. Log in to the Dashboard and click **Smart Collect**. > 2. Click **+ Create Customer Identifier**. > 3. Select the type of receiver in **Methods to accept payments in this customer identifier**. Only Bank Transfer (NEFT, RTGS, IMPS) is live, and enabled by default. > > ![Create Customer Identifier](https://razorpay.com/docs/build/browser/assets/images/create-ci-smart-collect.jpg) > 4. Select **Customer** from the drop-down list. You can also create a new customer instantly. You may skip this step and proceed with creation, if you do not wish to tag it to a specific customer. However, you cannot modify the Customer Identifier and tag it to the customer later. > 5. Click **View Advance Options**. > 6. Add an **Account Description** for your internal reference. > 7. You can set a closure date for the Customer Identifier using the **Close By** option. Click **Disable Auto Close** option and select the date and time at which the account must be automatically closed. Ensure that the time specified is at least 15 minutes after the creation time. > > ![Set a Close-by date for your Virtual Account](https://razorpay.com/docs/build/browser/assets/images/smart-collect-close-by-date.jpg) > 8. Click **Add Internal Note** to enter any notes for internal reference. > 9. Click **Create Customer Identifier**. > > ![Customer Identifier Created](https://razorpay.com/docs/build/browser/assets/images/smart-collect-va_list.jpg) > > After the Customer Identifier is created, copy the details and share them with your customer. The Customer Identifier appears in the list as shown below: > > ![Created CI list](https://razorpay.com/docs/build/browser/assets/images/smart-collect-va-created-list.jpg) > > > [!WARNING] > > > > **Watch Out!** > > > > * If a Customer Identifier has been inactive for 90 days without any transactions, it will be considered dormant and subsequently closed. > > * While sharing the details of CI (created using RBL bank) with the customers, ensure that the fifth character in the IFSC is number `0` and not the letter O. For example, valid IFSC is `RATN0VAAPIS` and not `RATNOVAAPIS`. > > ### View Payments > > You can view the payments made to your Customer Identifiers on the Dashboard. > > To view payments made to Customer Identifiers: > > 1. Log in to the Dashboard. > 2. Navigate to **Smart Collect** โ†’ **Payments**. > [accordion] To create Smart Collect Customer Identifiers with TPV: > > 1. Follow the same steps as **Create Customer Identifiers** until customer selection. > 2. Click **View Advance Options**. > 3. Complete these steps to add account details for the **Third Party Validation**: > > 1. Select the **Bank Transfers (NEFT, RTGS, IMPS)** checkbox to create Customer Identifier details with TPV for bank transfers. Know more about [Third Party Validation](/docs/payments/smart-collect/third-party-validation). > 2. Click **Configure** to add details of **Authorised Accounts**. > > ![Smart Collect TPV](https://razorpay.com/docs/build/browser/assets/images/smart-collect-tpv.jpg) > 3. Enter **IFSC Code** and **Account Number**. > > ![TPV - Add Bank Account no and IFSC](https://razorpay.com/docs/build/browser/assets/images/smart-collect-authorised_accounts.jpg) > 4. Click **+ Add Another Account** to add accounts. You can add up to 10 **Authorised Accounts**. > 5. Click **Save**. > > Complete the other steps mentioned on screen and click **Create Customer Identifier**. After a Identifier is created, copy the details and share them with your customer. > > ![Customer Identifier Created](https://razorpay.com/docs/build/browser/assets/images/smart-collect-va_list.jpg) > > The Customer Identifier appears in the list as shown below: > > ![Created CI list](https://razorpay.com/docs/build/browser/assets/images/smart-collect-va-created-list.jpg) > > > [!NOTE] > > > > **Handy Tips** > > > > While sharing the details of CIs (created using RBL bank) with the customers, ensure that the fifth character in the IFSC is number `0` and not the letter O. For example, valid IFSC is `RATN0VAAPIS` and not `RATNOVAAPIS`. ## Create Customer Identifiers for Smart Collect 2.0 You can create Customer Identifiers via the Dashboard or using the APIs: > [accordion] To create Smart Collect 2.0 Customer Identifiers: > > > [tab] Dashboard > > > > 1. Log in to the [Dashboard](https://dashboard.razorpay.com/#/access/signin). > > 2. Navigate to **Smart Collect** in the left menu โ†’ click **+ Create Customer Identifier**. > > > > ![ Dashboard create SC 2.0 Customer Identifier](https://razorpay.com/docs/build/browser/assets/images/payments-sc2-create-ci.jpg) > > 3. Select the type of receiver in **Methods to accept payments in this customer identifier**. Both **Bank Transfers (NEFT, RTGS, IMPS)** and **UPI Transfer** are enabled by default. You can choose to disable either as needed. > > * Enable **Bank Transfer (NEFT, RTGS, IMPS)** to create a Customer Identifier. > > * Enable **UPI Transfer** to create a virtual UPI ID. > > > > ![Create Customer Identifier](https://razorpay.com/docs/build/browser/assets/images/smart-collect-create_ci.jpg) > > > > 1. Select **Customer** from the drop-down list. You can also create a new customer instantly. This is an optional step. Select the **Add Billing Address** check box if necessary. > > > > > [!WARNING] > > > > > > **Watch Out!** > > > > > > You cannot modify customers for Customer Identifiers after you create and save them. Ensure you tag the Customers to Customer Identifiers when you create them. > > > > #### Configure Advance Options > > > > The following advance options are available when you click **View Advance Options**: > > > > * Configure **Third Party Validation**. Authorise bank accounts using IFSC and Account Number. > > * Add an **Customer Identifier Description** for your internal reference. > > * Add a closure date for the Customer Identifier. > > * Clear the **Disable Auto Close** option to close the Customer Identifier on a certain future date. > > * Select **Disable Auto Close** option and choose the date and time when the Identifier must automatically close. Ensure that the time specified is at least 15 minutes after the creation time. > > > > ![Set a Close-by date for your Virtual Account](https://razorpay.com/docs/build/browser/assets/images/smart-collect-close-by-date.jpg) > > > > * Click **Add Internal Note** to enter any notes for internal reference. > > > > 1. Click **Create Customer Identifier**. > > > > This successfully creates a Customer Identifier. Click **Copy Customer Identifier Details** and share it with your merchants/customers. > > > > ![Smart Collect 2 Customer Identifier success](https://razorpay.com/docs/build/browser/assets/images/payments-sc2-ci-create-success.jpg) > > > [tab] APIs > > > > Use any of the following APIs to create Customer Identifiers as necessary: > > > > * [Create Customer Identifier With Bank Account Receiver](/docs/api/payments/smart-collect/create-cust-id-bank-account) > > * [Create a Customer Identifier With VPA Receiver](/docs/api/payments/smart-collect-2/create-cust-id-vpa) > > * [Create a Customer Identifier With VPA and Bank Account Receivers](/docs/api/payments/smart-collect-2/create-cust-id-bank-account-vpa) > [accordion] To create Smart Collect 2.0 Customer Identifiers with TPV: > > > [tab] Dashboard > > > > 1. Follow the steps to [create Smart Collect 2.0 Customer Identifiers](/docs/payments/smart-collect/create#to-create-smart-collect-2-0-customer-identifiers). > > 2. Click **View Advance Options**. > > 3. Click **Configure** for **Third Party Validation**. > > 4. In the **Authorised Accounts** pop-up modal, **IFSC Code** and **Account Number**. You can add up to 10 accounts. > > > > For RBL banks, ensure the fifth character in the IFSC is number `0` and not the letter O. > > 5. Click **Save**. > > > > ![SC 2.0 Customer Identifier with TPV](https://razorpay.com/docs/build/browser/assets/images/payments-sc2-ci-tpv.jpg) > > 6. Add other Advance Options as necessary. > > 7. Click **Create Customer Identifier**. > > > > This successfully creates a [Customer Identifiers with TPV](#to-create-smart-collect-2-0-customer-identifiers-with-tpv). > > > [tab] APIs > > > > Use any of the following APIs to create Customer Identifiers as necessary: > > > > * [Create Customer Identifier](/docs/api/payments/smart-collect-tpv/create) > > * [Add an Allowed Payer Account](/docs/api/payments/smart-collect-tpv/add-allowed-payer) > > * [Add VPA Receiver to an Existing Customer Identifier](/docs/api/payments/smart-collect-2/add-receiver-vpa) > > * [Add Bank Account Receiver to an Existing Customer Identifier](/docs/api/payments/smart-collect-2/add-receiver-bank-transfer) > [!NOTE] > > **Handy Tips** > > * After you create a Customer Identifier, it moves to `active` status. Know more about the [states of Customer Identifiers](/docs/payments/smart-collect/states). > * You can disable/[close a Customer Identifier using APIs](/docs/api/payments/smart-collect/close) if you no longer need it to accept payments. > * You can create as many Customer Identifiers as required for your business. Share the Customer Identifiers with your beneficiaries to receive payments. ### Related Information * [Close Customer Identifiers](/docs/payments/smart-collect/close) * [Refund Payments](/docs/payments/smart-collect/refund) * [Make Test Payments](/docs/payments/smart-collect/test-payments) * [Search for a Customer Identifier](/docs/payments/smart-collect/search) # How Smart Collect Works Source: https://razorpay.com/docs/payments/smart-collect/how-it-works Create a Customer Identifier and send them to customers for receiving payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India The following steps explain how Smart Collect uses Customer Identifiers to receive payments from the customers: ![How Smart Collect Works](https://razorpay.com/docs/build/browser/assets/images/smart-collect-sc_workflow.jpg) 1. Set up your [Razorpay account](/docs/payments/set-up). 2. Create Customer Identifiers tagged to the customer. 3. The account details of the Customer Identifier created by Razorpay (such as account number, IFSC and Name) should be shared with the customer. 4. The customer adds the bank account as a beneficiary on their preferred netbanking portal and transfers the money using NEFT, RTGS or IMPS. 5. Payment deposited in these customer identifiers is settled into your bank account linked with Razorpay. > [!NOTE] > > **Payment Confirmation** > > You can consider a payment to be successful only when you receive the notification from Razorpay. You can [check the payment status on the Dashboard](/docs/payments/smart-collect/create#view-payments). Also, you can choose to configure [webhooks](/docs/payments/smart-collect/subscribe-to-webhooks) and subscribe to the `virtual_account.credited` event to receive notifications when customers make payments. ## Customer Identifier Format You can create a unique Customer Identifier using Smart Collect to receive payments from your customers. The Customer Identifier consists of 16 digits. ``` Bank Account Number: 1112220040042526 ``` Know more about [Customer Identifier States](/docs/payments/smart-collect/states). ### Related Information * [Smart Collect](/docs/payments/smart-collect) * [Auto Third Party Validation (TPV) on Smart Collect](/docs/payments/smart-collect/third-party-validation) * [Smart Collect APIs](/docs/api/payments/smart-collect) * [Subscribe to Webhooks](/docs/payments/smart-collect/subscribe-to-webhooks) # Account Migration - New PA/PG Guidelines Source: https://razorpay.com/docs/payments/smart-collect/pa-pg-migration Update your setup to work with our new banking partners. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India RBI [revised guidelines](https://www.rbi.org.in/scripts/FS_Notification.aspx?Id=11822\&fn=9\&Mode=0) for PA/PG requires Razorpay to have an escrow account with RBL as banking partner. Existing Customer Identifiers with Yes Bank and ICICI Bank will be shut down, and all banking ops moved to RBL escrow account. Dashboard shows both old and newly created Customer Identifier until Jan 31, 2022. ## API Interface Post Migration Post migration, new virtual response for Customer Identifier built on Yes Bank/ICICI Bank will contain two objects in receivers array, one for new RBL CI and one for existing Yes Bank/ICICI Bank CI. Confirm new RBL CI by checking IFSC Code `RATN0VAAPIS`. The following sample response code can be used as a reference: ```json API Sample Response Code theme={null} { "entity": "collection", "count": 2, "items": [ { "id": "va_IirUUD9dDm4G4i", "name": "Test Account", "entity": "virtual_account", "status": "active", "description": "Vishnu Jangid", "amount_expected": null, "notes": { "project_name": "Vishnu Jangid" }, "amount_paid": 0, "customer_id": null, "receivers": [ { "id": "ba_IirUUYO8caNoK5", "entity": "bank_account", "ifsc": "YESB0CMSNOC", "bank_name": "Yes Bank", "name": "Test Account", "notes": [], "account_number": "2223330053041804" }, { "id": "ba_IirUUYO8sh1602", "entity": "bank_account", "ifsc": "RATN0VAAPIS", "bank_name": "RBL Bank", "name": "Test Account", "notes": [], "account_number": "2223330053041804" } ], "close_by": 1681615838, "closed_at": null, "created_at": 1641997300 } ] } ``` ## Frequently Asked Questions (FAQs) > [accordion] Does this impact the Customer Identifiers I create? > > All existing Smart Collect merchants who create Customer Identifiers with Yes Bank or ICICI are impacted. Merchants with Customer Identifiers through RBL Bank are not impacted. > [accordion] Are all the Customer Identifiers migrated to RBL Bank? > > Only Customer Identifiers created with Yes Bank and ICICI Bank are migrated to RBL Bank. > [accordion] What is the impact on my Customer Identifiers? > > The Customer Identifiers created with Yes Bank and ICICI bank have been shut down on 31st January 2022. Post that, transfer of any funds to these Customer Identifiers are not being processed. > [accordion] What if I specifically want a Customer Identifier with Yes Bank or ICICI Bank? > > Due to revised guidelines, we do not support issuing Customer Identifiers with Yes Bank or ICICI Bank. > [accordion] Can I continue using my existing Customer Identifiers? > > After 31st January 2022, you cannot receive payments on the existing Customer Identifiers. > [accordion] What actions do I need to take? > > * The account number and/or IFSC codes for all impacted Customer Identifiers change. > * You must inform your customers so they can add the new Customer Identifiers as beneficiaries for NEFT/IMPS/RTGS payments. > * Until 31st January 2022, incoming payments were being received on both old and new Customer Identifiers. > * Post 31st January 2022, fund transfers to old Customer Identifiers are not being processed. ### Related Information * [Razorpay Smart Collect](/docs/payments/smart-collect) * [How Smart Collect Works](/docs/payments/smart-collect/how-it-works) * [Customer Identifier States](/docs/payments/smart-collect/states) * [Smart Collect APIs](/docs/api/payments/smart-collect) * [Subscribe to Webhooks](/docs/payments/smart-collect/subscribe-to-webhooks) # Refund Payments Source: https://razorpay.com/docs/payments/smart-collect/refund Refund payments made by customers to your Customer Identifiers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can refund the payment made by a customer. This refund can be in full or parts. To initiate a refund from your Customer Identifier: 1. In the **Payments** tab, click the Payment Id. 2. In the right pane, click the **Issue Refund** button. ![Issue Refund](https://razorpay.com/docs/build/browser/assets/images/va_issue_refund.jpg) 3. A dialog box appears where the refund amount can be entered. * Full Refund: Enter **Comments**, if any, and click the **Issue Full Refund** button. ![Issue Full Refund](https://razorpay.com/docs/build/browser/assets/images/sc_full_refund.jpg) * Partial Refund: Enter the amount you want to refund. Enter **Comments**, if any, and click the **Issue Partial Refund** button. ![Partial Refund](https://razorpay.com/docs/build/browser/assets/images/va_partial_refund.jpg) 4. A confirmation dialog box appears. Click **Yes, Refund** to complete the process. ### Related Information * [Create Customer Identifiers](/docs/payments/smart-collect/create) * [Close Customer Identifiers](/docs/payments/smart-collect/close) * [Make Test Payments](/docs/payments/smart-collect/test-payments) * [Search for a Customer Identifier](/docs/payments/smart-collect/search) # Refund Failures Source: https://razorpay.com/docs/payments/smart-collect/refund-failures Check different refund failure scenarios of a Customer Identifier. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India There are some situations where it is **not** possible to refund a payment received on a Customer Identifier. These are listed below: * UPI payments initiated from UPI PSP apps such as Google Pay, PhonePe. Such payments do not show remitter bank account details and it is not possible to process a refund. * IMPS Payments made from a small number of banks that do not share the payer's account number and such payments cannot be automatically refunded. * Payments made from Non-Resident External (NRE) bank accounts. In such cases, Razorpay is not permitted to deposit money into the account and it is not possible to process a refund. In each of these cases, if a refund is still necessary, you can obtain alternate bank account details from your customer and raise a request on the [Support Portal](https://razorpay.com/support/#request) to initiate a refund. > [!NOTE] > > **Handy Tips** > > You can create refunds for the payments received on a Customer Identifier. Refunds are generally processed within 3-5 business days via the same mode used by your customer. The platform fee and GST charged on successful transactions will not be reversed in the case of refunds. > > You can initiate refunds from the [Dashboard](/docs/payments/smart-collect/refund) or using [APIs](/docs/api/refunds). ### Related Information * [Razorpay Smart Collect](/docs/payments/smart-collect) * [How Smart Collect Works](/docs/payments/smart-collect/how-it-works) * [Customer Identifier States](/docs/payments/smart-collect/states) * [Auto Third Party Validation (TPV) on Smart Collect](/docs/payments/smart-collect/third-party-validation) * [Search for a Customer Identifier](/docs/payments/smart-collect/search) * [Make Test Payments](/docs/payments/smart-collect/test-payments) * [Smart Collect APIs](/docs/api/payments/smart-collect) * [Subscribe to Webhooks](/docs/payments/smart-collect/subscribe-to-webhooks) # Search for a Customer Identifier Source: https://razorpay.com/docs/payments/smart-collect/search Search for a Customer Identifier using the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can search for a Customer Identifier on the Dashboard by specifying various filters. To search for a Customer Identifier: 1. Log in to the Dashboard. 2. Select **Smart Collect** from the left menu and search for a Customer Identifier under **Customer Identifiers** by specifying filters. ![Customer Identifier List](https://razorpay.com/docs/build/browser/assets/images/smart-collect-virtual-account-search.jpg) | Filter | Description | | - | - | | Customer Identifier Id | The unique ID of the Customer Identifier. | | Notes | The Internal Note added by you during the creation of the Customer Identifier. | ### Related Information * [Create Customer Identifiers](/docs/payments/smart-collect/create) * [Close Customer Identifiers](/docs/payments/smart-collect/close) * [Refund Payments](/docs/payments/smart-collect/refund) * [Make Test Payments](/docs/payments/smart-collect/test-payments) # Customer Identifier States Source: https://razorpay.com/docs/payments/smart-collect/states List of states of a Customer Identifier and their significance. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India There are two states for a Customer Identifier, **Active** and **Closed**. Given below is an illustration of the life cycle of a Customer Identifier. ![Illustration of lifecycle of customer identifier as active or inactive](https://razorpay.com/docs/build/browser/assets/images/smart-collect-virtual-account-states.jpg) The table below lists the various states of a Customer Identifier and gives a brief description of each state: | Status | Description | Next Steps | | - | - | - | | Active | Indicates the Customer Identifier has been created and saved. You can accept payments using this account. | Customers can start making payments to this Customer Identifier. | | Closed | Indicates the Customer Identifier has been deactivated or has expired. You cannot accept payments using this account. | Customers can no longer make payments to this Customer Identifier. You cannot reactivate the Customer Identifier. You need to create a new Customer Identifier to start accepting payments. | ### Related Information * [Smart Collect](/docs/payments/smart-collect) * [How Smart Collect Works](/docs/payments/smart-collect/how-it-works) * [Auto Third Party Validation (TPV) on Smart Collect](/docs/payments/smart-collect/third-party-validation) * [Smart Collect APIs](/docs/api/payments/smart-collect) * [Subscribe to Webhooks](/docs/payments/smart-collect/subscribe-to-webhooks) # Make Test Payments Source: https://razorpay.com/docs/payments/smart-collect/test-payments Make test payments to Customer Identifiers in Test Mode. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can make a test payment to a Customer Identifier only in Test Mode. > [!NOTE] > > **No Test Payments on Live Mode** > > * The **Make Test Payments** feature is only available in **Test Mode**. > * You can toggle between Live and Test Modes on your **Dashboard**. Navigate to the top menu ribbon and click the drop-down icon against **Live Mode**. Toggle to **Test Mode** and create a new customer identifier. ## Test Payment to a Customer Identifier To make test payments to a Customer Identifier: 1. Log in to the Dashboard and click **Smart Collect**. 2. In the list of Customer Identifiers, select the Customer Identifier id to which you want to make a test payment. 3. In the right pane, click **Make a Test Payment**. ![Smart Collect - Test Payment Button](https://razorpay.com/docs/build/browser/assets/images/smart-collect-va_test_payments.jpg) 4. Enter the following details in the form: 1. **Amount**: Enter the amount to be transferred to the Customer Identifier as the test payment. ![SC - Test Payment Method](https://razorpay.com/docs/build/browser/assets/images/sc_test_payment.jpg) 2. **Method**: Select the payment method. You can choose NEFT, RTGS or IMPS. 5. Click **Create**. A success message **test payment successful** appears, indicating that the payment has gone through. You can verify this on the Customer Identifier list as well. ![SC Test Payment Success](https://razorpay.com/docs/build/browser/assets/images/smart-collect-va_test_payment_complete.jpg) ### Related Information * [Create Customer Identifiers](/docs/payments/smart-collect/create) * [Close Customer Identifiers](/docs/payments/smart-collect/close) * [Refund Payments](/docs/payments/smart-collect/refund) * [Search for a Customer Identifier](/docs/payments/smart-collect/search) # Auto Third-Party Validation (TPV) on Smart Collect Source: https://razorpay.com/docs/payments/smart-collect/third-party-validation Perform auto third-party validation of bank accounts provided by your customers using Razorpay Smart Collect API. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Third-party validation is a very important step in the Banking, Financial Services and Insurance sector. As per SEBI guidelines, businesses operating in these sectors must ensure that payments are accepted from the customers' registered, KYC-approved bank accounts only. ![Auto Third-Party-Validation](https://razorpay.com/docs/build/browser/assets/images/smart-collect-tpv-process.jpg) * Using Razorpay Smart Collect API, you can comply with the regulatory guidelines to ensure that the customers make payments only from their registered bank accounts (TPV). * If payments are made from the unregistered accounts (non-TPV), they are automatically refunded to the customers. * When you create a Customer Identifier, send the `allowed_payers` array with the customer's bank `account_number` and `ifsc`. This helps to identify TPV transactions and automatically refund non-TPV transactions. Know more about [API Endpoints](/docs/api/payments/smart-collect-tpv) and [the list of banks that support TPV](/docs/payments/third-party-validation/bank-list). ### Related Information * [Razorpay Smart Collect](/docs/payments/smart-collect) * [How Smart Collect Works](/docs/payments/smart-collect/how-it-works) * [Customer Identifier States](/docs/payments/smart-collect/states) * [Refund Failures](/docs/payments/smart-collect/refund-failures) * [Smart Collect APIs](/docs/api/payments/smart-collect) * [Subscribe to Webhooks](/docs/payments/smart-collect/subscribe-to-webhooks) # Smart Collect Use Cases Source: https://razorpay.com/docs/payments/smart-collect/use-cases Explore the diverse use cases of Smart Collect and Smart Collect 2.0, a robust payment collection solution for businesses. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Both Smart Collect and Smart Collect 2.0 are powerful payment collection solutions by Razorpay that help businesses automate reconciliation of direct bank transfers. While they share core functionality, Smart Collect 2.0 introduces enhanced features and additional use cases that make it superior for modern businesses. * **For businesses already using Smart Collect:** Upgrade to Smart Collect 2.0 for UPI support, instant settlements, and enhanced features. * **For new businesses:** Start directly with Smart Collect 2.0 for maximum functionality. ## Smart Collect 2.0 Use Cases > [accordion] UPI Payment Integration (NEW IN 2.0) > > **Industry:** All sectors requiring UPI collections > > **How Smart Collect 2.0 Helps** > > * Creates Virtual UPI IDs (VPAs) in addition to Customer Identifiers > * Enables UPI payments alongside traditional bank transfers > * Customers can pay using any UPI app with branded VPAs > * 99.99% success rate for UPI transactions > [accordion] Multi-Branch/Franchise Operations (NEW IN 2.0) > > **Industry:** Restaurants, Retail Chains, QSRs, Pharmacies, Theatres\ > **Examples:** Restaurant chains, Jewellery showrooms, Travel agencies > > **How Smart Collect 2.0 Helps** > > * Creates branch-specific or franchise-specific Customer Identifiers > * Tracks branch-wise sales and partner-wise collections in real-time > * Customises Identifiers with company branding for better trust > * Provides transaction-level breakup for each branch/franchise > * Simplifies multi-location reconciliation > [accordion] Department-wise Collections (NEW IN 2.0) > > **Industry:** Hospitals, Large Corporations, Service Centers\ > **Examples:** Multi-department hospitals, Universities with various faculties > > **How Smart Collect 2.0 Helps** > > * Tracks internal department-wise collections seamlessly > * Creates separate Identifiers for different departments/services > * Provides detailed reporting at identifier level > * Enables better cost center management > [accordion] Payment Gateway Integration (NEW IN 2.0) > > **Industry:** E-commerce, Online Services > > **How Smart Collect 2.0 Helps** > > * Customer Identifiers displayed on Payment Gateway checkout > * Generates new unique Identifiers for each transaction > * Customers can choose between gateway and direct bank transfer > * Seamless integration with existing payment flows > [accordion] High-Value Transaction Management (ENHANCED IN 2.0) > > **Industry:** Real Estate, Broking, Financial Services, B2B Marketplaces\ > **Examples:** Cars24, Real Estate Builders, AIFs > > **How Smart Collect 2.0 Helps** > > * Instant settlements eliminate cash flow challenges (vs T+2 in traditional methods) > * 99.99% success rate for high-value transactions > * Customer preference for netbanking over gateways for large amounts > * Third Party Verification (TPV) for enhanced security > [accordion] Wallet Top-ups and Service Payments (ENHANCED IN 2.0) > > **Industry:** Fintech, Gaming, Digital Services\ > **Examples:** Digital wallets, Gaming platforms, Service providers > > **How Smart Collect 2.0 Helps** > > * Instant notifications for IMPS and UPI payments > * Real-time wallet crediting improves customer experience > * Supports both traditional bank transfers and UPI methods > * Automated refunds for closed identifiers or failed TPV ## Smart Collect Use Cases > [accordion] Financial Services - Loan Repayments > > **Industry:** NBFC, Banks, Lending Companies\ > **Example:** Acme Loans > > **How Smart Collect Helps** > > * Automates loan repayment process with Customer Identifiers > * Supports NEFT, RTGS, and IMPS payment methods > * Provides real-time updates on payment statuses > * Reduces manual reconciliation errors in financial reporting > * Borrowers receive unique account details based on repayment schedules > [accordion] E-commerce Platforms - Supplier Payments > > **Industry:** E-commerce, Marketplaces\ > **Example:** Acme SuperMart > > **How Smart Collect Helps** > > * Creates unique Customer Identifiers for different marketing campaigns > * Eliminates need to manually identify payment sources > * Provides automatic reconciliation with real-time status updates > * Streamlines payment processes for enhanced accuracy and efficiency > [accordion] IT Services - Invoice Management > > **Industry:** Software Development, IT Services\ > **Example:** Acme Solutions > > **How Smart Collect Helps** > > * Handles large volume invoice payments efficiently > * Clients can add bank accounts as beneficiaries in netbanking portals > * Supports NEFT, RTGS, and IMPS transfers > * Provides real-time payment notifications via webhooks > * Ensures swift and informed decision-making > [accordion] Educational Institutions - Fee Collection > > **Industry:** Schools, Universities, Educational Services\ > **Example:** AcmeHorizon School > > **How Smart Collect Helps** > > * Accepts large one-time fee payments > * Generates unique Customer Identifiers for each student/fee cycle > * Provides automated reconciliation for accurate financial reporting > * Offers real-time insights into institutional financial health > * Seamless webhook notifications revolutionise data flow # About Subscriptions Source: https://razorpay.com/docs/payments/subscriptions Use Razorpay Subscriptions to accept recurring payments from your customers. Check the available billing models and the supported currencies. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States > [card] [Subscriptions Changelog](/docs/payments/changelog#products) > > Discover new features, updates and deprecations related to Razorpay Subscriptions (since Jan 2024). Use Razorpay Subscriptions to set up and manage recurring payments. * Create a plan with your pricing and billing schedule, then create a subscription for customers. Razorpay automatically charges them at regular intervals. * Manage all Subscriptions directly from the Dashboard - create plans, manage customer subscriptions, handle upgrades/downgrades, or pause billing. * Receive near real-time notifications by subscribing to Webhook events. ## Advantages * **Automated Billing**: Create a plan once and Razorpay automatically charges customers on schedule. * **Multiple Billing Models**: Support fixed amounts, usage-based billing or add-ons for extra services. * **Flexible Plans**: Set up trial periods, upfront charges and multiple pricing tiers. * **Customer Management**: Allow customers to upgrade, downgrade, pause or cancel subscriptions. * **Smart Payment Retries**: Automatic retry logic maximises successful collections. * **Seamless Integration**: Integrate using Dashboard links or APIs. * **Auto-Invoicing**: Invoices are automatically generated for every billing cycle. ## When to Use Subscriptions vs Recurring Payments **Subscriptions** are plan-based recurring payments. You create a plan (pricing and billing schedule), create a subscription for each customer and Razorpay automatically charges them at the defined intervals. Billing is fully automated and managed from the Dashboard. **Recurring Payments** let you charge customers repeatedly after they authorise their payment method once. You control when each charge is initiated using tokens. There is no built-in plan or automatic schedule; you trigger charges via API based on your business logic. > [accordion] Choose Subscriptions when you have: > > * Fixed billing schedules (weekly, monthly, quarterly, yearly) > * Multiple pricing plans for customers to choose from > * Need for automated, hands-off billing > [accordion] Choose Recurring Payments when you need: > > * Flexible billing based on usage or milestones > * Manual control over when to charge each payment > * On-demand or variable payment amounts > > See [Recurring Payments](/docs/payments/recurring-payments) for flexible, usage-based billing. ## Supported Payment Methods > [tab] Cards > > Customers can make payments using credit and debit cards. Card details are securely tokenised as per RBI guidelines. > [tab] UPI AutoPay > > Accept subscription payments via all major UPI apps including PhonePe, Google Pay, Paytm, BHIM and Amazon Pay. > [tab] Emandate > > Enable automated recurring transactions via Aadhaar, netbanking or debit card-based mandates. See [Supported Payment Methods](/docs/payments/subscriptions/supported-payment-methods) for complete details on limits and supported banks. ## Prerequisites > [accordion] Sign up for Account > > Ensure you have a [Razorpay account](/docs/payments/set-up). > [accordion] Enable Flash Checkout > > 1. Log in to the Dashboard. > 2. Navigate to **Account & Settings โ†’ Checkout Features** and enable **Flash checkout**. > > ![Enable Flash Checkout](https://razorpay.com/docs/build/browser/assets/images/flash_checkout_settings.jpg) > [accordion] Understand Tokenisation > > For card-based subscriptions, customer card details are securely tokenised with explicit consent during authorisation. > > ![Card tokenization flow](https://razorpay.com/docs/build/browser/assets/images/subscriptions-tokenisation.gif) ## Get Started 1. Log in to the Dashboard and navigate to **Subscriptions** under **PAYMENT PRODUCTS**. 2. [Create a Plan](/docs/payments/subscriptions/plugins/magento/test-it-out#plan) to define your product, pricing and billing frequency. 3. [Create a Subscription](/docs/payments/subscriptions/create#2-create-a-subscription) to link a customer to a plan using Dashboard or APIs. 4. Verify your subscription flow in [test mode](/docs/payments/subscriptions/test). ## Integrate With Your Systems You can integrate Razorpay Subscriptions with your existing systems: > [tab] Dashboard > > Create [Plans](/docs/payments/subscriptions/create-plans) and [Subscription Links](/docs/payments/subscriptions/create-subscription-links) and share via email/SMS - no coding required. > [tab] API Integration > > Integrate Subscriptions with your website or app using [Subscriptions APIs](/docs/api/payments/subscriptions). > [tab] Webhooks > > Set up [webhooks](/docs/payments/subscriptions/subscribe-to-webhooks) to receive real-time notifications for subscription events. #### Related Information * [How Subscriptions Work](/docs/payments/subscriptions/workflow) * [Subscription Use Cases](/docs/payments/subscriptions/use-cases) * [Subscription States](/docs/payments/subscriptions/states) * [Create Subscriptions](/docs/payments/subscriptions/create) * [Integration Guide](/docs/payments/subscriptions/integration-guide) - [Subscriptions APIs](/docs/payments/subscriptions/apis) * [FAQs](/docs/payments/subscriptions/faqs) # Subscriptions APIs Source: https://razorpay.com/docs/payments/subscriptions/apis List of available Subscriptions APIs for various actions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can use the Subscriptions APIs to perform various actions. You can perform all of these actions from the Dashboard as well. ## List of Subscriptions APIs The table below provides the list of various Subscriptions APIs and their brief description: | API | Description | | - | - | | [Create a Plan](/docs/api/payments/subscriptions/create-plan) | API to create a plan. | | [Fetch all Plans](/docs/api/payments/subscriptions/fetch-all-plans) | API to fetch all the created plans. | | [Fetch a Plan by ID](/docs/api/payments/subscriptions/fetch-a-plan) | API to fetch a plan by its unique identifier. | | [Create a Subscription](/docs/api/payments/subscriptions/create-subscription) | API to create a Subscription. | | [Create a Subscription Link](/docs/api/payments/subscriptions/create-subscription-link) | API to create a Subscription link. | | [Fetch All Subscriptions](/docs/api/payments/subscriptions/fetch-subscriptions) | API to fetch all the created Subscriptions. | | [Fetch Subscription by ID](/docs/api/payments/subscriptions/fetch-subscription-id) | API to allows fetch a Subscription details using its unique identifier. | | [Cancel a Subscription](/docs/api/payments/subscriptions/cancel-subscription) | API to cancel a Subscription. | | [Update a Subscription](/docs/api/payments/subscriptions/update-subscription) | API to update a Subscription. | | [Fetch Details of a Pending Update](/docs/api/payments/subscriptions/fetch-pending-update-details) | API to fetch details about any update of a Subscription. | | [Cancel an Update](/docs/api/payments/subscriptions/cancel-update) | API to cancel an update. | | [Pause a Subscription](/docs/api/payments/subscriptions/pause-subscription) | API to pause an active Subscription | | [Resume a Subscription](/docs/api/payments/subscriptions/resume-subscription) | API to resume a `paused` Subscription. | | [Fetch All Invoices for a Subscription](/docs/api/payments/subscriptions/fetch-invoices) | API to fetch all the generated invoices for a Subscription. | ### Related Information * [Subscription Workflow](/docs/payments/subscriptions/workflow) * [Subscription States](/docs/payments/subscriptions/states) * [Create Subscriptions](/docs/payments/subscriptions/create) * [Test Subscriptions](/docs/payments/subscriptions) # Create Subscriptions Source: https://razorpay.com/docs/payments/subscriptions/create Create Razorpay Subscriptions and Plans for your customers. Set the Trial Period and Upfront Amount. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Use the following steps to create Subscriptions for your customers: 1. [Create a Plan](/docs/payments/subscriptions/plugins/magento/test-it-out#plan) 2. [Create a Subscription](#2-create-a-subscription) ## 1. Create a Plan A Plan is a foundation on which a Subscription is built. It acts as a reusable template and contains details of the goods or services offered with the amount to be charged and the frequency at which the customer should be charged (billing cycle). Depending upon your business, you can create multiple Plans with different billing cycles and pricing. You should create a Plan before creating a Subscription. You can create Plans from the [Dashboard](/docs/payments/subscriptions/create-plans#create-a-plan) or using [APIs](/docs/api/payments/subscriptions/create-plan). > [!NOTE] > > **International Currencies** > > You can create a Plan using any of the [supported currencies.](/docs/payments/international-payments#supported-currencies) ## 2. Create a Subscription A Subscription contains details like the Plan, the start date, total number of billing cycles, free trial period (if any) and upfront amount to be collected. Subscriptions can be created from the [Dashboard](/docs/payments/payment-gateway/s2s-integration/subscriptions#create-a-subscription-link) or using [APIs](/docs/api/payments/subscriptions/create-subscription). ### Trial Period You can create a fully-customised trial period of Subscriptions that does not have to follow the typical 1-week or 1-month trial template. To create a trial period for your customers, provide a future start date when creating the Subscription. The actual billing cycle automatically starts at the specified date, creating a free trial period. **Example** 1. Acme Corp. provides video streaming services and wants to offer a 1-month free trial. 2. The customer selects the Plan on March 5, 2025 and completes the **authentication transaction**. 3. During the authentication transaction, Acme Corp. creates a Subscription with start date of April 5, 2025. 4. Now, although the authentication transaction was done on March 5, 2025, the customerโ€™s card will be charged only from April 5, 2025. 5. The customer or the business can decide to cancel the Subscription at any time before that. The time between March 5, 2025 and April 5, 2025 is treated as the trial period. > [!NOTE] > > **Handy Tips** > > * When creating a Subscription link from the [Dashboard](/docs/payments/subscriptions/create-subscription-links#create-a-subscription-link-from-dashboard), you can add a trial period by setting the start date to any future date. > * When creating a Subscription or a Subscription link using [APIs](/docs/api/payments/subscriptions/create-subscription-link), you can add a trial period by passing a future start date in the `start-at` parameter. ### Upfront Amount There might be scenarios where you want to charge the customers an extra amount either at the start of the Subscription or even before the Subscription starts. For example, you might want to charge the customer a delivery fee or a setup fee. You can add this to the Subscription as an upfront amount as part of the authentication transaction. **Example** 1. Acme Corp. provides furniture on rent. 2. Acme Corp. charges โ‚น1000 as security deposit. This needs to be collected before the furniture is delivered. 3. While creating a Subscription for the customer, Acme Corp. adds an upfront amount of โ‚น1000. 4. When the customer subscribes to the service (during authentication transaction), โ‚น1000 is collected from the customer. > [!NOTE] > > **Handy Tips** > > * When creating a Subscription link from the [Dashboard](/docs/payments/subscriptions/create-subscription-links#create-a-subscription-link-from-dashboard), you can add an upfront amount by selecting the **I want to add an upfront amount** check box and following the instructions on screen. > * When creating a Subscription or a Subscription link using [APIs](/docs/api/payments/subscriptions/create-subscription-link), you can add an upfront amount by passing an `addons` key in the request. ### Related Information * [Subscriptions](/docs/payments/subscriptions) * [Subscriptions Workflow](/docs/payments/subscriptions/workflow) * [Subscriptions States](/docs/payments/subscriptions/states) * [Test Subscriptions](/docs/payments/subscriptions/test) * [Subscriptions APIs](/docs/payments/subscriptions/apis) # Create and View Plans Source: https://razorpay.com/docs/payments/subscriptions/create-plans Create a Subscription Plan and view a list of created plans. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You must create a Plan before you create a Subscription. > [!NOTE] > > **International Currency** > > Create the plan in the currency you want to charge the customer. You can select any one of our [supported currencies](/docs/payments/international-payments#supported-currencies) to create a Plan. ## Create a Plan You can create a Plan in two ways: [Dashboard](/docs/payments/subscriptions/create-plans#create-a-plan-from-dashboard) and [APIs](/docs/payments/subscriptions/create-plans#create-a-plan-using-apis) > [!WARNING] > > **Watch Out!** > > * Plans with `daily` frequency should have the interval set to a value greater than 7. > * Once a Plan is created, you cannot edit or delete it. ### Create a Plan From Dashboard Watch this video to see how to create a Plan from the Dashboard. To create a plan: 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. 2. Go to **Plans** and click **+ New Plan**. The **New Plan** window displays. 3. Enter the following details: 1. **Plan Name:** Name of the plan. 2. **Plan Description:** A brief description for the plan. This is an optional field. 3. **Billing Frequency:** How often should the customer be charged. 4. **Billing Amount:** Amount to be charged. Refer to the [supported currencies](/docs/payments/international-payments#supported-currencies) page for information on currencies. 5. **Internal Notes:** Any internal notes if required. 4. Click **Create Plan**. ### Create a Plan Using APIs You can create a Subscription Plan using the [create a plan API](/docs/api/payments/subscriptions/create-plan). ## View Plan Details You can view Plan details in two ways: [Dashboard](/docs/payments/subscriptions/create-plans#view-plan-details-using-dashboard) and [APIs](/docs/payments/subscriptions/create-plans#view-plan-details-using-api) ### View Plan Details Using Dashboard To view Plan details: 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. 2. Go to **Plans** and click on the required **Plan Id** to view its details. ![](https://razorpay.com/docs/build/browser/assets/images/view_plan_details.jpg) ### View Plan Details Using API * View all Plans using the [fetch all plans API](/docs/api/payments/subscriptions/fetch-all-plans). * View a Plan with an id using the [fetch a plan by id API](/docs/api/payments/subscriptions-custom#fetch-a-plan-by-id). ### Related Information * [Create Subscriptions via Links](/docs/payments/subscriptions/create-subscription-links) * [Charge a Card Manually](/docs/payments/subscriptions/manually-charge-card) * [Update a Subscription](/docs/payments/subscriptions/update) * [Subscriptions Settings](/docs/payments/subscriptions/settings) # Create Subscriptions via Links Source: https://razorpay.com/docs/payments/subscriptions/create-subscription-links Create a Subscription link from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States If you do not have a website or app, you can still create and send subscriptions to customers using a link. When the customer opens the link, they are taken to a checkout page hosted by Razorpay, where they make the authorisation payment. You can also use this feature to create and send custom subscriptions to customers. Subscription Links can be created from the [Dashboard](/docs/payments/subscriptions/create-subscription-links#create-a-subscription-link-from-dashboard) or using [APIs](/docs/payments/subscriptions/create-subscription-links#create-a-subscription-link-using-api). ## Subscriptions via Links Flow Below is a high-level overview of Subscriptions via links. ![Flow of subscriptions via link](https://razorpay.com/docs/build/browser/assets/images/subscriptions-link-overview.jpg) To create a Subscriptions link from the Dashboard, you need to: 1. [Create a plan](/docs/payments/subscriptions/create-plans#create-a-plan). 2. [Create and send a Subscription link](/docs/payments/payment-gateway/s2s-integration/subscriptions#create-a-subscription-link). > [!WARNING] > > **Test Mode Limit** > > In test mode, you can create up to 30 Subscription Links per business. If you need to create more than 30 Subscription Links for testing purposes, contact [Razorpay Support](https://razorpay.com/support/). ## Create a Subscription Link From Dashboard Watch this video to see how to create Subscription Links. [https://www.youtube-nocookie.com/embed/PgvzuvbNQlM](https://www.youtube-nocookie.com/embed/PgvzuvbNQlM) > [accordion] To create a Subscription Link: > > 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. > > 2. Click **+ Create New Subscription**. The **Create Subscription** screen displays. > > 3. Select the required plan from the **Select Plan** drop-down list. > > 4. Select the **Subscription Start Date**. > > > [!NOTE] > > > > **Trial Period** > > > > To create a trial period for your customers, all you need to provide is a future start date. The actual billing cycle automatically starts at the specified date, essentially creating a trial period. > > 1. Enter the **Total Count**. This defines how many times the customer should be charged (the number of billing cycles).\\ > > > [!NOTE] > > > > **Handy Tips** > > > > You can create a Subscription for a maximum of 30 years, and the **Total Count** differs depending on the selected plan. For example, If you select a monthly plan, the **Total Count** is calculated as per the below formula: > > > > *Monthly=>(Number of months in a year(12) \* Number of Years supported (30)) / Interval (1 as every month in this example)* > > > > As per this formula, the **Total Count** for the monthly Subscription should be, *(12 \* 30)/1 = 1200* > > 1. Select the required offer from the **Offer** drop-down and click **Next**. > > 2. Select **I want to add an upfront amount**. > > 3. Click the drop-down and click **+Create New Item**. The **Add Upfront Amount** screen appears in a pop-out window. > > 4. Add the following details and click **Save**. > * **Name** > * **Rate per unit** > * **Description** (optional) > > 5. You can add additional items using the **Add New Item** option. > > 6. Click **Next** once you have added all items tagged as upfront amount.\\ > > > [!NOTE] > > > > **Handy Tips** > > > > * All the created add-on items display in the **Select Item to Add** drop-down. > > * The upfront amount and add-ons will have the same currency as the plan. > > 1. Enter the customer's mobile number and/or email address. > > 2. Select the **Notify Customer** check box if you want Razorpay to automatically send the Subscription Link to the customer via email to make the authorisation payment. > > 3. Set an expiry date for the link. > > 4. Add internal notes, if required. > > 5. Click **Next** once you have entered all the required details.\\ > > > [!NOTE] > > > > **Handy Tips** > > > > If the **Notify Customer** check box is **not** selected, Razorpay does not send the customer the Subscription Link to make the authorisation payment. > > 1. Review the details and click **Create Subscription Link** to send the link to the customer. ## Create a Subscription Link Using API You can create a Subscription Links using [Create a Subscription Link API](/docs/api/payments/subscriptions/create-subscription-link). ### Related Information * [Create and View Plans](/docs/payments/subscriptions/create-plans) * [Charge a Card Manually](/docs/payments/subscriptions/manually-charge-card) * [Update a Subscription](/docs/payments/subscriptions/update) * [Subscriptions Settings](/docs/payments/subscriptions/settings) # Frequently Asked Questions (FAQs) Source: https://razorpay.com/docs/payments/subscriptions/faqs Find answers to frequently asked questions about Razorpay Subscriptions and Subscription links. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States ## General > [accordion] How does two-factor authentication (2FA) work with Subscriptions? > > The first transaction needs to go through the 2FA process. Further charges can be made automatically, without 2FA. > > | Methods | Authorisation | > | - | - | > | Debit cards | OTP/3D secure | > | Credit cards | OTP/3D secure | > | UPI | UPI PIN | > | Emandate | NetBanking | > [accordion] One of my customers received the following SMS from their bank: `Your trx is debited to xxxx Bank CREDIT Card for Rs. xx.xx. This is not an authenticated trx as per RBI Mandate effective 1 May 12.` What is this? > > Some customers may receive such messages from the bank for subscription transactions. However, there is no need to worry about it as this communication is for information only. We assure you that all transactions on Razorpay are authorised as per RBI compliance. > [accordion] How long can a Subscription remain active? > > We support Subscriptions for a maximum duration of 100 years. The number of billing cycles depends if the subscription is billed daily, weekly, monthly or yearly. > [accordion] Which ecommerce plugins support Subscriptions? > > The plugins that support subscriptions are Woocommerce, Magento and OpenCart. > [accordion] The order status remains "Pending Payment", even after a successful Razorpay payment. Why is WooCommerce not updating my subscription payments? > > Follow the links given below to integrate with WooCommerce Subscription plugin: > > * [Subscriptions plugin for WooCommerce](/docs/payments/subscriptions/plugins/woocommerce) > * [Subscriptions plugin for WooCommerce Build Integration](/docs/payments/subscriptions/plugins/woocommerce/build-integration) > > If you have already followed the integration steps in the above links and the problem still persists, Reach out to our [Support team](https://razorpay.com/support/) with the versions of both Razorpay and WooCommerce plugin that you are currently using. > [accordion] Is WooCommerce Subscriptions plugin dependent on the Razorpay WooCommerce plugin? What are the compatible versions? > > Yes, the WooCommerce Subscriptions plugin depends on the Razorpay WooCommerce plugin. The WooCommerce Subscriptions plugin is fully compatible with Razorpay WooCommerce plugin equal to or greater than v2.4, including the latest v3.0 release. Know more about [plugin dependencies](/docs/payments/subscriptions/plugins/woocommerce#plugin-dependencies). > [accordion] Why am I unable to use Add-ons? > > You are unable to use the Add-Ons feature since it is deprecated. ## Plans > [accordion] Can I update or delete a Plan? > > No. You cannot update or delete a Plan. You should create a new Plan. Alternatively, you can duplicate and modify an existing Plan as per your requirements. > > To duplicate a Plan: > > 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. > 2. Go to **Plans** and click on the required **Plan Id**. > 3. Click the **Duplicate Plan** icon in the top-right corner of the pop-up, as shown in the screenshot below. > > ![Plan duplicate option on Subscription plan duplicate page](https://razorpay.com/docs/build/browser/assets/images/subscription_plan_duplicate.jpg) > 4. Edit the plan details as required and click **Create Plan**. ## Capture Payments > [accordion] Do I need to capture the authorisation payment used to validate a customer's card or UPI ID? > > No. You do not need to capture the โ‚น5 token authorisation payment used to validate a customer's card or UPI ID. This amount is auto-refunded to the customer. > [accordion] Do I need to capture the Subscription payments made by customers? > > No. You do not need to capture payments made for a Subscription. Upfront amount and subsequent charges are auto-captured. > > > [!WARNING] > > > > **Watch Out!** > > > > The payment will not be captured if you cancel the Subscription before it gets authorised. ## Update Subscriptions > [accordion] Can I update the plan amount or duration of Subscription when it is live? > > Yes. You can update details such as the plan amount, duration and quantity of a Subscription, even if it is live. Refer to the [Update Subscription section](/docs/payments/subscriptions/update) for more details. > > > [!WARNING] > > > > **Watch Out!** > > > > You can only update a Subscription authorised using cards and not via UPI and Emandate. > [accordion] When can I update a Subscription? > > You can only update a Subscription when it is inย `authenticated`ย andย `active`ย states. There is no state change when you update a Subscription. Know about [Updating a Subscription](/docs/payments/subscriptions/update). > > > [!WARNING] > > > > **Watch Out!** > > > > You can only update a Subscription authorised using cards and not via UPI and Emandate. ## Pause Subscriptions > [accordion] Who can pause a Subscription? > > This depends on the payment method used for the subscription. Given below is payment method-wise information on who can pause subscription. > > | Method | Business | Customer | > | - | - | - | > | Debit Cards | โœ“ | x | > | Credit Cards | โœ“ | x | > | UPI | โœ“ | โœ“ | > | Emandate | โœ“ | x | > > > [!WARNING] > > > > **Watch Out!** > > > > For UPI Subscriptions, you cannot resume a Subscription paused by your customer. If your customer pauses a Subscription, only they can resume it. > [accordion] Can all Subscriptions be paused? > > Subscriptions in the `active` state can be paused. You cannot pause a Subscription in any other state. Refer to the [life cycle](/docs/payments/subscriptions/states) section for more details. > [accordion] How can I pause a Subscription? > > You can pause a Subscription: > > * [From the Dashboard](/docs/payments/subscriptions/pause-resume-cancel#pause-a-subscription-using-dashboard). > * [Using APIs](/docs/api/payments/subscriptions/pause-subscription). > [accordion] How can my customer pause a Subscription? > > Your customer can pause Subscriptions authorised via UPI from their UPI app. ## Resume Subscriptions > [accordion] Who can resume a Subscription? > > | This depends on the payment method used for the subscription. Given below is payment method-wise information on who can resume a subscription. Method | Merchant | Customer | > | - | - | - | > | Debit Cards | โœ“ | x | > | Credit Cards | โœ“ | x | > | UPI | โœ“ | โœ“ | > | Emandate | โœ“ | x | > > > [!WARNING] > > > > **Watch Out!** > > > > For UPI Subscriptions, you cannot resume a Subscription paused by your customer. If your customer pauses a Subscription, only they can resume it. > [accordion] How can I resume a Subscription? > > You can resume a Subscription: > > * [From the Dashboard](/docs/payments/subscriptions/pause-resume-cancel#resume-a-subscription-using-dashboard). > * [Using APIs](/docs/api/payments/subscriptions/resume-subscription). > [accordion] Can I resume a Subscription paused by my customer? > > No. You cannot resume a Subscription paused by your customer. Only your customer can resume such Subscriptions. > [accordion] How can my customer resume a Subscription? > > Your customer can resume Subscriptions authorised via UPI from their UPI app. ## Cancel Subscriptions > [accordion] Can I cancel a Subscription? > > Yes. You can cancel a Subscription: > > * [From the Dashboard](/docs/payments/subscriptions/pause-resume-cancel). > * [Using APIs](/docs/api/payments/subscriptions/cancel-subscription). > [accordion] Can my customer cancel a Subscription? > > Your customer can cancel only those subscriptions authorised via UPI from their UPI app. They should refer to their respective app's documentation for steps to cancel subscriptions. > [accordion] How can I know when my customer cancels a Subscription? > > You can set up the [subscription.cancelled](/docs/webhooks/subscriptions#subscription-cancelled) webhook event to get a notification when your customer cancels their Subscription. Know more about [subscribing to a webhook event](/docs/payments/subscriptions/subscribe-to-webhooks). ## Payment Methods > [accordion] What payment methods are available for Subscriptions? > > The following payment methods are available for Subscriptions: > > * Credit Cards > > * Debit Cards > > > [!WARNING] > > > > **Watch Out!** > > > > Bank downtime can affect success rates when processing recurring payments via debit cards. > > * UPI (early access) > * Emandate (limited access) > [accordion] I want to enable customers to make payments through UPI only. How can I configure payment methods? > > Follow these steps to enable or disable payment methods (Cards and UPI): > > 1. Log in to the Dashboard. > 2. Navigate to **Subscriptions** โ†’ **Settings**. > 3. Configure the payment methods: > * **Card**: Enable this to accept recurring payments via cards for your subscriptions in any of our supported international currencies. > * **UPI**: Enable this to accept UPI payments when recurring charge is less than โ‚น15,000. Only INR is supported. > * **eMandates (NetBanking)**: Enable this to accept recurring payments via Emandate (NetBanking) for your subscriptions. Only INR is supported. > [accordion] Which banks and apps support UPI Subscriptions? > > **Supported Applications** > > Below are the UPI applications and their handles that support UPI Autopay: > > **Frequently Used Applications** > > Below are some of the frequently used UPI applications and their handles: > > | Applications | Handles \< = โ‚น 15,000 | Handles > โ‚น 15,000 | > | - | - | - | > | PhonePe | @ybl, @ibl and @axl | N/A | > | GooglePay | @okhdfcbank, @okicici and @okaxis | @okhdfcbank, @okicici and @okaxis | > | Paytm | @paytm | @paytm | > | BHIM | @upi | N/A | > | Amazon Pay | @apl and @yapl | @apl and @yapl | > | IndusInd Bank App | @indus | N/A | > > **Other Applications** > > Below are the other UPI applications and their handles: > > | Applications | Handles | > | - | - | > | BHIM Axis Pay | @axisbank and @sliceaxis | > | Bhim Baroda Pay | @barodampay | > | BHIM BOI UPI | @boi | > | BHIM DLB UPI | @dlb | > | BHIM IndusPay | @indus | > | Canara Bank | @cnrb | > | iMobile Pay | @icici | > | NSDL Payments Bank | @nsdl | > | DakPay | @postbank | > | MobiKwik | @ikwik | > | Digibank | @dbs | > | PayZapp | @pz | > > **Supported Banks** > > Refer to the [list of banks that support UPI Autopay](/docs/payments/recurring-payments/emandate/charge-customer-during-registration#supported-banks). > [accordion] Which are the intent-supported PSP apps? > > The below table gives information about the frequently used intent-supported PSP apps on different platforms and checkout integrations. > > **Standard Checkout Integration** > > | PSP Apps | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | GPay | x | โœ“ | โœ“ | > | PhonePe | โœ“ | โœ“ | โœ“ | > | Paytm | โœ“ | โœ“ | โœ“ | > | Amazon Pay | x | x | x | > | BHIM | x | โœ“ | x | > > **Custom Checkout Integration** > > | PSP Apps | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | GPay | โœ“ | โœ“ | x | > | PhonePe | โœ“ | โœ“ | x | > | Paytm | โœ“ | โœ“ | x | > | Amazon Pay | x | โœ“ | x | > | BHIM | x | โœ“ | x | > > **S2S Checkout Integration** > > | PSP Apps | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | GPay | โœ“ | โœ“ | x | > | PhonePe | โœ“ | โœ“ | x | > | Paytm | โœ“ | โœ“ | x | > | Amazon Pay | โœ“ | โœ“ | x | > | BHIM | โœ“ | โœ“ | x | > > > [!WARNING] > > > > **Watch Out!** > > > > * You should contact our [Support team](https://razorpay.com/support/#request) to enable UPI Intent on standard checkout. Watch this video on how to get it enabled. > > > > ![Feature Request GIF](https://razorpay.com/docs/build/browser/assets/images/feature-request.gif) > > > > * UPI Intent is not supported for @okaxis handle. > [accordion] How do I enable or disable payment methods for Subscriptions? > > Contact our [support team](https://razorpay.com/support/) to enable or disable a payment method for Subscriptions. This cannot be done from the Dashboard. > [accordion] What do I do if a payment method is not available on my account? > > Contact our [support team](https://razorpay.com/support/) if a payment method is not available for Subscriptions on your account. ## Cards > [accordion] Which banks are live on the cards, and what does this mean for businesses? > > Businesses like yours can onboard customers and process recurring payments through debit, credit and prepaid cards of the following banks from October 1, 2021. Customers can now sign up for Subscription plans using their card details easily. > > Refer to the [list of banks that support cards](/docs/payments/subscriptions/supported-banks-apps#cards). > > > [!WARNING] > > > > **Watch Out!** > > > > Please contact our support team if you are facing difficulties with card payments from any of the major banks on the above list. > > > [!NOTE] > > > > **Handy Tips** > > > > We support Visa, Mastercard and RuPay cards from all major banks. > [accordion] What happens when a customer tries to use the card details of banks that are not live? > > If a customer tries to enter card details of banks that are not live, an error message saying `Card does not support recurring payments` will be displayed, as shown below. > > ![Error message when card does not support recurring payments](https://razorpay.com/docs/build/browser/assets/images/cards-mandatehq-error-sub.jpg) > [accordion] Will the existing subscription plans continue to work post September 30, 2021? > > We will migrate existing Subscription plans of City Union Bank (CUB), OneCard and Karur Vysya Bank by September 30, 2021. Wel will continue to process debits on such Subscription plans even after September 30, 2021. For banks that will go live after September 30, 2021, we will migrate the Subscription plans of such banks as and when they go live. > > > [!WARNING] > > > > **Watch Out!** > > > > All of the Subscriptions that will be migrated are credit card based Subscriptions as debit cards of these banks were not enabled before. > [accordion] What happens to debits of Subscriptions plans of banks that are not live by September 30, 2021? > > All the Subscription plans of banks that are not live will be moved to the `pending` state on their respective billing dates starting from October 1, 2021. We will notify your customers through email with the following options to activate the Subscription again: > > **Option 1:** Update with new card details of banks that are live. > > **Option 2:** Use UPI as the alternate payment method and register to re-activate the subscription. > > **Alternate Approach** - Register for a new Subscription > > In case you wish to reach out to your customers to sign up for new Subscriptions, you can do the following: > > 1. Cancel all card-based Subscriptions, and the status will be moved to the `cancelled` state. > 2. Notify your customers about the cancelled Subscriptions and send new subscription links, and request them to register afresh using UPI or the cards of banks that are live. > > Refer to the [Subscriptions document](/docs/payments/subscriptions) for more information. > [accordion] Are there any changes in turnaround time (TAT) for processing debits on Subscriptions? > > Starting October 1, 2021, we will initiate the debit on every Subscription 24 hours in advance. The respective banks will send a pre-debit notification to the customerโ€™s registered mobile number or email ID. If the customer does not pause or cancel the Subscription, then the debit will be processed, and you will get the notification through a webhook or in the Dashboard. A sample pre-debit notification is given below for your reference: > > ![Sample pre-debit notification](https://razorpay.com/docs/build/browser/assets/images/cards-mandatehq-pre-debit.jpg) > [accordion] Are there any changes in APIs for processing card-based Subscriptions? > > No, there are no changes in APIs to process card-based Subscriptions. > [accordion] Is there a maximum monetary limit for processing card-based Subscriptions? > > For plans up to a maximum of โ‚น15,000, debits are processed without any intervention from customers. > > If you fall under the following merchant category codes, you can process plans up to โ‚น1,00,000 without any intervention from customers: > > * Mutual Funds: 6211 > * Insurance: 6300, 6529, 5960 > * Credit Card Bill Payment: 6012, 5413 > > For all other businesses, plans above โ‚น15,000 require an Additional Factor Authentication (AFA) from customers for every subsequent debit of the Subscription plan. > [accordion] What is the new flow to process card-based Subscriptions under the new RBI guidelines? > > > [!NOTE] > > > > **Handy Tips** > > > > All the steps mentioned below will be taken care of by Razorpay and banks. No additional effort is required from businesses and customers. > > To process debits of amounts below โ‚น15,000: > > 1. Razorpay will initiate the debit 36 hours before the actual debit date. > 2. Bank will send a pre-debit notification SMS to the customer immediately. > 3. The amount will be debited 36 hours after the notification provided the customer does not pause or cancel the Subscription. > > To process debits of amounts above โ‚น15,000 (upto โ‚น1,00,000 for [certain merchant categories](/docs/payments/subscriptions/supported-banks-apps#mccs-with-r1-00-000-limit)): > > 1. Razorpay will initiate the debit 36 hours before the actual debit date. > 2. Bank will send a notification with a link for Additional Factor Authentication (AFA) to the customer immediately. The AFA link will be active for 72 hours. > 3. The amount will be debited once the customer provides AFA. > > The short animation below shows the customer side flow of giving consent through the AFA link. > > ![Customer flow for consent through AFA link](https://razorpay.com/docs/build/browser/assets/images/cards-mandatehq.gif) > [accordion] Are there any changes in processing debits for Subscriptions using international cards? > > No, there are no changes in processing debits for Subscriptions using international cards. The RBI guidelines apply only to domestic cards and not international cards. > [accordion] Can cardholders make changes to active Subscriptions? > > Yes, cardholders can pause, resume and cancel active Subscriptions from the portal provided by the bank to manage them. You will get notifications through multiple webhooks when a cardholder initiates any such changes to the Subscriptions. You can also see these changes in the Dashboard. > [accordion] What types of cards do Subscriptions support? > > * **Credit cards** from the following card networks issued by any bank in India. > * Mastercard > * Visa > * RuPay > * **Debit cards** on Mastercard, Visa and RuPay network issued by the following banks. > * ICICI Bank > * Kotak Mahindra Bank > * Citibank > * Canara Bank > [accordion] How do Subscriptions on Credit Cards work in India? > > Subscriptions are allowed on the following network credit cards provided the customer authorises the first transaction using 2FA authentication or 3D Secure. > > * American Express > * MasterCard > * Visa > * RuPay > [accordion] How do Subscriptions work on Debit Cards work in India? > > Subscriptions are allowed on Mastercard, Visa and RuPay network cards issued by the following banks provided the customer authorises the first transaction using two-factor authentication or 3D Secure. > > * Citibank > * Canara Bank > * ICICI Bank > * Kotak Mahindra Bank > [accordion] When is Card shown as a payment method on the checkout? > > Cards are always shown as a payment method for subscriptions. > > | Method | Condition | Checkout | > | - | - | - | > | Card | Plan amount + upfront amount \< โ‚น2,000. | โœ“ | > | Card | Authentication amount + upfront amount \< โ‚น2,000. | โœ“ | > | Card | Plan amount + upfront amount > โ‚น2,000. | โœ“ | > | Card | Authentication amount + upfront amount > โ‚น2,000. | โœ“ | > [accordion] Can I disable cards as a payment method on the checkout? > > Yes. You can disable cards as a payment method using the **Settings** feature on the **Subscriptions** tab. > [accordion] How long does it take to process card payments? > > | Method | Payment | TAT Guidelines | > | - | - | - | > | Card | authorisation payment | Real-time. | > | Card | Subsequent charge | Real-time. | > [accordion] Are all Subscription frequencies allowed when using Card as a payment method for Subscriptions? > > Yes. All the Subscription frequencies are allowed when using Card as a payment method for Subscriptions. > [accordion] Are there any restrictions when using Card as a payment method for Subscriptions? > > No. There are no restrictions when using Card as a payment method for Subscriptions. > [accordion] Are there any test mode restrictions for card-based Subscriptions? > > Yes. In test mode, you can perform a subsequent debit only within 3 days of token creation, as card tokens are valid for 3 days only. > [accordion] Can I display the MandateHQ summary screen before the bank page while making a transaction? > > Yes, you can display the MandateHQ summary screen by enabling the **Show Mandate Summary Page for Cards** option from the Dashboard. > > To enable the option: > > 1. Log in to the Dashboard and click **Account & Settings** in the left menu. > 2. Click **Mandate summary page** under **Checkout settings**. > > ![Mandate summary page option under Checkout settings](https://razorpay.com/docs/build/browser/assets/images/mandate_settings.jpg) > 3. Enable the **Show Mandate Summary Page for Cards** option. > > ![Enable show Mandate Summary Page for cards option](https://razorpay.com/docs/build/browser/assets/images/show_mandate_cards_rp.jpg) > [accordion] How do I enable Rupay Card support to collect recurring payments? > > We are doing a beta rollout for recurring payments via Rupay cards. This beta phase will include an on-demand enablement. You should reach out to your POCs to get this enabled. > > Also alternatively, we will choose a set of merchants to enable this feature and inform them through the POCs. > [accordion] Is any additional integration required to enable RuPay? > > No. If you have already integrated Razorpay Subscriptions or CAW for Visa and Mastercard cards, no additional changes or integrations are required to enable RuPay cards. This applies to all cases, whether you are integrated on Standard Checkout, Custom Checkout, or S2S (server-to-server integrations). > [accordion] What banks support recurring payments via RuPay cards? > > RuPay SI requires payment processors/aggregators and banks to work with NPCI to enable the support. NPCI is continuously working with more banks to support recurring payments on RuPay cards. Refer to the [Supported Banks and Apps](/docs/payments/subscriptions/supported-banks-apps#cards) document for the list of supported banks. > [accordion] Are the 2021 RBI guidelines for recurring payments on cards applicable to RuPay cards? > > Yes. The 2021 RBI guidelines apply to all cards issued in India across network schemes, including RuPay cards. > [accordion] Is tokenisation of cards required for RuPay SI flows? > > Yes. The card needs to be tokenised during the mandate registration to process subsequent payments on the respective mandate. In all cases, Razorpay will act as an on-behalf token requestor for the business while tokenising the card with the RuPay network. > [accordion] Are there any differences in functionalities/use cases supported via RuPay compared to Visa and Mastercard cards? > > Yes. As SI on RuPay is NPCI's new product, they continuously work to cover an exhaustive set of use cases from an ecosystem standpoint. However, RuPay card recurring is supported for all businesses' extensive and fundamental use cases. Below are the use cases not supported currently: > > * **Mandate registration with saved card**: This is live for NPCI and Razorpay. > * **Debits greater than 15K**: Initial or subsequent debits greater than 15,000 INR are not allowed for RuPay card recurring transactions. NPCI is working to enable this shortly. > * **Pre-debit Notification with the same amount on a given mandate**: Currently, NPCI does not support the functionality of raising multiple pre-debits with the same amount simultaneously on a mandate. After a pre-debit notification for a given amount is raised on a mandate, the next pre-debit with the same amount will override the previous pre-debit notification. Hence, the next pre-debit with the same amount should only be raised after the debit is successfully done against the previous pre-debit notification or after the previous pre-debit notification expires(T+3 days to expire, where T is the debit date specified). ## UPI > [accordion] I have already integrated with Razorpay Subscriptions. Do I need to make changes to my Integration to accept UPI payments for Subscriptions? > > There are no changes to the existing APIs. However, there is a new API to pause Subscriptions that you will have to add to your integration. > [accordion] Which banks and apps support UPI Subscriptions? > > **Supported Applications** > > Below are the UPI applications and their handles that support UPI Autopay: > > **Frequently Used Applications** > > Below are some of the frequently used UPI applications and their handles: > > | Applications | Handles \< = โ‚น 15,000 | Handles > โ‚น 15,000 | > | - | - | - | > | PhonePe | @ybl, @ibl and @axl | N/A | > | GooglePay | @okhdfcbank, @okicici and @okaxis | @okhdfcbank, @okicici and @okaxis | > | Paytm | @paytm | @paytm | > | BHIM | @upi | N/A | > | Amazon Pay | @apl and @yapl | @apl and @yapl | > | IndusInd Bank App | @indus | N/A | > > **Other Applications** > > Below are the other UPI applications and their handles: > > | Applications | Handles | > | - | - | > | BHIM Axis Pay | @axisbank and @sliceaxis | > | Bhim Baroda Pay | @barodampay | > | BHIM BOI UPI | @boi | > | BHIM DLB UPI | @dlb | > | BHIM IndusPay | @indus | > | Canara Bank | @cnrb | > | iMobile Pay | @icici | > | NSDL Payments Bank | @nsdl | > | DakPay | @postbank | > | MobiKwik | @ikwik | > | Digibank | @dbs | > | PayZapp | @pz | > > **Supported Banks** > > Refer to the [list of banks that support UPI Autopay](/docs/payments/recurring-payments/emandate/charge-customer-during-registration#supported-banks). > [accordion] Which are the intent-supported PSP apps? > > The below table gives information about the frequently used intent-supported PSP apps on different platforms and checkout integrations. > > > [tab] Standard Checkout Integration > > > > | PSP Apps | mWeb | Android SDK | iOS SDK | > > | - | - | - | - | > > | GPay | x | โœ“ | โœ“ | > > | PhonePe | โœ“ | โœ“ | โœ“ | > > | Paytm | โœ“ | โœ“ | โœ“ | > > | Amazon Pay | x | x | x | > > | BHIM | x | โœ“ | x | > > > [tab] Custom Checkout Integration > > > > | PSP Apps | mWeb | Android SDK | iOS SDK | > > | - | - | - | - | > > | GPay | โœ“ | โœ“ | x | > > | PhonePe | โœ“ | โœ“ | x | > > | Paytm | โœ“ | โœ“ | x | > > | Amazon Pay | x | โœ“ | x | > > | BHIM | x | โœ“ | x | > > > [tab] S2S Checkout Integration > > > > | PSP Apps | mWeb | Android SDK | iOS SDK | > > | - | - | - | - | > > | GPay | โœ“ | โœ“ | x | > > | PhonePe | โœ“ | โœ“ | x | > > | Paytm | โœ“ | โœ“ | x | > > | Amazon Pay | โœ“ | โœ“ | x | > > | BHIM | โœ“ | โœ“ | x | > > > [!WARNING] > > > > **Watch Out!** > > > > * You should contact our [Support team](https://razorpay.com/support/#request) to enable UPI Intent on standard checkout. Watch this video on how to get it enabled. > > > > ![Feature Request GIF](https://razorpay.com/docs/build/browser/assets/images/feature-request.gif) > > * UPI Intent is not supported for @okaxis handle. > [accordion] Is there a limit on the debit amount in UPI? > > For UPI, the maximum amount for any one transaction is โ‚น1,00,000, and for BFSI (Banking, Financial Services and Insurance) merchants, it is โ‚น2,00,000. > [accordion] When is UPI shown as a payment method on the checkout? > > UPI is shown on the checkout in the following cases: > > | Method | Condition | Checkout | > | - | - | - | > | UPI | Plan amount + upfront amount \< โ‚น15,000. | โœ“ | > | UPI | Authentication amount + upfront amount \< โ‚น15,000. | โœ“ | > | UPI | Plan amount + upfront amount > โ‚น15,000. | x | > | UPI | Authentication amount + upfront amount > โ‚น15,000. | x | > [accordion] How long does it take to process UPI payments? > > | Method | Payment Type | TAT Guidelines | > | - | - | - | > | UPI | Authorisation Payment | Real-time. | > | UPI | Subsequent Charge | All UPI Autopay auto-debits are processed and completed by 9:00 PM IST on the scheduled debit date. **\*** | > > **\*** Due to [payment retries](/docs/payments/subscriptions/payment-retries#retry-model), this may extend to T+1. > [accordion] Can I disable UPI as a payment method on the checkout? > > Yes. You can disable UPI as a payment method using the **Settings** feature on the **Subscriptions** tab. > [accordion] Can I update a Subscription authorised via UPI? > > No. Currently, you cannot update a Subscription authorised via UPI. > [accordion] Can I create an additional charge for a Subscription authorised via UPI? > > No. Currently, this is not possible. > [accordion] Can I pause a Subscription authorised via UPI? > > Yes. You can pause a Subscription authorised via UPI. > [accordion] Can I cancel a Subscription authorised via UPI? > > Yes. You can cancel a Subscription authorised via UPI. > [accordion] Can my customer update a Subscription authorised via UPI? > > No. Currently, it is not possible to update a Subscription authorised via UPI. > [accordion] Can my customer cancel a Subscription authorised via UPI? > > Yes. Customers can manage, modify or cancel their mandates anytime directly from their UPI app ([Google Pay](https://support.google.com/pay/india/answer/10840624?hl=en-IN#zippy=%2Cunable-to-cancel-revoke-or-find-the-option-to-cancel-autopay%2Cfind-your-mandate-in-google-pay%2Ccant-find-autopay-section%2Crevoke-or-cancel-a-mandate), [Paytm](https://www.herofincorp.com/blog/how-to-cancel-upi-mandate), PhonePe and so on) or by contacting your business. Once cancelled, no further payments are processed. > [accordion] Can my customer pause a Subscription authorised via UPI? > > Yes. Your customers can pause a Subscription authorised via UPI from their UPI app. > [accordion] Can I charge UPI payments in international currencies? > > No. Currently, UPI only supports `INR` payments. > [accordion] Can my customers use UPI as the payment method for Subscriptions? > > Yes, your customer can use UPI as a payment method for Subscriptions. > [accordion] Are all subscription frequencies allowed for UPI Subscriptions? > > Yes, all frequencies are allowed when using UPI as a payment method. > [accordion] Are there any restrictions when using UPI as the payment method for Subscriptions? > > Yes. The maximum transaction amount allowed is โ‚น15,000 when using UPI as a payment method for Subscriptions. > > > [!NOTE] > > > > **Handy Tips** > > > > For certain MCCs, the maximum amount limit for one transaction is โ‚น1,00,000. Refer to the [the list of supported MCCs](/docs/payments/subscriptions/supported-banks-apps#mccs-with-r1-00-000-limit), issuing banks and PSP applications. > [accordion] What is the supported amount limit on PSP applications? > > | PSP apps | Mandate Maximum Amount \< = โ‚น15,000 | Mandate Maximum Amount > โ‚น15,000 | > | - | - | - | > | PhonePe | Yes | No | > | GooglePay - okhdfcbank | Yes | Yes | > | GooglePay - okaxis | Yes | Yes | > | GooglePay - okicici | Yes | Yes | > | GooglePay - oksbi | Yes | Yes | > | BHIM | Yes | No | > | Paytm | Yes | Yes | > | Amazon Pay | Yes | Yes | > [accordion] Is QR Code supported for UPI Autopay? > > Yes, [QR Code](/docs/payments/subscriptions/qr-codes) is supported on Standard Checkout to collect Subscription payments. The customers can scan the QR using any PSP app and make the payment. > [accordion] I am getting an error message `Payment Failed. Please contact the site admin.` during the authentication transaction. Why? > > This error occurs when the amount of a plan exceeds the pricing plan configured to the business account for UPI. Ensure the minimum amount is greater than or equal to the configured pricing plan for UPI. > [accordion] Can I charge a UPI handle manually? > > No. You cannot charge a UPI handle manually. > [accordion] Can I restrict my customers from pausing and cancelling the mandate? > > Yes, you can restrict your customers from pausing and cancelling the mandate by enabling OC125 functionality. After enabling, the **Pause** and **Cancel** mandate buttons are not available on PSP apps as shown in the image below. > > ![Checkout with OC125 Enabled](https://razorpay.com/docs/build/browser/assets/images/upi_oc125.jpg) > > This functionality is supported only for lending businesses. Please contact our [Support team](https://razorpay.com/support/#request) for more information. > [accordion] Which are the intent-supported PSP apps for TPV? > > The below table gives information about the frequently used intent-supported PSP apps for TPV on different platforms and checkout integrations. > > > [tab] Standard Checkout Integration > > > > | PSP Apps | mWeb | Android SDK | iOS SDK | > > | - | - | - | - | > > | GPay | โœ“ | โœ“ | โœ“ | > > | PhonePe | โœ“ | โœ“ | x | > > | Paytm | โœ“ | โœ“ | โœ“ | > > | Amazon Pay | x | โœ“ | x | > > | BHIM | x | โœ“ | x | > > > [tab] Custom Checkout Integration > > > > | PSP Apps | mWeb | Android SDK | iOS SDK | > > | - | - | - | - | > > | GPay | โœ“ | โœ“ | โœ“ | > > | PhonePe | โœ“ | โœ“ | x | > > | Paytm | โœ“ | โœ“ | โœ“ | > > | Amazon Pay | x | โœ“ | x | > > | BHIM | x | โœ“ | x | > > > [tab] S2S Checkout Integration > > > > | PSP Apps | mWeb | Android SDK | iOS SDK | > > | - | - | - | - | > > | GPay | โœ“ | โœ“ | x | > > | PhonePe | โœ“ | โœ“ | x | > > | Paytm | โœ“ | โœ“ | x | > > | Amazon Pay | โœ“ | โœ“ | x | > > | BHIM | โœ“ | โœ“ | x | > > > [!WARNING] > > > > **Watch Out!** > > > > * You should contact our [Support team](https://razorpay.com/support/#request) to enable PSP apps other than PhonePe and Paytm on Standard Checkout for UPI TPV. Watch this video on how to get it enabled. > > > > ![Feature Request GIF](https://razorpay.com/docs/build/browser/assets/images/feature-request.gif) > > > > * UPI Intent TPV is not supported for @okaxis handle. ## Emandate > [accordion] What is Emandate? > > Similar to Cards, Emandate is a digital payment service that can be used to set up recurring payments for Subscriptions on your bank account. With Emandate, you can provide standard instructions to your issuing bank, allowing them to debit the mentioned amount from your bank account automatically. > [accordion] How do I enable Emandate as a payment method on the checkout? > > Emandate is automatically enabled for you on the **Settings** page, and hence there are no additional steps required to enable it. > [accordion] Can I disable Emandate as a payment method on the checkout? > > Yes. You can disable Emandate as a payment method from the **Settings** page on the **Subscriptions** tab. > [accordion] Which banks have enabled Subscription through Emandate? > > Currently, Subscription through Emandate is available for a few banks. Refer to the [Supported Banks and Apps](/docs/payments/subscriptions/supported-banks-apps) page for more information. > [accordion] Is there a maximum amount limit per debit request for Emandate? > > You can set the maximum amount while initiating registrations for your customers. The maximum amount varies depending on the authentication mode using which customers want to set up the mandate. > > If you do not set a limit for the mandate, the maximum limit defaults to โ‚น1,00,00,000 for Emandates. > > **For Emandates via NPCI** > > The following table lists the auth types and their maximum limit allowed for Emandates via NPCI. > > | **Auth Type** | **Maximum Allowed Limit** | Default Allowed limit(if no max amount mentioned) | > | - | - | - | > | Netbanking | โ‚น1,00,00,000 | โ‚น1,00,00,000 | > | Debit Card | โ‚น1,00,00,000 | โ‚น1,00,00,000 | > | Aadhaar | โ‚น1,00,00,000 | โ‚น1,00,00,000 | > > **For Emandates - Direct bank integration (SBI, ICICI, Axis)** > > The following table lists the auth types and their maximum limit allowed for Emandates - Direct bank integration (SBI, ICICI, Axis). > > | **Auth Type** | **Maximum Allowed Limit** | Default Allowed limit(if no max amount mentioned) | > | - | - | - | > | Netbanking | โ‚น1,00,00,000 | โ‚น1,00,00,000 | > > **For Emandates - Direct bank integration (HDFC)** > > The following table lists the auth types and their maximum limit allowed for Emandates - Direct bank integration (HDFC). > > | **Auth Type** | **Maximum Allowed Limit** | Default Allowed limit(if no max amount mentioned) | > | - | - | - | > | Netbanking | โ‚น1,00,000 | โ‚น1,00,000 | > [accordion] The Subscription state is still `created` and not `active`, even after paying the registration payment. Why? > > The Subscription changes to `active` when both registration and subsequent payments are made. This is a bank constraint as the payment and registration cannot happen on the same day. The update on this may take T+1 days. If the payment still fails, the Subscription remains in the `created` state. > [accordion] Does the charge happen on bank holidays? > > No. If the charge day (T) is a bank holiday, we will charge on T-1 days. Similarly, if the charge day (T) and the previous day (T-1) are bank holidays, we will charge on T-3 days. This process will not affect your charge cycle for the subsequent months. > [accordion] Can my customer pause or cancel a Subscription that is authorised via Emandate? > > No, your customer cannot pause or cancel a Subscription that is authorised via Emandate. However, they can directly contact the bank and cancel a Subscription, and the subsequent payment will fail for such Subscriptions. > [accordion] The payment was supposed to happen on Day T. However, I have neither got a payment update nor the Subscription status changed to `subscription.pending`. Why? > > Occasionally Emandate payment may get delayed from the bank side. You would get an update in 1 to 2 days, and the Subscription status will be changed accordingly. > [accordion] How can I modify or edit a mandate that has already been created? > > You cannot modify or edit a mandate that has already been created. In this case, you need to create a new mandate for the user if any changes need to be made. ## Offers > [accordion] When can I link an offer to a Subscription? > > You can link an offer to a Subscription when creating the Subscription of after it has gone live. > > know more about [Subscription Offers](/docs/payments/subscriptions/offers). > [accordion] Do I have to link an offer to a Subscription when creating the Subscription? > > You can link an offer to a Subscription when creating the Subscription of after it has gone live. > [accordion] How do I link an offer to a Subscription? > > You can link an offer to a Subscription either using our APIs or from the Dashboard. > > Know more about [Subscription Offers](/docs/payments/subscriptions/offers). > [accordion] Can I link an offer to a Subscription using APIs? > > You can link an offer to a Subscription either using our APIs or from the Dashboard. > > Know more about [Subscription Offers](/docs/payments/subscriptions/offers). > [accordion] Can I link an offer to a Subscription from the Dashboard? > > You can link an offer to a Subscription either using our APIs or from the Dashboard. > > Know more about [Subscription Offers](/docs/payments/subscriptions/offers). > [accordion] Can I link an offer to a Subscription after it has gone live? > > Yes. You can [link an offer to a Subscription after it has gone live](/docs/payments/subscriptions/offers/link#link-an-offer-to-an-existing-subscription). > [accordion] Can I upgrade a Subscription when it has an offer linked to it? > > Yes. You can upgrade a Subscription even it has an offer linked to it. However, you cannot downgrade a Subscription when an offer is linked to it. > > To downgrade the Subscription, you will have to remove the offer linked to it, downgrade the Subscription and then reapply the offer to it. > [accordion] Can I downgrade a Subscription when it has an offer linked to it? > > No. You cannot downgrade a Subscription when an offer is linked to it. > > To downgrade the Subscription, you will have to remove the offer linked to it, downgrade the Subscription and then reapply the offer to it. > [accordion] What state should the Subscription be in to link an offer to it? > > To link an offer to a Subscription it should be in the active state. > [accordion] What state should a subscription be in to remove an offer to it? > > You can remove an offer linked to a Subscription in any state. Do remember that invoices generated after the offer is removed will be charged in full. ## International Payments > [accordion] Can I accept Subscription payments in currencies other than INR? > > Yes. You can accept Subscription payments in any of the [supported currencies](/docs/payments/international-payments#supported-currencies). > > > [!NOTE] > > > > **Handy Tips** > > > > Only card payments support international currencies. UPI payments do not support international currencies. > [accordion] In what currency are international payments settled? > > Settlements are always made in `INR`. The payment is converted using the exchange rate at the time of payment creation. > > Refer to our [International Payments page](/docs/payments/international-payments) for more details. # Glossary Source: https://razorpay.com/docs/payments/subscriptions/glossary List of all the commonly used terms related to Razorpay Subscriptions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States The following table lists all the commonly used terms and their definitions used in Subscriptions: | Terms | Description | | - | - | | Plan | A Plan is like a reuseable template where you define what should be billed, for what price and when. You can then have multiple customers subscribe to a Plan. For example, you can define a Plan for โ‚น1000 to be charged monthly or another Plan for โ‚น12000 to be charged yearly. You can define multiple Plans and call them Basic, Intermediate, Pro and so on. | | Subscription | When a customer subscribes to a Plan, it is called a Subscription. Subscription defines the date at which the customer wants to subscribe to the Plan (start date) and for how long (duration). You can also create Subscriptions with a trial period and an upfront amount. | | Trial Period | A period where the customer can avail the service or goods you offer without paying for it. The trial period is offered to the customer once they complete the authorisation transaction. You can create a fully-customized trial period that does not have to follow the typical 1-week or 1-month trial period. | | Upfront Amount | You can charge customers an upfront amount as part of the authentication transaction. If a Subscription or a Subscription link is created with an upfront amount, the customer is charged an extra amount during the authentication transaction. | | Authentication Transaction | The authentication transaction is a 3D secure authentication step before recurring payments are charged on your customer's card. It is an approval process from the customer who is subscribing to a Plan and also a way to validate the card to which a Subscription would be charged on a periodic basis. The authentication transaction is an RBI-mandate for all recurring payments in India. There are two ways to obtain an authentication transaction for Subscriptions:
  • Via your checkout
  • Sending the customer a link that will direct them to a Razorpay hosted page to make the payment
| # Integrate With Subscriptions Source: https://razorpay.com/docs/payments/subscriptions/integration-guide Step-by-step guide on how to integrate Razorpay Subscriptions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Check the prerequisites and steps to integrate Razorpay Subscriptions: ## Prerequisites * Create a Razorpay account. * Log in to the Dashboard and [generate the API keys](/docs/api/authentication#generate-api-keys). You need to use these keys while using our APIs and Checkout. ## Integration Steps Follow these steps to integrate Razorpay Subscriptions: > [card] [1. Build Integration](/docs/payments/subscriptions/integration-guide#1-build-integration) > > Create Plan, Subscription and integrate with Standard Checkout. > [card] [2. Test Integration](/docs/payments/subscriptions/integration-guide#2-test-integration) > > Test the integration by making a test payment. > [card] [3. Go-live Checklist](/docs/payments/subscriptions/integration-guide#3-follow-go-live-checklist) > > Check the go-live checklist. ### 1. Build Integration Follow these steps to create plans, subscriptions and accept payments from customers. > [accordion] Step 1.1 Create a Plan > > A Plan is a foundation on which a Subscription is built. It acts as a reusable template and contains details of the goods or services offered with the amount to be charged and the frequency at which the customer should be charged (billing cycle). Depending on your business, you can create multiple Plans with different billing cycles and pricing. > > * Create a Plan before creating a Subscription using your checkout. > * Create Plans from the [Dashboard](/docs/payments/subscriptions/create-plans#create-a-plan) or using [APIs](/docs/api/payments/subscriptions/create-plan). > [accordion] Step 1.2 Create a Subscription > > A Subscription contains details like the Plan, the start date, total number of billing cycles, free [trial period](/docs/payments/subscriptions/create#trial-period) (if any) and [upfront amount](/docs/payments/subscriptions/create#upfront-amount) to be collected. > > Subscriptions can be created from the [Dashboard](/docs/payments/subscriptions/create-subscription-links#create-a-subscription-link-from-dashboard) or using [APIs](/docs/api/payments/subscriptions/create-subscription). > [accordion] Step 1.3 Integrate With Standard Checkout > > After you create a Subscription, you need the customer's permission to charge their card at periodic intervals. For this, the customer has to complete an authentication/authorisation transaction. > > #### Authentication Transaction > > You can collect the authorisation transaction by passing the subscription\_id along with the other options to the Razorpay Standard Checkout. > > Once the authorisation transaction is successful, Razorpay returns the `razorpay_payment_id`, `razorpay_subscription_id` and the `razorpay_signature`. > > > [accordion] Code to Add Pay Button > > > > Use the sample code to initiate Razorpay Standard Checkout. Check the [list of checkout parameters](/docs/payments/payment-gateway/web-integration/standard/integration-steps#2-3-checkout-options). > > > > ```javascript Checkout with Callback URL theme={null} > > > > > > > > ``` > > > > ```javascript Checkout with Handler function theme={null} > > > > > > > > ``` > > > > ```json Failure response theme={null} > > { > > "code": "BAD_REQUEST_ERROR", > > "description": "Payment failed. Please contact the site admin", > > "source": "business", > > "step": "payment_initiation", > > "reason": "amount_less_than_minimum_amount", > > "metadata":{ > > }, > > "field": "amount" > > } > > ``` > > > [accordion] Failure Reasons and Next Steps > > > > | Error | Cause | Solution | > > | - | - | - | > > | Customer payment is not allowed for the Subscription at this stage. | This error occurs when you are trying to make a payment for the next billing cycle during the current cycle. | Users cannot pay for the next billing cycle during the current cycle. | > > | Payment failed. Please contact the site admin. | This error occurs when the amount of a plan exceeds the pricing plan configured to the business account for UPI. | Ensure the minimum amount is greater than or equal to the configured pricing plan for the respective payment method, such as UPI recurring. | > > | `end_time` must be between `946684800` and `4765046400`. | This error occurs when the end date of the Subscription is beyond the acceptable limits or if the current start and end are null. | Currently, you can only charge a Subscription for up to 10 years. | > > | Oops! Something went wrong. Please contact the merchant for further assistance. |
  • This error occurs when Flash Checkout is not enabled on the Dashboard.
  • This error also occurs if the `subscription_id` is in the cancelled/expired state.
|
  • Ensure that flash checkout is enabled on the Dashboard by navigating to Dashboard โ†’ Account & Settings โ†’ [Flash Checkout](/docs/payments/dashboard/account-settings/checkout-features#flash-checkout).
  • Ensure that the Subscription is in the authenticated or active state.
| > > > [accordion] Payment Verification > > > > This is a mandatory step that allows you to confirm the authenticity of the card details returned to the Checkout form for successful payments. > > > > To verify the `razorpay_signature` returned to you by the Checkout form: > > > > 1. Create a signature in your server using the following attributes: > > > > | Parameter | Description | > > | - | - | > > | `subscription_id` | Retrieve the subscription\_id from your server. Do not use the razorpay\_subscription\_id returned by Checkout. | > > | `razorpay_payment_id` | Returned by Checkout. | > > | `key_secret` | Available in your server. The key\_secret that was generated from the Dashboard. | > > > > 2. Use the SHA256 algorithm, the `razorpay_payment_id` and the `subscription_id` to construct an HMAC hex digest as shown below: > > > > ```html Code theme={null} > > generated_signature = hmac_sha256(razorpay_payment_id + "|" + subscription_id, secret); > > > > if (generated_signature == razorpay_signature) { > > payment is successful > > } > > ``` > > > > 3. If the signature you generate on your server matches the `razorpay_signature` returned to you by the Checkout form, the payment received is from an authentic source. ### 2. Test Integration You can test the integration by making a test payment using our cards: | Type | Card Network | Card Type | Card Number | CVV | Expiry Date | | - | - | - | - | - | - | | Domestic | Mastercard | Debit Card | 5104 0600 0000 0008 | Random CVV | Any future date. | | Domestic | Visa | Credit Card | 4718 6091 0820 4366 | Random CVV | Any future date. | | International | Mastercard | Credit Card | 5104 0155 5555 5558 | Random CVV | Any future date. | ### 3. Follow Go-live Checklist Consider the following steps before taking your integration live. > [accordion] Switch Test API Keys With Live API Keys > > After confirming if your integration is working successfully, you can take the integration live by switching the Test Mode API Keys with the Live Mode Keys. > [accordion] Subscribe to Webhooks > > [Set up Razorpay Webhooks](/docs/webhooks/setup-edit-payments) to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Subscribe to these [Subscriptions webhook events](/docs/payments/subscriptions/subscribe-to-webhooks#webhook-events-and-descriptions). ## Best Practices Follow the best practices for a smooth Subscriptions integration. * [Verify Payments](/docs/payments/subscriptions/integration-guide#payment-verification): Verify the received payments to confirm the authenticity of the mandate details returned to the Checkout form for successful payments. * [Implement Webhooks](/docs/payments/subscriptions/integration-guide#subscribe-to-webhooks): Implement Razorpay Webhooks to receive notifications on various events of Subscriptions. ### Related Information * [Subscriptions API](/docs/api/payments/subscriptions) * [Razorpay Standard Checkout](/docs/payments/payment-gateway/web-integration/standard) # Charge a Card Manually Source: https://razorpay.com/docs/payments/subscriptions/manually-charge-card Manually charge a card for Razorpay Subscriptions from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States If one or more auto-charge attempts fail, you will receive a webhook notification. Know more about [webhooks](/docs/webhooks/subscriptions). In such scenarios, you can manually charge the card linked to the Subscription from the Dashboard. Until a successful charge is made, the invoice will be in the `issued` state. > [!WARNING] > > **Watch Out!** > > Manual charging of a domestic card is not supported. ## Manually Charge a Card From Dashboard To manually charge a card: 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. 2. Click the **Subscription Id** in the `pending` state that is to be charged. 3. Click the invoice in the `issued` state and click **Attempt Charge**. Alternatively, you can click **Attempt Charge** against the invoice in the `issued` state on the details panel. ### Related Information * [Create and View Plans](/docs/payments/subscriptions/create-plans) * [Create Subscriptions via Links](/docs/payments/subscriptions/create-subscription-links) * [Update a Subscription](/docs/payments/subscriptions/update) * [Subscriptions Settings](/docs/payments/subscriptions/settings) # Notifications Source: https://razorpay.com/docs/payments/subscriptions/notifications Check the types of notifications available for Subscriptions, how they work and the steps to set up webhook events. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States There are three types of notifications for Subscriptions: Email, SMS and Webhook notifications. ## Email and SMS Your customers will receive an email and SMS at various events such as: * The start of the Subscription. * When a payment is successfully charged. * When a payment fails. * Action required by the customer in the event of a payment failure * When the card linked to a Subscription is changed or updated. * When a Subscription is moved to the `halted` state post 3 retry attempts of payment failure. * When a Subscription is cancelled. * When the details of a Subscription (such as plan, quantity or billing frequency) are updated. ### Types of Emails and SMS Razorpay sends emails and SMS to customers at 8 different stages during the life cycle of a Subscription. | Stage | Description | | - | - | | `Created` | An email and SMS is sent when you create and send a new Subscription link to a customer to make the authentication payment. The authenticated amount depends on the `upfront_amount` for the Subscriptions. | | `Initialized` | An email and SMS is sent after the customer successfully makes the authentication payment. | | `Charged Successfully` | An email and SMS is sent when we make a successful automated charge on the Subscription as per the billing cycle. | | `Completed` | An email and SMS is sent to the customer when the Subscription moves to the `completed` state. There is no notification sent if the Subscription moves to the same state. This is because the Subscription is already in the `completed` state, and a charge was made on an older invoice. | | `Charged Failed` | An email and SMS is sent when a charge on a card fails. When an automated charge on a Subscription fails, we retry an auto-charge on the card. If the retries are not exhausted, the Subscription moves to the `pending` state. We send out a notification (email and SMS) every time the Subscription moves to the `pending` state. The email and SMS contains an **Update Card** option for the customer to change the card details associated with the Subscription. | | `Card Updated` | An email and SMS is sent whenever a customer changes the card details associated with the Subscription. This notification notifies the customer that their new card details are now successfully updated. | | `Invoice Charge` | An email and SMS is sent when a manual charge is made on an old Subscription invoice (either by you or the customer). If the Subscription was in the `halted` state, we also mention that the Subscription is now `active`, and we will resume the automated charges from the next cycle onwards in the notification. | | `Halted` | When an automated charge on a Subscription fails, we retry an auto-charge on the card. When all the retries are exhausted, it moves to the `halted` state. We send out a notification (email and SMS) every time the Subscription moves to the `halted` state. These notifications contain the **Update Card** option to change the card linked to the Subscription. | | `Cancelled` | An email and SMS is sent when the Subscription moves to the `cancelled` state. This happens because either you or your customer cancelled the Subscription. | | `Subscription Updated` | An email and SMS is sent when the Subscription is successfully updated. There is no state change when a Subscription is updated. | ## Webhooks Know more about [how to set up and subscribe to Subscriptions webhooks](/docs/payments/subscriptions/subscribe-to-webhooks). ### Related Information * [Subscription Workflow](/docs/payments/subscriptions/workflow) * [Subscription States](/docs/payments/subscriptions/states) * [Create Subscriptions](/docs/payments/subscriptions/create) * [Test Subscriptions](/docs/payments/subscriptions/test) * [Subscriptions APIs](/docs/payments/subscriptions/apis) # About Offers Source: https://razorpay.com/docs/payments/subscriptions/offers Check the Razorpay Subscription Offers available for your customers. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can use Subscription Offers to provide discounts or cashback on Subscriptions. This attracts more customers, retains existing customers and increases sales. You have complete control over the offers you provide to your customers, such as the payment methods on which the Offer should be applied, maximum number of customers who can avail the offers and define the time of offers. ## How it Works You can create and apply offers for Subscriptions in 3 easy steps: 1. [Create an Offer from the Dashboard](/docs/payments/subscriptions/offers/create). 2. [Create a Plan for the Subscription](/docs/payments/subscriptions/create-plans#create-a-plan). 3. [Link the Offer to a Subscription](/docs/payments/subscriptions/offers/link). After you create a Subscription with an Offer, customers can select the offer when making the payment, and it is applied immediately. ![Offer preview on checkout](https://razorpay.com/docs/build/browser/assets/images/subscriptions-offers-offers_preview_checkout.jpg) ## How are Discounts Calculated There are 2 types of discount calculations: * [Percentage Discount Calculations](#percentage-discount-calculations) * [Flat Discount Calculations](#flat-discount-calculations) ### Percentage Discount Calculations Let us say you sell keto meals. * Plan amount = โ‚น1,000/month * Quantity = 2 units * Upfront amount (delivery fee) = โ‚น250/month * Add-on (keto chips) = โ‚น250/month * You offer a 10% discount up to โ‚น300. ``` Total amount = (Plan amount x Quantity) + Upfront Amount Total amount = (โ‚น1,000 x 2) + โ‚น250 Total amount = 2,250 Discount amount = Total amount x Discount percentage Discount amount = โ‚น2,250 x 10% Discount amount = โ‚น225 ``` ### Flat Discount Calculations Let us say you sell keto meals. * Plan amount = โ‚น1,000/month * Quantity = 2 units * Upfront amount (delivery fee) = โ‚น250/month * You offer a flat discount of โ‚น150. ``` Total amount = (Plan amount x Quantity) + Upfront Amount Total amount = (โ‚น1,000 x 2) + โ‚น250 Total amount = 2,250 Discount amount = โ‚น150 ``` ## Subscription Offers States A Subscription Offer has 2 states: * **Enabled**: The Offer is active and available to your customers. * **Disabled**: The Offer is disabled and no longer available to your customers. ![offers life cycle](https://razorpay.com/docs/build/browser/assets/images/subscriptions-offers-offers_life_cycle.jpg) ## Customise Subscription Offers There are 3 main parameters that you can use to customise and control Offers: **Subscription Offer Type**, **Discount Type** and **Payment Method**. You can also use **Other Parameters** to configure attributes, such as the start and end dates and the number of times the Offer can be used. > [accordion] Subscription Offer Types > > Following are the 3 types of offers you can create for Subscriptions: > > | Subscription Offer Type | Description | > | - | - | > | Single Use | This is a one-time discount offered to the customer. | > | Limited number of cycles | You can specify the number of cycles the Offer should be applied. For example, you can apply an Offer for the first 3 cycles of a 12-month Subscription. | > | Forever | The Offer is applied for the entire duration of the Subscription. | > [accordion] Discount Type > > Following are the 2 types of discounts you can provide on Subscription Offers: > > | Discount Type | Description | > | - | - | > | Flat | A flat discount is offered to the customer. | > | Percentage | The discount offered is a percentage of the Subscription amount. | > > > [!WARNING] > > > > **Watch Out!** > > > > Offers can only be applied if the chargeable amount after applying the Offer is greater than โ‚น1. > [accordion] Payment Methods > > Following are the 2 payment methods available for Offers on Subscriptions: > > | Payment Method | Description | > | - | - | > | Card | Offers will be applied to Subscriptions paid using cards. The options available for cards are listed below:
  • **Card type**: Credit card, debit card or both.
  • **Bank**: Card issuing bank. For example, HDFC Bank, Axis Bank. You can select 1 bank or all available banks. You cannot select multiple banks.
  • **Network**: Card network. For example, Visa, RuPay. You can select 1 network or all available networks. You cannot select multiple networks.
  • **Max Usage Per Card**: How many times a particular card be used to avail the Offer.
  • **IINs**: The card IINs on which the Offer should be applied. You can enter multiple IINs separated by commas.
| > | UPI | Offers will be applied to Subscriptions paid using UPI apps. | > [accordion] Other Parameters > > Following are the other parameters available to you when creating an Offer: > > | Parameter | Description | > | - | - | > | Offer Name | A name for the Offer. This appears on the checkout. For example, **Monsoon Offer**. | > | Display Text | A description of the Offer. This appears on the checkout. For example, **10% discount on all card payments**. | > | Terms | Terms and conditions of the Offer. | > | Starting On | The date and time from which the Offer will appear on the checkout. | > | Expires On | The date and time at which the Offer will no longer appear on the checkout. | > | On Payment Failure | What happens when an Offer validation (such as payment method) fails. You can:
  • Allow the customer to complete the payment without the Offer.
  • Do not allow the payment to go through.
| > | Max Usage | The number of time the Offer can be used. For example, you can use this parameter to limit the Offer to the first 100 customers. | ### Related Information * [Create Subscription Offers](/docs/payments/subscriptions/offers/create) * [Link an Offer to a Subscription](/docs/payments/subscriptions/offers/link) * [Update an Offer Linked to a Subscription](/docs/payments/subscriptions/offers/update) * [Delete an Offer Linked to a Subscription](/docs/payments/subscriptions/offers/delete) # Create Subscription Offers Source: https://razorpay.com/docs/payments/subscriptions/offers/create Create and manage offers for Razorpay Subscriptions from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can create offers only from the Dashboard. You can control the discounts you offer your customers, restrict the payment methods on which offers are applied and limit their usage to a defined time period. ## Create Offers Watch this video to see how to create Subscription Offers from the Dashboard. [https://www.youtube-nocookie.com/embed/QQmSFzYg554](https://www.youtube-nocookie.com/embed/QQmSFzYg554) To create offers: 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. 2. Click **+ Create New Offer**. 3. Click **Offers on Subscriptions**. The **Offer for Subscription** screen is displayed. 4. Enter the following information in the **Description** tab. * **Offer Name**: A name for the offer. This appears on the checkout. For example, *Monsoon Offer*. * **Display Text**: A description for the offer. This appears on the checkout. For example, *10% discount on all card payments*. * **Terms**: Terms and conditions for this offer. 5. Click **Next**. 6. Enter the following information in the **Discount type** tab. * **Redemption Type**: * **Single Use**: This is a one-time discount offered to the customer. * **Limited number of cycles**: You can specify the number of cycles for which the offer should be applied.\ For example, you can apply an offer for the first 3 cycles of a 12-month subscription. * **Forever**: The offer is applied for the entire duration of the subscription. * **Discount Type**: * **Flat**: A flat discount is offered to the customer. * **Percentage**: The discount offered is a percentage of the subscription amount. 7. Click **Next**. 8. Select the applicable payment method in the **Applicable On** tab. * **Payment Method**: * **UPI**: Offers will only be applicable for UPI Payments. * **Card**: Offers will only be applicable for card payments. * **Card type**: Credit card, debit card or both. * **Bank**: Card issuing bank. For example, HDFC Bank, Axis Bank.\ You can select 1 bank or all available banks. You cannot select multiple banks. * **Network**: Card network. For example, Visa, RuPay.\ You can select 1 network or all available networks. You cannot select multiple networks. * **Max Usage Per Card**: How many times can a particular card be used to avail the offer. * **IINs**: The card IINs on which the offer should be applied. You can enter multiple IINs separated by commas. 9. Click **Next**. 10. Enter the following information in the **Offer Validity** tab. * **Starting On**: The date and time from which the offer should be available to customers. * Start Immediately. * Select a date and time using the date-time picker. * **Expires On**: The date and time till when the offer should be available to customers. Select a date and time using the date-time picker. * **On Payment Failure**: What happens when an offer validation (such as payment method) fails. * Allow the customer to complete the payment without the offer. * Do not allow the payment to go through. 11. Click **Next**. 12. Review the offer. 13. Read the disclaimer. Click the check box. 14. Click **Create Offer**. ## Disable Offers In certain scenarios, you might want to disable an existing offer. When you disable an offer it is no longer available to your customers. > [!NOTE] > > **Handy Tips** > > Disabling an offer does not mean it is deleted from any subscriptions to which it is linked. It only means the offer will no longer be available to your customers. > > Know how to [delete an offer linked to a subscription](/docs/payments/subscriptions/offers/delete). To disable an offer: 1. Log in to the Dashboard and click **Offers** under **PAYMENT PRODUCTS** in the left menu. 2. Click the required Offer Id. 3. In the right pane that appears, click **Disable**. ![disable offer](https://razorpay.com/docs/build/browser/assets/images/offers-disable_offer.jpg) ### Related Information * [About Offers](/docs/payments/subscriptions/offers) * [Link an Offer to a Subscription](/docs/payments/subscriptions/offers/link) * [Update an Offer Linked to a Subscription](/docs/payments/subscriptions/offers/update) * [Delete an Offer Linked to a Subscription](/docs/payments/subscriptions/offers/delete) # Delete an Offer Linked to a Subscription Source: https://razorpay.com/docs/payments/subscriptions/offers/delete Remove an Offer from a Subscrition using Dashboard or APIs. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can delete an Offer linked to a Subscription from the [Dashboard](/docs/payments/subscriptions/offers/delete#delete-an-offer-linked-to-a-subscription-from-dashboard) or using [APIs](/docs/payments/subscriptions/offers/delete#delete-an-offer-linked-to-a-subscription-using-apis). The invoices generated after the offer is deleted will be charged in full. ## Delete an Offer Linked to a Subscription From Dashboard Watch this video to see how to delete an offer linked to a Subscription from the Dashboard. [https://www.youtube-nocookie.com/embed/xdPZ3xpVDRQ](https://www.youtube-nocookie.com/embed/xdPZ3xpVDRQ) To delete an Offer linked to a Subscription: 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. 2. Click on the **Subscription Id** for which you want to update the offer. 3. Click **Remove** against Offer. > [!WARNING] > > **Watch Out!** > > The offer will be removed from the Subscription only at the end of the cycle. It is not possible to remove an offer linked to a Subscription immediately. 1. Click **Yes, Remove**. ## Delete an Offer Linked to a Subscription Using APIs Use the [Delete an offer Linked to a Subscription API](/docs/api/payments/subscriptions/delete-offer). ```bash Curl theme={null} curl -u [YOUR_KEY_ID]:YOUR_KEY_SECRET] \ -X DELETE https://api.razorpay.com/v1/subscriptions/sub_00000000000001/offer_JHD834hjbxzhd38d \ ``` ```java Java theme={null} RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); String subscriptionId = "sub_00000000000001"; String offerId = "offer_JHD834hjbxzhd38d"; Subscription subscription = razorpay.subscription.deleteSubscriptionOffer(subscriptionId, offerId); ``` ```php PHP theme={null} $api = new Api($key_id, $secret); $api->subscription->fetch($subscriptionId)->deleteOffer($offerId) ``` ```javascript Node.js theme={null} var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.subscriptions.deleteOffer(subscriptionId, offerId) ``` ```python Python theme={null} import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.subscription.delete_offer(subscriptionId, offerId) ``` ```ruby Ruby theme={null} require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') subscriptionId = "sub_00000000000001" offerId = "offer_JHD834hjbxzhd38d" ``` ```go Go theme={null} import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") body, err := client.Subscription.DeleteOffer("", "", nil, nil) ``` ```csharp .NET theme={null} RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); string subscriptionId = "sub_I3GGEs7Xgmnozy"; string offerId = "offer_JCTD1XMlUmzF6Z"; Subscription subscription = client.Subscription.Fetch(subscriptionId).DeleteOffer(offerId); ``` ```bash CLI theme={null} razorpay subscriptions delete-offer sub_ABC123 offer_ABC123 ``` ### Related Information * [About Offers](/docs/payments/subscriptions/offers) * [Create Subscription Offers](/docs/payments/subscriptions/offers/create) * [Link an Offer to a Subscription](/docs/payments/subscriptions/offers/link) * [Update an Offer Linked to a Subscription](/docs/payments/subscriptions/offers/update) # Link an Offer to a Subscription Source: https://razorpay.com/docs/payments/subscriptions/offers/link Link an Offer to a Subscription on the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India After creating an Offer and a Subscription Plan, you need to link the Offer to a Subscription. * [Link an Offer while creating a Subscription](#link-an-offer-while-creating-a-subscription) * [Link an Offer to an active Subscription](#link-an-offer-to-an-existing-subscription) You can also [delete an Offer linked to a Subscription](/docs/payments/subscriptions/offers/delete). ## Link an Offer While Creating a Subscription Watch this video to see how to link an Offer to a Subscription. [https://www.youtube.com/embed/SoGr8jsfp24](https://www.youtube.com/embed/SoGr8jsfp24) You can link an Offer while creating a Subscription from the [Dashboard](/docs/payments/subscriptions/offers/link#link-an-offer-while-creating-a-subscription-from-dashboard) or using [APIs](/docs/payments/subscriptions/offers/link#link-an-offer-while-creating-a-subscription-using-apis). > [!WARNING] > > **Watch Out!** > > Offers for Subscriptions are only available when using Razorpay Standard Checkout. ### Link an Offer While Creating a Subscription From Dashboard You can link an Offer to a Subscription by selecting the required Offer using the **Offer** drop-down list when creating the Subscription. ![link offer when creating a subscription](https://razorpay.com/docs/build/browser/assets/images/subscriptions-offers-link_offer_when_creating_subscription.jpg) Know more about [Subscription Links](/docs/payments/subscriptions/create-subscription-links). ### Link an Offer While Creating a Subscription Using APIs Use the [Link an Offer to a Subscription API](/docs/api/payments/subscriptions/link-offer). ## Link an Offer to an Existing Subscription You can link an Offer to a Subscription or update the Offer linked to a Subscription from the [Dashboard](/docs/payments/subscriptions/offers/link#link-an-offer-to-an-existing-subscription-from-dashboard) or using [API](/docs/payments/subscriptions/offers/link#link-an-offer-to-an-existing-subscription-using-apis). * This is possible only if the Subscription is in the `active` state and not in any other state. * The Offer is applied to the Subscription at the end of the current billing cycle. It is not possible to update an Offer linked to a Subscription immediately. ### Link an Offer to an Existing Subscription From Dashboard You can link an Offer to an existing active Subscription by selecting the required Offer using the **Offer** drop-down when updating the Subscription. ![link an offer to an existing active subscription](https://razorpay.com/docs/build/browser/assets/images/subscriptions-offers-link_offer_to_existing_subscription.jpg) Know more about [updating a Subscription](/docs/payments/subscriptions/update). ### Link an Offer to an Existing Subscription Using APIs Use the [Update a Subscription API](/docs/api/payments/subscriptions/update-subscription) to link an Offer to an existing active Subscription by passing the `offer_id: ` in the request body. ### Related Information * [About Offers](/docs/payments/subscriptions/offers) * [Create Subscription Offers](/docs/payments/subscriptions/offers/create) * [Update an Offer Linked to a Subscription](/docs/payments/subscriptions/offers/update) * [Delete an Offer Linked to a Subscription](/docs/payments/subscriptions/offers/delete) # Update an Offer Linked to a Subscription Source: https://razorpay.com/docs/payments/subscriptions/offers/update Update an Offer linked to a Subscription from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can link an Offer to a Subscription or update the Offer linked to a Subscription from the Dashboard. * It is possible to do this only if the Subscription is in the `active` state and not in any other state. * The offer is applied to the Subscription only at the end of the current billing cycle. It is not possible to update an offer linked to a Subscription immediately. To update an Offer linked to a Subscription: 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. 2. Click on the **Subscription Id** for which you want to update the Offer. 3. Click **Update**. The **Update Subscription** pop-up page appears. 4. Click the **Offer** drop-down list and select the new Offer to be linked with the subscription. 5. Select **End of Cycle**. > [!WARNING] > > **Watch Out!** > > The new Offer will be applied to the Subscription only at the end of the cycle. It is not possible to update an Offer linked to a Subscription immediately. 1. Click **Next**. 2. Review the changes and click **Update Subscription**. ### Related Information * [About Offers](/docs/payments/subscriptions/offers) * [Create Subscription Offers](/docs/payments/subscriptions/offers/create) * [Link an Offer to a Subscription](/docs/payments/subscriptions/offers/link) * [Delete an Offer Linked to a Subscription](/docs/payments/subscriptions/offers/delete) # Pause, Resume and Cancel a Subscription Source: https://razorpay.com/docs/payments/subscriptions/pause-resume-cancel Pause, resume or cancel a Razorpay Subscription from the Razorpay Dashboard. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can [pause](/docs/payments/subscriptions/pause-resume-cancel#pause-a-subscription-using-dashboard), [resume](/docs/payments/subscriptions/pause-resume-cancel#resume-a-subscription-using-dashboard) and [cancel](/docs/payments/subscriptions/pause-resume-cancel#cancel-a-subscription-using-dashboard) a subscription from the Dashboard. ## Pause a Subscription Using Dashboard To pause a subscription from your Dashboard: 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. 2. Click the **Subscription Id** you want to pause. 3. Click **Pause Subscription**. The subscription is paused immediately. 4. Click **Yes, Pause**. ## Resume a Subscription Using Dashboard To resume a subscription from your Dashboard: 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. 2. Click the **Subscription Id** you want to resume. 3. Click **Resume Subscription**. The subscription is resumed immediately. 4. Click **Yes, Resume**. ## Cancel a Subscription Using Dashboard > [!NOTE] > > **Hand Tips** > > You can either cancel the subscription immediately or at the end of the current billing cycle. Watch the below video to know how to pause, resume and cancel a Subscription from the Dashboard. To cancel a subscription from your Dashboard: 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. 2. Click the **Subscription Id** you want to cancel. 3. Click **Cancel Subscription**. You can choose to either cancel the subscription immediately or at the end of the current billing cycle. 4. Click **Yes, Cancel**. ### Related Information * [Create and View Plans](/docs/payments/subscriptions/create-plans) * [Create Subscriptions via Links](/docs/payments/subscriptions/create-subscription-links) * [Charge a Card Manually](/docs/payments/subscriptions/manually-charge-card) * [Subscriptions Settings](/docs/payments/subscriptions/settings) # Payment Retries Source: https://razorpay.com/docs/payments/subscriptions/payment-retries Handle payment retries when an auto-charge fails for Razorpay Subscriptions. Check different failure scenarios and handle them using webhooks. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Recurring payments for a Subscription are auto-debited based on the scheduled day that you defined. However, these payments could fail. ## Reasons for Payment Failures * The card has expired. * The bank has blocked the card. * The customer's account has insufficient balance. * The customer has cancelled the mandate from their end. ## What Happens in Case of a Payment Failure Here is the Subscription flow if a payment fails: 1. The Subscription will move to the `pending` state. 2. You are notified about it via our webhooks. We automatically retry the payment on the following day. * We automatically charge the last invoice if the customer changes the card when the Subscription is in the `pending` state. * If this charge is successful, the Subscription moves to the `active` state. 3. If the payment fails after all retries, the Subscription will move to the `halted` state. * If the customer successfully changes the card details when a Subscription is in the `halted` state, it moves to the `active` state. Invoices for such Subscriptions are still created. However, we will not charge these invoices. You will have to charge them manually. > [!NOTE] > > **Handy Tips** > > This process will not affect the charge cycle for the subsequent months. ### Notifications * If you have enabled the `subscription.pending` and `subscription.halted` webhook, you receive notifications every time a Subscription moves to one of the above-mentioned states. You can then decide to hold off the delivery of the service as per your business model. * We also send an email to the customer notifying them about the payment failure. This email contains a link that the customer can use to change the card details associated with the Subscription. ## Retry Model Following is the retry model for Emandate, UPI and Cards: > [tab] Emandate > > In failure scenarios, we attempt to retry only when we get the confirmation or rejection of the last payment, as it may take more than 24 hours. > > Below is the retry model: > > 1. If the charge day (T) is a bank holiday, we will charge on T-1 days > 2. If the charge day (T) and the previous day (T-1) are bank holidays, we will charge on T-3 days. > > The customer can switch to a different payment method to continue with the payment process. > [tab] UPI > > For UPI payments, below is the retry model: > > 1. Let T=0 be the charge day. On this day, we attempt the charge. > 2. If the charge fails, the subscription moves to the `pending` state, and we automatically reattempt the charge on T+1 day. > 3. If the charge fails again, we automatically reattempt the charge two more times on T+2 and T+3 days, respectively. > 4. If the charge still fails, the subscription moves to the `halted` state. > > The customer can switch to a different payment method to continue with the payment process. > [tab] Cards > > In failure scenarios, we automatically retry the payment the next day without your interference. > In a T+3 days cycle, we will retry the payment thrice. That is, once every day for 3 days, excluding the date of the charge. If the payment fails on all retires, the Subscription moves to the `halted` state. > > Below is the retry model: > > 1. Let T=0 be the charge day. > 2. On T=0, we attempt to charge the card. > 3. If the charge fails, the Subscription moves to the `pending` state, and we automatically reattempt the charge on T+1 day. > 4. If the charge fails again, we automatically reattempt the charge two more times on T+2 and T+3 days, respectively. > 5. If the charge still fails, the Subscription moves to the `halted` state. > > The customer can switch to a different payment method to continue with the payment process. ## Handle Failed Charge (Cards) There are two ways to handle a failed charge: * [Manually attempt to charge the same card](#manual-charge-on-same-card) * [Change the card details associated with the Subscription](#change-card-linked-to-subscription) ### Manual Charge on Same Card When an auto-charge fails, you can manually attempt to charge the invoice as long as the invoice is in the `issued` state. > [!WARNING] > > **Watch Out!** > > Manual charging of a domestic card is not supported. **Example** \ The customer's account might have an insufficient balance when you attempt to auto-charge. When they receive the payment failure email, they add money to their account and inform you about this. You can [attempt a manual charge on the invoice using the Dashboard](/docs/payments/subscriptions/manually-charge-card). * If you have enabled the `subscription.pending` and `subscription.halted` webhook, you receive notifications every time a Subscription moves to one of the above-mentioned states. You can then decide to hold off the delivery of the service as per your business model. * We also send an email to the customer notifying them about the payment failure. This email contains a link that the customer can use to change the card details associated with the Subscription. ### Change Card Linked to Subscription 1. When an auto-charge fails, we send the customer an email about the payment failure. This email has a link that the customer can use to change the card linked to the Subscription. 2. You can ask the customer to change the card linked to the Subscription. > [accordion] Change Card Using Checkout > > You can ask the customer to change the card details associated with the Subscription on your checkout using our APIs. Use the `subscription_card_change` parameter to control this feature: > > * 1 : Allow the customer to change the card details from your checkout > * 0 : Do not allow the customer to change the card details from your checkout > > ```html Checkout with handler function theme={null} > > > > ``` > > ```html Manual checkout with callback URL theme={null} > > > > ``` > > > [!NOTE] > > > > **Handler Function vs Callback URL** > > > > | Handler Function | Callback URL | > > | - | - | > > | When you use the handler function, the response object of the successful payment (`razorpay_payment_id`, `razorpay_order_id` and `razorpay_signature`) is submitted to the checkout form. You need to collect these and send them to your server. | When you use a Callback URL, the response object of the successful payment (`razorpay_payment_id`, `razorpay_order_id` and `razorpay_signature`) is submitted to the callback URL. | > [accordion] Update Payment Method on Our Hosted Page > > You can use our ready-made hosted page solution to handle payment failures when you attempt an auto-charge. Here is how the hosted page handles payment failure: > >
    >
  1. The customer is notified via email about the payment failure.
  2. >
  3. The payment failure email contains a link that allows the customer to take further action on the failed payment.
  4. >
  5. Customers can either retry the payment on the same card or update the card details or change the payment method to UPI or Emandate (bank accounts) using the link. These actions are handled seamlessly by the hosted page.
  6. >
> > The following table lists the supported payment method change. > > | Current Payment Method | Change to Card | Change to UPI | Change to Emandate | > | - | - | - | - | > | Card | Yes | Yes | Yes | > | UPI | Yes | No | No | > | Emandate | Yes | No | No | > > * A sample hosted page is shown below: > > ![Sample hosted page for payment methods](https://razorpay.com/docs/build/browser/assets/images/sub-update-payment-method.jpg) > > * After the customer clicks the **Update Payment Method** button, the checkout page appears as shown. The customer can choose a card (of [supported banks](/docs/payments/subscriptions/supported-banks-apps)), UPI or Emandate (of [supported banks](/docs/payments/subscriptions/supported-banks-apps#emandate)) to make the payment. If the payment is successful, the Subscription moves back to the `actived` state. > > ![Checkout page to update payment method](https://razorpay.com/docs/build/browser/assets/images/sub-select-payment-method.jpg) > > * Use the Dashboard status filter to search for `halted` and `pending` Subscriptions. You can send the Subscription link to the respective customers to clear dues and make those Subscriptions active. > > ![Sub Subscription links for halted and pending subscriptions](https://razorpay.com/docs/build/browser/assets/images/sub-subscription-link.jpg) ### Related Information * [Subscription Workflow](/docs/payments/subscriptions/workflow) * [Subscription States](/docs/payments/subscriptions/states) * [Create Subscriptions](/docs/payments/subscriptions/create) * [Test Subscriptions](/docs/payments/subscriptions/test) * [Subscriptions APIs](/docs/payments/subscriptions/apis) # Razorpay Subscriptions Plugin for Magento Source: https://razorpay.com/docs/payments/subscriptions/plugins/magento Accept recurring payments on your Magento site using the Razorpay Subscription for Magento plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India You can now accept recurring payments on your Magento site using the Razorpay Subscriptions for Magento. This plugin is built on the Razorpay Subscriptions product and offers seamless integration, allowing you to create and sell subscription services on your website. Click the below button to download the Magento plugin. [Magento](https://github.com/razorpay/subscriptions-magento-plugin/releases) ## Advantages * Razorpay Subscription Plugin has a very quick and customer-friendly integration. * There is no need to create Plans or Subscriptions using the Razorpay Dashboard or Razorpay APIs. All this can be done easily from your Magento Dashboard. * Customers are not redirected from your website to make payments. * You can accept recurring payments using Razorpay Subscription Plugin on your Magento website itself via Credit Card, Debit Card, Netbanking and UPI payment methods. ## Plugin Dependencies You must have the following installed for the plugin to work: | Platform/Plugin/Language | Version | | - | - | | Magento | 2.3 or higher | | [Razorpay Magento PG plugin](https://github.com/razorpay/razorpay-magento) | 3.5 or higher | | [Razorpay Magento Subscriptions Plugin](https://github.com/razorpay/subscriptions-magento-plugin) | 1.0.0 | | PHP | 5.6.0 or higher | | php-curl | N/A | ## Prerequisites * Sign up for a Razorpay Account. * Generate API Keys from the Dashboard. * Navigate to **Razorpay Dashboard** โ†’ **Subscriptions** and click **Next** and **Get Started**. * Razorpay Subscriptions is based on the existing Razorpay [payment flow](/docs/payments/payment-gateway/how-it-works) process. If you are new to Razorpay, we recommend you to understand this flow before you read further. ## Integration Steps To start accepting subscription payments using the plugin: On Your Magento Site: 1. [Install the Razorpay Subscriptions for Magento Plugin](/docs/payments/subscriptions/plugins/magento#install-the-razorpay-subscriptions-for-magento-plugin). 2. [Configure Magento Store](/docs/payments/subscriptions/plugins/magento#configure-magento-store). 3. [Create a Plan for a Subscription Product](/docs/payments/subscriptions/plugins/magento#create-a-plan-for-subscription-product). 4. [Enable Subscriptions for your Product](/docs/payments/subscriptions/plugins/magento#enable-subscriptions-for-your-product). 5. [Test it out - Sign up for a Subscription](/docs/payments/subscriptions/plugins/magento/test-it-out). On the Razorpay Dashboard: 1. [Enable Webhooks](/docs/payments/subscriptions/plugins/magento#enable-webhooks). ### Install the Razorpay Subscriptions for Magento Plugin There are two methods to install the Razorpay Subscription for Magento plugin: * Install with Composer * Manual without Composer #### Install the Razorpay Module with Composer You can install the extension on your Magento store using the Composer Package Manager. Composer is an application-level package manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries. To install the Razorpay module using the Composer Package Manager: 1. Go to your installation root directory of Magento and execute the following command. ```php Deploy Commands theme={null} composer require razorpay/subscriptions-magento-plugin bin/magento module:enable Razorpay_Subscription ``` 2. Run the following command to check the installation status. ```php Installation Status Commands theme={null} bin/magento module:status ``` #### Install the Razorpay Module without Composer To install the Razorpay Subscriptions without the Composer Package Manager: 1. Download the `code.zip` file from the [latest release](https://github.com/razorpay/subscriptions-magento-plugin/releases) and extract the zip. 2. Place the `code` folder in your `app` folder. If you are updating the Razorpay Subscriptions, replace or overwrite the existing `code` folder. 3. Enable and deploy the Razorpay module using the following commands. ```php Deploy Commands theme={null} bin/magento module:enable Razorpay_Subscription bin/magento setup:upgrade ``` ### Configure Magento Store To configure your Magento store for Razorpay: 1. Log in to your [Magento store](https://business.adobe.com/products/magento/magento-commerce.html/). 2. Click **Stores** in the left menu and navigate to **Settings** โ†’ **Configuration**. ![](https://razorpay.com/docs/build/browser/assets/images/sub_config_magento_configuration.jpg) 3. Expand **Sales** in the left menu and click **Payment Methods**. ![](https://razorpay.com/docs/build/browser/assets/images/sub_config_magento_payment_meth.jpg) 4. Go to **Razorpay** in the **Payment Methods** page. 5. Enter your test mode \[KEY\_ID] and \[KEY\_SECRET]. These can be generated from your Dashboard. 6. Select the webhook events from the **Webhook Events** drop-down list to enable webhook notifications. 7. Select **Yes** from the **Enabled** drop-down list to enable the option to sell the Subscriptions. ![](https://razorpay.com/docs/build/browser/assets/images/sub_config_magento_enable_rzp.jpg) 8. Click **Save Config**. This activates your account in the Test Mode. You can use this account to make a few test payments to ensure a successful workflow. ### Create a Plan for Subscription Product. To create a plan for a Subscription product: 1. Log in to your [Magento store](https://business.adobe.com/products/magento/magento-commerce.html/). 2. Navigate to **Razorpay Subscription** โ†’ **Manage Plans**. ![](https://razorpay.com/docs/build/browser/assets/images/sub_magento_manage_palns.jpg) 3. Click **Add New Plan**. 4. Enter the all the required details. 5. Click **Save Plan**. ![](https://razorpay.com/docs/build/browser/assets/images/sub_magento_plan_save.jpg) > [!WARNING] > > **Watch Out!** > > You can enable or disable a plan only after it is created. > > ![](https://razorpay.com/docs/build/browser/assets/images/sub_magento_enable_disable_plan.jpg) ### Enable Subscriptions for your Product To configure your product for Subscription in the Magento store: 1. Log in to your [Magento store](https://business.adobe.com/products/magento/magento-commerce.html/). 2. Navigate to **Catalog** โ†’ **Products**. ![](https://razorpay.com/docs/build/browser/assets/images/sub_magento_catalog_products.jpg) 3. Select any product you want to enable Subscription and go to **Subscription By Razorpay** section. 4. Enable the Subscription on the product level. You can select the Subscription mode. Following are the options available. * **Subscription Only:** Customers will get an option of only a Subscription with a respective plan, and they will be unable to buy a product for one time. ![](https://razorpay.com/docs/build/browser/assets/images/sub_magento_sub_only.jpg) * **With Subscription:** Customers will have both the option for buying a product once for all and a Subscription. ![](https://razorpay.com/docs/build/browser/assets/images/sub_magento_sub_one_time.jpg) 5. Click **Save** to save the product. #### Buy a Product on a Subscription Basis To buy a product on a Subscription basis: 1. Go to your [Magento website](https://business.adobe.com/products/magento/magento-commerce.html/) and select the product which you have enabled for Subscription. 2. Select the **Subscribe to this product** option and select the Subscription frequency from the **Select Frequency** drop-down list. 3. Click **Add to Cart** to proceed. 4. After the product is added to your cart, the Subscription details will be shown in the cart and the mini cart. 5. Click **Proceed to Checkout** to proceed with the checkout. ## Enable Webhooks You can set up a webhook from the Dashboard and configure separate URLs for live and test mode. > [!NOTE] > > **Handy Tips** > > For details of available events and sample payloads, refer to the [Webhook Events section](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce/troubleshooting-faqs). ### Setup Webhooks Watch this video to see how to set up a webhook. [YouTube video player](https://www.youtube.com/embed/Xiikw4_CcQk?si=b6kYHKIp1xikPrJZ) To set up webhooks: 1. Log in to the Dashboard and navigate to **Accounts & Settings**. 2. Click **Webhooks** under **Website and app settings**. 3. Click the **+ Add New Webhook** button. ![Add a new webhooks button on the Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-1.jpg) 4. In the **Webhook Setup** pop-up page: * Enter the **URL** where you want to receive the webhook payload when an event is triggered. We recommend using an HTTPS URL. > [!NOTE] > > **Handy Tips** > > * You can set up to **30 URLs** to receive Webhook notifications. Webhooks can only be delivered to public URLs. > * If your URL contains `razorpay` as a domain, you will not be able to add the URL and will receive an error. > * If you attempt to save a localhost endpoint as part of a webhook setup, you will notice an error. Know more about [testing Webhooks on an application running on localhost](/docs/webhooks/validate-test#application-running-on-localhost). * Enter a **Secret** for the webhook endpoint. The secret is used to validate that the webhook is from Razorpay. Do not expose the secret publicly. Know more about [how to validate webhooks](/docs/webhooks/validate-test). > [!NOTE] > > **Handy Tips** > > * When setting up the webhook, specify a secret. Use this secret to validate that the webhook is from Razorpay. Entering the secret is optional but recommended. The secret should never be exposed publicly. > * The webhook secret does not need to be the Razorpay API key secret. * In the **Alert Email** field, enter the email address to which the notifications should be sent in case of webhook failure. You will receive webhook related notifications like failures, deactivation and so on. * Select the required events from the list of **Active Events**. ![List of active webhook events on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhook-creation-2.jpg) 5. Click **Create Webhook**. After you set up a webhook, it appears on the list of webhooks. ![List of webhooks on Razorpay Dashboard](https://razorpay.com/docs/build/browser/assets/images/webhooks-webhooks-list.jpg) 6. You can select the webhook and click **Edit** to make more changes. # Manage Subscriptions Source: https://razorpay.com/docs/payments/subscriptions/plugins/magento/manage Reactivate, refund, cancel or put an existing Razorpay Subscription on hold for Magento plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ## Update the Subscription Product Razorpay Subscriptions plugin for Magento does not support updating an existing subscription product. Creating a new subscription product is recommended instead of updating an existing one. You cannot update the details of a subscription for a customer or upgrade or downgrade the subscription for them once it has gone live. If you modify the details of an existing subscription product on **WooCommerce** and make a test payment, it will appear as a **New Plan** on the **Razorpay Dashboard**. Hence, you must cancel the existing subscription and create a new one, and hereafter the customer will have to subscribe to the newly created subscription. When a subscription has been put on hold, you can use the **reactivate** option to restart the subscription once you successfully charge the customer's card. This changes the subscription status to **active** on the Razorpay Dashboard. Note that the **reactivate** button will only be displayed where the payment is not due. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-16.jpg) ## Cancel a Subscription The `cancel` option is used to cancel the subscription altogether. You can cancel a subscription: * Immediately OR * At the end of the current billing cycle Following are the steps to cancel a subscription: 1. Navigate to **WooCommerce** โ†’ **Subscriptions**. 2. Hover over the subscription you want to put on hold and click **Cancel**. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-17.jpg) Once an existing subscription is cancelled, it cannot be restarted. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-18.jpg) ## Pause a Subscription The `suspend` option is used to pause the subscription. When a store manager suspends a subscription, all payments will stop for the period the subscription is suspended. Following are the steps to pause a subscription: * Navigate to **WooCommerce** โ†’ **Subscriptions**. * Hover over a subscription to see actions that can be performed on the subscription. * To temporarily pause a subscription, click **Suspend**. ## Resume a Subscription The `reactivate` option is used to resume the subscription. When a subscription is reactivated, the payment schedule will continue as before the subscription was suspended. Following are the steps to pause a subscription: * Navigate to **WooCommerce** โ†’ **Subscriptions** * Hover over a subscription to see actions that can be performed on the subscription. * To resume a suspended subscription, click **Reactivate**. ## Refund Subscription Amount If you need to refund money to a customer for any reason, you need to do this manually from the [Razorpay Dashboard](/docs/payments/payments/dashboard#issue-a-refund). You also need to mark the subscription as refunded on [WooCommerce in WordPress Dashboard](https://docs.woocommerce.com/document/woocommerce-refunds/#section-4) by selecting the **Refunded** option from the **Order Status** drop-down list. # Subscription Status Source: https://razorpay.com/docs/payments/subscriptions/plugins/magento/status Comparison between the states of Razorpay Subscriptions and Magento. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ## Understand the Subscription Status The subscription status names used by Razorpay and Magento are different. The table below shows the mapping between the subscription statuses names used by Razorpay and Magento. Refer to the Razorpay Subscriptions status flow [here](/docs/payments/subscriptions/states). | Magento Subscription Status | Razorpay Subscription Status | Description | | - | - | - | | Pending | Created | This is the initial status of the subscription before the authentication/first payment transaction is complete. | | Active | Authenticated, Active | This is the Subscription status once the payment transaction has been completed. | | On-hold | Pending | The subscription acquires this status when it has been suspended or halted. This is done when a charge on the customer's card is unsuccessful. | | Cancelled | Cancelled | The `cancel` option is used to cancel the subscription altogether. Once a subscription is cancelled, it cannot be restarted. | | Expired | Complete | The subscription acquires this status when the expiry period mentioned during the subscription creation comes to an end. | # Test it out - Sign up for a Subscription Source: https://razorpay.com/docs/payments/subscriptions/plugins/magento/test-it-out Make a test purchase of a Subscription on your Magento site without incurring any charges. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Let us sign up for a subscription to **GoFlicks PremiumWatch HD**. > [!WARNING] > > **Watch Out!** > > Use the Test API keys when testing the product so that no real money is used. 1. In your Magento site, add the product to your cart and proceed to checkout. 2. The Razorpay Checkout pop-up appears. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-6.jpg) Since this is a test transaction, you can choose to make it a success or failure. Let us make this transaction a success. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-7.jpg) ## On the Magento Site ### Customer View The order success screen appears. The subscription amount has not been charged to the card because of the 15 days trial period. Once the trial period is over, the subscription amount of โ‚น999 will be charged to the customer's card. An authentication charge of โ‚น5 is levied and is subsequently auto-refunded. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-9.jpg) Navigate to **My Account** โ†’ **My Subscriptions** to view the Subscription details. ### Admin View As an **Admin**, you can view the subscription captured on the **Sales** โ†’ **Razorpay Subscription** page. ## On Razorpay Dashboard The same will appear on the Razorpay Dashboard as: ### Plan Navigate to **Subscriptions** โ†’ **Plans**. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-11.jpg) ### Subscriptions Navigate to **Subscriptions** ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-12.jpg) ### Payments Navigate to **Transactions** โ†’ **Payments**. Here you can view the authentication transaction, where โ‚น5 has been charged to the credit card and then refunded automatically. This is done to validate the card details. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-14.jpg) # Webhook Events Source: https://razorpay.com/docs/payments/subscriptions/plugins/magento/webhook-events Check the webhook payloads for events relevant to Magento Plugin for Razorpay Subscriptions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Webhooks (Web Callback, HTTP Push API or Reverse API) automatically notify your application when specific events occur. Instead of continuously polling APIs to check for updates, webhooks push notifications directly to your server when events happen. ## Webhooks vs APIs Here is how webhooks compare to traditional API polling: | Aspect | APIs | Webhooks | | - | - | - | | **Data retrieval** | Pull-based (you request) | Push-based (we send) | | **Timing** | On-demand | Near real-time when events occur | | **Resource usage** | Requires polling | Event-driven, efficient | > [!WARNING] > > **Webhooks vs callback\_url โ€” these are different things** > > Webhooks are server-to-server notifications sent asynchronously by Razorpay when events occur (for example, `payment.authorized`, `order.paid`). You configure a webhook URL on your Razorpay Dashboard. > > The callback\_url is a checkout parameter used only in WebView or redirect flows. It receives the payment result โ€” payment ID, order ID, and signature โ€” via a POST request after the customer completes payment. It is not a webhook. > > If you are building a standard web integration, use the handler function for immediate client-side confirmation and webhooks for server-side verification. Use callback\_url only if you are embedding Checkout in a WebView. Do not use callback\_url as a substitute for webhooks to track payment status on your server. ## How Razorpay Webhooks Work When you subscribe to webhook events, Razorpay sends an HTTP POST request with JSON payload to your configured endpoint URL whenever those events are triggered. Suppose you have subscribed to the `order.paid` webhook event, you will receive a notification every time a user pays you for an order, in the configured endpoint URL. ### Use Cases There can be multiple uses for webhook events. Two of these are listed below. > [accordion] Capturing Late Authorised Payments > > Capturing payments for which you did not receive a response on the client-side is perhaps the most important use case for the `payment.authorized` event. > > Sometimes, the communication between the bank and Razorpay or between you and Razorpay may not occur. This could be because of a slow network connection or your customer closing the window while processing the payment. This could lead to a payment being marked as **Failed** on the Dashboard but changed to **Authorized** at a later time. Know more about [late authorisation of payments](/docs/payments/payments/late-authorisation). > > You can use webhooks to get notified about payments that get authorised and analyse this data to decide whether to capture the payment or not. > [accordion] Notifications on Failed Payments > > When a payment attempted by your customer fails, we receive the failed payment status from the bank. This payment gets recorded in our system as **Failed**. > > Suppose you have enabled the `payment.failed` webhook, you will receive a notification from us about the failed payment. You can then further analyse this payment and notify your customer about the failure. ### Setup and Configuration * You can set up webhooks from your Dashboard and configure separate URLs for **Live** mode and **Test** mode. Know more about setting up [Payment webhooks](/docs/webhooks/setup-edit-payments) and [Payout webhooks](/docs/webhooks/setup-edit-payouts). * A **Test** mode webhook receives events for your test transactions. Know more about [testing webhooks](/docs/webhooks/validate-test). * Webhook URLs must use ports **80** or **443** only. * Ensure Razorpay webhook IPs are whitelisted on your server. Even if your server accepts all incoming requests, webhooks may still be blocked by cloud security groups or network configurations. Refer to [Razorpay IPs and Certificates](/docs/security/whitelists#webhook-ips) for the complete list of webhook IP addresses. > [!WARNING] > > **Implementation Considerations** > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > **Recommended approach** \\ > > * Rely on webhooks for all automation, which can be asynchronous. > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. Currently, webhooks are available for the following events: | Webhook Event | Description | | - | - | | `payment.authorized` | Sent when the authorisation payment has been made for the Subscription. A nominal amount is charged to validate the card details and is then automatically refunded. | | `order.paid` | Triggered when an order is successfully paid. | | `subscription.paused` | Sent when a Subscription is paused and moved to the `paused` state. | | `subscription.cancelled` | Sent when a subscription is cancelled and moved to the cancelled state. | | --- `payment.failed` | Sent when the payment attempt for a Subscription fails. | | `subscription.cancelled` | Sent when a Subscription is cancelled and moved to the `cancelled` state. | ## Webhook Sample Payloads > [!NOTE] > > **Handy Tips** > > The payload for all these events would contain the Subscription entity. They would also contain a payment entity if a payment attempt was made before the event was triggered. ### payment.authorized ```json Payload Sample theme={null} { "entity":"event", "account_id":"acc_DDiURNtiQ5kFsb", "event":"payment.authorized", "contains":[ "payment" ], "payload":{ "payment":{ "entity":{ "id":"pay_DGoUVWeFLKKacL", "entity":"payment", "amount":6000, "currency":"INR", "status":"authorized", "order_id":"order_DGoUOaUvWLGnEO", "invoice_id":"inv_DGoUOZNF6uGBcA", "international":false, "method":"upi", "amount_refunded":0, "refund_status":null, "captured":false, "description":"Order 251", "card_id":null, "bank":null, "wallet":null, "vpa":"123@upi", "email":"gaurav.kumar@example.com", "contact":"+919999999998", "customer_id":"cust_DG44HEGMbfRm1N", "token_id":"token_DG4GL5OAv8tSYE", "notes":{ "magento_order_id":"", "merchant_quote_id":"36" }, "fee":null, "tax":null, "error_code":null, "error_description":null, "error_source":null, "error_step":null, "error_reason":null, "acquirer_data":{ "rrn":"001000100002", "upi_transaction_id":"npci_txn_id_for_IilTQTf37sXXNX" }, "created_at":1641976110 } } }, "created_at":1641976110 } ``` ### order.paid ```json Sample Payload theme={null} { "entity":"event", "account_id":"acc_FzO2PyLE5ZYkW8", "event":"order.paid", "contains":[ "payment", "order" ], "payload":{ "payment":{ "entity":{ "id":"pay_IilTQTf37sXXNX", "entity":"payment", "amount":6000, "currency":"INR", "base_amount":6000, "status":"captured", "order_id":"order_IilT1yadIMdg9b", "invoice_id":"inv_IilT1w4sLgP3s2", "international":false, "method":"upi", "amount_refunded":0, "amount_transferred":0, "refund_status":null, "captured":true, "description":null, "card_id":null, "bank":null, "wallet":null, "vpa":"123@upi", "email":"roni_cost@example.com", "contact":"+1234567890", "customer_id":"cust_IilSzuBJCNvrsu", "token_id":"token_IilTQiLc4NU0je", "notes":{ "merchant_order_id":"", "merchant_quote_id":"36" }, "fee":142, "tax":22, "error_code":null, "error_description":null, "error_source":null, "error_step":null, "error_reason":null, "acquirer_data":{ "rrn":"001000100002", "upi_transaction_id":"npci_txn_id_for_IilTQTf37sXXNX" }, "created_at":1641976110 } }, "order":{ "entity":{ "id":"order_IilT1yadIMdg9b", "entity":"order", "amount":6000, "amount_paid":6000, "amount_due":0, "currency":"INR", "receipt":null, "offer_id":null, "status":"paid", "attempts":1, "notes":[ ], "created_at":1641976087 } } }, "created_at":1641976113 } ``` ### subscription.charged ```json Sample Payload theme={null} { "entity":"event", "account_id":"acc_FzO2PyLE5ZYkW8", "event":"subscription.charged", "contains":[ "subscription", "payment" ], "payload":{ "subscription":{ "entity":{ "id":"sub_IilT1Ob70FQPp3", "entity":"subscription", "plan_id":"plan_IilSFBnjkbmBuP", "customer_id":"cust_IilSzuBJCNvrsu", "status":"active", "current_start":1641976110, "current_end":1644949800, "ended_at":null, "quantity":1, "notes":{ "source":"magento-subscription", "magento_quote_id":"36" }, "charge_at":1644949800, "start_at":1641976110, "end_at":1657045800, "auth_attempts":0, "total_count":6, "paid_count":1, "customer_notify":false, "created_at":1641976086, "expire_by":null, "short_url":null, "has_scheduled_changes":false, "change_scheduled_at":null, "source":"magento-subscription", "payment_method":"upi", "offer_id":null, "remaining_count":5 } }, "payment":{ "entity":{ "id":"pay_IilTQTf37sXXNX", "entity":"payment", "amount":6000, "currency":"INR", "status":"captured", "order_id":"order_IilT1yadIMdg9b", "invoice_id":"inv_IilT1w4sLgP3s2", "international":false, "method":"upi", "amount_refunded":0, "amount_transferred":0, "refund_status":null, "captured":"1", "description":null, "card_id":null, "bank":null, "wallet":null, "vpa":"123@upi", "email":"roni_cost@example.com", "contact":"+1234567890", "customer_id":"cust_IilSzuBJCNvrsu", "token_id":"token_IilTQiLc4NU0je", "notes":{ "merchant_order_id":"", "merchant_quote_id":"36" }, "fee":142, "tax":22, "error_code":null, "error_description":null, "acquirer_data":{ "rrn":"001000100002", "upi_transaction_id":"npci_txn_id_for_IilTQTf37sXXNX" }, "created_at":1641976110 } } }, "created_at":1641976178 } ``` ### subscription.paused ```json Sample Payload theme={null} { "entity":"event", "account_id":"acc_FzO2PyLE5ZYkW8", "event":"subscription.paused", "contains":[ "subscription" ], "payload":{ "subscription":{ "entity":{ "id":"sub_IilT1Ob70FQPp3", "entity":"subscription", "plan_id":"plan_IilSFBnjkbmBuP", "customer_id":"cust_IilSzuBJCNvrsu", "status":"paused", "type":3, "current_start":1641976110, "current_end":1644949800, "ended_at":null, "quantity":1, "notes":{ "source":"magento-subscription", "magento_quote_id":"36" }, "charge_at":null, "start_at":1641976110, "end_at":1657045800, "auth_attempts":0, "total_count":6, "paid_count":1, "customer_notify":false, "created_at":1641976086, "expire_by":null, "short_url":null, "has_scheduled_changes":false, "change_scheduled_at":null, "source":"magento-subscription", "payment_method":"upi", "offer_id":null, "remaining_count":5, "pause_initiated_by":"self", "cancel_initiated_by":null } } }, "created_at":1641976696 } ``` ### subscription.cancelled ```json Sample Payload theme={null} { "entity": "event", "account_id": "acc_FzO2PyLE5ZYkW8", "event": "subscription.cancelled", "contains": [ "subscription" ], "payload": { "subscription": { "entity": { "id": "sub_IilT1Ob70FQPp3", "entity": "subscription", "plan_id": "plan_IilSFBnjkbmBuP", "customer_id": "cust_IilSzuBJCNvrsu", "status": "cancelled", "type": 3, "current_start": 1641976110, "current_end": 1644949800, "ended_at": 1641976760, "quantity": 1, "notes": { "source": "magento-subscription", "magento_quote_id": "36" }, "charge_at": null, "start_at": 1641976110, "end_at": 1657045800, "auth_attempts": 0, "total_count": 6, "paid_count": 1, "customer_notify": false, "created_at": 1641976086, "expire_by": null, "short_url": null, "has_scheduled_changes": false, "change_scheduled_at": null, "source": "magento-subscription", "payment_method": "upi", "offer_id": null, "remaining_count": 5 } } }, "created_at": 1641976762 } ``` # Razorpay Subscriptions Plugin for OpenCart Source: https://razorpay.com/docs/payments/subscriptions/plugins/opencart Accept recurring payments on your OpenCart enabled site using the Razorpay Subscription for OpenCart plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Integrate your Subscriptions plugin for [OpenCart](https://www.opencart.com/) with the Razorpay Payment Gateway. Click the below button to download the OpenCart plugin. [OpenCart](https://www.opencart.com/index.php?route=marketplace/extension/info\&extension_id=38152\&filter_search=razorpay) ## Advantages * Razorpay Subscriptions plugin provides a quick and customer-friendly integration. * This plugin allows for refunds, works across all browsers and is compatible with the latest OpenCart 3.0.3.8. * You can easily create and manage Subscriptions and get instant alerts on payment activity and the status of Subscriptions. * You can accept recurring payments using Razorpay Subscriptions plugin on your OpenCart website via Credit Card, Debit Card, Netbanking and UPI payment methods. ## Plugin Dependencies You must have the following installed for the plugin to work: | Platform/Plugin/Language | Version | | - | - | | OpenCart | 3.0.3.8 or higher | | [OpenCart Razorpay Subscriptions Plugin](https://www.opencart.com/index.php?route=marketplace/extension/info\&extension_id=38152) | 5.0.0 and above | | PHP | 7.3 and 7.4 | ## Prerequisites * Create a [Razorpay Account](https://dashboard.razorpay.com/signup). * Log in to the Dashboard and click **Subscriptions** in the left menu. * Razorpay Subscriptions is based on the existing Razorpay [payment flow](/docs/payments/payment-gateway/how-it-works) process. If you are new to Razorpay, we recommend you to understand this flow before you read further. * Generate the API keys from the Dashboard by navigating to **Account & Settings** โ†’ **API Keys**. You can use the Test mode keys for testing and later switch to Live mode keys when going live with the integration. ## Integration Steps 1. [Build Integration](/docs/payments/subscriptions/plugins/opencart/build-integration) 2. [Test Integration](/docs/payments/subscriptions/plugins/opencart/test-integration) 3. [Go Live Checklist](/docs/payments/subscriptions/plugins/opencart/go-live-checklist) ## Support * Queries: If you have queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/). * Feature Request: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-opencart). ### Related Information * [Address Verification System](/docs/payments/international-payments/address-verification-system) # 1. Build Integration Source: https://razorpay.com/docs/payments/subscriptions/plugins/opencart/build-integration A step-by-step guide on how to integrate OpenCart enabled site with Razorpay. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Follow the steps given below to integrate Razorpay Payment Gateway with your OpenCart enabled site using the Razorpay Subscription for OpenCart plugin. ## Integration Steps Follow these steps to complete the integration: ### On Your OpenCart Site 1. [Install the Razorpay Subscriptions for OpenCart Plugin](/docs/payments/subscriptions/plugins/opencart/build-integration#step-1-install-razorpay-subscriptions-for-opencart-plugin). 2. [Configure OpenCart Settings](/docs/payments/subscriptions/plugins/opencart/build-integration#step-2-configure-opencart-settings). 3. [Create a Plan for Subscriptions product](/docs/payments/subscriptions/plugins/opencart/build-integration#step-3-create-a-plan-for-subscriptions-product). 4. [Test integration](/docs/payments/subscriptions/plugins/opencart/test-integration). ### On Razorpay Dashboard 1. [Enable Webhooks](/docs/payments/subscriptions/plugins/woocommerce/build-integration#subscribe-to-webhook-events). #### Step 1: Install Razorpay Subscriptions for OpenCart Plugin To install Razorpay Subscriptions for OpenCart plugin: 1. Download the latest source code ZIP file of the Razorpay OpenCart Subscriptions plugin from the repository on Github. 1. [OpenCart 3](https://github.com/razorpay/razorpay-opencart/releases) 2. [OpenCart 2](https://github.com/razorpay/razorpay-opencart/releases/tag/opencart2-3.0.0) 3. [OpenCart 1.5](https://github.com/razorpay/razorpay-opencart/releases/tag/opencart1.5-1.0.0) > [!WARNING] > > **Watch Out!** > > Subscriptions is available only on [OpenCart 3](https://github.com/razorpay/razorpay-opencart/releases). 2. Copy all files/folders recursively to the OpenCart installation directory. #### Step 2: Configure OpenCart Settings 1. Log in to [OpenCart](https://www.opencart.com/). 2. Go to the **Admin Panel** โ†’ **Extensions** โ†’ **Payments** to install the Razorpay Payment Gateway extension.\ ![](https://razorpay.com/docs/build/browser/assets/images/opencart-rzp-extn.jpg) 3. Click the edit icon and fill in the following field details. | Field | Description | | - | - | | Key ID | Enter the Key ID generated from the Dashboard. | | Key Secret | Enter the API Key Secret generated from the Dashboard. | | Payment Action | To automatically capture successful payments, select `Authorize and Capture` option in the drop-down menu. Select `Authorize` if you want to capture payments manually from the [Razorpay Dashboard](/docs/payments/payments/dashboard#manually-capture-payments) or using [API](/docs/api/payments/capture). | | Subscription Status | Ensure the Subscription Status is enabled. | > [!NOTE] > > **Handy Tips** > > Webhook is auto-configured when you enter and save the API key ID and secret on the plugin settings page. You need to verify if webhooks are enabled on your Razorpay Dashboard. ![](https://razorpay.com/docs/build/browser/assets/images/extn-config-settings.jpg) 4. Click **Save** to save the extension settings. 5. Go to **Admin Panel** โ†’ **Extensions** โ†’ **Modifications** and click the refresh button to rebuild your modification cache. #### Step 3: Create a Plan for Subscriptions Product > [!WARNING] > > **Watch Out!** > > You can enable or disable plans only after creating them. To create a Plan for Subscriptions product: 1. Go to the **Admin Panel** โ†’ **Razorpay Subscription** โ†’ **Plans** to add a new Plan. 2. Click **Add new** to create a new Plan. 3. Enter the required details and click **Save** to save the Plan.\ ![](https://razorpay.com/docs/build/browser/assets/images/opencart-create-plan.jpg) ### Next Steps [Step 2: Test Integration](/docs/payments/subscriptions/plugins/opencart/test-integration) # 3. Go-live Checklist Source: https://razorpay.com/docs/payments/subscriptions/plugins/opencart/go-live-checklist Know how to start accepting Live Payments through the Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > [!WARNING] > > **Watch Out!** > > Ensure you are switching your test API keys with API keys generated in Live Mode. To generate API Keys in Live Mode on your Razorpay Dashboard: 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. 3. Download the keys and save them securely. 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. # Manage Subscriptions Source: https://razorpay.com/docs/payments/subscriptions/plugins/opencart/manage-subscriptions Reactivate, cancel or put on hold an existing Razorpay Subscription plugin for OpenCart and initiate refunds. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India If you no longer want to use Subscriptions, you can cancel the product. You can also refund the subscription amount to your customers. If you want to update a Subscriptions product, you need to create a new Subscription product. ## View a Subscription Details To view a Subscription details: 1. Log in to the [OpenCart](https://www.opencart.com/index.php?route=common/home) and go to **My Account**. 2. Click **My subscription** in the right menu to see the list of your Subscriptions. ![](https://razorpay.com/docs/build/browser/assets/images/opencart-rzp-subs-plugin-sub-list.jpg) 3. Click on the red eye button against the required Subscription to see the details. ![](https://razorpay.com/docs/build/browser/assets/images/opencart-rzp-subs-plugin-sub-details.jpg) ## Update Subscriptions Product Razorpay Subscriptions plugin for OpenCart does not support updating an existing Subscription product. So, if you want to update a subscription product, you should create a new subscription product. > [!WARNING] > > **Watch Out!** > > You cannot update the details of a Subscription for a customer or upgrade or downgrade the Subscription for them once it has gone live. > > * If you modify the details of an existing Subscription product on OpenCart and make a test payment, it will appear as a New Plan on the Razorpay Dashboard. Hence, you must cancel the existing Subscription and create a new one and ask your customer to subscribe to the newly created Subscription. > * When a Subscription is put on-hold, you can use the **reactivate** option to restart the subscription, once you successfully charge the customer's card. This changes the Subscription status to active on the Razorpay Dashboard. The reactivate button will only be displayed where the payment is not due. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-16.jpg) ## Cancel a Subscription The `cancel` option is used to cancel the Subscription. You can cancel a Subscription: * Immediately * At the end of the current billing cycle To cancel a Subscription: 1. Navigate to **OpenCart** โ†’ **Subscriptions**. 2. Hover over the subscription you want to put on hold and click **Cancel**. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-17.jpg) > [!WARNING] > > **Watch Out!** > > After you cancel an existing Subscription, you cannot restart it. ![](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-18.jpg) ## Refund Subscription Amount * To refund the subscription amount to a customer, you need to do this manually from the [Razorpay Dashboard](/docs/payments/payments/dashboard#issue-a-refund). # Subscription Status Source: https://razorpay.com/docs/payments/subscriptions/plugins/opencart/subscriptions-status Check the different Subscription statuses mapped between OpenCart and Razorpay Subscriptions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ## OpenCart Subscriptions Status And Razorpay Subscription Status Mapping The subscription status names used by Razorpay and OpenCart are different. The table below shows the mapping between the subscription statuses names used by Razorpay and OpenCart. Know more about the [Razorpay Subscriptions states](/docs/payments/subscriptions/states). | OpenCart Subscription Status | Razorpay Subscription Status | Description | | - | - | - | | Pending | Created | This is the initial status of the subscription before the authentication/first payment transaction is complete. | | Active | Authenticated, Active | This is the status of the subscription once the payment transaction is successfully completed. | | On-hold | Pending | The subscription acquires this status when it is suspended or halted. This is done when a charge on the customer's card is unsuccessful. | | Cancelled | Cancelled | The `cancel` option is used to cancel the subscription altogether. Once a subscription is cancelled, it cannot be restarted. | | Expired | Complete | The subscription acquires this status when the expiry period mentioned during the subscription creation comes to an end. | # 2. Test Integration Source: https://razorpay.com/docs/payments/subscriptions/plugins/opencart/test-integration Do test payments to make sure that your integration works. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India After the integration is complete, Razorpay will appear as a payment option on your web page/app. You need to make a test transaction to ensure that the integration is working as expected. You can start accepting actual payments from your customers once the test is successful. ## Buy a Product on Subscription To buy a product on Subscription: 1. Select the recurring options of the product for which the recurring option has been enabled. 2. Click **Add to Cart**. ![](https://razorpay.com/docs/build/browser/assets/images/opencart-rzp-subs-plugin-18.jpg) 3. Select **Pay by Razorpay** as your payment method and click **Continue**. ![](https://razorpay.com/docs/build/browser/assets/images/opencart-rzp-subs-plugin-payment.jpg) 4. Verify the details and click **Confirm Order**. You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. ### Netbanking You can select any of the listed banks. After choosing a bank, Razorpay will redirect to a mock page where you can make the payment a `success` or a `failure`. Since it is the test mode, we will not redirect you to the bank login portals. ### UPI You can enter one of the following UPI IDs: * `success@razorpay`: To make the payment successful. * `failure@razorpay`: To fail the payment. > [!NOTE] > > **Handy Tips** > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. ### Wallet You can select any of the listed wallets. After choosing a wallet, Razorpay will redirect to a mock page where you can make the payment a `success` or a `failure`. Since it is the test mode, we will not redirect you to the wallet login portals. ### Cards You can use one of the test cards to make transactions in the test mode. Use any valid expiration date in the future and any random CVV to create a successful payment. | Card Network | Domestic/International | Card Number | | - | - | - | | Mastercard | Domestic | 5267 3181 8797 5449 | | Visa | Domestic | 4386 2894 0766 0153 | | Mastercard | International | 5555 5555 5555 4444 5105 1051 0510 5100 5104 0600 0000 0008 | | Visa | International | 4012 8888 8888 1881 | ### Next Steps [Step 3: Go Live Checklist](/docs/payments/subscriptions/plugins/opencart/go-live-checklist) # Webhook Events Source: https://razorpay.com/docs/payments/subscriptions/plugins/opencart/webhook-events Check the webhook payloads for events relevant to OpenCart Plugin for Razorpay Subscriptions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India Webhooks (Web Callback, HTTP Push API or Reverse API) automatically notify your application when specific events occur. Instead of continuously polling APIs to check for updates, webhooks push notifications directly to your server when events happen. ## Webhooks vs APIs Here is how webhooks compare to traditional API polling: | Aspect | APIs | Webhooks | | - | - | - | | **Data retrieval** | Pull-based (you request) | Push-based (we send) | | **Timing** | On-demand | Near real-time when events occur | | **Resource usage** | Requires polling | Event-driven, efficient | > [!WARNING] > > **Webhooks vs callback\_url โ€” these are different things** > > Webhooks are server-to-server notifications sent asynchronously by Razorpay when events occur (for example, `payment.authorized`, `order.paid`). You configure a webhook URL on your Razorpay Dashboard. > > The callback\_url is a checkout parameter used only in WebView or redirect flows. It receives the payment result โ€” payment ID, order ID, and signature โ€” via a POST request after the customer completes payment. It is not a webhook. > > If you are building a standard web integration, use the handler function for immediate client-side confirmation and webhooks for server-side verification. Use callback\_url only if you are embedding Checkout in a WebView. Do not use callback\_url as a substitute for webhooks to track payment status on your server. ## How Razorpay Webhooks Work When you subscribe to webhook events, Razorpay sends an HTTP POST request with JSON payload to your configured endpoint URL whenever those events are triggered. Suppose you have subscribed to the `order.paid` webhook event, you will receive a notification every time a user pays you for an order, in the configured endpoint URL. ### Use Cases There can be multiple uses for webhook events. Two of these are listed below. > [accordion] Capturing Late Authorised Payments > > Capturing payments for which you did not receive a response on the client-side is perhaps the most important use case for the `payment.authorized` event. > > Sometimes, the communication between the bank and Razorpay or between you and Razorpay may not occur. This could be because of a slow network connection or your customer closing the window while processing the payment. This could lead to a payment being marked as **Failed** on the Dashboard but changed to **Authorized** at a later time. Know more about [late authorisation of payments](/docs/payments/payments/late-authorisation). > > You can use webhooks to get notified about payments that get authorised and analyse this data to decide whether to capture the payment or not. > [accordion] Notifications on Failed Payments > > When a payment attempted by your customer fails, we receive the failed payment status from the bank. This payment gets recorded in our system as **Failed**. > > Suppose you have enabled the `payment.failed` webhook, you will receive a notification from us about the failed payment. You can then further analyse this payment and notify your customer about the failure. ### Setup and Configuration * You can set up webhooks from your Dashboard and configure separate URLs for **Live** mode and **Test** mode. Know more about setting up [Payment webhooks](/docs/webhooks/setup-edit-payments) and [Payout webhooks](/docs/webhooks/setup-edit-payouts). * A **Test** mode webhook receives events for your test transactions. Know more about [testing webhooks](/docs/webhooks/validate-test). * Webhook URLs must use ports **80** or **443** only. * Ensure Razorpay webhook IPs are whitelisted on your server. Even if your server accepts all incoming requests, webhooks may still be blocked by cloud security groups or network configurations. Refer to [Razorpay IPs and Certificates](/docs/security/whitelists#webhook-ips) for the complete list of webhook IP addresses. > [!WARNING] > > **Implementation Considerations** > > Webhooks are the primary and most efficient method for event notifications. They are delivered asynchronously in near real-time. For critical user-facing flows that need instant confirmation (like showing "Payment Successful" immediately), supplement webhooks with API verification. > > **Recommended approach** \\ > > * Rely on webhooks for all automation, which can be asynchronous. > * If a critical user-facing flow requires instant status, but the webhook notification has not arrived within the time mandated by your business needs, perform an immediate API Fetch call ([Payments](/docs/api/payments/fetch-with-id), [Orders](/docs/api/orders/fetch-with-id) and [Refunds](/docs/api/refunds/fetch-specific-refund-payment)) to verify the status. # Razorpay Subscriptions Plugin for WooCommerce Source: https://razorpay.com/docs/payments/subscriptions/plugins/woocommerce Accept recurring payments on your WooCommerce-enabled WordPress site using the Razorpay Subscription for WooCommerce plugin. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Integrate your [Subscriptions plugin for WooCommerce](https://woocommerce.com/products/woocommerce-subscriptions/) with the Razorpay Payment Gateway. ## Advantages * Razorpay Subscriptions plugin provides a quick and customer-friendly integration. * No need to create Plans or Subscriptions using the Razorpay Dashboard or Razorpay APIs. All this can be done easily from your WooCommerce Dashboard. * Customers can make payments on your website without any redirections. * You can accept recurring payments using Razorpay Subscriptions plugin on your WooCommerce website via Credit Card, Debit Card, Netbanking and UPI payment methods. ## Video Tutorial Watch this video to know how to integrate Razorpay Payment Gateway with your WooCommerce Subscriptions website using our plugin. [https://www.youtube.com/embed/Z3GskrZXELE](https://www.youtube.com/embed/Z3GskrZXELE) ## Plugin Dependencies You must have the following installed for the plugin to work: | Platform/Plugin/Language | Version | | - | - | | WordPress | 3.9.2 or higher | | [WooCommerce Plugin for WordPress](https://wordpress.org/plugins/woocommerce/) | 2.4 or higher | | [WooCommerce Subscriptions Plugin](https://woocommerce.com/products/woocommerce-subscriptions/) | 2.2 and above | | [Razorpay WooCommerce Plugin](https://wordpress.org/plugins/woo-razorpay/) | 2.0.0 and above | | PHP | 5.6.0 or higher | | PHP-cURL | N/A | > [!WARNING] > > **Watch Out!** > > Subscriptions plugin v2.3.6 for WooCommerce relies on [Razorpay WooCommerce Plugin](/docs/payments/payment-gateway/ecommerce-plugins/woocommerce) v4.5.4. ## Prerequisites * Create a [Razorpay account](https://dashboard.razorpay.com/signup) * Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process. * Generate the API keys from the Dashboard. You can use the [Test mode keys](/docs/payments/payment-methods/cards/features/integrate-saved-cards#test-mode-api-keys) for testing and later switch to [Live mode keys](/docs/payments/dashboard/account-settings/api-keys#generate-api-keys) when going live with the integration. ## Integration Steps 1. [Build Integration](/docs/payments/subscriptions/plugins/woocommerce/build-integration) 2. [Test Integration](/docs/payments/subscriptions/plugins/woocommerce/test-integration) 3. [Go Live Checklist](/docs/payments/subscriptions/plugins/woocommerce/go-live-checklist) ## Support * **Queries**: If you have any queries, raise a ticket on the Razorpay [Support Portal](https://razorpay.com/support/). * **Feature Request**: If you have a feature request, create an issue on [GitHub](https://github.com/razorpay/razorpay-woocommerce-subscriptions/issues/new). ### Related Information [Address Verification System](/docs/payments/international-payments/address-verification-system) # 1. Build Integration Source: https://razorpay.com/docs/payments/subscriptions/plugins/woocommerce/build-integration A step-by-step guide on how to integrate WooCommerce-enabled WordPress site with Razorpay. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Follow the steps given below to integrate Razorpay Payment Gateway to your WooCommerce-enabled WordPress site using the Razorpay Subscription for WooCommerce plugin. ## Integration Steps Follow these steps to complete the integration: ### On Your WordPress Site 1. [Install the Razorpay Subscriptions for WooCommerce Plugin](/docs/payments/subscriptions/plugins/woocommerce/build-integration#step-1-install-razorpay-subscriptions-for-woocommerce-plugin). 2. [Configure WooCommerce Settings](/docs/payments/subscriptions/plugins/woocommerce/build-integration#step-2-configure-woocommerce-settings). 3. [Create a Subscriptions product using WooCommerce](/docs/payments/subscriptions/plugins/woocommerce/build-integration#step-3-create-a-subscriptions-product). 4. [Test integration](/docs/payments/subscriptions/plugins/woocommerce/test-integration). ### On Razorpay Dashboard 1. [Enable Webhooks](/docs/payments/subscriptions/plugins/woocommerce/build-integration#you-can-track-the-payment-status-in-three-ways). These 3 webhooks are auto configured for woocommerce subscription plugin: * `subscription.cancelled` * `subscription.paused` * `subscription.resumed` #### Step 1: Install Razorpay Subscriptions for WooCommerce Plugin There are two methods to install the Razorpay Subscription for WooCommerce plugin: * Install via WordPress Plugin Directory * Manual Installation #### Install via WordPress Plugin Directory You can search for the plugin on the WordPress Admin Dashboard and add it. 1. In the **WordPress Admin Dashboard**, navigate to **Plugins** โ†’ **Add New**. 2. Search for **Razorpay Subscriptions for WooCommerce** and click **Install Now**. ![Install Razorpay Subscription via wordpress plugin directory](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-1.jpg) 3. Click **Activate**. #### Manual Installation 1. [Download a ZIP file](https://github.com/razorpay/razorpay-woocommerce-subscriptions/releases) of the Razorpay WooCommerce Subscriptions Plugin from the repository on Github. 2. Unzip this file and upload the contents in `wp-content` โ†’ Plugins. ![Install Razorpay subscription via manual installation](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-2.jpg) 3. The plugin now appears in your **WordPress Dashboard** โ†’ **Plugins** folder. 4. Click **Activate**. #### Step 2: Configure WooCommerce Settings On your WordPress Dashboard, navigate to **WooCommerce** โ†’ **Settings** โ†’ **Payments** tab. #### Settings for Razorpay Payment Gateway 1. Under the **Payments** tab, go to **Razorpay** โ†’ **Allow customers to securely pay via Razorpay** and click **Manage**. ![Configure Woocommerce settings on Razorpay Payments page](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-3.jpg) 2. On the **Razorpay Payment Gateway** page, fill in the following field details and click **Save**:\ | Field | Description | | - | - | | Enable/Disable | Ensure that the **Enable this module?** option is selected. | | Title | Add the title that is visible to the customer during checkout of a product with type - `Simple Product`. | | Description | Enter a short description that is visible to the customer during checkout. | | Key ID | Enter the Key ID generated from the Dashboard. | | Key Secret | Enter the API Key Secret generated from the Dashboard. | | Payment Action | To automatically capture successful payments, select `Authorize and Capture` option in the drop-down. Select `Authorize` if you want to capture payments manually from the [Razorpay Dashboard](/docs/payments/payments/dashboard#manually-capture-payments) or using [API](/docs/api/payments/capture). | | Order Completion Message | Enter the message that must be displayed after an order is successfully placed. | | Enable Webhook | Ensure that **Enable Razorpay Webhook** option is selected. [Set up webhooks](/docs/webhooks/setup-edit-payments) from the Dashboard. | | Webhook Secret | Enter the webhook secret here. Webhook secret is used for webhook signature verification. This must match with the one added on the Razorpay Dashboard. | ![Enter field details on Razorpay Payment Gateway page](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-19.jpg) #### Settings for Razorpay Subscriptions 1. Under the **Payments** tab, go to **Razorpay Subscriptions** โ†’ **Allow customers to securely pay via Razorpay** and click **Manage**. 2. On the **Razorpay Subscriptions Payment Gateway** page, fill in the following field details and click **Save**:\ | Field | Description | | - | - | | Enable/Disable | Ensure that the **Enable this module?** option is selected. | | Title | Add the title that is visible to the customer during checkout of the subscription product with type `Simple Subscription`. | | Description | Enter a short description that is visible to the customer during checkout. | ![Enter details on Razorpay Subscriptions Payment Gateway page](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-20.jpg) #### Step 3: Create a Subscriptions Product **Example:** Let us assume Acme Corp. provides a streaming service called **GoFlicks**. There are two plans, **GoFlicks PremiumWatch** and **GoFlicks StandardWatch**. The details are mentioned below: | Plan Name | Rate/Month (โ‚น)(RM) | Free Trial (days) | | - | - | - | | GoFlicks PremiumWatch HD | 999 | 15 | | GoFlicks StandardWatch | 499 | N/A | Let us create a Subscriptions product for **GoFlicks PremiumWatch HD**. 1. In the WordPress Dashboard, navigate to **Products** โ†’ **Add New**. 2. Enter the product name and add a brief description. 3. In the Product data section, enter the following details and click **Publish**: 1. Select **Simple Subscription** as the product type in the drop-down list. 2. Select **Virtual** check box as `GoFlicks` is a streaming service. 3. Under the **General** tab, enter the following details: 1. **Subscription Price:** Enter the price, select every as the **interval** and month as the **duration**. 2. **Expire after:** Select the period after which the subscription will expire. This period is in addition to any free trial or time provided before a synchronised first renewal date. Do not select **Never Expire** as it is not supported by Razorpay. > [!NOTE] > > **Handy Tips** > > WooCommerce supports Subscriptions for a maximum of 24 months. 3. **Sign-up fee:** Add an amount to be charged at the outset of the subscription. This fee will be charged immediately, even if the product has a free trial. 4. **Free trial:** Enter the period up to which the subscriber can use the product for free. The trial period cannot exceed 90 days, 52 weeks, 24 months or 5 years. A sign-up fee will still be charged from the outset of the subscription. 5. **Sale Price:** Enter the discounted price at which you want to offer the product. For example, you may offer **GoFlicks PremiumWatch HD** at INR 899 per month for a limited period. You can schedule the special price by clicking **Schedule** and selecting the required dates on the calendar. ![Create a Subscriptions product for GoFlicks PremiumWatch HD](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-4.jpg) The product is created successfully. Similarly, create another Subscriptions product for **GoFlicks StandardWatch**. * Check that the products are visible on the website to the users so that they can add it to their cart. * [Make a test transaction](/docs/payments/subscriptions/plugins/woocommerce/test-integration) to ensure that the integration is working properly. ## Verify Payment Status > [!NOTE] > > **Handy Tips** > > On the Razorpay Dashboard, ensure that the payment status is `captured`. Refer to the payment capture settings page to know how to [capture payments automatically](/docs/payments/payments/capture-settings). > [accordion] You can track the payment status in three ways: > > > [tab] Verify Status from Dashboard > > > > To verify the payment status from the Razorpay Dashboard: > > > > 1. Log in to the Razorpay Dashboard and navigate to **Transactions** โ†’ **Payments**. > > 2. Check if a **Payment Id** has been generated and note the status. In case of a successful payment, the status is marked as **Captured**. > > > > ![Payment details on Dashboard](https://razorpay.com/docs/build/browser/assets/images/testpayment.jpg) > > > [tab] Subscribe to Webhook Events > > > > You can use Razorpay webhooks to configure and receive notifications when a specific event occurs. When one of these events is triggered, we send an HTTP POST payload in JSON to the webhook's configured URL. Know how to [set up webhooks.](/docs/webhooks/setup-edit-payments) > > > > #### Example > > > > If you have subscribed to the `order.paid` webhook event, you will receive a notification every time a customer pays you for an order. > > > [tab] Poll APIs > > > > [Poll Payment APIs](/docs/api/payments/fetch-all-payments) to check the payment status. ### Next Steps [Step 2: Test Integration](/docs/payments/subscriptions/plugins/woocommerce/test-integration) # 3. Go-live Checklist Source: https://razorpay.com/docs/payments/subscriptions/plugins/woocommerce/go-live-checklist Accept live payments through the Razorpay Payment Gateway. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia Perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the integration is working as expected, switch to the Live Mode and start accepting payments from customers. > [!WARNING] > > **Watch Out!** > > Ensure you are switching your test API keys with API keys generated in Live Mode. To generate API Keys in Live Mode on your Razorpay Dashboard: 1. Log in to the Razorpay Dashboard and switch to **Live Mode** on the menu. 2. Navigate to **Account & Settings** โ†’ **API Keys** โ†’ **Generate Key** to generate the API Key for Live Mode. 3. Download the keys and save them securely. 4. Replace the Test API Key with the Live Key in the Checkout code and start accepting actual payments. # Manage Subscriptions Source: https://razorpay.com/docs/payments/subscriptions/plugins/woocommerce/manage-subscriptions Reactivate, cancel or put on hold an existing Razorpay Subscription plugin for WooCommerce and initiate refunds. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia You can cancel a Subscriptions product. You can also refund the subscription amount to your customers. If you want to update a Subscriptions product, you need to create a new Subscription product. ## Update a Subscriptions Product Razorpay Subscriptions plugin for WooCommerce does not support updating existing products. You must create a new subscription product for any changes. > [!WARNING] > > **Watch Out!** > > Once a customer's subscription is live, you cannot modify its details (including upgrades or downgrades). > > * **Modifying Existing Subscriptions**: If you modify an existing WooCommerce subscription product and process a test payment, it will be registered as a New Plan on the Razorpay Dashboard. Hence, you must: > 1. Cancel the customer's existing subscription. > 2. Create a new subscription product. > 3. Have the customer subscribe to the newly created plan. > > * R**eactivating On-Hold Subscriptions**: For subscriptions that are on-hold, you can use the Reactivate option to resume service after successfully charging the customer's card. This updates the subscription status to Active on the Razorpay Dashboard.\\ > > The Reactivate button is only displayed when no payment is currently due. ![Update Subscriptions product](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-16.jpg) ## Cancel a Subscription The `cancel` option is used to cancel the Subscription. You can cancel a Subscription: * Immediately * At the end of the current billing cycle To cancel a Subscription: 1. Navigate to **WooCommerce** โ†’ **Subscriptions**. 2. Hover over the subscription you want to put on hold and click **Cancel**. ![Cancel a Subscription](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-17.jpg) > [!WARNING] > > **Watch Out!** > > After you cancel an existing Subscription, you cannot restart it. ![WooCommerce Subscriptions after cancellation](https://razorpay.com/docs/build/browser/assets/images/rzp-subscriptions-plugin-rzp-subs-plugin-18.jpg) ## Refund Subscription Amount * To refund the subscription amount to a customer, you need to do this manually from the [Dashboard](/docs/payments/payments/dashboard#issue-a-refund). * You also need to mark the subscription as refunded on [WooCommerce in WordPress Dashboard](https://docs.woocommerce.com/document/woocommerce-refunds/#section-4) by selecting the **Refunded** option from the **Order Status** drop-down list. # Subscription Status Source: https://razorpay.com/docs/payments/subscriptions/plugins/woocommerce/subscriptions-status Check the different Subscription statuses mapped between WooCommerce and Razorpay Subscriptions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ## WooCommerce and Razorpay Subscription Status Mapping The subscription status names used by Razorpay and WooCommerce are different. The table below shows the mapping between the subscription statuses names used by Razorpay and WooCommerce. Know more about the [Razorpay Subscriptions states](/docs/payments/subscriptions/states). | WooCommerce Subscription status | Razorpay Subscription Status | Description | | - | - | - | | Pending | Created | This is the initial status of the subscription before the authentication/first payment transaction is complete. | | Active | Authenticated, Active | This is the status of the subscription once the payment transaction has been successfully completed. | | On-hold | Pending | The subscription acquires this status when it has been suspended or halted. This is done when a charge on the customer's card is unsuccessful. | | Cancelled | Cancelled | The `cancel` option is used to cancel the subscription altogether. Once a subscription is cancelled, it cannot be restarted. | | Expired | Complete | The subscription acquires this status when the expiry period mentioned during the subscription creation comes to an end. | # 2. Test Integration Source: https://razorpay.com/docs/payments/subscriptions/plugins/woocommerce/test-integration Run test payments to make sure that your integration works. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia After the integration is complete, Razorpay will appear as a payment option on your web page/app. You need to click the button and make a test transaction to ensure that the integration is working as expected. You can start accepting actual payments from your customers once the test is successful. ![WooCommerce subscriptions plugin](https://razorpay.com/docs/build/browser/assets/images/woocommerce-subscriptions-plugin.jpg) You can make test payments using one of the payment methods configured at the Checkout. * No money is deducted from the customer's account as this is a simulated transaction. * Ensure you have entered the API keys generated in the test mode in the Checkout code. ## UPI You can enter one of the following UPI IDs: * `success@razorpay`: To make the payment successful. * `failure@razorpay`: To fail the payment. > [!NOTE] > > **Handy Tips** > > You can use **Test Mode** to test UPI payments, and **Live Mode** for UPI Intent and QR payments. ## Cards You can use one of the test cards to make transactions in the test mode. Use any valid expiration date in the future and any random CVV to create a successful payment. | Type | Card Network | Card Type | Card Number | CVV & Expiry Date | | - | - | - | - | - | | Domestic | Visa | Credit Card | 4718 6091 0820 4366 | Use a random CVV and any future date ^^^ | | International | Mastercard | Credit Card | 5104 0155 5555 5558 | | | International | Mastercard | Debit Card | 5104 0600 0000 0008 | | > [!WARNING] > > **Watch Out!** > > In test mode, you can perform a subsequent debit only within 3 days of token creation, as card tokens are valid for 3 days only. ### Next Steps [Step 3: Go Live Checklist](/docs/payments/subscriptions/plugins/woocommerce/go-live-checklist) # QR Codes for Subscriptions Source: https://razorpay.com/docs/payments/subscriptions/qr-codes Display QR Codes on Razorpay Standard Checkout for UPI Autopay to collect Subscription payments. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India QR codes on Standard Checkout are a great way to provide faster and more convenient options for customers to make payments. It saves time, reduces multiple steps, and allows for contactless payments. > [!WARNING] > > **Watch Out!** > > The QR code on the checkout is dynamic, and the customer can only make a single payment. ## Advantages * The QR code allows you to easily manage Subscriptions and Recurring Payments and increase the success rate by simplifying the checkout process for customers. * Customers do not have to remember the VPA. They can make the payment by scanning the QR Code using any PSP app. ## Customer Journey Below is the customer journey with a QR Code on Standard Checkout: 1. The QR Code is available on the desktop Standard Checkout for UPI Autopay. 2. Customers scan the QR Code using any PSP app and approve the payment. ![Subscription QR Intent](https://razorpay.com/docs/build/browser/assets/images/qr_sub.gif) ## FAQs > [accordion] Can I use the QR code to accept international payments? > > Yes. You can use the QR Code to accept Subscriptions payments in any of our [supported international currencies](/docs/payments/international-payments#supported-currencies). > [accordion] Are there any additional steps to enable a QR Code on Standard Checkout? > > No, QR Codes are enabled by default for all businesses on Subscriptions Standard Checkout. ### Related Information * [About Subscriptions](/docs/payments/subscriptions) * [Supported Banks and Apps](/docs/payments/subscriptions/supported-banks-apps) # Subscriptions Settings Source: https://razorpay.com/docs/payments/subscriptions/settings Configure payment method settings for Razorpay Subscriptions. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can configure the payment methods (Cards, UPI and Emandate) using which you would like to accept subscription payments from your customers. > [!NOTE] > > **Handy Tips** > > Cards and UPI currently support recurring payments up to โ‚น15,000. Charges of higher value would automatically fail for domestic cards. ## Enable Payment Methods To enable payment methods: 1. Log in to the Dashboard and click **Subscriptions** under **PAYMENT PRODUCTS** in the left menu. 2. Go to **Settings**. 3. Enable the payment methods.
  • **Card**: Enable this to accept recurring payments via cards for your Subscriptions.
  • **UPI**: Enable this to accept UPI payments when a recurring charge is less than โ‚น15,000. Only INR is supported.
  • **eMandate**: Enable this to accept recurring payments via Emandate (NetBanking) for your Subscriptions only in INR. This payment method will be enabled by default. You can disable it whenever required.
![Configure Payment Methods using Settings](https://razorpay.com/docs/build/browser/assets/images/subscriptions-Emandate-subscription.jpg) ### Related Information * [Create and View Plans](/docs/payments/subscriptions/create-plans) * [Create Subscriptions via Links](/docs/payments/subscriptions/create-subscription-links) * [Charge a Card Manually](/docs/payments/subscriptions/manually-charge-card) * [Update a Subscription](/docs/payments/subscriptions/update) # Subscriptions States Source: https://razorpay.com/docs/payments/subscriptions/states List of various Subscription states and their meanings. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can track a Subscription through its various stages from creation to completion. While the life cycle for a Subscription includes creation, authentication, active and then completion, you also have the option to cancel a Subscription. ## Subscriptions States and Descriptions During its life cycle, a Subscription can go through the following states: ![subscription life cycle](https://razorpay.com/docs/build/browser/assets/images/subscriptions-subscription-lifecycle.jpg) > [accordion] Created > > A Subscription attains the `created` state once it is created. > [accordion] Authenticated > > A Subscription goes to the `authenticated` state when the customer completes the authentication transaction. > > **Subscriptions with an Immediate Start Date** > > The Subscription with an immediate start date remains in the `created` state till the first charge is made and moves to the `active` state after the first charge. > > **Subscriptions with a Trial Period** > > * The Subscription with an add-on amount remains in the `created` state and moves to the `authenticated` state after the add-on amount is processed. > * The Subscription without an add-on amount moves to the `authenticated` state when the customer completes the authentication transaction. > [accordion] Active > > A Subscription goes to the `active` state when the billing cycle for the Subscription starts. > > ##### Action on Razorpay > > When a Subscription moves to the `active` state from the `authenticated` state, we attempt to charge the authorized card against the invoice amount. > [accordion] Pending > > * A Subscription goes to the `pending` state when an auto-charge on a payment is unsuccessful. We continue to retry the payment while it is in this state. In the meanwhile, you can ask the customer to authenticate another card, if required. > * After all the retry attempts have been exhausted, the Subscription moves to the `halted` state. > > **Action on Razorpay** > > * When the Subscription moves to the `halted` state from the `pending` state, invoices continue to be generated as per the billing cycles. However, no auto-charge is attempted. It is important to note that once the Subscription moves back to the `active` state, the previous charges **will not be** re-attempted. Only future billing cycles are charged automatically. > * When the Subscription moves to the `pending` state from the `active` state, you are notified about the failed attempt via our webhooks. For Subscriptions authenticated via cards, we continue to automatically process a retry without you having to take any action. We also send the customer an email notifying them about the failure. This email has a call-to-action from the customer to change the card that is associated with the Subscription. > > **Action on Business or Customer** > To move the Subscription back to the `active` state from the `pending` state, the customer needs to authenticate another card. This enables us to successfully perform a charge on it. You or the customer can also manually attempt a charge on the same card by attempting to charge any of the older unpaid invoices. If they go through successfully, the Subscription moves back to the `active` state. > [accordion] Halted > > The Subscription goes to the `halted` state when the last auto-charge is unsuccessful and all retries are exhausted. > > > [!NOTE] > > > > **Handy Tips** > > > > It is possible for the Subscription to continue to remain in the `halted` state for more than one billing cycle. In such scenarios: > > > > * Invoices are generated for all billing cycles, but no auto-charge is attempted. > > * The customer needs to authenticate another card or you or the customer needs to manually attempt a charge on an older unpaid invoice. If the older invoice is successfully charged, the Subscription will automatically move to the `active` state. > > The Subscription moves to the `active` state once the customer changes their card details and we are able to successfully perform a charge on it. It can also move to the `active` state if a charge on an older invoice is attempted and it goes through successfully. > > > [!WARNING] > > > > **Watch Out!** > > > > Once the Subscription moves to the `active` state from the `halted` state, the previous charges are not re-attempted. Only future payments are charged automatically. > [accordion] Cancelled > > * When you cancel a Subscription, it moves to the `cancelled` state. Once cancelled, a Subscription cannot be restarted. > * A Subscription can be cancelled using the [Cancel API](/docs/api/payments/subscriptions/cancel-subscription) or from the [Dashboard](/docs/payments/subscriptions/pause-resume-cancel#cancel-a-subscription-using-dashboard). > [accordion] Paused > > * Only Subscriptions in the `active` state can be paused. > > * You can pause a Subscription. > > * From the [Dashboard](/docs/payments/subscriptions/pause-resume-cancel#pause-a-subscription-using-dashboard). > > * Using [API](/docs/api/payments/subscriptions/pause-subscription). > > > [!WARNING] > > > > **Watch Out!** > > > > If you pause a Subscription in the `authenticated` state, the Subscription goes to the `cancelled` state. > [accordion] Expired > > If the `start_at` time for the Subscription has been set and the authentication transaction has not been done by the `start_at` time, the Subscription moves to the `expired` state and cannot be used again. > [accordion] Completed > > A Subscription moves to the `completed` state when it reaches the end of its life cycle as per the `end_date` set for the Subscription. ### Related Information * [Subscriptions](/docs/payments/subscriptions) * [Subscription Workflow](/docs/payments/subscriptions/workflow) * [Create Subscriptions](/docs/payments/subscriptions/create) * [Test Subscriptions](/docs/payments/subscriptions/test) * [Subscriptions APIs](/docs/payments/subscriptions/apis) # Subscribe to Webhooks Source: https://razorpay.com/docs/payments/subscriptions/subscribe-to-webhooks Subscribe to various webhook events related to Subscriptions to receive instant notifications. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States You can use Razorpay [Webhooks](/docs/webhooks) to receive notifications of all events related to Subscriptions. To subscribe to webhook events: 1. Log in to the Dashboard. 2. Navigate to **Accounts & Settings** โ†’ **Webhooks** to subscribe to any of the events mentioned in the following section. ## Webhook Events and Descriptions | Webhook Event | Description | | - | - | | `subscription.authenticated` | Sent when the first payment is made on the subscription. This can either be the authorization amount, the upfront amount, the plan amount or a combination of the plan amount and the upfront amount. | | `subscription.activated` | Sent when the subscription moves to the `active` state either from the `authenticated`, `pending` or `halted` state. If a Subscription moves to the `active` state from the `pending` or `halted` state, only the subsequent invoices that are generated are charged. Existing invoices that were already generated are not charged. | | `subscription.charged` | Sent every time a successful charge is made on the subscription. | | `subscription.completed` | Sent when all the invoices are generated for a subscription and the subscription moves to the `completed` state. | | `subscription.updated` | Sent when a subscription is successfully updated. There is no state change when a subscription is updated. | | `subscription.pending` | Sent when the subscription moves to the `pending` state. This happens when a charge on the card fails. We try to charge the card on a periodic basis while it is in the `pending` state. If the payment fails again, the Webhook is triggered again. | | `subscription.halted` | Sent when all retries have been exhausted and the subscription moves from the `pending` state to the `halted` state. The customer has to manually retry the charge or change the card linked to the subscription, for the subscription to move back to the `active` state. | | `subscription.cancelled` | Sent when a subscription is cancelled and moved to the `cancelled` state. | | `subscription.paused` | Sent when a subscription is paused and moved to the `paused` state. | | `subscription.resumed` | Sent when a subscription is resumed and moved to the `resumed` state. | Know more about [Webhooks](/docs/webhooks) and check the [sample payloads](/docs/webhooks/subscriptions). ### Related Information [Subscriptions APIs](/docs/payments/subscriptions/apis) # Supported Banks and Apps Source: https://razorpay.com/docs/payments/subscriptions/supported-banks-apps List of banks and apps that support Subscription using Emandate (Netbanking, Debit Card, Aadhaar), card and UPI. Available in ๐Ÿ‡ฎ๐Ÿ‡ณ India ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ๐Ÿ‡บ๐Ÿ‡ธ United States Razorpay Subscriptions supports recurring payments via Emandate, Cards and UPI Autopay. Use this page to check supported banks, apps and platform compatibility for each payment method. > [!NOTE] > > **Dynamic Bank Lists** > > The list of supported banks changes periodically. Use the [Methods API](#methods-api) to fetch the current list programmatically. ## Emandate Emandate supports recurring payments via netbanking, debit card or Aadhaar authentication. To fetch the current list of supported banks and their authentication types, call the [Methods API](#methods-api). Supported banks appear under `recurring.emandate` in the response. ## Cards We support Visa, Mastercard and RuPay cards from all major banks for recurring payments. To fetch the current list of supported card networks, call the [Methods API](#methods-api). Supported networks appear under `recurring.card` in the response. > [!NOTE] > > **Handy Tips** > > Contact our [Support team](https://razorpay.com/support/#request) if you face difficulties with card payments from any major bank. ## UPI Autopay We support all apps and banks listed on the [NPCI Autopay members page](https://www.npci.org.in/product/autopay/all-members). ### Supported Apps and Handles The table below shows frequently used UPI apps, their handles and whether they support mandate amounts above โ‚น15,000. | Application | Handles | Supports > โ‚น15,000 | | - | - | - | | Google Pay | @okhdfcbank, @okicici, @okaxis, @oksbi | Yes | | Paytm | @paytm | Yes | | Amazon Pay | @apl, @yapl | Yes | | PhonePe | @ybl, @ibl, @axl | No | | BHIM | @upi | No | > [accordion] Other UPI Apps and Handles > > | Application | Handle | > | - | - | > | BHIM Axis Pay | @axisbank, @sliceaxis | > | BHIM Baroda Pay | @barodampay | > | BHIM BOI UPI | @boi | > | BHIM DLB UPI | @dlb | > | BHIM IndusPay | @indus | > | Canara Bank | @cnrb | > | iMobile Pay | @icici | > | NSDL Payments Bank | @nsdl | > | DakPay | @postbank | > | MobiKwik | @ikwik | > | Digibank | @dbs | > | PayZapp | @pz | ### Amount Limits The default maximum mandate amount for UPI Autopay is โ‚น15,000 per transaction. For certain MCCs, the limit increases to โ‚น1,00,000. > [accordion] MCCs with โ‚น1,00,000 Limit > > | MCC | Description | > | - | - | > | 5413 | Credit Card Bill Payments | > | 5960 | Direct Marketing Insurance Services | > | 6012 | Financial Institutions Merchandise and Services | > | 6211 | Securities Brokers and Dealers | > | 6300 | Insurance Sales, Underwriting and Premiums | > | 6381 | Insurance Premiums | > | 6399 | Insurance | > | 6529 | LIC | Learn more about limits applicable to each merchant category by referring to [limits by MCC.](/docs/payments/recurring-payments/overview/integrate) ## UPI Intent Support UPI Intent allows customers to complete mandate registration directly in their preferred UPI app. Support varies by checkout integration and platform. > [tab] Standard Checkout > > | PSP App | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | Google Pay | โœ— | โœ“ | โœ“ | > | PhonePe | โœ“ | โœ“ | โœ“ | > | Paytm | โœ“ | โœ“ | โœ“ | > | Amazon Pay | โœ— | โœ— | โœ— | > | BHIM | โœ— | โœ“ | โœ— | > [tab] Custom Checkout > > | PSP App | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | Google Pay | โœ“ | โœ“ | โœ— | > | PhonePe | โœ“ | โœ“ | โœ— | > | Paytm | โœ“ | โœ“ | โœ— | > | Amazon Pay | โœ— | โœ“ | โœ— | > | BHIM | โœ— | โœ“ | โœ— | > [tab] S2S Integration > > | PSP App | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | Google Pay | โœ“ | โœ“ | โœ— | > | PhonePe | โœ“ | โœ“ | โœ— | > | Paytm | โœ“ | โœ“ | โœ— | > | Amazon Pay | โœ“ | โœ“ | โœ— | > | BHIM | โœ“ | โœ“ | โœ— | ### UPI Intent for TPV Third-Party Validation (TPV) ensures payments are made only from pre-registered bank accounts. The table below shows intent support for TPV. > [tab] Standard Checkout > > | PSP App | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | Google Pay | โœ“ | โœ“ | โœ“ | > | PhonePe | โœ“ | โœ“ | โœ— | > | Paytm | โœ“ | โœ“ | โœ“ | > | Amazon Pay | โœ— | โœ“ | โœ— | > | BHIM | โœ— | โœ“ | โœ— | > [tab] Custom Checkout > > | PSP App | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | Google Pay | โœ“ | โœ“ | โœ“ | > | PhonePe | โœ“ | โœ“ | โœ— | > | Paytm | โœ“ | โœ“ | โœ“ | > | Amazon Pay | โœ— | โœ“ | โœ— | > | BHIM | โœ— | โœ“ | โœ— | > [tab] S2S Integration > > | PSP App | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | Google Pay | โœ“ | โœ“ | โœ— | > | PhonePe | โœ“ | โœ“ | โœ— | > | Paytm | โœ“ | โœ“ | โœ— | > | Amazon Pay | โœ“ | โœ“ | โœ— | > | BHIM | โœ“ | โœ“ | โœ— | > [!WARNING] > > **Watch Out!** > > * Contact [Support](https://razorpay.com/support/#request) to enable PSP apps other than PhonePe and Paytm on Standard Checkout for UPI TPV. > * UPI Intent TPV is not supported for @okaxis handle. ### UPI Intent for OC125 OC125 restricts customers from pausing or cancelling mandates. This feature is available only for lending businesses. > [tab] Standard Checkout > > | PSP App | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | Google Pay | โœ“ | โœ“ | โœ“ | > | PhonePe | โœ“ | โœ“ | โœ— | > | Paytm | โœ“ | โœ“ | โœ“ | > [tab] Custom Checkout > > | PSP App | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | Google Pay | โœ“ | โœ“ | โœ“ | > | PhonePe | โœ“ | โœ“ | โœ— | > | Paytm | โœ“ | โœ“ | โœ“ | > [tab] S2S Integration > > | PSP App | mWeb | Android SDK | iOS SDK | > | - | - | - | - | > | Google Pay | โœ“ | โœ“ | โœ— | > | PhonePe | โœ“ | โœ“ | โœ— | > | Paytm | โœ“ | โœ“ | โœ— | > [!WARNING] > > **Watch Out!** > > * Contact [Support](https://razorpay.com/support/#request) to enable UPI Intent on Standard Checkout. > * UPI Intent is not supported for @okaxis handle. ## Methods API Use the Methods API to fetch the current list of supported card networks and banks for subscriptions. `GET /methods` > [!NOTE] > > **\[YOUR\_KEY\_ID] Required** > > To fire this API, you need to provide your \[KEY\_ID] for authorization. Your \[KEY\_SECRET] is not required and should not be passed. ```bash Request theme={null} curl -u [YOUR_KEY_ID] \ -X GET https://api.razorpay.com/v1/methods ``` ```json Response theme={null} { "entity": "methods", ... ... ... "nach": true, ... ... ... "recurring": { "card": { "credit": [ "MasterCard", "Visa" ] }, "emandate": { "ANDB": { "auth_types": [ "netbanking", "debitcard" ], "name": "Andhra Bank" }, "UTIB": { "auth_types": [ "netbanking" ], "name": "Axis Bank" }, "BARB_R": { "auth_types": [ "netbanking" ], "name": "Bank of Baroda - Retail Banking" }, "MAHB": { "auth_types": [ "netbanking", "debitcard" ], "name": "Bank of Maharashtra" }, "CNRB": { "auth_types": [ "netbanking" ], "name": "Canara Bank" }, "CBIN": { "auth_types": [ "netbanking" ], "name": "Central Bank of India" }, "CIUB": { "auth_types": [ "netbanking" ], "name": "City Union Bank" }, "COSB": { "auth_types": [ "netbanking" ], "name": "Cosmos Co-operative Bank" }, "DEUT": { "auth_types": [ "netbanking", "debitcard" ], "name": "Deutsche Bank" }, "DLXB": { "auth_types": [ "netbanking", "debitcard" ], "name": "Dhanlaxmi Bank" }, "ESFB": { "auth_types": [ "netbanking", "debitcard" ], "name": "Equitas Small Finance Bank" }, "FDRL": { "auth_types": [ "netbanking", "debitcard" ], "name": "Federal Bank" }, "HDFC": { "auth_types": [ "netbanking", "debitcard" ], "name": "HDFC Bank" }, "HSBC": { "auth_types": [ "netbanking" ], "name": "Hongkong & Shanghai Banking Corporation" }, "ICIC": { "auth_types": [ "netbanking", "debitcard" ], "name": "ICICI Bank" }, "IBKL": { "auth_types": [ "netbanking" ], "name": "IDBI" }, "IDFB": { "auth_types": [ "netbanking", "debitcard" ], "name": "IDFC FIRST Bank" }, "IOBA": { "auth_types": [ "netbanking" ], "name": "Indian Overseas Bank" }, "INDB": { "auth_types": [ "netbanking", "debitcard" ], "name": "Indusind Bank" }, "KARB": { "auth_types": [ "netbanking", "debitcard" ], "name": "Karnataka Bank" }, "KKBK": { "auth_types": [ "netbanking", "debitcard" ], "name": "Kotak Mahindra Bank" }, "ORBC": { "auth_types": [ "netbanking" ], "name": "PNB (Erstwhile-Oriental Bank of Commerce)" }, "PYTM": { "auth_types": [ "netbanking", "debitcard" ], "name": "Paytm Payments Bank" }, "PUNB_R": { "auth_types": [ "netbanking", "debitcard" ], "name": "Punjab National Bank - Retail Banking" }, "RATN": { "auth_types": [ "netbanking", "debitcard" ], "name": "RBL Bank"