From 3f26f538c9737566bf97fcddd829f4c23cec405a Mon Sep 17 00:00:00 2001 From: razorpay-docs-bot Date: Wed, 8 Apr 2026 10:49:10 +0000 Subject: [PATCH] chore: sync LLM content from razorpay/docs@baf44926aeba00d28cbd377b6c0204141dbf4620 --- _manifest.json | 28 +++- _url-md-map.json | 1 + api/customers/create.md | 6 +- api/customers/edit.md | 44 +++--- api/customers/entity.md | 6 +- .../fetch-all-expanded-card-payments.md | 4 +- api/orders/fetch-all-expanded-payments.md | 8 +- api/payments/invoices/cancel.md | 12 +- .../invoices/create-with-customer-id.md | 8 +- api/payments/invoices/create-with-details.md | 60 ++++---- api/payments/invoices/entity.md | 12 +- api/payments/invoices/fetch-all.md | 24 +-- api/payments/invoices/fetch-with-id.md | 12 +- api/payments/invoices/issue.md | 12 +- api/payments/invoices/update.md | 12 +- .../payment-links/change-business-name.md | 52 +++---- api/payments/payment-links/checkout-theme.md | 48 +++--- api/payments/payment-links/create-standard.md | 46 +++--- .../payment-links/customise-options-config.md | 88 +++++------ .../customise-payment-methods.md | 44 +++--- api/payments/payment-links/entity.md | 12 +- api/payments/payment-links/reminders.md | 44 +++--- .../payment-links/rename-checkout-labels.md | 50 +++---- .../rename-payment-details-labels.md | 54 +++---- .../cards/create-authorization-transaction.md | 132 ++++++++--------- .../cards/create-subsequent-payments.md | 30 ++-- .../recurring-payments/cards/tokens.md | 8 +- .../cards/create-authorization-transaction.md | 92 ++++++------ .../cards/create-subsequent-payments.md | 30 ++-- .../recurring-payments/custom/cards/tokens.md | 6 +- .../custom/emandate/auto-debit.md | 92 ++++++------ .../create-authorization-transaction.md | 62 ++++---- .../emandate/create-subsequent-payments.md | 30 ++-- .../custom/paper-nach/auto-debit.md | 80 +++++----- .../create-authorization-transaction.md | 50 +++---- .../paper-nach/create-subsequent-payments.md | 30 ++-- .../create-authorization-transaction.md | 12 +- .../upi-tpv/create-subsequent-payments.md | 30 ++-- .../upi/create-authorization-transaction.md | 62 ++++---- .../custom/upi/create-subsequent-payments.md | 30 ++-- .../recurring-payments/emandate/auto-debit.md | 92 ++++++------ .../create-authorization-transaction.md | 62 ++++---- .../paper-nach/auto-debit.md | 80 +++++----- .../create-authorization-transaction.md | 50 +++---- .../paper-nach/create-subsequent-payments.md | 30 ++-- .../upi-otm/authorization-transaction.md | 62 ++++---- .../create-authorization-transaction.md | 12 +- .../upi-tpv/create-subsequent-payments.md | 30 ++-- .../upi/create-authorization-transaction.md | 62 ++++---- .../upi/create-subsequent-payments.md | 30 ++-- .../create-authorization-transaction.md | 62 ++++---- .../wallets/create-subsequent-payments.md | 30 ++-- api/payments/route/request-product-config.md | 2 +- api/payments/route/stakeholder-entity.md | 8 +- api/payments/subscriptions-custom.md | 30 ++-- .../subscriptions/create-subscription-link.md | 30 ++-- api/payments/subscriptions/fetch-invoices.md | 16 +- api/payments/subscriptions/link-offer.md | 30 ++-- api/test-doc-api.md | 115 +++++++++++++++ api/understand.md | 4 +- .../payment-gateway-import-flow-lrs.md | 14 +- .../payment-gateway-import-flow.md | 12 +- .../custom-integration/build-integration.md | 8 +- .../cards/authorization-transaction.md | 50 +++---- .../recurring-payments/cards/tokens.md | 6 +- .../upi-tpv/authorization-transaction.md | 50 +++---- .../upi/authorization-transaction.md | 50 +++---- .../s2s-integration/aml.md | 24 +-- .../cards/authorization-transaction.md | 50 +++---- .../recurring-payments/cards/tokens.md | 6 +- .../upi-tpv/authorization-transaction.md | 50 +++---- .../upi/authorization-transaction.md | 50 +++---- .../standard-integration/aml.md | 6 +- .../standard-integration/build-integration.md | 12 +- .../cards/authorization-transaction.md | 50 +++---- .../recurring-payments/cards/tokens.md | 8 +- .../upi-tpv/authorization-transaction.md | 50 +++---- .../upi/authorization-transaction.md | 50 +++---- .../currency-conversion.md | 4 +- .../standard-integration/build-integration.md | 18 +-- payments/magic-checkout/abandoned-cart.md | 6 +- .../magic-checkout/android-integration.md | 14 +- payments/magic-checkout/apis/coupon-code.md | 4 +- .../magic-checkout/apis/customer-address.md | 6 +- .../magic-checkout/capacitor-integration.md | 8 +- .../magic-checkout/flutter-integration.md | 12 +- payments/magic-checkout/ios-integration.md | 14 +- .../react-native-android-integration.md | 10 +- .../react-native-ios-integration.md | 10 +- payments/magic-checkout/rto-intelligence.md | 72 ++++----- .../shopify/custom/android-integration.md | 14 +- .../shopify/custom/capacitor-integration.md | 8 +- .../shopify/custom/flutter-integration.md | 12 +- .../shopify/custom/ios-integration.md | 14 +- .../react-native-android-integration.md | 12 +- .../custom/react-native-ios-integration.md | 10 +- .../shopify/custom/web-integration-nextjs.md | 6 +- payments/magic-checkout/web.md | 14 +- payments/offers/standard-integration.md | 6 +- .../custom/build-integration.md | 6 +- .../custom/payment-methods.md | 108 +++++++------- .../standard/integration-steps.md | 24 +-- .../integration-steps.md | 4 +- .../cordova-integration/integration-steps.md | 33 +---- .../custom/build-integration.md | 4 +- .../flutter-integration/custom/methods.md | 4 +- .../custom/payment-methods.md | 4 +- .../standard/integration-steps.md | 4 +- .../standard/integration-steps.md | 8 +- .../standard/integration-steps-android.md | 6 +- .../standard/integration-steps-ios.md | 6 +- .../json/v2/build-integration/ach.md | 12 +- .../single-integration-api.md | 14 +- .../s2s-integration/payment-methods/paypal.md | 18 +-- .../upi/saved-vpa/build-integration.md | 4 +- .../cards/authorization-transaction.md | 138 +++++++++--------- .../cards/subsequent-payments.md | 30 ++-- .../recurring-payments/cards/tokens.md | 6 +- .../emandate/authorization-transaction.md | 62 ++++---- .../recurring-payments/emandate/auto-debit.md | 92 ++++++------ .../emandate/subsequent-payments.md | 30 ++-- .../paper-nach/authorization-transaction.md | 50 +++---- .../paper-nach/auto-debit.md | 80 +++++----- .../paper-nach/subsequent-payments.md | 30 ++-- .../upi-intent/authorization-transaction.md | 12 +- .../collect/authorization-transaction.md | 62 ++++---- .../intent/authorization-transaction.md | 12 +- .../upi-reserve-pay/integration-steps.md | 50 +++---- .../upi-tpv/authorization-transaction.md | 62 ++++---- .../upi-tpv/subsequent-payments.md | 30 ++-- .../upi/authorization-transaction.md | 62 ++++---- .../upi/subsequent-payments.md | 30 ++-- .../s2s-integration/subscriptions.md | 30 ++-- .../custom/build-integration.md | 8 +- .../custom/features/saved-cards-old.md | 50 +++---- .../custom/features/saved-cards/scenario-1.md | 14 +- .../custom/features/saved-cards/scenario-2.md | 12 +- .../custom/features/saved-cards/scenario-3.md | 14 +- .../custom/features/saved-vpa.md | 4 +- .../configure-payment-methods/sample-code.md | 4 +- .../standard/integration-steps.md | 12 +- .../apple-pay/custom-integration.md | 14 +- .../apple-pay/s2s-integration.md | 20 +-- payments/payment-methods/bank-transfer.md | 50 +++---- .../bank-transfer/hosted-integration.md | 50 +++---- .../cards/features/integrate-saved-cards.md | 64 ++++---- payments/payments.md | 1 + payments/payments/test.md | 8 + .../charge-customer-during-registration.md | 92 ++++++------ .../dot-net/integration-steps.md | 12 +- .../go/integration-steps.md | 14 +- .../java/integration-steps.md | 12 +- .../nodejs/integration-steps.md | 16 +- .../nodejs/troubleshooting-faqs.md | 12 +- .../php/integration-steps.md | 12 +- .../python/integration-steps.md | 12 +- .../ruby/integration-steps.md | 12 +- payments/subscriptions/integration-guide.md | 12 +- payments/subscriptions/payment-retries.md | 12 +- payments/test-doc-payment.md | 115 +++++++++++++++ .../s2s-integration/upi/collect.md | 50 +++---- test-doc-main.md | 115 +++++++++++++++ webhooks/payments.md | 48 +++--- 163 files changed, 2733 insertions(+), 2385 deletions(-) create mode 100644 api/test-doc-api.md create mode 100644 payments/payments/test.md create mode 100644 payments/test-doc-payment.md create mode 100644 test-doc-main.md diff --git a/_manifest.json b/_manifest.json index 73e9c2ec..5eb33d02 100644 --- a/_manifest.json +++ b/_manifest.json @@ -1,7 +1,7 @@ { "version": "1.0", - "generated": "2026-04-08T08:30:46.523Z", - "total": 2213, + "generated": "2026-04-08T10:48:37.631Z", + "total": 2217, "base_url": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/", "routes": { "announcements/gst-changes": { @@ -2374,6 +2374,12 @@ "category": "api", "url": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/settlements/instant.md" }, + "api/test-doc-api": { + "title": "Testing doc Api", + "description": "Sandbox setup for testing Razorpay APIs.", + "category": "api", + "url": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/test-doc-api.md" + }, "api/understand": { "title": "Understand Razorpay APIs", "description": "Explanation of Razorpay API structure and the various components such as HTTP methods, status codes, data types and parameter types. Details on versioning, rate limiting and pagination.", @@ -9484,6 +9490,12 @@ "category": "payments", "url": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/success-rate-analytics.md" }, + "payments/payments/test": { + "title": "Testing", + "description": "Testing", + "category": "payments", + "url": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/test.md" + }, "payments/payments/test-card-details": { "title": "Test Cards Details to Test Payments and Subscriptions", "description": "Use test cards to test Indian, international and EMI payments, and Subscriptions.", @@ -10816,6 +10828,12 @@ "category": "payments", "url": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/subscriptions/workflow.md" }, + "payments/test-doc-payment": { + "title": "Testing doc Payment route", + "description": "Sandbox setup for testing Razorpay APIs.", + "category": "payments", + "url": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/test-doc-payment.md" + }, "payments/third-party-validation/bank-list": { "title": "Supported Banks", "description": "List of banks that Razorpay has partnered with for Third-Party Validation (TPV).", @@ -12028,6 +12046,12 @@ "category": "test-doc", "url": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/test-doc.md" }, + "test-doc-main": { + "title": "Testing doc Main", + "description": "Sandbox setup for testing Razorpay APIs.", + "category": "test-doc-main", + "url": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/test-doc-main.md" + }, "test-ssr": { "title": "Testing SSR", "description": "Create a RazorpayX account to explore seamless financial management with payouts, payments, disbursals & refunds, automation and more. Do not delete, used for automation and testing.", diff --git a/_url-md-map.json b/_url-md-map.json index 9f4ab262..89251cad 100644 --- a/_url-md-map.json +++ b/_url-md-map.json @@ -1493,6 +1493,7 @@ "/docs/payments/payments/late-authorisation/": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/late-authorisation.md", "/docs/payments/payments/late-authorisation/handle": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/late-authorisation/handle.md", "/docs/payments/payments/success-rate-analytics/": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/success-rate-analytics.md", + "/docs/payments/payments/test": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/test.md", "/docs/payments/payments/test-card-details": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/test-card-details.md", "/docs/payments/payments/test-card-details/": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/test-card-details.md", "/docs/payments/qr-codes": "https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/qr-codes.md", diff --git a/api/customers/create.md b/api/customers/create.md index 7acb951e..e87a4a2b 100644 --- a/api/customers/create.md +++ b/api/customers/create.md @@ -127,9 +127,9 @@ instance.customers.create({ { "id" : "cust_1Aa00000000004", "entity": "customer", - "name" : "", - "email" : "", - "contact" : "", + "name" : "Gaurav Kumar", + "email" : "gaurav.kumar@example.com", + "contact" : "+919876543210", "gstin": null, "notes": { "notes_key_1":"Tea, Earl Grey, Hot", diff --git a/api/customers/edit.md b/api/customers/edit.md index 1e4b0886..616f274b 100644 --- a/api/customers/edit.md +++ b/api/customers/edit.md @@ -16,9 +16,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X PUT https://api.razorpay.com/v1/customers/cust_1Aa00000000003 \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }' ```java: Java @@ -27,9 +27,9 @@ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET] String customerId = "cust_1Aa00000000003"; JSONObject customerRequest = new JSONObject(); -customerRequest.put("name",""); -customerRequest.put("contact",""); -customerRequest.put("email",""); +customerRequest.put("name","Gaurav Kumar"); +customerRequest.put("contact","+919876543210"); +customerRequest.put("email","gaurav.kumar@example.com"); Customer customer = razorpay.customers.edit(customerId,customerRequest); @@ -38,9 +38,9 @@ import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.edit(customerId,{ - "name": "", - "email": "", - "contact": + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": +919876543210 }) ```go: Go @@ -50,16 +50,16 @@ client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") customerId := "cust_1Aa00000000003" data = map[string]interface{}{ - "name": "", - "email": "", - "contact": , + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": +919876543210, } body, err := client.Customer.Edit(customerId, data, nil) ```php: PHP $api = new Api($key_id, $secret); -$api->customer->fetch($customerId)->edit(array('name' => '', 'email' => '', 'contact': '', 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf'))); +$api->customer->fetch($customerId)->edit(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com', 'contact': '+919876543210', 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf'))); ```ruby: Ruby require "razorpay" @@ -68,18 +68,18 @@ Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') customerId = "cust_1Aa00000000003" Razorpay::Customer.edit(customerId,{ - "name": "", - "email": "", - "contact": , + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": +919876543210, }) ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.edit(customerId,{ - name: "", - email: "", - contact: + name: "Gaurav Kumar", + email: "gaurav.kumar@example.com", + contact: +919876543210 }) ```csharp: .NET @@ -88,9 +88,9 @@ RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]") string customerId = "cust_1Aa00000000003"; Dictionary customerRequest = new Dictionary(); -customerRequest.Add("name", ""); -customerRequest.Add("contact", ""); -customerRequest.Add("email", ""); +customerRequest.Add("name", "Gaurav Kumar"); +customerRequest.Add("contact", "+919876543210"); +customerRequest.Add("email", "gaurav.kumar@example.com"); Customer card = client.Customer.Fetch(customerId).Edit(customerRequest); ``` diff --git a/api/customers/entity.md b/api/customers/entity.md index 39063804..530afcef 100644 --- a/api/customers/entity.md +++ b/api/customers/entity.md @@ -13,9 +13,9 @@ The Customers entity has the following parameters: { "id": "cust_JbRkXMROZUMCVq", "entity": "customer", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "notes": [], "created_at": 1653915355 diff --git a/api/orders/fetch-all-expanded-card-payments.md b/api/orders/fetch-all-expanded-card-payments.md index 27805624..110121e3 100644 --- a/api/orders/fetch-all-expanded-card-payments.md +++ b/api/orders/fetch-all-expanded-card-payments.md @@ -118,8 +118,8 @@ List order = client.Order.All(orderRequest); "bank": null, "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": 10, "tax": 0, diff --git a/api/orders/fetch-all-expanded-payments.md b/api/orders/fetch-all-expanded-payments.md index 9d4170d5..2449542f 100644 --- a/api/orders/fetch-all-expanded-payments.md +++ b/api/orders/fetch-all-expanded-payments.md @@ -54,8 +54,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] "bank": null, "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": null, "tax": null, @@ -104,8 +104,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] "bank": null, "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": null, "tax": null, diff --git a/api/payments/invoices/cancel.md b/api/payments/invoices/cancel.md index 1fe787ce..12343b5f 100644 --- a/api/payments/invoices/cancel.md +++ b/api/payments/invoices/cancel.md @@ -76,14 +76,14 @@ Invoice invoice = client.Invoice.Fetch(invoiceId).Cancel(); "currency_symbol": "", "customer_details": { "billing_address": null, - "contact": "", - "customer_contact": "", - "customer_email": "", - "customer_name": "", - "email": "", + "contact": "+919876543210", + "customer_contact": "+919876543210", + "customer_email": "gaurav.kumar@example.com", + "customer_name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", "gstin": null, "id": "cust_DtHaBuooGHTuyZ", - "name": "", + "name": "Gaurav Kumar", "shipping_address": null }, "customer_id": "cust_DtHaBuooGHTuyZ", diff --git a/api/payments/invoices/create-with-customer-id.md b/api/payments/invoices/create-with-customer-id.md index 123f6a21..2f3495f0 100644 --- a/api/payments/invoices/create-with-customer-id.md +++ b/api/payments/invoices/create-with-customer-id.md @@ -142,14 +142,14 @@ Invoice invoice = client.Invoice.Create(invoiceRequest); "customer_details": { "id": "cust_HOQzpsovChhcpl", "name": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, "customer_name": null, - "customer_email": "", - "customer_contact": "" + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_K6g5bxSIwYIXJS", "line_items": [ diff --git a/api/payments/invoices/create-with-details.md b/api/payments/invoices/create-with-details.md index 04e3bacb..4d78d497 100644 --- a/api/payments/invoices/create-with-details.md +++ b/api/payments/invoices/create-with-details.md @@ -33,9 +33,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] "description": "Invoice for the month of January 2020", "partial_payment": true, "customer": { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "billing_address": { "line1": "Bakers Street", "line2": "Country Road", @@ -79,9 +79,9 @@ invoiceRequest.put("type", "invoice"); invoiceRequest.put("description", "Invoice for the month of January 2020"); invoiceRequest.put("partial_payment",true); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("contact",""); -customer.put("email",""); +customer.put("name","Gaurav Kumar"); +customer.put("contact","+919876543210"); +customer.put("email","gaurav.kumar@example.com"); JSONObject billingAddress = new JSONObject(); billingAddress.put("line1","Ground & 1st Floor, SJR Cyber Laskar"); billingAddress.put("line2","Hosur Road"); @@ -124,9 +124,9 @@ client.invoice.create({ "description": "Invoice for the month of January 2020", "partial_payment": true, "customer": { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "billing_address": { "line1": "Ground & 1st Floor, SJR Cyber Laskar", "line2": "Hosur Road", @@ -177,9 +177,9 @@ data := map[string]interface{}{ "description": "Invoice for the month of January 2020", "partial_payment": true, "customer": map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "billing_address": map[string]interface{}{ "line1": "Ground & 1st Floor, SJR Cyber Laskar", "line2": "Hosur Road", @@ -212,9 +212,9 @@ $api->invoice->create(array( 'description' => 'Invoice for the month of January 2020', 'partial_payment' => true, 'customer' => array( - 'name' => '', - 'contact' => '', - 'email' => '', + 'name' => 'Gaurav Kumar', + 'contact' => '+919876543210', + 'email' => 'gaurav.kumar@example.com', 'billing_address' => array( 'line1' => 'Ground & 1st Floor, SJR Cyber Laskar', 'line2' => 'Hosur Road', @@ -256,9 +256,9 @@ Razorpay::Invoice.create({ "description": "Invoice for the month of January 2020", "partial_payment": true, "customer": { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "billing_address": { "line1": "Ground & 1st Floor, SJR Cyber Laskar", "line2": "Hosur Road", @@ -299,9 +299,9 @@ instance.invoice.create({ "description": "Invoice for the month of January 2020", "partial_payment": true, "customer": { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "billing_address": { "line1": "Ground & 1st Floor, SJR Cyber Laskar", "line2": "Hosur Road", @@ -342,9 +342,9 @@ invoiceRequest.Add("type", "invoice"); invoiceRequest.Add("description", "Invoice for the month of January 2020"); invoiceRequest.Add("partial_payment", true); Dictionary customer = new Dictionary(); -customer.Add("name", ""); -customer.Add("contact", ""); -customer.Add("email", ""); +customer.Add("name", "Gaurav Kumar"); +customer.Add("contact", "+919876543210"); +customer.Add("email", "gaurav.kumar@example.com"); Dictionary billingAddress = new Dictionary(); billingAddress.Add("line1", "Bakers Street"); billingAddress.Add("line2", "Country Road"); @@ -390,9 +390,9 @@ Invoice invoice = client.Invoice.Create(invoiceRequest); "customer_id": "cust_E7q0trFqXgExmT", "customer_details": { "id": "cust_E7q0trFqXgExmT", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": { "id": "addr_E7q0ttqh4SGhAC", @@ -416,9 +416,9 @@ Invoice invoice = client.Invoice.Create(invoiceRequest); "state": "Karnataka", "country": "in" }, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_E7q0tvRpC0WJwg", "line_items": [ diff --git a/api/payments/invoices/entity.md b/api/payments/invoices/entity.md index 63c67ca7..bafff7a8 100644 --- a/api/payments/invoices/entity.md +++ b/api/payments/invoices/entity.md @@ -18,9 +18,9 @@ The Invoices entity has the following parameters: "customer_id": "cust_E7q0trFqXgExmT", "customer_details": { "id": "cust_E7q0trFqXgExmT", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": { "id": "addr_E7q0ttqh4SGhAC", @@ -44,9 +44,9 @@ The Invoices entity has the following parameters: "state": "Karnataka", "country": "in" }, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_E7q0tvRpC0WJwg", "line_items": [ diff --git a/api/payments/invoices/fetch-all.md b/api/payments/invoices/fetch-all.md index 3794204e..509537de 100644 --- a/api/payments/invoices/fetch-all.md +++ b/api/payments/invoices/fetch-all.md @@ -72,9 +72,9 @@ List invoice = client.Invoice.All(); "customer_id": "cust_DAtUWmvpktokrT", "customer_details": { "id": "cust_DAtUWmvpktokrT", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": { "id": "addr_DAtUWoxgu91obl", @@ -88,9 +88,9 @@ List invoice = client.Invoice.All(); "country": "in" }, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": null, "line_items": [ @@ -179,9 +179,9 @@ List invoice = client.Invoice.All(); "customer_id": "cust_DAuFux32LnIsqJ", "customer_details": { "id": "cust_DAuFux32LnIsqJ", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": { "id": "addr_DAuFuz499I5mgk", @@ -195,9 +195,9 @@ List invoice = client.Invoice.All(); "country": "in" }, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_DAul2V0vnGXIML", "line_items": [ diff --git a/api/payments/invoices/fetch-with-id.md b/api/payments/invoices/fetch-with-id.md index f8d6244c..db1ed435 100644 --- a/api/payments/invoices/fetch-with-id.md +++ b/api/payments/invoices/fetch-with-id.md @@ -69,9 +69,9 @@ Invoice invoice = client.Invoice.Fetch(invoiceId); "customer_id": "cust_E7q0trFqXgExmT", "customer_details": { "id": "cust_E7q0trFqXgExmT", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": { "id": "addr_E7q0ttqh4SGhAC", @@ -95,9 +95,9 @@ Invoice invoice = client.Invoice.Fetch(invoiceId); "state": "Karnataka", "country": "in" }, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_E7q0tvRpC0WJwg", "line_items": [ diff --git a/api/payments/invoices/issue.md b/api/payments/invoices/issue.md index 7638b77c..7c6ba371 100644 --- a/api/payments/invoices/issue.md +++ b/api/payments/invoices/issue.md @@ -69,9 +69,9 @@ Invoice invoice = client.Invoice.Fetch(invoiceId).Issue(); "customer_id": "cust_DAtUWmvpktokrT", "customer_details": { "id": "cust_DAtUWmvpktokrT", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": { "id": "addr_DAtUWoxgu91obl", @@ -85,9 +85,9 @@ Invoice invoice = client.Invoice.Fetch(invoiceId).Issue(); "country": "in" }, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_DBG3P8ZgDd1dsG", "line_items": [ diff --git a/api/payments/invoices/update.md b/api/payments/invoices/update.md index 134feb19..f7495e7b 100644 --- a/api/payments/invoices/update.md +++ b/api/payments/invoices/update.md @@ -216,9 +216,9 @@ Invoice invoice = client.Invoice.Fetch(invoiceId).Edit(invoiceRequest); "customer_id": "cust_DAtUWmvpktokrT", "customer_details": { "id": "cust_DAtUWmvpktokrT", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": { "id": "addr_DAtUWoxgu91obl", @@ -232,9 +232,9 @@ Invoice invoice = client.Invoice.Fetch(invoiceId).Edit(invoiceRequest); "country": "in" }, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": null, "line_items": [ diff --git a/api/payments/payment-links/change-business-name.md b/api/payments/payment-links/change-business-name.md index b81e591d..71fe10d1 100644 --- a/api/payments/payment-links/change-business-name.md +++ b/api/payments/payment-links/change-business-name.md @@ -24,9 +24,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "reference_id": "#2234542", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -43,7 +43,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ ```php: PHP $api = new Api($key_id, $secret); -$api->paymentLink->create(array('amount'=>500, 'currency'=>'', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'', 'email' => '', 'contact'=>''), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>true , 'options'=>array('checkout'=>array('name'=>'Lacme Corp')))); +$api->paymentLink->create(array('amount'=>500, 'currency'=>'', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com', 'contact'=>'+919876543210'), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>true , 'options'=>array('checkout'=>array('name'=>'Lacme Corp')))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -56,9 +56,9 @@ instance.paymentLink.create({ reference_id: "#2234542", description: "Payment for policy no #23456", customer: { - name: "", - contact: "", - email: "" + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com" }, notify: { sms: true, @@ -84,9 +84,9 @@ client.payment_link.create({ "reference_id": "#2234542", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -112,9 +112,9 @@ data := map[string]interface{}{ "reference_id": "#2234542", "description": "Payment for policy no #23456", "customer": map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", }, "notify": map[string]interface{}{ "sms": true, @@ -141,9 +141,9 @@ para_attr = { "reference_id": "#2234542", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -176,9 +176,9 @@ paymentLinkRequest.put("reference_id","#aasasw8"); paymentLinkRequest.put("first_min_partial_amount",100); paymentLinkRequest.put("description","Payment for policy no #23456"); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("contact",""); -customer.put("email",""); +customer.put("name","+919876543210"); +customer.put("contact","Gaurav Kumar"); +customer.put("email","gaurav.kumar@example.com"); paymentLinkRequest.put("customer",customer); JSONObject notify = new JSONObject(); notify.put("sms",true); @@ -189,7 +189,7 @@ paymentLinkRequest.put("reminder_enable",true); JSONObject options = new JSONObject(); JSONObject notes = new JSONObject(); notes.put("branch","Acme Corp Bangalore North"); -notes.put("name",""); +notes.put("name","Gaurav Kumar"); JSONObject checkout = new JSONObject(); checkout.put("name","Lacme Corp"); @@ -210,8 +210,8 @@ paymentLinkRequest.Add("first_min_partial_amount", 100); paymentLinkRequest.Add("description", "Payment for policy no #23456"); Dictionary customer = new Dictionary(); customer.Add("contact", "+919999999999"); -customer.Add("name", ""); -customer.Add("email", ""); +customer.Add("name", "Gaurav Kumar"); +customer.Add("email", "gaurav.kumar@example.com"); paymentLinkRequest.Add("customer", customer); Dictionary notify = new Dictionary(); notify.Add("sms", true); @@ -222,7 +222,7 @@ paymentLinkRequest.Add("reminder_enable", true); Dictionary options = new Dictionary(); Dictionary notes = new Dictionary(); notes.Add("branch", "Acme Corp Bangalore North"); -notes.Add("name", ""); +notes.Add("name", "Gaurav Kumar"); Dictionary checkout = new Dictionary(); checkout.Add("name", "Lacme Corp"); @@ -245,9 +245,9 @@ PaymentLink paymentlink = client.PaymentLink.Create(paymentLinkRequest); "created_at": 1596187657, "currency": "", "customer": { - "contact": "", - "email": "", - "name": "" + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", + "name": "Gaurav Kumar" }, "description": "Payment for policy no #23456", "expire_by": 0, diff --git a/api/payments/payment-links/checkout-theme.md b/api/payments/payment-links/checkout-theme.md index 872251e5..426b1cfd 100644 --- a/api/payments/payment-links/checkout-theme.md +++ b/api/payments/payment-links/checkout-theme.md @@ -24,9 +24,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "reference_id": "#423212", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -45,7 +45,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ ```php: PHP $api = new Api($key_id, $secret); -$api->paymentLink->create(array('amount'=>500, 'currency'=>'', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'', 'email' => '', 'contact'=>''), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>true , 'options'=>array('checkout'=>array('theme'=>array('hide_topbar'=>'true'))))); +$api->paymentLink->create(array('amount'=>500, 'currency'=>'', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com', 'contact'=>'+919876543210'), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>true , 'options'=>array('checkout'=>array('theme'=>array('hide_topbar'=>'true'))))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -58,9 +58,9 @@ instance.paymentLink.create({ reference_id: "#423212", description: "Payment for policy no #23456", customer: { - name: "", - contact: "", - email: "" + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com" }, notify: { sms: true, @@ -88,9 +88,9 @@ client.payment_link.create({ "reference_id": "#423212", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -118,9 +118,9 @@ data := map[string]interface{}{ "reference_id": "#423212", "description": "Payment for policy no #23456", "customer": map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", }, "notify": map[string]interface{}{ "sms": true, @@ -149,9 +149,9 @@ para_attr = { "reference_id": "#423212", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -186,9 +186,9 @@ paymentLinkRequest.put("reference_id","#aasasw8"); paymentLinkRequest.put("first_min_partial_amount",100); paymentLinkRequest.put("description","Payment for policy no #23456"); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("contact",""); -customer.put("email",""); +customer.put("name","+919876543210"); +customer.put("contact","Gaurav Kumar"); +customer.put("email","gaurav.kumar@example.com"); paymentLinkRequest.put("customer",customer); JSONObject notify = new JSONObject(); notify.put("sms",true); @@ -222,8 +222,8 @@ paymentLinkRequest.Add("first_min_partial_amount", 100); paymentLinkRequest.Add("description", "Payment for policy no #23456"); Dictionary customer = new Dictionary(); customer.Add("contact", "+919999999999"); -customer.Add("name", ""); -customer.Add("email", ""); +customer.Add("name", "Gaurav Kumar"); +customer.Add("email", "gaurav.kumar@example.com"); paymentLinkRequest.Add("customer", customer); Dictionary notify = new Dictionary(); notify.Add("sms", true); @@ -259,9 +259,9 @@ PaymentLink paymentlink = client.PaymentLink.Create(paymentLinkRequest); "created_at": 1596187814, "currency": "", "customer": { - "contact": "", - "email": "", - "name": "" + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", + "name": "Gaurav Kumar" }, "description": "Payment for policy no #23456", "expire_by": 0, diff --git a/api/payments/payment-links/create-standard.md b/api/payments/payment-links/create-standard.md index 1b910c8f..b33bca86 100644 --- a/api/payments/payment-links/create-standard.md +++ b/api/payments/payment-links/create-standard.md @@ -44,9 +44,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "reference_id": "TS1989", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -64,8 +64,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ $api = new Api($key_id, $secret); $api->paymentLink->create(array('amount'=>500, 'currency'=>'', 'accept_partial'=>true, -'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'', -'email' => '', 'contact'=>''), 'notify'=>array('sms'=>true, 'email'=>true) , +'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'Gaurav Kumar', +'email' => 'gaurav.kumar@example.com', 'contact'=>'+919876543210'), 'notify'=>array('sms'=>true, 'email'=>true) , 'reminder_enable'=>true ,'notes'=>array('policy_name'=> 'Life Insurance Policy'),'callback_url' => 'https://example-callback-url.com/', 'callback_method'=>'get')); @@ -79,9 +79,9 @@ instance.paymentLink.create({ first_min_partial_amount: 100, description: "For XYZ purpose", customer: { - name: "", - email: "", - contact: "" + name: "Gaurav Kumar", + email: "gaurav.kumar@example.com", + contact: "+919876543210" }, notify: { sms: true, @@ -106,9 +106,9 @@ client.payment_link.create({ "first_min_partial_amount": 100, "description": "For XYZ purpose", "customer": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notify": { "sms": True, @@ -135,9 +135,9 @@ data := map[string]interface{}{ "reference_id": "TS1989", "description": "Payment for policy no #23456", "customer": map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", }, "notify": map[string]interface{}{ "sms": true, @@ -164,9 +164,9 @@ para_attr = { "first_min_partial_amount": 100, "description": "For XYZ purpose", "customer": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notify": { "sms": true, @@ -198,9 +198,9 @@ paymentLinkRequest.put("expire_by",1691097057); paymentLinkRequest.put("reference_id","TS1989"); paymentLinkRequest.put("description","Payment for policy no #23456"); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("contact",""); -customer.put("email",""); +customer.put("name","+919876543210"); +customer.put("contact","Gaurav Kumar"); +customer.put("email","gaurav.kumar@example.com"); paymentLinkRequest.put("customer",customer); JSONObject notify = new JSONObject(); notify.put("sms",true); @@ -227,9 +227,9 @@ paymentLinkRequest.Add("expire_by", 1691097057); paymentLinkRequest.Add("reference_id", "TS1989"); paymentLinkRequest.Add("description", "Payment for policy no #23456"); Dictionary customer = new Dictionary(); -customer.Add("contact", ""); -customer.Add("name", ""); -customer.Add("email", ""); +customer.Add("contact", "+919876543210"); +customer.Add("name", "Gaurav Kumar"); +customer.Add("email", "gaurav.kumar@example.com"); paymentLinkRequest.Add("customer", customer); Dictionary notify = new Dictionary(); notify.Add("sms", true); diff --git a/api/payments/payment-links/customise-options-config.md b/api/payments/payment-links/customise-options-config.md index b54d8c66..8a2028e7 100644 --- a/api/payments/payment-links/customise-options-config.md +++ b/api/payments/payment-links/customise-options-config.md @@ -66,9 +66,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "reference_id": "#21132", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -115,9 +115,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "reference_id": "TSsd3ty1e99uu869", "description": "Payment for policy no #23y56", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -175,9 +175,9 @@ instance.paymentLink.create({ "reference_id": "#21132", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -225,9 +225,9 @@ instance.paymentLink.create({ "reference_id": "#21132", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -275,13 +275,13 @@ Use this API endpoint for HDFC Netbanking. $api = new Api($key_id, $secret); -$api->paymentLink->create(array('amount'=>1000,'currency'=>'INR','accept_partial'=>true,'first_min_partial_amount'=>100,'reference_id'=>'#21132','description'=>'Payment for policy no #23456','customer'=>array('name'=>'','contact'=>'','email'=>'',),'notify'=>array('sms'=>true,'email'=>true,),'reminder_enable'=>true,'options'=>array('checkout'=>array('config'=>array('display'=>array('blocks'=>array('banks'=>array('name'=>'Pay using HDFC','instruments'=>array(0=>array('method'=>'netbanking','banks'=>array(0=>'HDFC',),),),),),'sequence'=>array(0=>'block.banks',),'preferences'=>array('show_default_blocks'=>false,),),),),),)); +$api->paymentLink->create(array('amount'=>1000,'currency'=>'INR','accept_partial'=>true,'first_min_partial_amount'=>100,'reference_id'=>'#21132','description'=>'Payment for policy no #23456','customer'=>array('name'=>'Gaurav Kumar','contact'=>'+919876543210','email'=>'gaurav.kumar@example.com',),'notify'=>array('sms'=>true,'email'=>true,),'reminder_enable'=>true,'options'=>array('checkout'=>array('config'=>array('display'=>array('blocks'=>array('banks'=>array('name'=>'Pay using HDFC','instruments'=>array(0=>array('method'=>'netbanking','banks'=>array(0=>'HDFC',),),),),),'sequence'=>array(0=>'block.banks',),'preferences'=>array('show_default_blocks'=>false,),),),),),)); Use this API endpoint for Reordered Payment Methods. $api = new Api($key_id, $secret); -$api->paymentLink->create(array('amount'=>1000,'currency'=>'INR','accept_partial'=>true,'first_min_partial_amount'=>100,'reference_id'=>'#21132','description'=>'Payment for policy no #23456','customer'=>array('name'=>'','contact'=>'','email'=>'',),'notify'=>array('sms'=>true,'email'=>true,),'reminder_enable'=>true,'options'=>array('checkout'=>array('config'=>array('display'=>array('blocks'=>array('banks'=>array('name'=>'All Payment Methods','instruments'=>array(0=>array('method'=>'upi',),1=>array('method'=>'netbanking',),2=>array('method'=>'card',),3=>array('method'=>'wallet',),),),),'sequence'=>array(0=>'block.banks',),'preferences'=>array('show_default_blocks'=>false,),),),),),)); +$api->paymentLink->create(array('amount'=>1000,'currency'=>'INR','accept_partial'=>true,'first_min_partial_amount'=>100,'reference_id'=>'#21132','description'=>'Payment for policy no #23456','customer'=>array('name'=>'Gaurav Kumar','contact'=>'+919876543210','email'=>'gaurav.kumar@example.com',),'notify'=>array('sms'=>true,'email'=>true,),'reminder_enable'=>true,'options'=>array('checkout'=>array('config'=>array('display'=>array('blocks'=>array('banks'=>array('name'=>'All Payment Methods','instruments'=>array(0=>array('method'=>'upi',),1=>array('method'=>'netbanking',),2=>array('method'=>'card',),3=>array('method'=>'wallet',),),),),'sequence'=>array(0=>'block.banks',),'preferences'=>array('show_default_blocks'=>false,),),),),),)); ```go: Go @@ -298,9 +298,9 @@ para_attr := map[string]interface{}{ "reference_id": "#21132", "description": "Payment for policy no #23456", "customer": map[string]interface{}{ - "name": "", - "contact": "", - "email": ", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": gaurav.kumar@example.com", }, "notify": map[string]interface{}{ "sms": true, @@ -352,9 +352,9 @@ para_attr := map[string]interface{}{ "reference_id": "#21132", "description": "Payment for policy no #23456", "customer": map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", }, "notify": map[string]interface{}{ "sms": true, @@ -418,9 +418,9 @@ paymentLinkRequest.put("expire_by",1691097057); paymentLinkRequest.put("reference_id","TS1989"); paymentLinkRequest.put("description","Payment for policy no #23456"); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("contact",""); -customer.put("email",""); +customer.put("name","Gaurav Kumar"); +customer.put("contact","+919876543210"); +customer.put("email","gaurav.kumar@example.com"); paymentLinkRequest.put("customer",customer); JSONObject notify = new JSONObject(); notify.put("sms",true); @@ -471,9 +471,9 @@ paymentLinkRequest.put("expire_by",1691097057); paymentLinkRequest.put("reference_id","TS1989"); paymentLinkRequest.put("description","Payment for policy no #23456"); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("contact",""); -customer.put("email",""); +customer.put("name","Gaurav Kumar"); +customer.put("contact","+919876543210"); +customer.put("email","gaurav.kumar@example.com"); paymentLinkRequest.put("customer",customer); JSONObject notify = new JSONObject(); notify.put("sms",true); @@ -530,9 +530,9 @@ paymentLinkRequest.Add("expire_by", 1691097057); paymentLinkRequest.Add("reference_id", "TS1989"); paymentLinkRequest.Add("description", "Payment for policy no #23456"); Dictionary customer = new Dictionary(); -customer.Add("name", ""); -customer.Add("contact", ""); -customer.Add("email", ""); +customer.Add("name", "Gaurav Kumar"); +customer.Add("contact", "+919876543210"); +customer.Add("email", "gaurav.kumar@example.com"); paymentLinkRequest.Add("customer", customer); Dictionary notify = new Dictionary(); notify.Add("sms", true); @@ -578,9 +578,9 @@ paymentLinkRequest.Add("expire_by", 1691097057); paymentLinkRequest.Add("reference_id", "TS1989"); paymentLinkRequest.Add("description", "Payment for policy no #23456"); Dictionary customer = new Dictionary(); -customer.Add("name", ""); -customer.Add("contact", ""); -customer.Add("email", ""); +customer.Add("name", "Gaurav Kumar"); +customer.Add("contact", "+919876543210"); +customer.Add("email", "gaurav.kumar@example.com"); paymentLinkRequest.Add("customer", customer); Dictionary notify = new Dictionary(); notify.Add("sms", true); @@ -636,9 +636,9 @@ para_attr = { "reference_id": "#21132", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -690,9 +690,9 @@ para_attr = { "reference_id": "#21132", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -751,9 +751,9 @@ client.payment_link.create({ "reference_id": "#21132", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -802,9 +802,9 @@ client.payment_link.create({ "reference_id": "#21132", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, diff --git a/api/payments/payment-links/customise-payment-methods.md b/api/payments/payment-links/customise-payment-methods.md index 45bf58d8..0bcd4ae2 100644 --- a/api/payments/payment-links/customise-payment-methods.md +++ b/api/payments/payment-links/customise-payment-methods.md @@ -30,9 +30,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "reference_id": "#523442", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -54,7 +54,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ ```php: PHP $api = new Api($key_id, $secret); -$api->paymentLink->create(array('amount'=>500, 'currency'=>'INR', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'', 'email' => '', 'contact'=>''), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>true , 'options'=>array('checkout'=>array('method'=>array('netbanking'=> true, 'card'=> true, 'upi'=>false, 'wallet'=>false))))); +$api->paymentLink->create(array('amount'=>500, 'currency'=>'INR', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com', 'contact'=>'+919876543210'), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>true , 'options'=>array('checkout'=>array('method'=>array('netbanking'=> true, 'card'=> true, 'upi'=>false, 'wallet'=>false))))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -66,9 +66,9 @@ instance.paymentLink.create({ first_min_partial_amount: 100, description: "For XYZ purpose", customer: { - name: "", - email: "", - contact: "" + name: "Gaurav Kumar", + email: "gaurav.kumar@example.com", + contact: "+919876543210" }, notify: { sms: true, @@ -98,9 +98,9 @@ client.payment_link.create({ "first_min_partial_amount": 100, "description": "For XYZ purpose", "customer": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notify": { "sms": true, @@ -131,9 +131,9 @@ data := map[string]interface{}{ "reference_id": "#523442", "description": "Payment for policy no #23456", "customer": map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", }, "notify": map[string]interface{}{ "sms": true, @@ -164,9 +164,9 @@ para_attr = { "first_min_partial_amount": 100, "description": "For XYZ purpose", "customer": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notify": { "sms": true, @@ -204,9 +204,9 @@ paymentLinkRequest.put("reference_id","#aasasw8"); paymentLinkRequest.put("first_min_partial_amount",100); paymentLinkRequest.put("description","Payment for policy no #23456"); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("contact",""); -customer.put("email",""); +customer.put("name","Gaurav Kumar"); +customer.put("contact","+919876543210"); +customer.put("email","gaurav.kumar@example.com"); paymentLinkRequest.put("customer",customer); JSONObject notify = new JSONObject(); notify.put("sms",true); @@ -242,9 +242,9 @@ paymentLinkRequest.Add("reference_id", "#aasasw8"); paymentLinkRequest.Add("first_min_partial_amount", 100); paymentLinkRequest.Add("description", "Payment for policy no #23456"); Dictionary customer = new Dictionary(); -customer.Add("contact", ""); -customer.Add("name", ""); -customer.Add("email", ""); +customer.Add("contact", "+919876543210"); +customer.Add("name", "Gaurav Kumar"); +customer.Add("email", "gaurav.kumar@example.com"); paymentLinkRequest.Add("customer", customer); Dictionary notify = new Dictionary(); notify.Add("sms", true); diff --git a/api/payments/payment-links/entity.md b/api/payments/payment-links/entity.md index 1f55141d..7451cd76 100644 --- a/api/payments/payment-links/entity.md +++ b/api/payments/payment-links/entity.md @@ -20,9 +20,9 @@ The Payment Link entity has the following fields: "created_at": 1591097057, "currency": "", "customer": { - "contact": "", - "email": "", - "name": "" + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", + "name": "Gaurav Kumar" }, "description": "Payment for policy no #23456", "expire_by": 1691097057, @@ -57,9 +57,9 @@ The Payment Link entity has the following fields: "created_at": 1591097057, "currency": "", "customer": { - "contact": "", - "email": "", - "name": "" + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", + "name": "Gaurav Kumar" }, "description": "Payment for policy no #23456", "expire_by": 1691097057, diff --git a/api/payments/payment-links/reminders.md b/api/payments/payment-links/reminders.md index f07dad57..4140ae8e 100644 --- a/api/payments/payment-links/reminders.md +++ b/api/payments/payment-links/reminders.md @@ -27,9 +27,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "reference_id": "#425", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -41,7 +41,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ ```php: PHP $api = new Api($key_id, $secret); -$api->paymentLink->create(array('amount'=>500, 'currency'=>'INR', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'', 'email' => '', 'contact'=>''), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>false)); +$api->paymentLink->create(array('amount'=>500, 'currency'=>'INR', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com', 'contact'=>'+919876543210'), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>false)); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -54,9 +54,9 @@ instance.paymentLink.create({ reference_id: "#425", description: "Payment for policy no #23456", customer: { - name: "", - contact: "", - email: "" + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com" }, notify: { sms: true, @@ -77,9 +77,9 @@ client.payment_link.create({ "reference_id": "#425", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -100,9 +100,9 @@ data := map[string]interface{}{ "reference_id": "#425", "description": "Payment for policy no #23456", "customer": map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", }, "notify": map[string]interface{}{ "sms": true, @@ -124,9 +124,9 @@ para_attr = { "reference_id": "#425", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -154,9 +154,9 @@ paymentLinkRequest.put("reference_id","#aasasw8"); paymentLinkRequest.put("first_min_partial_amount",100); paymentLinkRequest.put("description","Payment for policy no #23456"); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("contact",""); -customer.put("email",""); +customer.put("name","Gaurav Kumar"); +customer.put("contact","+919876543210"); +customer.put("email","gaurav.kumar@example.com"); paymentLinkRequest.put("customer",customer); JSONObject notify = new JSONObject(); notify.put("sms",true); @@ -177,9 +177,9 @@ paymentLinkRequest.Add("reference_id","#aasasw8"); paymentLinkRequest.Add("first_min_partial_amount",100); paymentLinkRequest.Add("description","Payment for policy no #23456"); Dictionary customer = new Dictionary(); -customer.Add("contact",""); -customer.Add("name",""); -customer.Add("email",""); +customer.Add("contact","+919876543210"); +customer.Add("name","Gaurav Kumar"); +customer.Add("email","gaurav.kumar@example.com"); paymentLinkRequest.Add("customer",customer); Dictionary notify = new Dictionary(); notify.Add("sms",true); diff --git a/api/payments/payment-links/rename-checkout-labels.md b/api/payments/payment-links/rename-checkout-labels.md index 69c178b2..e1953ce1 100644 --- a/api/payments/payment-links/rename-checkout-labels.md +++ b/api/payments/payment-links/rename-checkout-labels.md @@ -27,9 +27,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "reference_id": "#421", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -52,7 +52,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ ```php: PHP $api = new Api($key_id, $secret); -$api->paymentLink->create(array('amount'=>500, 'currency'=>'', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'', 'email' => '', 'contact'=>''), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>true , 'options'=>array('checkout'=>array('partial_payment'=>array('min_amount_label'=>'Minimum Money to be paid', 'partial_amount_label'=>'Pay in parts', 'partial_amount_description'=>'Pay at least ₹100', 'full_amount_label'=>'Pay the entire amount'))))); +$api->paymentLink->create(array('amount'=>500, 'currency'=>'', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com', 'contact'=>'+919876543210'), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>true , 'options'=>array('checkout'=>array('partial_payment'=>array('min_amount_label'=>'Minimum Money to be paid', 'partial_amount_label'=>'Pay in parts', 'partial_amount_description'=>'Pay at least ₹100', 'full_amount_label'=>'Pay the entire amount'))))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -66,9 +66,9 @@ instance.paymentLink.create({ description: "Payment for policy no #23456", expire_by: 1599193801, customer: { - name: "", - contact: "", - email: "" + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com" }, notify: { sms: true, @@ -106,9 +106,9 @@ client.payment_link.create({ "first_min_partial_amount": 100, "description": "For XYZ purpose", "customer": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notify": { "sms": true, @@ -139,9 +139,9 @@ data := map[string]interface{}{ "reference_id": "#421", "description": "Payment for policy no #23456", "customer": map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", }, "notify": map[string]interface{}{ "sms": true, @@ -172,9 +172,9 @@ para_attr = { "first_min_partial_amount": 100, "description": "For XYZ purpose", "customer": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notify": { "sms": true, @@ -212,9 +212,9 @@ paymentLinkRequest.put("reference_id","#aasasw8"); paymentLinkRequest.put("first_min_partial_amount",100); paymentLinkRequest.put("description","Payment for policy no #23456"); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("contact",""); -customer.put("email",""); +customer.put("name","+919876543210"); +customer.put("contact","Gaurav Kumar"); +customer.put("email","gaurav.kumar@example.com"); paymentLinkRequest.put("customer",customer); JSONObject notify = new JSONObject(); notify.put("sms",true); @@ -225,7 +225,7 @@ paymentLinkRequest.put("reminder_enable",true); JSONObject options = new JSONObject(); JSONObject notes = new JSONObject(); notes.put("branch","Acme Corp Bangalore North"); -notes.put("name",""); +notes.put("name","Gaurav Kumar"); JSONObject partialPayment = new JSONObject(); partialPayment.put("min_amount_label","Minimum Money to be pai"); @@ -252,8 +252,8 @@ paymentLinkRequest.Add("description", "Payment for policy no #23456"); Dictionary customer = new Dictionary(); customer.Add("contact", "+919999999999"); -customer.Add("name", ""); -customer.Add("email", ""); +customer.Add("name", "Gaurav Kumar"); +customer.Add("email", "gaurav.kumar@example.com"); paymentLinkRequest.Add("customer", customer); @@ -296,9 +296,9 @@ PaymentLink paymentlink = client.PaymentLink.Create(paymentLinkRequest); "created_at": 1596193199, "currency": "", "customer": { - "contact": "", - "email": "", - "name": "" + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", + "name": "Gaurav Kumar" }, "deleted_at": 0, "description": "Payment for policy no #23456", diff --git a/api/payments/payment-links/rename-payment-details-labels.md b/api/payments/payment-links/rename-payment-details-labels.md index d7f9ec23..532ee92f 100644 --- a/api/payments/payment-links/rename-payment-details-labels.md +++ b/api/payments/payment-links/rename-payment-details-labels.md @@ -37,9 +37,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "description": "Payment for policy no #23456", "expire_by": 1599193801, "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -69,7 +69,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ ```php: PHP $api = new Api($key_id, $secret); -$api->paymentLink->create(array('amount'=>500, 'currency'=>'', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'', 'email' => '', 'contact'=>''), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>true , 'options'=>array('hosted_page'=>array('label'=>array('receipt'=>'Ref No.', 'description'=>'Course Name', 'amount_payable'=>'Course Fee Payable', 'amount_paid'=>'Course Fee Paid', 'partial_amount_due'=>'Fee Installment Due', 'partial_amount_paid'=>'Fee Installment Paid', 'expire_by'=>'Pay Before', 'expired_on'=>'1632223497','amount_due'=>'Course Fee Due'), 'show_preferences'=>array('issued_to'=>false))))); +$api->paymentLink->create(array('amount'=>500, 'currency'=>'', 'accept_partial'=>true, 'first_min_partial_amount'=>100, 'description' => 'For XYZ purpose', 'customer' => array('name'=>'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com', 'contact'=>'+919876543210'), 'notify'=>array('sms'=>true, 'email'=>true) ,'reminder_enable'=>true , 'options'=>array('hosted_page'=>array('label'=>array('receipt'=>'Ref No.', 'description'=>'Course Name', 'amount_payable'=>'Course Fee Payable', 'amount_paid'=>'Course Fee Paid', 'partial_amount_due'=>'Fee Installment Due', 'partial_amount_paid'=>'Fee Installment Paid', 'expire_by'=>'Pay Before', 'expired_on'=>'1632223497','amount_due'=>'Course Fee Due'), 'show_preferences'=>array('issued_to'=>false))))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -82,9 +82,9 @@ instance.paymentLink.create({ reference_id: "#421", description: "Payment for policy no #23456", customer: { - name: "", - contact: "", - email: "" + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com" }, notify: { sms: true, @@ -115,9 +115,9 @@ client.payment_link.create({ "reference_id": "#421", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -149,9 +149,9 @@ data := map[string]interface{}{ "description": "Payment for policy no #23456", "expire_by": 1599193801, "customer": map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", }, "notify": map[string]interface{}{ "sms": true, @@ -190,9 +190,9 @@ para_attr = { "reference_id": "#421", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -230,9 +230,9 @@ paymentLinkRequest.put("reference_id","#aasasw8"); paymentLinkRequest.put("first_min_partial_amount",100); paymentLinkRequest.put("description","Payment for policy no #23456"); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("contact",""); -customer.put("email",""); +customer.put("name","+919876543210"); +customer.put("contact","Gaurav Kumar"); +customer.put("email","gaurav.kumar@example.com"); paymentLinkRequest.put("customer",customer); JSONObject notify = new JSONObject(); notify.put("sms",true); @@ -269,8 +269,8 @@ paymentLinkRequest.Add("first_min_partial_amount", 100); paymentLinkRequest.Add("description", "Payment for policy no #23456"); Dictionary customer = new Dictionary(); customer.Add("contact", "+919999999999"); -customer.Add("name", ""); -customer.Add("email", ""); +customer.Add("name", "Gaurav Kumar"); +customer.Add("email", "gaurav.kumar@example.com"); paymentLinkRequest.Add("customer", customer); Dictionary notify = new Dictionary(); notify.Add("sms", true); @@ -307,9 +307,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "reference_id": "#423", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, @@ -348,9 +348,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "reference_id": "#424", "description": "Payment for policy no #23456", "customer": { - "name": "", - "contact": "", - "email": "" + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" }, "notify": { "sms": true, diff --git a/api/payments/recurring-payments/cards/create-authorization-transaction.md b/api/payments/recurring-payments/cards/create-authorization-transaction.md index d08df865..426192fb 100644 --- a/api/payments/recurring-payments/cards/create-authorization-transaction.md +++ b/api/payments/recurring-payments/cards/create-authorization-transaction.md @@ -49,9 +49,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -63,9 +63,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -79,9 +79,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -91,9 +91,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -105,15 +105,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -123,9 +123,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -139,9 +139,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -154,9 +154,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -620,14 +620,14 @@ curl -u : -H "Content-Type: application/json" \ -d '{ "customer":{ - "name":"", - "email":"", - "contact":"" + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210" }, "type":"link", "amount":"100", "currency":"", - "description":"Registration Link for ", + "description":"Registration Link for Gaurav Kumar", "subscription_registration":{ "method":"card", "max_amount":"1000000", @@ -649,14 +649,14 @@ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET] JSONObject registrationLinkRequest = new JSONObject(); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("email",""); -customer.put("contact",""); +customer.put("name","Gaurav Kumar"); +customer.put("email","gaurav.kumar@example.com"); +customer.put("contact","+919876543210"); registrationLinkRequest.put("customer", customer); registrationLinkRequest.put("type", "link"); registrationLinkRequest.put("amount", 100); registrationLinkRequest.put("currency", ""); -registrationLinkRequest.put("description", "Registration Link for "); +registrationLinkRequest.put("description", "Registration Link for Gaurav Kumar"); JSONObject subscriptionRegistration = new JSONObject(); subscriptionRegistration.put("method","card"); subscriptionRegistration.put("max_amount",1000000); @@ -677,20 +677,20 @@ Invoice invoice = razorpay.invoices.createRegistrationLink(registrationLinkReque ```php: PHP $api = new Api($key_id, $secret); -$api->subscription->createSubscriptionRegistration(array('customer'=>array('name'=>'','email'=>'','contact'=>''),'type'=>'link','amount'=>100,'currency'=>'','description'=>'Registration Link for ','subscription_registration'=>array('method'=>'card','max_amount'=>'1000000','expire_at'=>'1634215992','frequency'=>'monthly'),'receipt'=>'Receipt No. 5','email_notify'=> true,'sms_notify'=>true,'expire_by'=>1634215992, 'notes'=> array('note_key 1'=> 'Beam me up Scotty','note_key 2'=> 'Tea. Earl Gray. Hot.'))); +$api->subscription->createSubscriptionRegistration(array('customer'=>array('name'=>'Gaurav Kumar','email'=>'gaurav.kumar@example.com','contact'=>'+919876543210'),'type'=>'link','amount'=>100,'currency'=>'','description'=>'Registration Link for Gaurav Kumar','subscription_registration'=>array('method'=>'card','max_amount'=>'1000000','expire_at'=>'1634215992','frequency'=>'monthly'),'receipt'=>'Receipt No. 5','email_notify'=> true,'sms_notify'=>true,'expire_by'=>1634215992, 'notes'=> array('note_key 1'=> 'Beam me up Scotty','note_key 2'=> 'Tea. Earl Gray. Hot.'))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.subscriptions.createRegistrationLink({ customer: { - name: "", - email: "", - contact: "" + name: "Gaurav Kumar", + email: "gaurav.kumar@example.com", + contact: "+919876543210" }, type: "link", amount: 100, currency: "", - description: "Registration Link for ", + description: "Registration Link for Gaurav Kumar", subscription_registration: { method: "card", max_amount: 1000000, @@ -710,9 +710,9 @@ instance.subscriptions.createRegistrationLink({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.registration_link.create({ - 'customer': {'name': '', - 'email': '', - 'contact': ''}, + 'customer': {'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210'}, 'type': 'link', 'amount': '100', 'currency': '', @@ -733,14 +733,14 @@ Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { "customer":{ - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "type": "link", "amount": "100", "currency": "", - "description": "Registration Link for ", + "description": "Registration Link for Gaurav Kumar", "subscription_registration":{ "method": "card", "max_amount": "1000000", @@ -765,14 +765,14 @@ client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ "customer":map[string]interface{}{ - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", }, "type":"link", "amount":"100", "currency":"", - "description":"Registration Link for ", + "description":"Registration Link for Gaurav Kumar", "subscription_registration":map[string]interface{}{ "method":"card", "max_amount":"1000000", @@ -796,14 +796,14 @@ RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]") Dictionary registrationLinkRequest = new Dictionary(); Dictionary customer = new Dictionary(); -customer.Add("name", ""); -customer.Add("email", ""); -customer.Add("contact", ""); +customer.Add("name", "Gaurav Kumar"); +customer.Add("email", "gaurav.kumar@example.com"); +customer.Add("contact", "+919876543210"); registrationLinkRequest.Add("customer", customer); registrationLinkRequest.Add("type", "link"); registrationLinkRequest.Add("amount", 100); registrationLinkRequest.Add("currency", ""); -registrationLinkRequest.Add("description", "Registration Link for "); +registrationLinkRequest.Add("description", "Registration Link for Gaurav Kumar"); Dictionary subscriptionRegistration = new Dictionary(); subscriptionRegistration.Add("method", "card"); subscriptionRegistration.Add("max_amount", 1000000); @@ -830,15 +830,15 @@ Invoice invoice = client.Invoice.CreateRegistrationLink(registrationLinkRequest) "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrXGJNngJyEAe", "line_items": [], @@ -862,7 +862,7 @@ Invoice invoice = client.Invoice.CreateRegistrationLink(registrationLinkRequest) "amount_due": 100, "currency": "", "currency_symbol": "₹", - "description": "Registration Link for ", + "description": "Registration Link for Gaurav Kumar", "notes": { "note_key 1": "Beam me up Scotty", "note_key 2": "Tea. Earl Gray. Hot." @@ -1234,15 +1234,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/api/payments/recurring-payments/cards/create-subsequent-payments.md b/api/payments/recurring-payments/cards/create-subsequent-payments.md index 870f0f23..316c9f51 100644 --- a/api/payments/recurring-payments/cards/create-subsequent-payments.md +++ b/api/payments/recurring-payments/cards/create-subsequent-payments.md @@ -307,8 +307,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -326,8 +326,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -344,14 +344,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -369,8 +369,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -387,8 +387,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -408,8 +408,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -428,8 +428,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/cards/tokens.md b/api/payments/recurring-payments/cards/tokens.md index 40de684a..2b1fd71f 100644 --- a/api/payments/recurring-payments/cards/tokens.md +++ b/api/payments/recurring-payments/cards/tokens.md @@ -83,8 +83,8 @@ Payment payment = client.Payment.Fetch(paymentId); "bank": null, "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "customer_id": "cust_DtHaBuooGHTuyZ", "token_id": "token_FHfn3rIiM1Z8nr", "notes": { @@ -294,7 +294,7 @@ List token = client.Customer.Fetch(customerId).Tokens(); "method":"card", "card":{ "entity":"card", - "name":"", + "name":"Gaurav Kumar", "last4":"8950", "network":"Visa", "type":"credit", @@ -539,7 +539,7 @@ List token = client.Customer.Fetch(customerId).Tokens(); "method":"card", "card":{ "entity":"card", - "name":"", + "name":"Gaurav Kumar", "last4":"7558", "network":"Visa", "type":"credit", diff --git a/api/payments/recurring-payments/custom/cards/create-authorization-transaction.md b/api/payments/recurring-payments/custom/cards/create-authorization-transaction.md index 7f1112ef..5a9929db 100644 --- a/api/payments/recurring-payments/custom/cards/create-authorization-transaction.md +++ b/api/payments/recurring-payments/custom/cards/create-authorization-transaction.md @@ -40,9 +40,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -54,9 +54,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -70,9 +70,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -82,9 +82,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -96,15 +96,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -130,9 +130,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -145,9 +145,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -366,8 +366,8 @@ When you use a Callback URL, the response object of the successful payment (`raz var data = { "amount": 100, // in currency subunits. Here 1000 = 1000 paise, which equals to ₹10 "currency": "", // Default is INR. We support more than 90 currencies. - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": { "address": "Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru", }, @@ -377,7 +377,7 @@ When you use a Callback URL, the response object of the successful payment (`raz "save": 1, "consent_to_save_card": 1, "method": "card", - "card[name]": "", + "card[name]": "Gaurav Kumar", "card[number]": "5104015555555558", "card[cvv]": "123", "card[expiry_month]": "10", @@ -421,8 +421,8 @@ When you use a Callback URL, the response object of the successful payment (`raz "callback_url": "www.example-callback-url.com", "amount": 100, // in currency subunits. Here 1000 = 1000 paise, which equals to ₹10 "currency": "", // Default is INR. We support more than 90 currencies. - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": { "address": "Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru", }, @@ -432,7 +432,7 @@ When you use a Callback URL, the response object of the successful payment (`raz "save": 1, "consent_to_save_card": 1, "method": "card", - "card[name]": "", + "card[name]": "Gaurav Kumar", "card[number]": "5104015555555558", "card[cvv]": "123", "card[expiry_month]": "10", @@ -511,9 +511,9 @@ curl -u : -H "Content-Type: application/json" \ -d '{ "customer":{ - "name":"", - "email":"", - "contact":"" + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210" }, "type":"link", "amount":"100", @@ -542,15 +542,15 @@ curl -u : "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrXGJNngJyEAe", "line_items": [], @@ -937,15 +937,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/api/payments/recurring-payments/custom/cards/create-subsequent-payments.md b/api/payments/recurring-payments/custom/cards/create-subsequent-payments.md index 93192527..f9c9628a 100644 --- a/api/payments/recurring-payments/custom/cards/create-subsequent-payments.md +++ b/api/payments/recurring-payments/custom/cards/create-subsequent-payments.md @@ -313,8 +313,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -332,8 +332,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -350,14 +350,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -375,8 +375,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -393,8 +393,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -414,8 +414,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -434,8 +434,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/custom/cards/tokens.md b/api/payments/recurring-payments/custom/cards/tokens.md index 80484d8f..b9833a42 100644 --- a/api/payments/recurring-payments/custom/cards/tokens.md +++ b/api/payments/recurring-payments/custom/cards/tokens.md @@ -65,8 +65,8 @@ body, err := client.Payment.Fetch("", nil, nil) "bank": null, "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "customer_id": "cust_DtHaBuooGHTuyZ", "token_id": "token_FHfn3rIiM1Z8nr", "notes": { @@ -252,7 +252,7 @@ Razorpay::Customer.fetch(customerId).fetchToken(tokenId) "method": "card", "card": { "entity": "card", - "name": "", + "name": "Gaurav Kumar", "last4": "2002", "network": "Visa", "type": "credit", diff --git a/api/payments/recurring-payments/custom/emandate/auto-debit.md b/api/payments/recurring-payments/custom/emandate/auto-debit.md index a46c821d..96758f80 100644 --- a/api/payments/recurring-payments/custom/emandate/auto-debit.md +++ b/api/payments/recurring-payments/custom/emandate/auto-debit.md @@ -50,9 +50,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -64,9 +64,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -80,9 +80,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -92,9 +92,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -106,15 +106,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -124,9 +124,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -140,9 +140,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -155,9 +155,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1387,15 +1387,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], @@ -1889,8 +1889,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1908,8 +1908,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -1926,14 +1926,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1951,8 +1951,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -1969,8 +1969,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1990,8 +1990,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -2010,8 +2010,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/custom/emandate/create-authorization-transaction.md b/api/payments/recurring-payments/custom/emandate/create-authorization-transaction.md index f1632472..79ed94c9 100644 --- a/api/payments/recurring-payments/custom/emandate/create-authorization-transaction.md +++ b/api/payments/recurring-payments/custom/emandate/create-authorization-transaction.md @@ -72,9 +72,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -86,9 +86,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -102,9 +102,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -128,15 +128,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -146,9 +146,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -162,9 +162,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -177,9 +177,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1921,15 +1921,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/api/payments/recurring-payments/custom/emandate/create-subsequent-payments.md b/api/payments/recurring-payments/custom/emandate/create-subsequent-payments.md index 9a90e257..0aa481af 100644 --- a/api/payments/recurring-payments/custom/emandate/create-subsequent-payments.md +++ b/api/payments/recurring-payments/custom/emandate/create-subsequent-payments.md @@ -193,8 +193,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -212,8 +212,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -230,14 +230,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -255,8 +255,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -273,8 +273,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -294,8 +294,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -314,8 +314,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/custom/paper-nach/auto-debit.md b/api/payments/recurring-payments/custom/paper-nach/auto-debit.md index b86942da..9833e7f1 100644 --- a/api/payments/recurring-payments/custom/paper-nach/auto-debit.md +++ b/api/payments/recurring-payments/custom/paper-nach/auto-debit.md @@ -68,9 +68,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -82,9 +82,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -110,9 +110,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -124,15 +124,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -142,9 +142,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -158,9 +158,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -173,9 +173,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1657,8 +1657,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1676,8 +1676,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -1694,14 +1694,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1719,8 +1719,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -1737,8 +1737,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1758,8 +1758,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1778,8 +1778,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/custom/paper-nach/create-authorization-transaction.md b/api/payments/recurring-payments/custom/paper-nach/create-authorization-transaction.md index 9a00f09b..3462a4bd 100644 --- a/api/payments/recurring-payments/custom/paper-nach/create-authorization-transaction.md +++ b/api/payments/recurring-payments/custom/paper-nach/create-authorization-transaction.md @@ -58,9 +58,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -72,9 +72,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -88,9 +88,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -100,9 +100,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -114,15 +114,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -132,9 +132,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -148,9 +148,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -163,9 +163,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/api/payments/recurring-payments/custom/paper-nach/create-subsequent-payments.md b/api/payments/recurring-payments/custom/paper-nach/create-subsequent-payments.md index 9a90e257..0aa481af 100644 --- a/api/payments/recurring-payments/custom/paper-nach/create-subsequent-payments.md +++ b/api/payments/recurring-payments/custom/paper-nach/create-subsequent-payments.md @@ -193,8 +193,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -212,8 +212,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -230,14 +230,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -255,8 +255,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -273,8 +273,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -294,8 +294,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -314,8 +314,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/custom/upi-tpv/create-authorization-transaction.md b/api/payments/recurring-payments/custom/upi-tpv/create-authorization-transaction.md index 5defe515..9cc8ebd8 100644 --- a/api/payments/recurring-payments/custom/upi-tpv/create-authorization-transaction.md +++ b/api/payments/recurring-payments/custom/upi-tpv/create-authorization-transaction.md @@ -1060,15 +1060,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/api/payments/recurring-payments/custom/upi-tpv/create-subsequent-payments.md b/api/payments/recurring-payments/custom/upi-tpv/create-subsequent-payments.md index 6b64f998..604e9076 100644 --- a/api/payments/recurring-payments/custom/upi-tpv/create-subsequent-payments.md +++ b/api/payments/recurring-payments/custom/upi-tpv/create-subsequent-payments.md @@ -228,8 +228,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -247,8 +247,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -265,14 +265,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -290,8 +290,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -308,8 +308,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -329,8 +329,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -349,8 +349,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/custom/upi/create-authorization-transaction.md b/api/payments/recurring-payments/custom/upi/create-authorization-transaction.md index bca85af2..dfaa1da3 100644 --- a/api/payments/recurring-payments/custom/upi/create-authorization-transaction.md +++ b/api/payments/recurring-payments/custom/upi/create-authorization-transaction.md @@ -68,9 +68,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -82,9 +82,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -110,9 +110,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -124,15 +124,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -142,9 +142,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -158,9 +158,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -173,9 +173,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -854,15 +854,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/api/payments/recurring-payments/custom/upi/create-subsequent-payments.md b/api/payments/recurring-payments/custom/upi/create-subsequent-payments.md index 88898b5e..15949551 100644 --- a/api/payments/recurring-payments/custom/upi/create-subsequent-payments.md +++ b/api/payments/recurring-payments/custom/upi/create-subsequent-payments.md @@ -249,8 +249,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -268,8 +268,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -286,14 +286,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -311,8 +311,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -329,8 +329,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -350,8 +350,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -370,8 +370,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/emandate/auto-debit.md b/api/payments/recurring-payments/emandate/auto-debit.md index 09bf9ad8..9cf004ba 100644 --- a/api/payments/recurring-payments/emandate/auto-debit.md +++ b/api/payments/recurring-payments/emandate/auto-debit.md @@ -39,9 +39,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -53,9 +53,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -69,9 +69,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -81,9 +81,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -95,15 +95,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -113,9 +113,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -129,9 +129,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -144,9 +144,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -2450,15 +2450,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], @@ -3417,8 +3417,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -3436,8 +3436,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -3454,14 +3454,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -3479,8 +3479,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -3497,8 +3497,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -3518,8 +3518,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -3538,8 +3538,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/emandate/create-authorization-transaction.md b/api/payments/recurring-payments/emandate/create-authorization-transaction.md index 42678ed4..fbc193c0 100644 --- a/api/payments/recurring-payments/emandate/create-authorization-transaction.md +++ b/api/payments/recurring-payments/emandate/create-authorization-transaction.md @@ -40,9 +40,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -54,9 +54,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -70,9 +70,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -82,9 +82,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -96,15 +96,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -130,9 +130,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -145,9 +145,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -2057,15 +2057,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/api/payments/recurring-payments/paper-nach/auto-debit.md b/api/payments/recurring-payments/paper-nach/auto-debit.md index 2d504b06..38fd937d 100644 --- a/api/payments/recurring-payments/paper-nach/auto-debit.md +++ b/api/payments/recurring-payments/paper-nach/auto-debit.md @@ -56,9 +56,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -70,9 +70,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -86,9 +86,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -112,15 +112,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -130,9 +130,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -146,9 +146,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -161,9 +161,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -2627,8 +2627,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -2646,8 +2646,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -2664,14 +2664,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -2689,8 +2689,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -2707,8 +2707,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -2728,8 +2728,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -2748,8 +2748,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/paper-nach/create-authorization-transaction.md b/api/payments/recurring-payments/paper-nach/create-authorization-transaction.md index 06609196..5fd48544 100644 --- a/api/payments/recurring-payments/paper-nach/create-authorization-transaction.md +++ b/api/payments/recurring-payments/paper-nach/create-authorization-transaction.md @@ -52,9 +52,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -66,9 +66,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -82,9 +82,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -94,9 +94,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -108,15 +108,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -126,9 +126,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -142,9 +142,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -157,9 +157,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/api/payments/recurring-payments/paper-nach/create-subsequent-payments.md b/api/payments/recurring-payments/paper-nach/create-subsequent-payments.md index cb0e011f..edf3ac5f 100644 --- a/api/payments/recurring-payments/paper-nach/create-subsequent-payments.md +++ b/api/payments/recurring-payments/paper-nach/create-subsequent-payments.md @@ -238,8 +238,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -257,8 +257,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -275,14 +275,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -300,8 +300,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -318,8 +318,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -339,8 +339,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -359,8 +359,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/upi-otm/authorization-transaction.md b/api/payments/recurring-payments/upi-otm/authorization-transaction.md index 0308a9bd..53444d75 100644 --- a/api/payments/recurring-payments/upi-otm/authorization-transaction.md +++ b/api/payments/recurring-payments/upi-otm/authorization-transaction.md @@ -47,9 +47,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -61,9 +61,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -77,9 +77,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -89,9 +89,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -103,15 +103,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -121,9 +121,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -137,9 +137,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -152,9 +152,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1387,15 +1387,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/api/payments/recurring-payments/upi-tpv/create-authorization-transaction.md b/api/payments/recurring-payments/upi-tpv/create-authorization-transaction.md index a87fa7fc..ff7b3b81 100644 --- a/api/payments/recurring-payments/upi-tpv/create-authorization-transaction.md +++ b/api/payments/recurring-payments/upi-tpv/create-authorization-transaction.md @@ -1587,15 +1587,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/api/payments/recurring-payments/upi-tpv/create-subsequent-payments.md b/api/payments/recurring-payments/upi-tpv/create-subsequent-payments.md index 927cf906..0b03011e 100644 --- a/api/payments/recurring-payments/upi-tpv/create-subsequent-payments.md +++ b/api/payments/recurring-payments/upi-tpv/create-subsequent-payments.md @@ -241,8 +241,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -260,8 +260,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -278,14 +278,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -303,8 +303,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -321,8 +321,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -342,8 +342,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -362,8 +362,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/upi/create-authorization-transaction.md b/api/payments/recurring-payments/upi/create-authorization-transaction.md index 4afe1130..4c32ee33 100644 --- a/api/payments/recurring-payments/upi/create-authorization-transaction.md +++ b/api/payments/recurring-payments/upi/create-authorization-transaction.md @@ -66,9 +66,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -80,9 +80,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -96,9 +96,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -108,9 +108,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -122,15 +122,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -140,9 +140,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -156,9 +156,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -171,9 +171,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1783,15 +1783,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/api/payments/recurring-payments/upi/create-subsequent-payments.md b/api/payments/recurring-payments/upi/create-subsequent-payments.md index 1522b1c0..31431a72 100644 --- a/api/payments/recurring-payments/upi/create-subsequent-payments.md +++ b/api/payments/recurring-payments/upi/create-subsequent-payments.md @@ -295,8 +295,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -314,8 +314,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -332,14 +332,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -357,8 +357,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -375,8 +375,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -396,8 +396,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -416,8 +416,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/recurring-payments/wallets/create-authorization-transaction.md b/api/payments/recurring-payments/wallets/create-authorization-transaction.md index f8260823..f79b8206 100644 --- a/api/payments/recurring-payments/wallets/create-authorization-transaction.md +++ b/api/payments/recurring-payments/wallets/create-authorization-transaction.md @@ -39,9 +39,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -53,9 +53,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -69,9 +69,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -81,9 +81,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -95,15 +95,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -113,9 +113,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -129,9 +129,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -144,9 +144,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1193,15 +1193,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/api/payments/recurring-payments/wallets/create-subsequent-payments.md b/api/payments/recurring-payments/wallets/create-subsequent-payments.md index 15c88e88..e724ed86 100644 --- a/api/payments/recurring-payments/wallets/create-subsequent-payments.md +++ b/api/payments/recurring-payments/wallets/create-subsequent-payments.md @@ -225,8 +225,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -244,8 +244,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -262,14 +262,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -287,8 +287,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -305,8 +305,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -326,8 +326,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -346,8 +346,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/api/payments/route/request-product-config.md b/api/payments/route/request-product-config.md index 4a97d31e..51df3c76 100644 --- a/api/payments/route/request-product-config.md +++ b/api/payments/route/request-product-config.md @@ -116,7 +116,7 @@ body, err := client.Product.RequestProductConfiguration(accountId, data, nil); "settlements":{ "account_number": 7878780080310012, "ifsc_code":"RATN0VAAPIS", - "beneficiary_name":"" + "beneficiary_name":"Gaurav Kumar" } }, "requirements":[ diff --git a/api/payments/route/stakeholder-entity.md b/api/payments/route/stakeholder-entity.md index 2f169760..85cc4aa3 100644 --- a/api/payments/route/stakeholder-entity.md +++ b/api/payments/route/stakeholder-entity.md @@ -18,8 +18,8 @@ The Stakeholder entity has the following parameters. "executive":true }, "phone":{ - "primary":"", - "secondary":"" + "primary":"+919876543210", + "secondary":"+919876543210" }, "notes":[ @@ -28,8 +28,8 @@ The Stakeholder entity has the following parameters. "pan":"AVOPB1111K" }, "id":"sth_GLGgm8fFCKc92m", - "name":"", - "email":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", "percentage_ownership":null, "addresses":{ "residential":{ diff --git a/api/payments/subscriptions-custom.md b/api/payments/subscriptions-custom.md index 5ecb202d..c523c025 100644 --- a/api/payments/subscriptions-custom.md +++ b/api/payments/subscriptions-custom.md @@ -779,8 +779,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "notes_key_2":"Tea, Earl Grey… decaf." }, "notify_info":{ - "notify_phone": "", - "notify_email": "" + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com" } }' @@ -808,8 +808,8 @@ notes.Add("notes_key_1", "Tea, Earl Grey, Hot"); notes.Add("notes_key_2", "Tea, Earl Grey… decaf."); subscriptionRequest.Add("notes", notes); Dictionary notifyInfo = new Dictionary(); -notifyInfo.Add("notify_phone", ""); -notifyInfo.Add("notify_email", ""); +notifyInfo.Add("notify_phone", "+919876543210"); +notifyInfo.Add("notify_email", "gaurav.kumar@example.com"); subscriptionRequest.Add("notify_info", notifyInfo); Subscription subscription = client.Subscription.Create(subscriptionRequest); @@ -839,8 +839,8 @@ notes.put("notes_key_1","Tea, Earl Grey, Hot"); notes.put("notes_key_2","Tea, Earl Grey… decaf."); subscriptionRequest.put("notes", notes); JSONObject notifyInfo = new JSONObject(); -notifyInfo.put("notify_phone",""); -notifyInfo.put("notify_email",""); +notifyInfo.put("notify_phone","+919876543210"); +notifyInfo.put("notify_email","gaurav.kumar@example.com"); subscriptionRequest.put("notify_info",notifyInfo); Subscription subscription = razorpay.subscriptions.create(subscriptionRequest); @@ -848,7 +848,7 @@ Subscription subscription = razorpay.subscriptions.create(subscriptionRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->subscription->create(array('plan_id' => 'plan_HoYg68p5kmuvzD','total_count' => 12,'quantity' => 1,'expire_by' => 1633237807,'customer_notify' => true, 'addons' => array(array('item'=>array('name' => 'Delivery charges','amount' => 30000,'currency' => ''))),'notes'=>array('notes_key_1'=>'Tea, Earl Grey, Hot','notes_key_2'=>'Tea, Earl Grey… decaf.'),'notify_info'=>array('notify_phone' => '','notify_email'=> ''))); +$api->subscription->create(array('plan_id' => 'plan_HoYg68p5kmuvzD','total_count' => 12,'quantity' => 1,'expire_by' => 1633237807,'customer_notify' => true, 'addons' => array(array('item'=>array('name' => 'Delivery charges','amount' => 30000,'currency' => ''))),'notes'=>array('notes_key_1'=>'Tea, Earl Grey, Hot','notes_key_2'=>'Tea, Earl Grey… decaf.'),'notify_info'=>array('notify_phone' => '+919876543210','notify_email'=> 'gaurav.kumar@example.com'))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -873,8 +873,8 @@ instance.subscriptions.create({ notes_key_2: "Tea, Earl Grey… decaf." }, notify_info: { - notify_phone: "", - notify_email: "" + notify_phone: "+919876543210", + notify_email: "gaurav.kumar@example.com" } }) @@ -892,8 +892,8 @@ client.subscription.create({ 'currency': ''}}], 'notes': {'notes_key_1': 'Tea, Earl Grey, Hot', 'notes_key_2': 'Tea, Earl Grey\xe2\x80\xa6 decaf.'}, - 'notify_info': {'notify_phone': '', - 'notify_email': ''} + 'notify_info': {'notify_phone': '+919876543210', + 'notify_email': 'gaurav.kumar@example.com'} }) ```ruby: Ruby @@ -920,8 +920,8 @@ para_attr = { "notes_key_2": "Tea, Earl Grey… decaf." }, "notify_info": { - "notify_phone": "", - "notify_email": "" + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com" } } @@ -953,8 +953,8 @@ data := map[string]interface{}{ "notes_key_2":"Tea, Earl Grey… decaf.", }, "notify_info":map[string]interface{}{ - "notify_phone": "", - "notify_email": "", + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com", }, } body, err := client.Subscription.Create(data, nil) diff --git a/api/payments/subscriptions/create-subscription-link.md b/api/payments/subscriptions/create-subscription-link.md index 26850648..f5f759b2 100644 --- a/api/payments/subscriptions/create-subscription-link.md +++ b/api/payments/subscriptions/create-subscription-link.md @@ -37,8 +37,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "notes_key_2":"Tea, Earl Grey… decaf." }, "notify_info":{ - "notify_phone": "", - "notify_email": "" + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com" } }' @@ -66,8 +66,8 @@ notes.Add("notes_key_1", "Tea, Earl Grey, Hot"); notes.Add("notes_key_2", "Tea, Earl Grey… decaf."); subscriptionRequest.Add("notes", notes); Dictionary notifyInfo = new Dictionary(); -notifyInfo.Add("notify_phone", ""); -notifyInfo.Add("notify_email", ""); +notifyInfo.Add("notify_phone", "+919876543210"); +notifyInfo.Add("notify_email", "gaurav.kumar@example.com"); subscriptionRequest.Add("notify_info", notifyInfo); Subscription subscription = client.Subscription.Create(subscriptionRequest); @@ -97,8 +97,8 @@ notes.put("notes_key_1","Tea, Earl Grey, Hot"); notes.put("notes_key_2","Tea, Earl Grey… decaf."); subscriptionRequest.put("notes", notes); JSONObject notifyInfo = new JSONObject(); -notifyInfo.put("notify_phone",""); -notifyInfo.put("notify_email",""); +notifyInfo.put("notify_phone","+919876543210"); +notifyInfo.put("notify_email","gaurav.kumar@example.com"); subscriptionRequest.put("notify_info",notifyInfo); Subscription subscription = razorpay.subscriptions.create(subscriptionRequest); @@ -106,7 +106,7 @@ Subscription subscription = razorpay.subscriptions.create(subscriptionRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->subscription->create(array('plan_id' => 'plan_HoYg68p5kmuvzD','total_count' => 12,'quantity' => 1,'expire_by' => 1633237807,'customer_notify' => true, 'addons' => array(array('item'=>array('name' => 'Delivery charges','amount' => 30000,'currency' => ''))),'notes'=>array('notes_key_1'=>'Tea, Earl Grey, Hot','notes_key_2'=>'Tea, Earl Grey… decaf.'),'notify_info'=>array('notify_phone' => '','notify_email'=> ''))); +$api->subscription->create(array('plan_id' => 'plan_HoYg68p5kmuvzD','total_count' => 12,'quantity' => 1,'expire_by' => 1633237807,'customer_notify' => true, 'addons' => array(array('item'=>array('name' => 'Delivery charges','amount' => 30000,'currency' => ''))),'notes'=>array('notes_key_1'=>'Tea, Earl Grey, Hot','notes_key_2'=>'Tea, Earl Grey… decaf.'),'notify_info'=>array('notify_phone' => '+919876543210','notify_email'=> 'gaurav.kumar@example.com'))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -131,8 +131,8 @@ instance.subscriptions.create({ notes_key_2: "Tea, Earl Grey… decaf." }, notify_info: { - notify_phone: "", - notify_email: "" + notify_phone: "+919876543210", + notify_email: "gaurav.kumar@example.com" } }) @@ -150,8 +150,8 @@ client.subscription.create({ 'currency': ''}}], 'notes': {'notes_key_1': 'Tea, Earl Grey, Hot', 'notes_key_2': 'Tea, Earl Grey\xe2\x80\xa6 decaf.'}, - 'notify_info': {'notify_phone': '', - 'notify_email': ''} + 'notify_info': {'notify_phone': '+919876543210', + 'notify_email': 'gaurav.kumar@example.com'} }) ```ruby: Ruby @@ -178,8 +178,8 @@ para_attr = { "notes_key_2": "Tea, Earl Grey… decaf." }, "notify_info": { - "notify_phone": "", - "notify_email": "" + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com" } } @@ -211,8 +211,8 @@ data := map[string]interface{}{ "notes_key_2":"Tea, Earl Grey… decaf.", }, "notify_info":map[string]interface{}{ - "notify_phone": "", - "notify_email": "", + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com", }, } body, err := client.Subscription.Create(data, nil) diff --git a/api/payments/subscriptions/fetch-invoices.md b/api/payments/subscriptions/fetch-invoices.md index 80eb9356..cf36968a 100644 --- a/api/payments/subscriptions/fetch-invoices.md +++ b/api/payments/subscriptions/fetch-invoices.md @@ -81,14 +81,14 @@ List subscription = client.Invoice.All(param); "customer_details": { "id": "cust_00000000000001", "name": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, "customer_name": null, - "customer_email": "", - "customer_contact": "" + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_00000000000002", "subscription_id": "sub_00000000000001", @@ -158,14 +158,14 @@ List subscription = client.Invoice.All(param); "customer_details": { "id": "cust_00000000000001", "name": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, "customer_name": null, - "customer_email": "", - "customer_contact": "" + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_00000000000001", "subscription_id": "sub_00000000000001", diff --git a/api/payments/subscriptions/link-offer.md b/api/payments/subscriptions/link-offer.md index c5811f9f..22e799f1 100644 --- a/api/payments/subscriptions/link-offer.md +++ b/api/payments/subscriptions/link-offer.md @@ -37,8 +37,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "notes_key_2":"Tea, Earl Grey… decaf." }, "notify_info":{ - "notify_phone": "", - "notify_email": "" + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com" } }' @@ -66,8 +66,8 @@ notes.Add("notes_key_1", "Tea, Earl Grey, Hot"); notes.Add("notes_key_2", "Tea, Earl Grey… decaf."); subscriptionRequest.Add("notes", notes); Dictionary notifyInfo = new Dictionary(); -notifyInfo.Add("notify_phone", ""); -notifyInfo.Add("notify_email", ""); +notifyInfo.Add("notify_phone", "+919876543210"); +notifyInfo.Add("notify_email", "gaurav.kumar@example.com"); subscriptionRequest.Add("notify_info", notifyInfo); Subscription subscription = client.Subscription.Create(subscriptionRequest); @@ -97,8 +97,8 @@ notes.put("notes_key_1","Tea, Earl Grey, Hot"); notes.put("notes_key_2","Tea, Earl Grey… decaf."); subscriptionRequest.put("notes", notes); JSONObject notifyInfo = new JSONObject(); -notifyInfo.put("notify_phone",""); -notifyInfo.put("notify_email",""); +notifyInfo.put("notify_phone","+919876543210"); +notifyInfo.put("notify_email","gaurav.kumar@example.com"); subscriptionRequest.put("notify_info",notifyInfo); Subscription subscription = razorpay.subscriptions.create(subscriptionRequest); @@ -106,7 +106,7 @@ Subscription subscription = razorpay.subscriptions.create(subscriptionRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->subscription->create(array('plan_id' => 'plan_HoYg68p5kmuvzD','total_count' => 12,'quantity' => 1,'expire_by' => 1633237807,'customer_notify' => true, 'addons' => array(array('item'=>array('name' => 'Delivery charges','amount' => 30000,'currency' => ''))),'notes'=>array('notes_key_1'=>'Tea, Earl Grey, Hot','notes_key_2'=>'Tea, Earl Grey… decaf.'),'notify_info'=>array('notify_phone' => '','notify_email'=> ''))); +$api->subscription->create(array('plan_id' => 'plan_HoYg68p5kmuvzD','total_count' => 12,'quantity' => 1,'expire_by' => 1633237807,'customer_notify' => true, 'addons' => array(array('item'=>array('name' => 'Delivery charges','amount' => 30000,'currency' => ''))),'notes'=>array('notes_key_1'=>'Tea, Earl Grey, Hot','notes_key_2'=>'Tea, Earl Grey… decaf.'),'notify_info'=>array('notify_phone' => '+919876543210','notify_email'=> 'gaurav.kumar@example.com'))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -131,8 +131,8 @@ instance.subscriptions.create({ notes_key_2: "Tea, Earl Grey… decaf." }, notify_info: { - notify_phone: "", - notify_email: "" + notify_phone: "+919876543210", + notify_email: "gaurav.kumar@example.com" } }) @@ -150,8 +150,8 @@ client.subscription.create({ 'currency': ''}}], 'notes': {'notes_key_1': 'Tea, Earl Grey, Hot', 'notes_key_2': 'Tea, Earl Grey\xe2\x80\xa6 decaf.'}, - 'notify_info': {'notify_phone': '', - 'notify_email': ''} + 'notify_info': {'notify_phone': '+919876543210', + 'notify_email': 'gaurav.kumar@example.com'} }) ```ruby: Ruby @@ -178,8 +178,8 @@ para_attr = { "notes_key_2": "Tea, Earl Grey… decaf." }, "notify_info": { - "notify_phone": "", - "notify_email": "" + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com" } } @@ -211,8 +211,8 @@ data := map[string]interface{}{ "notes_key_2":"Tea, Earl Grey… decaf.", }, "notify_info":map[string]interface{}{ - "notify_phone": "", - "notify_email": "", + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com", }, } body, err := client.Subscription.Create(data, nil) diff --git a/api/test-doc-api.md b/api/test-doc-api.md new file mode 100644 index 00000000..7a889457 --- /dev/null +++ b/api/test-doc-api.md @@ -0,0 +1,115 @@ +--- +title: Testing doc Api +description: Sandbox setup for testing Razorpay APIs. +--- + +# Testing doc Api + +### Testing Doc + +The Razorpay Sandbox environment allows you to test your integration without using real money. It is a crucial step before going live with your Razorpay integration. + +## Steps + +Follow these steps to set up the sandbox environment. + + +### 1. Generate API Keys + + Follow these [steps to generate API keys](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/authentication.md#generate-api-keys). + + + +### 2. Use Sandbox URL & Client Libraries + + The base URL for the Razorpay Sandbox and production API is the same - `https://api.razorpay.com/v1/`. In case of certain APIs, it is `https://api.razorpay.com/v2`. + + For testing APIs in the sandbox environment, use the test API keys. + + How you use them depends on the programming language and the Razorpay SDK you are using. Refer to the relevant SDK documentation for specific instructions. The SDK documentation will have clear examples of how to initialise the Razorpay client with your Key ID and Key Secret. + + **Client Libraries** + + For Razorpay Payments, the client SDK libraries are available on GitHub. You can use the API keys generated above to try out the API sample codes: + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + + + + +### 3. Go live + + After testing is complete, generate [Live API keys](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/dashboard/account-settings/api-keys.md#live-mode-api-keys) from the dashboard. Ensure to replace the Test API keys in your integration with the Live API keys before going live. You can accept real money payments using the Live API Keys. + + +### Related Information + +- [Understand Razorpay APIs](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/understand.md) +- [Errors](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/errors.md) +- [Best Practices](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/best-practices.md) +- [Glossary](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/glossary.md) diff --git a/api/understand.md b/api/understand.md index b0498946..fdaa22ba 100644 --- a/api/understand.md +++ b/api/understand.md @@ -78,8 +78,8 @@ PATCH | Applies partial modifications to a resource. | [Update Order](https://ra }, "bank": null, "wallet": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": { "address": "Corporate Office" }, diff --git a/partners/aggregators/partner-auth/payment-gateway-import-flow-lrs.md b/partners/aggregators/partner-auth/payment-gateway-import-flow-lrs.md index 902c17de..f8276e9b 100644 --- a/partners/aggregators/partner-auth/payment-gateway-import-flow-lrs.md +++ b/partners/aggregators/partner-auth/payment-gateway-import-flow-lrs.md @@ -289,7 +289,7 @@ curl -u [CLIENT_ID]:[CLIENT_SECRET] \ //This will be Partners Key and Secret. "receipt": "receipt#1", "customer_id": "cust_MpINfSkdEvtdxb", "customer_details": { - "name": "" + "name": "Gaurav Kumar" }, "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -526,9 +526,9 @@ var options = { "order_id": "order_NGrgEcmYJsfUyl", //This is a sample Order ID. Pass the `id` obtained in the response of Step 2. "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information especially their phone number. - "name": "", //your customer's name. - "email": "", - "contact": "" //Provide the customer's phone number for better conversion rates. + "name": "Gaurav Kumar", //your customer's name. + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" //Provide the customer's phone number for better conversion rates. }, "notes": { "invoice_number": "IRS1245", @@ -561,9 +561,9 @@ var options = { alert(response.razorpay_signature) }, "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information, especially their phone number. - "name": "", //your customer's name. - "email": "", - "contact": "" //Provide the customer's phone number for better conversion rates. + "name": "Gaurav Kumar", //your customer's name. + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" //Provide the customer's phone number for better conversion rates. }, "notes": { "invoice_number": "IRS1245", diff --git a/partners/aggregators/partner-auth/payment-gateway-import-flow.md b/partners/aggregators/partner-auth/payment-gateway-import-flow.md index 3a3958fe..cf1a38bb 100644 --- a/partners/aggregators/partner-auth/payment-gateway-import-flow.md +++ b/partners/aggregators/partner-auth/payment-gateway-import-flow.md @@ -580,9 +580,9 @@ var options = { "order_id": "order_NGrgEcmYJsfUyl", //This is a sample Order ID. Pass the `id` obtained in the response of Step 2. "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information especially their phone number. - "name": "", //your customer's name. - "email": "", - "contact": "" //Provide the customer's phone number for better conversion rates. + "name": "Gaurav Kumar", //your customer's name. + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" //Provide the customer's phone number for better conversion rates. }, "notes": { "invoice_number": "IRS1245", @@ -616,9 +616,9 @@ var options = { alert(response.razorpay_signature) }, "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information, especially their phone number. - "name": "", //your customer's name. - "email": "", - "contact": "" //Provide the customer's phone number for better conversion rates. + "name": "Gaurav Kumar", //your customer's name. + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" //Provide the customer's phone number for better conversion rates. }, "notes": { "invoice_number": "IRS1245", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/build-integration.md b/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/build-integration.md index 17c5f6ac..3e3273f0 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/build-integration.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/build-integration.md @@ -657,8 +657,8 @@ Know more about [sample codes for various payment methods](https://raw.githubuse var data = { amount: 1000, // in currency subunits. currency: "",// Default is INR. We support more than 90 currencies. - email: '', - contact: '', + email: 'gaurav.kumar@example.com', + contact: '+919876543210', customer_id: 'cust_MpINfSkdEvtdxb', notes: { "invoice_number": "IRS1245", @@ -690,8 +690,8 @@ var data = { callback_url: 'https://www.examplecallbackurl.com/', amount: 1000, // in currency subunits. currency: "",// Default is INR. We support more than 90 currencies. - email: '', - contact: '', + email: 'gaurav.kumar@example.com', + contact: '+919876543210', customer_id: 'cust_MpINfSkdEvtdxb', notes: { "invoice_number": "IRS1245", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/cards/authorization-transaction.md b/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/cards/authorization-transaction.md index a02db75c..97312010 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/cards/authorization-transaction.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/cards/authorization-transaction.md @@ -24,9 +24,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -38,9 +38,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -54,9 +54,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -66,9 +66,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -80,15 +80,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -129,9 +129,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/cards/tokens.md b/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/cards/tokens.md index 9d8051ad..b1573f50 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/cards/tokens.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/cards/tokens.md @@ -65,8 +65,8 @@ body, err := client.Payment.Fetch("", nil, nil) "bank": null, "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "customer_id": "cust_DtHaBuooGHTuyZ", "token_id": "token_FHfn3rIiM1Z8nr", "notes": { @@ -153,7 +153,7 @@ Razorpay::Customer.fetch(customerId).fetchToken(tokenId) "method": "card", "card": { "entity": "card", - "name": "", + "name": "Gaurav Kumar", "last4": "2002", "network": "Visa", "type": "credit", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/upi-tpv/authorization-transaction.md b/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/upi-tpv/authorization-transaction.md index 940cdeea..edf04fea 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/upi-tpv/authorization-transaction.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/upi-tpv/authorization-transaction.md @@ -24,9 +24,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -38,9 +38,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -54,9 +54,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -66,9 +66,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -80,15 +80,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -129,9 +129,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/upi/authorization-transaction.md b/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/upi/authorization-transaction.md index 9a0b1902..048ad4ed 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/upi/authorization-transaction.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/custom-integration/recurring-payments/upi/authorization-transaction.md @@ -24,9 +24,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -38,9 +38,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -54,9 +54,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -66,9 +66,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -80,15 +80,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -129,9 +129,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/aml.md b/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/aml.md index 937e927c..ea7c8716 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/aml.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/aml.md @@ -39,9 +39,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "customer_id": "cust_OwZZseNBf9Uqsi", "customer_details": { "business_type": "individual", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "individual": { "date_of_birth": { "day": 27, @@ -319,9 +319,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "screening": ["aml"] }, "customer_details": { - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "billing_address": { "line1": "Mantri apartment", "line2": "Koramangala", @@ -756,9 +756,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -d '{ "customer_details": { "type": "individual", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "individual": { "date_of_birth": { "day": 27, @@ -790,9 +790,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "status": "attempted", "attempts": 1, "customer_details": { - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "business_type": "individual", "individual": { "date_of_birth": { diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/cards/authorization-transaction.md b/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/cards/authorization-transaction.md index 6b99c684..136c5143 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/cards/authorization-transaction.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/cards/authorization-transaction.md @@ -32,9 +32,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -46,9 +46,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -62,9 +62,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -74,9 +74,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -88,15 +88,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -106,9 +106,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -122,9 +122,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -137,9 +137,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/cards/tokens.md b/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/cards/tokens.md index 6c7e76c5..0437adde 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/cards/tokens.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/cards/tokens.md @@ -87,8 +87,8 @@ Payment payment = client.Payment.Fetch(paymentId); "bank": null, "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "customer_id": "cust_DtHaBuooGHTuyZ", "token_id": "token_FHfn3rIiM1Z8nr", "notes": { @@ -199,7 +199,7 @@ List token = client.Customer.Fetch(customerId).Tokens(); "method":"card", "card":{ "entity":"card", - "name":"", + "name":"Gaurav Kumar", "last4":"8950", "network":"Visa", "type":"credit", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/upi-tpv/authorization-transaction.md b/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/upi-tpv/authorization-transaction.md index 20df1e5f..a492b9a7 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/upi-tpv/authorization-transaction.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/upi-tpv/authorization-transaction.md @@ -24,9 +24,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -38,9 +38,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -54,9 +54,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -66,9 +66,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -80,15 +80,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -129,9 +129,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/upi/authorization-transaction.md b/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/upi/authorization-transaction.md index 8e855e1a..b31fc21d 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/upi/authorization-transaction.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/s2s-integration/recurring-payments/upi/authorization-transaction.md @@ -24,9 +24,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -38,9 +38,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -54,9 +54,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -66,9 +66,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -80,15 +80,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -129,9 +129,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/aml.md b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/aml.md index f5fb0cbb..9aecaf0c 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/aml.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/aml.md @@ -38,9 +38,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "customer_id": "cust_OwZZseNBf9Uqsi", "customer_details": { "business_type": "individual", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "individual": { "date_of_birth": { "day": 27, diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/build-integration.md b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/build-integration.md index 4fe4f17a..db6469e7 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/build-integration.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/build-integration.md @@ -542,9 +542,9 @@ var options = { "order_id": "order_NGrgEcmYJsfUyl", //This is a sample Order ID. Pass the `id` obtained in the response of Step 1 "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information especially their phone number - "name": "", //your customer's name - "email": "", - "contact": "" //Provide the customer's phone number for better conversion rates + "name": "Gaurav Kumar", //your customer's name + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" //Provide the customer's phone number for better conversion rates }, "notes": { "invoice_number": "IRS1245", @@ -578,9 +578,9 @@ var options = { alert(response.razorpay_signature) }, "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information, especially their phone number - "name": "", //your customer's name - "email": "", - "contact": "" //Provide the customer's phone number for better conversion rates + "name": "Gaurav Kumar", //your customer's name + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" //Provide the customer's phone number for better conversion rates }, "notes": { "invoice_number": "IRS1245", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/cards/authorization-transaction.md b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/cards/authorization-transaction.md index 527df1fa..fe4ef814 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/cards/authorization-transaction.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/cards/authorization-transaction.md @@ -32,9 +32,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -46,9 +46,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -62,9 +62,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -74,9 +74,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -88,15 +88,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -106,9 +106,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -122,9 +122,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -137,9 +137,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/cards/tokens.md b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/cards/tokens.md index e670d917..01cbd3d7 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/cards/tokens.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/cards/tokens.md @@ -83,8 +83,8 @@ Payment payment = client.Payment.Fetch(paymentId); "bank": null, "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "customer_id": "cust_DtHaBuooGHTuyZ", "token_id": "token_FHfn3rIiM1Z8nr", "notes": { @@ -294,7 +294,7 @@ List token = client.Customer.Fetch(customerId).Tokens(); "method":"card", "card":{ "entity":"card", - "name":"", + "name":"Gaurav Kumar", "last4":"8950", "network":"Visa", "type":"credit", @@ -539,7 +539,7 @@ List token = client.Customer.Fetch(customerId).Tokens(); "method":"card", "card":{ "entity":"card", - "name":"", + "name":"Gaurav Kumar", "last4":"7558", "network":"Visa", "type":"credit", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/upi-tpv/authorization-transaction.md b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/upi-tpv/authorization-transaction.md index a50b90b2..a6e4ee00 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/upi-tpv/authorization-transaction.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/upi-tpv/authorization-transaction.md @@ -24,9 +24,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -38,9 +38,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -54,9 +54,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -66,9 +66,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -80,15 +80,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -129,9 +129,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/upi/authorization-transaction.md b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/upi/authorization-transaction.md index 0c53e432..197131bc 100644 --- a/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/upi/authorization-transaction.md +++ b/payments/international-payments/accept-international-payments-from-indian-customers/standard-integration/recurring-payments/upi/authorization-transaction.md @@ -24,9 +24,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -38,9 +38,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -54,9 +54,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -66,9 +66,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -80,15 +80,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -129,9 +129,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/international-payments/currency-conversion.md b/payments/international-payments/currency-conversion.md index f93924e7..4841328d 100644 --- a/payments/international-payments/currency-conversion.md +++ b/payments/international-payments/currency-conversion.md @@ -129,8 +129,8 @@ On the checkout form or when using APIs for Razorpay products such as Orders, Pa "refund_status": null, "description": "Payment at the Dollar Store", "card_id": "card_Donb2wk8eC8EDN", - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": 207, "tax": 0, diff --git a/payments/international-payments/outward-remittances/standard-integration/build-integration.md b/payments/international-payments/outward-remittances/standard-integration/build-integration.md index 4bccf196..be81b2ce 100644 --- a/payments/international-payments/outward-remittances/standard-integration/build-integration.md +++ b/payments/international-payments/outward-remittances/standard-integration/build-integration.md @@ -280,7 +280,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "receipt": "receipt#1", "customer_id": "cust_MpINfSkdEvtdxb", "customer_details": { - "name": "" + "name": "Gaurav Kumar" }, "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -514,9 +514,9 @@ var options = { "order_id": "order_NGrgEcmYJsfUyl", //This is a sample Order ID. Pass the `id` obtained in the response of Step 1 "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information especially their phone number - "name": "", //your customer's name - "email": "", - "contact": "" //Provide the customer's phone number for better conversion rates + "name": "Gaurav Kumar", //your customer's name + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" //Provide the customer's phone number for better conversion rates }, "notes": { "invoice_number": "IRS1245", @@ -549,9 +549,9 @@ var options = { alert(response.razorpay_signature) }, "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information, especially their phone number - "name": "", //your customer's name - "email": "", - "contact": "" //Provide the customer's phone number for better conversion rates + "name": "Gaurav Kumar", //your customer's name + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" //Provide the customer's phone number for better conversion rates }, "notes": { "invoice_number": "IRS1245", @@ -1144,8 +1144,8 @@ Payment payment = client.Payment.Fetch(paymentId); "bank": null, "wallet": null, "vpa": "success@razorpay", - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": { "invoice_number": "order_RAcmPp7jezbvjT", "tcs_amount": 2200, diff --git a/payments/magic-checkout/abandoned-cart.md b/payments/magic-checkout/abandoned-cart.md index f84f1a39..cb56163a 100644 --- a/payments/magic-checkout/abandoned-cart.md +++ b/payments/magic-checkout/abandoned-cart.md @@ -37,7 +37,7 @@ Given below is a sample payload: "platform": "shopify", "token": "a9de14647f2c1e7b58cafeac93c4712c", "cart_token": "c1-68be3bdc331cfec1e79d05d8c4caa7d7", - "email": "", + "email": "gaurav.kumar@example.com", "phone": "+919999999999", "abandoned_checkout_url": "https://magic-checkout-test-store-url", "currency": "", @@ -75,7 +75,7 @@ Given below is a sample payload: } ], "customer": { - "email": "", + "email": "gaurav.kumar@example.com", "first_name": "Gaurav", "last_name": "Kumar", "Shipping_address": { @@ -88,7 +88,7 @@ Given below is a sample payload: "Country": "India", "Zip": "829122", "Phone": "+919999999999", - "Name": "", + "Name": "Gaurav Kumar", "Province_code": "KA", "Country_code": "IN", "Country_name": "India" diff --git a/payments/magic-checkout/android-integration.md b/payments/magic-checkout/android-integration.md index 08e78ae7..19e6e447 100644 --- a/payments/magic-checkout/android-integration.md +++ b/payments/magic-checkout/android-integration.md @@ -526,7 +526,7 @@ Order order = client.Order.Create(orderRequest); { "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 + "email": "gaurav.kumar@example.com", // Email field will be set if the customer enters an email "contact": "+919900000000", // Customer phone number with country code "addresses": [{ "id": "0", @@ -667,7 +667,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "" + "email": "gaurav.kumar@example.com" }' ```json: Response { @@ -726,7 +726,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "code": "500OFF" }' @@ -855,15 +855,15 @@ Order order = client.Order.Create(orderRequest); try { JSONObject options = new JSONObject(); - options.put("name", ""); + 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_DBJOWzybf0sJbb");//from response of step 3. options.put("theme.color", "#3399cc"); options.put("currency", ""); options.put("amount", "50000");//pass amount in currency subunits - options.put("prefill.email", ""); - options.put("prefill.contact",""); + options.put("prefill.email", "gaurav.kumar@example.com"); + options.put("prefill.contact","+919876543210"); c JSONObject retryObj = new JSONObject(); retryObj.put("enabled", true); @@ -901,7 +901,7 @@ Order order = client.Order.Create(orderRequest); options.put("retry", retryObj); val prefill = JSONObject() - prefill.put("email","") + prefill.put("email","gaurav.kumar@example.com") prefill.put("contact","9876543210") options.put("one_click_checkout",true) // magic checkout options.put("show_coupons", true) // magic checkout diff --git a/payments/magic-checkout/apis/coupon-code.md b/payments/magic-checkout/apis/coupon-code.md index 3c8a0bed..98c3ce8c 100644 --- a/payments/magic-checkout/apis/coupon-code.md +++ b/payments/magic-checkout/apis/coupon-code.md @@ -28,7 +28,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] -d '{ "orderId": "FFADADADADASDAS", "contact": "+919000090000", - "email": "" + "email": "gaurav.kumar@example.com" }' ```json: Response { @@ -96,7 +96,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] -d '{ "orderId": "FFADADADADASDAS", "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "cart_value": 1000, "shipping_charge": 24, "cod_charge": 10, diff --git a/payments/magic-checkout/apis/customer-address.md b/payments/magic-checkout/apis/customer-address.md index 6b7ee9c4..3a50fd2a 100644 --- a/payments/magic-checkout/apis/customer-address.md +++ b/payments/magic-checkout/apis/customer-address.md @@ -17,9 +17,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] -H 'content-type : application/json' -d '{ "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "125/12, Rajaji Street,", "line2": "Near Culverton Park", "zipcode": "560068", @@ -30,7 +30,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] "primary": false }, "billing_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "125/12, Rajaji Street,", "line2": "Near Culverton Park", "zipcode": "560068", diff --git a/payments/magic-checkout/capacitor-integration.md b/payments/magic-checkout/capacitor-integration.md index e38b7430..eec6cf1f 100644 --- a/payments/magic-checkout/capacitor-integration.md +++ b/payments/magic-checkout/capacitor-integration.md @@ -518,7 +518,7 @@ Order order = client.Order.Create(orderRequest); { "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 + "email": "gaurav.kumar@example.com", // Email field will be set if the customer enters an email "contact": "+919900000000", // Customer phone number with country code "addresses": [ { @@ -661,7 +661,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "" + "email": "gaurav.kumar@example.com" }' ```json: Response { @@ -722,7 +722,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "code": "500OFF" }' @@ -871,7 +871,7 @@ Order order = client.Order.Create(orderRequest); currency: '', name: 'Acme Corp', prefill: { - email: '', + email: 'gaurav.kumar@example.com', contact: '9000090000' }, theme: { diff --git a/payments/magic-checkout/flutter-integration.md b/payments/magic-checkout/flutter-integration.md index 842aed41..cf65548e 100644 --- a/payments/magic-checkout/flutter-integration.md +++ b/payments/magic-checkout/flutter-integration.md @@ -555,7 +555,7 @@ Order order = client.Order.Create(orderRequest); { "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 + "email": "gaurav.kumar@example.com", // Email field will be set if the customer enters an email "contact": "+919900000000", // Customer phone number with country code "addresses": [ { @@ -698,7 +698,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "" + "email": "gaurav.kumar@example.com" }' ```json: Response { @@ -759,7 +759,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "code": "500OFF" }' @@ -869,13 +869,13 @@ Order order = client.Order.Create(orderRequest); 'key': '', 'amount': 50000, 'currency': '', - 'name': '', + 'name': 'Gaurav Kumar', 'order_id': 'order_EMBFqjDHEEn80l', // Generate order_id using Orders API 'description': 'Fine T-Shirt', 'timeout': 60, // in seconds 'prefill': { - 'contact': '', - 'email': '' + 'contact': '+919876543210', + 'email': 'gaurav.kumar@example.com' }, 'one_click_checkout': true, // magic checkout 'show_coupons': true // magic checkout diff --git a/payments/magic-checkout/ios-integration.md b/payments/magic-checkout/ios-integration.md index f8b89449..429a5de1 100644 --- a/payments/magic-checkout/ios-integration.md +++ b/payments/magic-checkout/ios-integration.md @@ -563,7 +563,7 @@ Order order = client.Order.Create(orderRequest); { "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 + "email": "gaurav.kumar@example.com", // Email field will be set if the customer enters an email "contact": "+919900000000", // Customer phone number with country code "addresses": [{ "id": "0", @@ -704,7 +704,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "" + "email": "gaurav.kumar@example.com" }' ```json: Response { @@ -763,7 +763,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "code": "500OFF" }' @@ -881,8 +881,8 @@ Order order = client.Order.Create(orderRequest); "image": "https://url-to-image.jpg", "name": "business or product name", "prefill": [ - "contact": "", - "email": "" + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" ], "one_click_checkout": true, //magic checkout "show_coupons": true, //magic checkout @@ -904,8 +904,8 @@ Order order = client.Order.Create(orderRequest); @"description": @"purchase description", @"order_id": @"order_4xbQrmEoA5WJ0G", @"prefill" : @{ - @"email": @"", - @"contact": @"" + @"email": @"gaurav.kumar@example.com", + @"contact": @"+919876543210" }, @"one_click_checkout": @"true", //magic checkout @"show_coupons": @"true", //magic checkout diff --git a/payments/magic-checkout/react-native-android-integration.md b/payments/magic-checkout/react-native-android-integration.md index ef65ca4b..0262e6c4 100644 --- a/payments/magic-checkout/react-native-android-integration.md +++ b/payments/magic-checkout/react-native-android-integration.md @@ -523,7 +523,7 @@ Order order = client.Order.Create(orderRequest); { "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 + "email": "gaurav.kumar@example.com", // Email field will be set if the customer enters an email "contact": "+919900000000", // Customer phone number with country code "addresses": [{ "id": "0", @@ -664,7 +664,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "" + "email": "gaurav.kumar@example.com" }' ```json: Response { @@ -723,7 +723,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "code": "500OFF" }' @@ -851,9 +851,9 @@ Order order = client.Order.Create(orderRequest); name: 'Acme Corp', order_id: 'order_DslnoIgkIDL8Zt',//Replace this with an order_id created using Orders API. prefill: { - email: '', + email: 'gaurav.kumar@example.com', contact: '9191919191', - name: '' + name: 'Gaurav Kumar' }, one_click_checkout: true, // magic checkout show_coupons: true, // magic checkout diff --git a/payments/magic-checkout/react-native-ios-integration.md b/payments/magic-checkout/react-native-ios-integration.md index 275abf8a..d348ebc7 100644 --- a/payments/magic-checkout/react-native-ios-integration.md +++ b/payments/magic-checkout/react-native-ios-integration.md @@ -537,7 +537,7 @@ Order order = client.Order.Create(orderRequest); { "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 + "email": "gaurav.kumar@example.com", // Email field will be set if the customer enters an email "contact": "+919900000000", // Customer phone number with country code "addresses": [{ "id": "0", @@ -678,7 +678,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "" + "email": "gaurav.kumar@example.com" }' ```json: Response { @@ -737,7 +737,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "code": "500OFF" }' @@ -862,9 +862,9 @@ Order order = client.Order.Create(orderRequest); name: 'Acme Corp', order_id: 'order_DslnoIgkIDL8Zt',// Replace this with an order_id created using Orders API. prefill: { - email: '', + email: 'gaurav.kumar@example.com', contact: '9191919191', - name: '' + name: 'Gaurav Kumar' }, one_click_checkout: true, // magic checkout show_coupons: true, // magic checkout diff --git a/payments/magic-checkout/rto-intelligence.md b/payments/magic-checkout/rto-intelligence.md index ad87bcd7..716fa947 100644 --- a/payments/magic-checkout/rto-intelligence.md +++ b/payments/magic-checkout/rto-intelligence.md @@ -95,11 +95,11 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "shipping_fee": 100, "cod_fee": 100, "customer_details": { - "name": "", + "name": "Gaurav Kumar", "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "84th floor, Millennium Tower", "line2": "2nd main", "zipcode": "560000", @@ -111,7 +111,7 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "landmark": "XYZ Hospital" }, "billing_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "84th floor, Millennium Tower", "line2": "2nd main", "zipcode": "560000", @@ -184,12 +184,12 @@ Pass the `order_id` received in response in the subsequent API calls as the iden paymentRequest.put("cod_fee", "100"); JSONObject customerDetails = new JSONObject(); - customerDetails.put("name", ""); - customerDetails.put("email", ""); + customerDetails.put("name", "Gaurav Kumar"); + customerDetails.put("email", "gaurav.kumar@example.com"); customerDetails.put("contact", "+919000090000"); JSONObject shippingAddress = new JSONObject(); - shippingAddress.put("name", ""); + shippingAddress.put("name", "Gaurav Kumar"); shippingAddress.put("line1", "84th floor, Millennium Tower"); shippingAddress.put("line2", "2nd main"); shippingAddress.put("zipcode", "560000"); @@ -200,7 +200,7 @@ Pass the `order_id` received in response in the subsequent API calls as the iden shippingAddress.put("landmark", "XYZ Hospital"); JSONObject billingAddress = new JSONObject(); - billingAddress.put("name", ""); + billingAddress.put("name", "Gaurav Kumar"); billingAddress.put("line1", "84th floor, Millennium Tower"); billingAddress.put("line2", "2nd main"); billingAddress.put("zipcode", "560000"); @@ -274,11 +274,11 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "shipping_fee": 100, "cod_fee": 100, "customer_details": { - "name": "", + "name": "Gaurav Kumar", "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "84th floor, Millennium Tower", "line2": "2nd main", "zipcode": "560000", @@ -290,7 +290,7 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "landmark": "XYZ Hospital" }, "billing_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "84th floor, Millennium Tower", "line2": "2nd main", "zipcode": "560000", @@ -357,11 +357,11 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "shipping_fee": 100, "cod_fee": 100, "customer_details": map[string]interface{}{ - "name": "", + "name": "Gaurav Kumar", "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "shipping_address": map[string]interface{}{ - "name": "", + "name": "Gaurav Kumar", "line1": "84th floor, Millennium Tower", "line2": "2nd main", "zipcode": "560000", @@ -373,7 +373,7 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "landmark": "XYZ Hospital", }, "billing_address": map[string]interface{}{ - "name": "", + "name": "Gaurav Kumar", "line1": "84th floor, Millennium Tower", "line2": "2nd main", "zipcode": "560000", @@ -441,11 +441,11 @@ Pass the `order_id` received in response in the subsequent API calls as the iden 'shipping_fee' => 100, 'cod_fee' => 100, 'customer_details' => array( - 'name' => '', + 'name' => 'Gaurav Kumar', 'contact' => '+919000090000', - 'email' => '', + 'email' => 'gaurav.kumar@example.com', 'shipping_address' => array( - 'name' => '', + 'name' => 'Gaurav Kumar', 'line1' => '84th floor, Millennium Tower', 'line2' => '2nd main', 'zipcode' => '560000', @@ -457,7 +457,7 @@ Pass the `order_id` received in response in the subsequent API calls as the iden 'landmark' => 'XYZ Hospital', ), 'billing_address' => array( - 'name' => '', + 'name' => 'Gaurav Kumar', 'line1' => '84th floor, Millennium Tower', 'line2' => '2nd main', 'zipcode' => '560000', @@ -524,11 +524,11 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "shipping_fee": 100, "cod_fee": 100, "customer_details": { - "name": "", + "name": "Gaurav Kumar", "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "84th floor, Millennium Tower", "line2": "2nd main", "zipcode": "560000", @@ -540,7 +540,7 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "landmark": "XYZ Hospital" }, "billing_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "84th floor, Millennium Tower", "line2": "2nd main", "zipcode": "560000", @@ -606,11 +606,11 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "shipping_fee": 100, "cod_fee": 100, "customer_details": { - "name": "", + "name": "Gaurav Kumar", "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "84th floor, Millennium Tower", "line2": "2nd main", "zipcode": "560000", @@ -622,7 +622,7 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "landmark": "XYZ Hospital" }, "billing_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "84th floor, Millennium Tower", "line2": "2nd main", "zipcode": "560000", @@ -693,12 +693,12 @@ Pass the `order_id` received in response in the subsequent API calls as the iden paymentRequest.Add("cod_fee", "100"); Dictionary customerDetails = new Dictionary(); - customerDetails.Add("name", ""); - customerDetails.Add("email", ""); + customerDetails.Add("name", "Gaurav Kumar"); + customerDetails.Add("email", "gaurav.kumar@example.com"); customerDetails.Add("contact", "+919000090000"); Dictionary shippingAddress = new Dictionary(); - shippingAddress.Add("name", ""); + shippingAddress.Add("name", "Gaurav Kumar"); shippingAddress.Add("line1", "84th floor, Millennium Tower"); shippingAddress.Add("line2", "2nd main"); shippingAddress.Add("zipcode", "560000"); @@ -709,7 +709,7 @@ Pass the `order_id` received in response in the subsequent API calls as the iden shippingAddress.Add("landmark", "XYZ Hospital"); Dictionary billingAddress = new Dictionary(); - billingAddress.Add("name", ""); + billingAddress.Add("name", "Gaurav Kumar"); billingAddress.Add("line1", "84th floor, Millennium Tower"); billingAddress.Add("line2", "2nd main"); billingAddress.Add("zipcode", "560000"); @@ -766,15 +766,15 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "line1": "84th floor, Millennium Tower", "line2": "2nd main", "longitude": null, - "name": "", + "name": "Gaurav Kumar", "state": "Karnataka", "tag": "home", "zipcode": "560000" }, "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "insights": null, - "name": "", + "name": "Gaurav Kumar", "shipping_address": { "city": "Bangalore", "contact": "+919000090000", @@ -784,7 +784,7 @@ Pass the `order_id` received in response in the subsequent API calls as the iden "line1": "84th floor, Millennium Tower", "line2": "2nd main", "longitude": null, - "name": "", + "name": "Gaurav Kumar", "state": "Karnataka", "tag": "home", "zipcode": "560000" diff --git a/payments/magic-checkout/shopify/custom/android-integration.md b/payments/magic-checkout/shopify/custom/android-integration.md index 916eb725..f5edd402 100644 --- a/payments/magic-checkout/shopify/custom/android-integration.md +++ b/payments/magic-checkout/shopify/custom/android-integration.md @@ -394,15 +394,15 @@ Follow the steps given below: try { JSONObject options = new JSONObject(); - options.put("name", ""); + 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_DBJOWzybf0sJbb");//from response of step 3. options.put("theme.color", "#3399cc"); options.put("currency", ""); options.put("amount", "50000");//pass amount in currency subunits - options.put("prefill.email", ""); - options.put("prefill.contact",""); + options.put("prefill.email", "gaurav.kumar@example.com"); + options.put("prefill.contact","+919876543210"); options.put("show_coupons", true); // magic checkout JSONObject retryObj = new JSONObject(); @@ -441,7 +441,7 @@ Follow the steps given below: options.put("retry", retryObj); val prefill = JSONObject() - prefill.put("email","") + prefill.put("email","gaurav.kumar@example.com") prefill.put("contact","9876543210") options.put("show_coupons", true) // magic checkout @@ -1445,10 +1445,10 @@ If 9977665544 is entered, `+91` is added to it as +919977665544. ], "shipping_country": "in", "customer_details": { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "123 Main Street", "city": "Bengaluru", "state": "KARNATAKA", diff --git a/payments/magic-checkout/shopify/custom/capacitor-integration.md b/payments/magic-checkout/shopify/custom/capacitor-integration.md index 41c7aafd..9fe26f0d 100644 --- a/payments/magic-checkout/shopify/custom/capacitor-integration.md +++ b/payments/magic-checkout/shopify/custom/capacitor-integration.md @@ -393,7 +393,7 @@ Follow the steps given below: currency: '', name: 'Acme Corp', prefill: { - email: '', + email: 'gaurav.kumar@example.com', contact: '9000090000' }, theme: { @@ -1467,10 +1467,10 @@ If 9977665544 is entered, `+91` is added to it as +919977665544. ], "shipping_country": "in", "customer_details": { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "123 Main Street", "city": "Bengaluru", "state": "KARNATAKA", diff --git a/payments/magic-checkout/shopify/custom/flutter-integration.md b/payments/magic-checkout/shopify/custom/flutter-integration.md index 24c183da..6ff511fc 100644 --- a/payments/magic-checkout/shopify/custom/flutter-integration.md +++ b/payments/magic-checkout/shopify/custom/flutter-integration.md @@ -404,13 +404,13 @@ Follow the steps given below: 'key': '', 'amount': 50000, 'currency': '', - 'name': '', + 'name': 'Gaurav Kumar', 'order_id': 'order_EMBFqjDHEEn80l', // Generate order_id using Orders API 'description': 'Fine T-Shirt', 'timeout': 60, // in seconds 'prefill': { - 'contact': '', - 'email': '' + 'contact': '+919876543210', + 'email': 'gaurav.kumar@example.com' }, 'show_coupons': true // magic checkout }; @@ -1465,10 +1465,10 @@ If 9977665544 is entered, `+91` is added to it as +919977665544. ], "shipping_country": "in", "customer_details": { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "123 Main Street", "city": "Bengaluru", "state": "KARNATAKA", diff --git a/payments/magic-checkout/shopify/custom/ios-integration.md b/payments/magic-checkout/shopify/custom/ios-integration.md index 4b48185d..70d3aeea 100644 --- a/payments/magic-checkout/shopify/custom/ios-integration.md +++ b/payments/magic-checkout/shopify/custom/ios-integration.md @@ -418,8 +418,8 @@ Follow the steps given below: "image": "https://url-to-image.jpg", "name": "business or product name", "prefill": [ - "contact": "", - "email": "" + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" ], "show_coupons": true, //magic checkout "theme": [ @@ -440,8 +440,8 @@ Follow the steps given below: @"description": @"purchase description", @"order_id": @"order_4xbQrmEoA5WJ0G", @"prefill" : @{ - @"email": @"", - @"contact": @"" + @"email": @"gaurav.kumar@example.com", + @"contact": @"+919876543210" }, @"show_coupons": @"true", //magic checkout @"theme": @{ @@ -1483,10 +1483,10 @@ If 9977665544 is entered, `+91` is added to it as +919977665544. ], "shipping_country": "in", "customer_details": { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "123 Main Street", "city": "Bengaluru", "state": "KARNATAKA", diff --git a/payments/magic-checkout/shopify/custom/react-native-android-integration.md b/payments/magic-checkout/shopify/custom/react-native-android-integration.md index 711b619f..a6ff0584 100644 --- a/payments/magic-checkout/shopify/custom/react-native-android-integration.md +++ b/payments/magic-checkout/shopify/custom/react-native-android-integration.md @@ -380,9 +380,9 @@ Follow the steps given below: name: 'Acme Corp', order_id: 'order_EKwxwAgItmmXdp',//Replace this with order_id from Step 1.2 prefill: { - email: '', - contact: '', - name: '', + email: 'gaurav.kumar@example.com', + contact: '+919876543210', + name: 'Gaurav Kumar', coupon_code: 'MY_COUPON_NAME' // Coupon from your cart to auto-apply (as explained in Step 1.6) }, show_coupons: true, // magic checkout @@ -1374,10 +1374,10 @@ If 9977665544 is entered, `+91` is added to it as +919977665544. ], "shipping_country": "in", "customer_details": { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "123 Main Street", "city": "Bengaluru", "state": "KARNATAKA", diff --git a/payments/magic-checkout/shopify/custom/react-native-ios-integration.md b/payments/magic-checkout/shopify/custom/react-native-ios-integration.md index d1f500ab..7f20e07c 100644 --- a/payments/magic-checkout/shopify/custom/react-native-ios-integration.md +++ b/payments/magic-checkout/shopify/custom/react-native-ios-integration.md @@ -399,9 +399,9 @@ Follow the steps given below: name: 'Acme Corp', order_id: 'order_DslnoIgkIDL8Zt',// Replace this with an order_id created using Orders API. prefill: { - email: '', + email: 'gaurav.kumar@example.com', contact: '9191919191', - name: '' + name: 'Gaurav Kumar' }, show_coupons: true, // magic checkout theme: {color: '#53a20e'} @@ -1423,10 +1423,10 @@ If 9977665544 is entered, `+91` is added to it as +919977665544. ], "shipping_country": "in", "customer_details": { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "123 Main Street", "city": "Bengaluru", "state": "KARNATAKA", diff --git a/payments/magic-checkout/shopify/custom/web-integration-nextjs.md b/payments/magic-checkout/shopify/custom/web-integration-nextjs.md index 9d7de19b..493acff1 100644 --- a/payments/magic-checkout/shopify/custom/web-integration-nextjs.md +++ b/payments/magic-checkout/shopify/custom/web-integration-nextjs.md @@ -480,10 +480,10 @@ You must pass these parameters in Checkout to initiate the payment. ], "shipping_country": "in", "customer_details": { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "shipping_address": { - "name": "", + "name": "Gaurav Kumar", "line1": "123 Main Street", "city": "Bengaluru", "state": "KARNATAKA", diff --git a/payments/magic-checkout/web.md b/payments/magic-checkout/web.md index 9fefd753..99d0d0aa 100644 --- a/payments/magic-checkout/web.md +++ b/payments/magic-checkout/web.md @@ -447,7 +447,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // This is the receipt field set in the Razorpay order "razorpay_order_id": "EKwxwAgItmXXXX", // This is the RZP order created without the `order_` prefix - "email": "", // Email field will be set if the customer enters an email + "email": "gaurav.kumar@example.com", // Email field will be set if the customer enters an email "contact": "+919000090000", // Customer phone number with country code "addresses": [{ "id": "0", @@ -589,7 +589,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "" + "email": "gaurav.kumar@example.com" } ```json: Response { @@ -648,7 +648,7 @@ Order order = client.Order.Create(orderRequest); { "order_id": "SomeReceiptValue", // this is the receipt field set in Razorpay order "contact": "+919000090000", - "email": "", + "email": "gaurav.kumar@example.com", "code": "500OFF" } @@ -893,8 +893,8 @@ Order order = client.Order.Create(orderRequest); "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "redirect": "true", "prefill": { // We recommend using the prefill parameter to auto-fill customer's contact information especially their phone number - "name": "", // your customer's name - "email": "", + "name": "Gaurav Kumar", // your customer's name + "email": "gaurav.kumar@example.com", "contact": "9000090000", // Provide the customer's phone number for better conversion rates "coupon_code": "500OFF" // any valid coupon code that gets auto-applied once magic opens }, @@ -924,8 +924,8 @@ Order order = client.Order.Create(orderRequest); alert(response.razorpay_signature) }, "prefill": { // We recommend using the prefill parameter to auto-fill customer's contact information, especially their phone number - "name": "", // your customer's name - "email": "", + "name": "Gaurav Kumar", // your customer's name + "email": "gaurav.kumar@example.com", "contact": "9000090000" // Provide the customer's phone number for better conversion rates }, "notes": { diff --git a/payments/offers/standard-integration.md b/payments/offers/standard-integration.md index cd1b9628..4ed86b29 100644 --- a/payments/offers/standard-integration.md +++ b/payments/offers/standard-integration.md @@ -228,9 +228,9 @@ var options = { alert(response.razorpay_signature) }, "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" diff --git a/payments/payment-gateway/android-integration/custom/build-integration.md b/payments/payment-gateway/android-integration/custom/build-integration.md index 7631acc0..7c91955b 100644 --- a/payments/payment-gateway/android-integration/custom/build-integration.md +++ b/payments/payment-gateway/android-integration/custom/build-integration.md @@ -400,8 +400,8 @@ try { data.put("amount", 50000); // pass in currency subunits. data.put("currency", ""); // pass the currency code. data.put("order_id", "order_DgZ26rHjbzLLY2");//sample order_id. Generate orders using Orders API - data.put("email", ""); - data.put("contact", ""); + data.put("email", "gaurav.kumar@example.com"); + data.put("contact", "+919876543210"); JSONObject notes = new JSONObject(); notes.put("custom_field", "abc"); data.put("notes", notes); @@ -433,7 +433,7 @@ try { "{currency: ''}") payload.put("amount", "50000") payload.put("contact", "9000090000") - payload.put("email", "") + payload.put("email", "gaurav.kumar@example.com") } catch (e: Exception) { e.printStackTrace() } diff --git a/payments/payment-gateway/android-integration/custom/payment-methods.md b/payments/payment-gateway/android-integration/custom/payment-methods.md index 1f428013..4e7fd215 100644 --- a/payments/payment-gateway/android-integration/custom/payment-methods.md +++ b/payments/payment-gateway/android-integration/custom/payment-methods.md @@ -52,11 +52,11 @@ JSONObject data = new JSONObject(); data.put("amount", 29935); data.put("currency", ""); data.put("order_id", "order_DgZ26rHjbzLLY2");//sample order_id. Generate orders using Orders API -data.put("email", ""); -data.put("contact", ""); +data.put("email", "gaurav.kumar@example.com"); +data.put("contact", "+919876543210"); data.put("method", "card"); -data.put("card[name]", ""); -data.put("card[number]", ""); +data.put("card[name]", "Gaurav Kumar"); +data.put("card[number]", "4628 9499 7226 2986"); data.put("card[expiry_month]", "12"); data.put("card[expiry_year]", "30"); data.put("card[cvv]", "100"); @@ -65,11 +65,11 @@ val data = JSONObject() data.put("amount", 29935) data.put("amount", "") data.put("order_id", "order_DgZ26rHjbzLLY2") //sample order_id. Generate orders using Orders API -data.put("email", "") -data.put("contact", "") +data.put("email", "gaurav.kumar@example.com") +data.put("contact", "+919876543210") data.put("method", "card") -data.put("card[name]", "") -data.put("card[number]", "") +data.put("card[name]", "Gaurav Kumar") +data.put("card[number]", "4628 9499 7226 2986") data.put("card[expiry_month]", "12") data.put("card[expiry_year]", "30") data.put("card[cvv]", "100") @@ -91,12 +91,12 @@ The sample code below allows checkout to accept a card payment of ₹3999.35: JSONObject data = new JSONObject(); data.put("amount", 399935); data.put("order_id", "order_DgZ26rHjbzLLY2");//sample order_id. Generate orders using Orders API -data.put("email", ""); -data.put("contact", ""); +data.put("email", "gaurav.kumar@example.com"); +data.put("contact", "+919876543210"); data.put("method", "emi"); data.put("emi_duration", 2); //defines the number of months for the EMI. -data.put("card[name]", ""); -data.put("card[number]", ""); +data.put("card[name]", "Gaurav Kumar"); +data.put("card[number]", "4628 9499 7226 2986"); data.put("card[expiry_month]", "12"); data.put("card[expiry_year]", "30"); data.put("card[cvv]", "100"); @@ -104,12 +104,12 @@ data.put("card[cvv]", "100"); val data = JSONObject() data.put("amount", 399935) data.put("order_id", "order_DgZ26rHjbzLLY2") //sample order_id. Generate orders using Orders API -data.put("email", "") -data.put("contact", "") +data.put("email", "gaurav.kumar@example.com") +data.put("contact", "+919876543210") data.put("method", "emi") data.put("emi_duration", 2) //defines the number of months for the EMI. -data.put("card[name]", "") -data.put("card[number]", "") +data.put("card[name]", "Gaurav Kumar") +data.put("card[number]", "4628 9499 7226 2986") data.put("card[expiry_month]", "12") data.put("card[expiry_year]", "30") data.put("card[cvv]", "100") @@ -152,17 +152,17 @@ The sample code below allows checkout to accept a card payment of ₹5999.35: ```java: Java JSONObject payload = new JSONObject("{\"currency\":\"\"}"); payload.put("amount", 599935); -payload.put("contact", ""); +payload.put("contact", "+919876543210"); payload.put("order_id", "order_9A33XWu170gUtm"); -payload.put("email", ""); +payload.put("email", "gaurav.kumar@example.com"); payload.put("method", "cardless_emi"); payload.put("provider", "walnut369"); ```kotlin: Kotlin val payload = JSONObject("{\"currency\":\"\"}") payload.put("amount", 599935) -payload.put("contact", "") +payload.put("contact", "+919876543210") payload.put("order_id", "order_9A33XWu170gUtm") -payload.put("email", "") +payload.put("email", "gaurav.kumar@example.com") payload.put("method", "cardless_emi") payload.put("provider", "walnut369") ``` @@ -180,16 +180,16 @@ The sample code shown below allows the checkout to perform a netbanking transact JSONObject data = new JSONObject(); data.put("amount", 29935); data.put("order_id", "order_DgZ26rHjbzLLY2");//sample order_id. Generate orders using Orders API -data.put("email", ""); -data.put("contact", ""); +data.put("email", "gaurav.kumar@example.com"); +data.put("contact", "+919876543210"); data.put("method", "netbanking"); data.put("bank", "SBIN"); ```kotlin: Kotlin val data = JSONObject() data.put("amount", 29935) data.put("order_id", "order_DgZ26rHjbzLLY2") //sample order_id. Generate orders using Orders API -data.put("email", "") -data.put("contact", "") +data.put("email", "gaurav.kumar@example.com") +data.put("contact", "+919876543210") data.put("method", "netbanking") data.put("bank", "SBIN") ``` @@ -208,17 +208,17 @@ Use the sample code given below: ```java: Java JSONObject payload = new JSONObject("{\"currency\":\"\"}"); payload.put("amount",5000); -payload.put("contact",""); +payload.put("contact","+919876543210"); payload.put("order_id","order_9A33XWu170gUtm"); -payload.put("email", ""); +payload.put("email", "gaurav.kumar@example.com"); payload.put("method", "paylater"); payload.put("provider", "lazypay"); ```kotlin: Kotlin val payload = JSONObject("{\"currency\":\"\"}") payload.put("amount", 5000) -payload.put("contact", "") +payload.put("contact", "+919876543210") payload.put("order_id", "order_9A33XWu170gUtm") -payload.put("email", "") +payload.put("email", "gaurav.kumar@example.com") payload.put("method", "paylater") payload.put("provider", "lazypay") ``` @@ -237,16 +237,16 @@ The sample code shown below allows the checkout to perform a wallet transaction JSONObject data = new JSONObject(); data.put("amount", 29935); data.put("order_id", "order_DgZ26rHjbzLLY2");//sample order_id. Generate orders using Orders API -data.put("email", ""); -data.put("contact", ""); +data.put("email", "gaurav.kumar@example.com"); +data.put("contact", "+919876543210"); data.put("method", "wallet"); data.put("wallet", "mobikwik"); ```kotlin: Kotlin val data = JSONObject() data.put("amount", 29935) data.put("order_id", "order_DgZ26rHjbzLLY2") //sample order_id. Generate orders using Orders API -data.put("email", "") -data.put("contact", "") +data.put("email", "gaurav.kumar@example.com") +data.put("contact", "+919876543210") data.put("method", "wallet") data.put("wallet", "mobikwik") ``` @@ -367,8 +367,8 @@ To implement this flow: JSONObject data = new JSONObject(); data.put("amount", 29935); data.put("order_id", "order_DgZ26rHjbzLLY2");//sample order_id. Generate orders using Orders API - data.put("email", ""); - data.put("contact", ""); + 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", "in.org.npci.upiapp"); //For BHIM app @@ -376,8 +376,8 @@ To implement this flow: val data = JSONObject() data.put("amount", 29935) data.put("order_id", "order_DgZ26rHjbzLLY2") //sample order_id. Generate orders using Orders API - data.put("email", "") - data.put("contact", "") + 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", "in.org.npci.upiapp") //For BHIM app @@ -388,8 +388,8 @@ To implement this flow: ```java: Java JSONObject data = new JSONObject("{currency: ''}"); data.put("amount", "10000"); - data.put("contact", ""); - data.put("email", ""); + data.put("contact", "+919876543210"); + data.put("email", "gaurav.kumar@example.com"); data.put("order_id", "order_DgZ26rHjbzLLY2");// mandatory for UPI Autopay payments data.put("customer_id", "cust_805c8oBQdBGPwS");// mandatory for UPI Autopay payments data.put("recurring", "1"); @@ -400,8 +400,8 @@ To implement this flow: ```kotlin: Kotlin val data = JSONObject("{currency: ''}") data.put("amount", "10000") - data.put("contact", "") - data.put("email", "") + data.put("contact", "+919876543210") + data.put("email", "gaurav.kumar@example.com") data.put("order_id", "order_DgZ26rHjbzLLY2") // mandatory for UPI Autopay payments data.put("customer_id", "cust_805c8oBQdBGPwS") // mandatory for UPI Autopay payments data.put("recurring", "1") @@ -416,8 +416,8 @@ To implement this flow: ```java: Java JSONObject data = new JSONObject("{currency: ''}"); data.put("amount", "10000"); - data.put("contact", ""); - data.put("email", ""); + data.put("contact", "+919876543210"); + data.put("email", "gaurav.kumar@example.com"); data.put("order_id", "order_DgZ26rHjbzLLY2");// mandatory for UPI Autopay payments data.put("customer_id", "cust_805c8oBQdBGPwS");// mandatory for UPI Autopay payments data.put("recurring", "preferred"); @@ -428,8 +428,8 @@ To implement this flow: ```kotlin: Kotlin val data = JSONObject("{currency: ''}") data.put("amount", "10000") - data.put("contact", "") - data.put("email", "") + data.put("contact", "+919876543210") + data.put("email", "gaurav.kumar@example.com") data.put("order_id", "order_DgZ26rHjbzLLY2") // mandatory for UPI Autopay payments data.put("customer_id", "cust_805c8oBQdBGPwS") // mandatory for UPI Autopay payments data.put("recurring", "preferred") @@ -489,16 +489,16 @@ The sample code below sends a collect request to `gaurav.kumar@exampleupi` handl JSONObject data = new JSONObject(); data.put("amount", 29935); data.put("order_id", "order_DgZ26rHjbzLLY2");//sample order_id. Generate orders using Orders API -data.put("email", ""); -data.put("contact", ""); +data.put("email", "gaurav.kumar@example.com"); +data.put("contact", "+919876543210"); data.put("method", "upi"); data.put("vpa", "gaurav.kumar@exampleupi"); ```kotlin: Kotlin val data = JSONObject() data.put("amount", 29935) data.put("order_id", "order_DgZ26rHjbzLLY2") //sample order_id. Generate orders using Orders API -data.put("email", "") -data.put("contact", "") +data.put("email", "gaurav.kumar@example.com") +data.put("contact", "+919876543210") data.put("method", "upi") data.put("vpa", "gaurav.kumar@exampleupi") ``` @@ -511,7 +511,7 @@ data.put("vpa", "gaurav.kumar@exampleupi") 1. You must collect the customer's phone number from your end. 2. Check if any `vpa` is associated with the given number and get the `vpa_token` for that number using the sample code given below: ```java: Java - razorpay.isValidVpa("", new ValidateVpaCallback() { + razorpay.isValidVpa("+919876543210", new ValidateVpaCallback() { @Override public void onResponse(JSONObject response) { if (response.has("error")) { @@ -529,7 +529,7 @@ data.put("vpa", "gaurav.kumar@exampleupi") } }); ```kotlin: Kotlin - razorpay.isValidVpa("", object : ValidateVpaCallback { + razorpay.isValidVpa("+919876543210", object : ValidateVpaCallback { override fun onResponse(response: JSONObject?) { response?.let { if (it.has("error")) { @@ -552,16 +552,16 @@ data.put("vpa", "gaurav.kumar@exampleupi") JSONObject data = new JSONObject(); data.put("amount", 29935); data.put("order_id", "order_DgZ26rHjbzXXXX");//sample order_id. Generate orders using Orders API - data.put("email", ""); - data.put("contact", ""); + data.put("email", "gaurav.kumar@example.com"); + data.put("contact", "+919876543210"); data.put("method", "upi"); data.put("vpa_token", "f731951149df8903d374b117f921ab41"); ```kotlin: Kotlin val data = JSONObject() data.put("amount", 29935) data.put("order_id", "order_DgZ26rHjbzXXXX") //sample order_id. Generate orders using Orders API - data.put("email", "") - data.put("contact", "") + data.put("email", "gaurav.kumar@example.com") + data.put("contact", "+919876543210") data.put("method", "upi") data.put("vpa_token", "f731951149df8903d374b117f921ab41") ``` diff --git a/payments/payment-gateway/android-integration/standard/integration-steps.md b/payments/payment-gateway/android-integration/standard/integration-steps.md index bcf8f33c..695defb2 100644 --- a/payments/payment-gateway/android-integration/standard/integration-steps.md +++ b/payments/payment-gateway/android-integration/standard/integration-steps.md @@ -357,11 +357,11 @@ You can create an order using: ```java: Java PayloadHelper payloadHelper = new PayloadHelper("", 100, "order_XXXXXXXXX"); - payloadHelper.setName(""); + payloadHelper.setName("Gaurav Kumar"); payloadHelper.setDescription("Description"); - payloadHelper.setPrefillEmail(""); - payloadHelper.setPrefillContact(""); - payloadHelper.setPrefillCardNum(""); + payloadHelper.setPrefillEmail("gaurav.kumar@example.com"); + payloadHelper.setPrefillContact("+919876543210"); + payloadHelper.setPrefillCardNum("4628 9499 7226 2986"); payloadHelper.setPrefillCardCvv("111"); payloadHelper.setPrefillCardExp("11/30"); payloadHelper.setPrefillMethod("card"); @@ -392,11 +392,11 @@ You can create an order using: payloadHelper.setOrderId("order_XXXXXXXXXXXXXX"); ```java: Kotlin val payloadHelper = PayloadHelper("", 100, "order_XXXXXXXXX") - payloadHelper.name = "" + payloadHelper.name = "Gaurav Kumar" payloadHelper.description = "Description" - payloadHelper.prefillEmail = "" - payloadHelper.prefillContact = "" - payloadHelper.prefillCardNum = "" + payloadHelper.prefillEmail = "gaurav.kumar@example.com" + payloadHelper.prefillContact = "+919876543210" + payloadHelper.prefillCardNum = "4628 9499 7226 2986" payloadHelper.prefillCardCvv = "111" payloadHelper.prefillCardExp = "11/30" payloadHelper.prefillMethod = "card" @@ -469,8 +469,8 @@ You can create an order using: options.put("theme.color", "#3399cc"); options.put("currency", ""); options.put("amount", "50000");//pass amount in currency subunits - options.put("prefill.email", ""); - options.put("prefill.contact",""); + options.put("prefill.email", "gaurav.kumar@example.com"); + options.put("prefill.contact","+919876543210"); JSONObject retryObj = new JSONObject(); retryObj.put("enabled", true); retryObj.put("max_count", 4); @@ -507,8 +507,8 @@ You can create an order using: options.put("retry", retryObj); val prefill = JSONObject() - prefill.put("email","") - prefill.put("contact","") + prefill.put("email","gaurav.kumar@example.com") + prefill.put("contact","+919876543210") options.put("prefill",prefill) co.open(activity,options) diff --git a/payments/payment-gateway/capacitor-integration/integration-steps.md b/payments/payment-gateway/capacitor-integration/integration-steps.md index 2f81f8e3..d252a5df 100644 --- a/payments/payment-gateway/capacitor-integration/integration-steps.md +++ b/payments/payment-gateway/capacitor-integration/integration-steps.md @@ -329,8 +329,8 @@ You can create an order using: currency: '', name: 'Acme Corp', prefill: { - email: '', - contact: '' + email: 'gaurav.kumar@example.com', + contact: '+919876543210' }, theme: { color: '#3399cc' diff --git a/payments/payment-gateway/cordova-integration/integration-steps.md b/payments/payment-gateway/cordova-integration/integration-steps.md index 25ffc70d..516b0dc4 100644 --- a/payments/payment-gateway/cordova-integration/integration-steps.md +++ b/payments/payment-gateway/cordova-integration/integration-steps.md @@ -287,38 +287,7 @@ You can create an order using: var rzpOptions = { key: "", amount: "50000", - currency: "", - 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); - }; - ```js: Ionic - payWithRazorpay(){ - var options = { - description: 'Credits towards consultation', - image: 'https://i.imgur.com/3g7nmJC.jpg', - order_id: 'order_DBJOWzybf0sJbb', - currency: '', + currency: "', key:'', amount:'5000', name: 'Acme Corp', diff --git a/payments/payment-gateway/flutter-integration/custom/build-integration.md b/payments/payment-gateway/flutter-integration/custom/build-integration.md index b761ddac..4dbe9266 100644 --- a/payments/payment-gateway/flutter-integration/custom/build-integration.md +++ b/payments/payment-gateway/flutter-integration/custom/build-integration.md @@ -383,8 +383,8 @@ var options = { "key": key, "amount": 29935, "currency": "", - "contact": "", - "email": "", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "order_id": "order_EMBFqjDHEEn80l", // Generate order_id using Orders API "description": "Fine T-Shirt", "method": "card", diff --git a/payments/payment-gateway/flutter-integration/custom/methods.md b/payments/payment-gateway/flutter-integration/custom/methods.md index 2388459a..c4e5b640 100644 --- a/payments/payment-gateway/flutter-integration/custom/methods.md +++ b/payments/payment-gateway/flutter-integration/custom/methods.md @@ -111,8 +111,8 @@ onPressed: () { 'key': key, 'amount': 100, 'currency': '', - 'email': '', - 'contact': '', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'method': 'netbanking', 'bank': 'hdfc' }; diff --git a/payments/payment-gateway/flutter-integration/custom/payment-methods.md b/payments/payment-gateway/flutter-integration/custom/payment-methods.md index 6a2b3b1f..370bd579 100644 --- a/payments/payment-gateway/flutter-integration/custom/payment-methods.md +++ b/payments/payment-gateway/flutter-integration/custom/payment-methods.md @@ -20,8 +20,8 @@ var options = { "key": key, "amount": 29935, "currency": "", - "contact": "", - "email": "", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "order_id": "order_EMBFqjDHEEn80l", // Generate order_id using Orders API, "description": "Fine T-Shirt" "method": "card", diff --git a/payments/payment-gateway/flutter-integration/standard/integration-steps.md b/payments/payment-gateway/flutter-integration/standard/integration-steps.md index 67db966a..317b023f 100644 --- a/payments/payment-gateway/flutter-integration/standard/integration-steps.md +++ b/payments/payment-gateway/flutter-integration/standard/integration-steps.md @@ -352,8 +352,8 @@ You can create an order using: 'description': 'Fine T-Shirt', 'timeout': 60, // in seconds 'prefill': { - 'contact': '', - 'email': '' + 'contact': '+919876543210', + 'email': 'gaurav.kumar@example.com' } }; ``` diff --git a/payments/payment-gateway/ios-integration/standard/integration-steps.md b/payments/payment-gateway/ios-integration/standard/integration-steps.md index a3bde963..3beeac9a 100644 --- a/payments/payment-gateway/ios-integration/standard/integration-steps.md +++ b/payments/payment-gateway/ios-integration/standard/integration-steps.md @@ -334,8 +334,8 @@ You can create an order using: "image": "https://url-to-image.jpg", "name": "business or product name", "prefill": [ - "contact": "", - "email": "" + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" ], "theme": [ "color": "#F37254" @@ -355,8 +355,8 @@ You can create an order using: @"description": @"purchase description", @"order_id": @"order_4xbQrmEoA5WJ0G", @"prefill" : @{ - @"email": @"", - @"contact": @"" + @"email": @"gaurav.kumar@example.com", + @"contact": @"+919876543210" }, @"theme": @{ @"color": @"#F37254" diff --git a/payments/payment-gateway/react-native-integration/standard/integration-steps-android.md b/payments/payment-gateway/react-native-integration/standard/integration-steps-android.md index 167e5088..4082f0c8 100644 --- a/payments/payment-gateway/react-native-integration/standard/integration-steps-android.md +++ b/payments/payment-gateway/react-native-integration/standard/integration-steps-android.md @@ -306,9 +306,9 @@ You can create an order using: name: 'Acme Corp', order_id: 'order_DslnoIgkIDL8Zt',//Replace this with an order_id created using Orders API. prefill: { - email: '', - contact: '', - name: '' + email: 'gaurav.kumar@example.com', + contact: '+919876543210', + name: 'Gaurav Kumar' }, theme: {color: '#53a20e'} } diff --git a/payments/payment-gateway/react-native-integration/standard/integration-steps-ios.md b/payments/payment-gateway/react-native-integration/standard/integration-steps-ios.md index 4e7d455d..da3f2823 100644 --- a/payments/payment-gateway/react-native-integration/standard/integration-steps-ios.md +++ b/payments/payment-gateway/react-native-integration/standard/integration-steps-ios.md @@ -321,9 +321,9 @@ You can create an order using: name: 'Acme Corp', order_id: 'order_DslnoIgkIDL8Zt',//Replace this with an order_id created using Orders API. prefill: { - email: '', - contact: '', - name: '' + email: 'gaurav.kumar@example.com', + contact: '+919876543210', + name: 'Gaurav Kumar' }, theme: {color: '#53a20e'} } diff --git a/payments/payment-gateway/s2s-integration/json/v2/build-integration/ach.md b/payments/payment-gateway/s2s-integration/json/v2/build-integration/ach.md index dba573a5..53b22295 100644 --- a/payments/payment-gateway/s2s-integration/json/v2/build-integration/ach.md +++ b/payments/payment-gateway/s2s-integration/json/v2/build-integration/ach.md @@ -267,12 +267,12 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "amount": 50000, "currency": "", "order_id": "order_GAWN9beXgaqRyO", - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "method": "ach", "bank_account": { "account_number": "000000001234", - "name": "", + "name": "Gaurav Kumar", "bank_code": "122105278", "bank_code_category": "routing_number", "account_type": "personal_savings" @@ -511,8 +511,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "bank": "JP Morgan and Chase", "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": { "merchant_order_id": "M-12345", "source": "pg-router" @@ -528,7 +528,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "bank_transaction_id": "123456789012" }, "bank_account": { - "name": "", + "name": "Gaurav Kumar", "last_4": "xxxxxxx1234", "bank_code": "122105278", "bank_code_category": "routing_number", diff --git a/payments/payment-gateway/s2s-integration/json/v2/build-integration/single-integration-api.md b/payments/payment-gateway/s2s-integration/json/v2/build-integration/single-integration-api.md index fc74bb2d..0a94a24e 100644 --- a/payments/payment-gateway/s2s-integration/json/v2/build-integration/single-integration-api.md +++ b/payments/payment-gateway/s2s-integration/json/v2/build-integration/single-integration-api.md @@ -2067,8 +2067,8 @@ If no value is passed, the refund is processed using the [default speed set on t }, "payment": { "amount": 50000, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "method": "ach", "notes": { "key1": "value3", @@ -2076,7 +2076,7 @@ If no value is passed, the refund is processed using the [default speed set on t }, "bank_account": { "account_number": "000000001234", - "name": "", + "name": "Gaurav Kumar", "bank_code": "122105278", "bank_code_category": "routing_number", "account_type": "personal_savings" @@ -2421,8 +2421,8 @@ If no value is passed, the refund is processed using the [default speed set on t "currency": "", "method": "card", "card": { - "number": "", - "name": "", + "number": "4628 9499 7226 2986", + "name": "Gaurav Kumar", "expiry_month": "11", "expiry_year": "30", "cvv": "100" @@ -2446,8 +2446,8 @@ If no value is passed, the refund is processed using the [default speed set on t "payment": { "method": "card", "card": { - "number": "", - "name": "", + "number": "4628 9499 7226 2986", + "name": "Gaurav Kumar", "expiry_month": "11", "expiry_year": "30", "cvv": "100" diff --git a/payments/payment-gateway/s2s-integration/payment-methods/paypal.md b/payments/payment-gateway/s2s-integration/payment-methods/paypal.md index ec71a2ff..3f79bccb 100644 --- a/payments/payment-gateway/s2s-integration/payment-methods/paypal.md +++ b/payments/payment-gateway/s2s-integration/payment-methods/paypal.md @@ -303,8 +303,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -d '{ "amount": "50000", "currency": "", - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "order_id": "order_EAkbvXiCJlwhHR", "ip": "198.29.65.27", "method": "wallet", @@ -314,7 +314,7 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createPaymentJson(array('amount' => 50000,'currency' => '','email' => '','contact' => '','order_id' => 'order_I6LVPRQ6upW3uh','ip' => '198.29.65.27','method' => 'wallet','wallet' => 'paypal')); +$api->payment->createPaymentJson(array('amount' => 50000,'currency' => '','email' => 'gaurav.kumar@example.com','contact' => '+919876543210','order_id' => 'order_I6LVPRQ6upW3uh','ip' => '198.29.65.27','method' => 'wallet','wallet' => 'paypal')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -324,8 +324,8 @@ instance.payments.createPaymentJson({ currency: "", order_id: "order_EAkbvXiCJlwhHR", ip: "198.29.65.27", - email: "", - contact: "", + email: "gaurav.kumar@example.com", + contact: "+919876543210", method: "wallet", wallet: "paypal" }) @@ -340,8 +340,8 @@ resp = client.payment.createPaymentJson({ "currency": "", "order_id": "order_ItZMEZjpBD6dhT", "ip": "198.29.65.27", - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "method": "wallet", "wallet": "paypal" }) @@ -355,8 +355,8 @@ para_attr := map[string]interface{}{ "currency": "", "order_id": "order_EAkbvXiCJlwhHR", "ip": "198.29.65.27", - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "method": "wallet", "card": "paypal" } diff --git a/payments/payment-gateway/s2s-integration/payment-methods/upi/saved-vpa/build-integration.md b/payments/payment-gateway/s2s-integration/payment-methods/upi/saved-vpa/build-integration.md index 032d2b48..087d27bf 100644 --- a/payments/payment-gateway/s2s-integration/payment-methods/upi/saved-vpa/build-integration.md +++ b/payments/payment-gateway/s2s-integration/payment-methods/upi/saved-vpa/build-integration.md @@ -45,8 +45,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject request = new JSONObject(); -request.put("name", ); -request.put("email", ); +request.put("name", Gaurav Kumar); +request.put("email", gaurav.kumar@example.com); Customer customer = razorpayClient.Customers.create(request); diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/cards/authorization-transaction.md b/payments/payment-gateway/s2s-integration/recurring-payments/cards/authorization-transaction.md index 22fc422b..3b98d49b 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/cards/authorization-transaction.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/cards/authorization-transaction.md @@ -56,9 +56,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -70,9 +70,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -86,9 +86,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -98,9 +98,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -112,15 +112,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -130,9 +130,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -146,9 +146,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -161,9 +161,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -546,15 +546,15 @@ curl -u : \ "customer_id": "cust_4xbQrmEoA5WJ01", "recurring": true, "save": 1, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "method": "card", "card": { "number": "4854980604708430", "cvv": "", "expiry_month": "12", "expiry_year": "30", - "name": "" + "name": "Gaurav Kumar" } }' @@ -713,14 +713,14 @@ curl -u : -H "Content-Type: application/json" \ -d '{ "customer":{ - "name":"", - "email":"", - "contact":"" + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210" }, "type":"link", "amount":"100", "currency":"", - "description":"Registration Link for ", + "description":"Registration Link for Gaurav Kumar", "subscription_registration":{ "method":"card", "max_amount":"1000000", @@ -742,14 +742,14 @@ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET] JSONObject registrationLinkRequest = new JSONObject(); JSONObject customer = new JSONObject(); -customer.put("name",""); -customer.put("email",""); -customer.put("contact",""); +customer.put("name","Gaurav Kumar"); +customer.put("email","gaurav.kumar@example.com"); +customer.put("contact","+919876543210"); registrationLinkRequest.put("customer", customer); registrationLinkRequest.put("type", "link"); registrationLinkRequest.put("amount", 100); registrationLinkRequest.put("currency", ""); -registrationLinkRequest.put("description", "Registration Link for "); +registrationLinkRequest.put("description", "Registration Link for Gaurav Kumar"); JSONObject subscriptionRegistration = new JSONObject(); subscriptionRegistration.put("method","card"); subscriptionRegistration.put("max_amount",1000000); @@ -770,20 +770,20 @@ Invoice invoice = razorpay.invoices.createRegistrationLink(registrationLinkReque ```php: PHP $api = new Api($key_id, $secret); -$api->subscription->createSubscriptionRegistration(array('customer'=>array('name'=>'','email'=>'','contact'=>''),'type'=>'link','amount'=>100,'currency'=>'','description'=>'Registration Link for ','subscription_registration'=>array('method'=>'card','max_amount'=>'1000000','expire_at'=>'1634215992','frequency'=>'monthly'),'receipt'=>'Receipt No. 5','email_notify'=> true,'sms_notify'=>true,'expire_by'=>1634215992, 'notes'=> array('note_key 1'=> 'Beam me up Scotty','note_key 2'=> 'Tea. Earl Gray. Hot.'))); +$api->subscription->createSubscriptionRegistration(array('customer'=>array('name'=>'Gaurav Kumar','email'=>'gaurav.kumar@example.com','contact'=>'+919876543210'),'type'=>'link','amount'=>100,'currency'=>'','description'=>'Registration Link for Gaurav Kumar','subscription_registration'=>array('method'=>'card','max_amount'=>'1000000','expire_at'=>'1634215992','frequency'=>'monthly'),'receipt'=>'Receipt No. 5','email_notify'=> true,'sms_notify'=>true,'expire_by'=>1634215992, 'notes'=> array('note_key 1'=> 'Beam me up Scotty','note_key 2'=> 'Tea. Earl Gray. Hot.'))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.subscriptions.createRegistrationLink({ customer: { - name: "", - email: "", - contact: "" + name: "Gaurav Kumar", + email: "gaurav.kumar@example.com", + contact: "+919876543210" }, type: "link", amount: 100, currency: "", - description: "Registration Link for ", + description: "Registration Link for Gaurav Kumar", subscription_registration: { method: "card", max_amount: 1000000, @@ -803,9 +803,9 @@ instance.subscriptions.createRegistrationLink({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.registration_link.create({ - 'customer': {'name': '', - 'email': '', - 'contact': ''}, + 'customer': {'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210'}, 'type': 'link', 'amount': '100', 'currency': '', @@ -826,14 +826,14 @@ Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { "customer":{ - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "type": "link", "amount": "100", "currency": "", - "description": "Registration Link for ", + "description": "Registration Link for Gaurav Kumar", "subscription_registration":{ "method": "card", "max_amount": "1000000", @@ -858,14 +858,14 @@ client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ "customer":map[string]interface{}{ - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", }, "type":"link", "amount":"100", "currency":"", - "description":"Registration Link for ", + "description":"Registration Link for Gaurav Kumar", "subscription_registration":map[string]interface{}{ "method":"card", "max_amount":"1000000", @@ -889,14 +889,14 @@ RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]") Dictionary registrationLinkRequest = new Dictionary(); Dictionary customer = new Dictionary(); -customer.Add("name", ""); -customer.Add("email", ""); -customer.Add("contact", ""); +customer.Add("name", "Gaurav Kumar"); +customer.Add("email", "gaurav.kumar@example.com"); +customer.Add("contact", "+919876543210"); registrationLinkRequest.Add("customer", customer); registrationLinkRequest.Add("type", "link"); registrationLinkRequest.Add("amount", 100); registrationLinkRequest.Add("currency", ""); -registrationLinkRequest.Add("description", "Registration Link for "); +registrationLinkRequest.Add("description", "Registration Link for Gaurav Kumar"); Dictionary subscriptionRegistration = new Dictionary(); subscriptionRegistration.Add("method", "card"); subscriptionRegistration.Add("max_amount", 1000000); @@ -923,15 +923,15 @@ Invoice invoice = client.Invoice.CreateRegistrationLink(registrationLinkRequest) "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrXGJNngJyEAe", "line_items": [], @@ -955,7 +955,7 @@ Invoice invoice = client.Invoice.CreateRegistrationLink(registrationLinkRequest) "amount_due": 100, "currency": "", "currency_symbol": "₹", - "description": "Registration Link for ", + "description": "Registration Link for Gaurav Kumar", "notes": { "note_key 1": "Beam me up Scotty", "note_key 2": "Tea. Earl Gray. Hot." @@ -1327,15 +1327,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/cards/subsequent-payments.md b/payments/payment-gateway/s2s-integration/recurring-payments/cards/subsequent-payments.md index 4fd5e677..ec777fb5 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/cards/subsequent-payments.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/cards/subsequent-payments.md @@ -241,8 +241,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -260,8 +260,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -278,14 +278,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -303,8 +303,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -321,8 +321,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -342,8 +342,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -362,8 +362,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/cards/tokens.md b/payments/payment-gateway/s2s-integration/recurring-payments/cards/tokens.md index 13cc63f4..f2334949 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/cards/tokens.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/cards/tokens.md @@ -105,8 +105,8 @@ Payment payment = client.Payment.Fetch(paymentId); "bank": null, "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "customer_id": "cust_DtHaBuooGHTuyZ", "token_id": "token_FHfn3rIiM1Z8nr", "notes": { @@ -316,7 +316,7 @@ List token = client.Customer.Fetch(customerId).Tokens(); "method":"card", "card":{ "entity":"card", - "name":"", + "name":"Gaurav Kumar", "last4":"8950", "network":"Visa", "type":"credit", diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/emandate/authorization-transaction.md b/payments/payment-gateway/s2s-integration/recurring-payments/emandate/authorization-transaction.md index 507c3263..b64baed6 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/emandate/authorization-transaction.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/emandate/authorization-transaction.md @@ -72,9 +72,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -86,9 +86,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -102,9 +102,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -114,9 +114,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -128,15 +128,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -146,9 +146,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -162,9 +162,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -177,9 +177,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1893,15 +1893,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/emandate/auto-debit.md b/payments/payment-gateway/s2s-integration/recurring-payments/emandate/auto-debit.md index 740c5195..6d1db271 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/emandate/auto-debit.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/emandate/auto-debit.md @@ -42,9 +42,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -56,9 +56,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -72,9 +72,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -84,9 +84,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -98,15 +98,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -116,9 +116,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -132,9 +132,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -147,9 +147,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -2253,15 +2253,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], @@ -2808,8 +2808,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -2827,8 +2827,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -2845,14 +2845,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -2870,8 +2870,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -2888,8 +2888,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -2909,8 +2909,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -2929,8 +2929,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/emandate/subsequent-payments.md b/payments/payment-gateway/s2s-integration/recurring-payments/emandate/subsequent-payments.md index 9a90e257..0aa481af 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/emandate/subsequent-payments.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/emandate/subsequent-payments.md @@ -193,8 +193,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -212,8 +212,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -230,14 +230,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -255,8 +255,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -273,8 +273,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -294,8 +294,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -314,8 +314,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/authorization-transaction.md b/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/authorization-transaction.md index 578f6305..8c574aa4 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/authorization-transaction.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/authorization-transaction.md @@ -57,9 +57,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -71,9 +71,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -87,9 +87,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -99,9 +99,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -113,15 +113,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -131,9 +131,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -147,9 +147,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -162,9 +162,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/auto-debit.md b/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/auto-debit.md index 2360e62e..3d838a4d 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/auto-debit.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/auto-debit.md @@ -51,9 +51,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -65,9 +65,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -81,9 +81,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -93,9 +93,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -107,15 +107,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -125,9 +125,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -141,9 +141,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -156,9 +156,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1886,8 +1886,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1905,8 +1905,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -1923,14 +1923,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1948,8 +1948,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -1966,8 +1966,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1987,8 +1987,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -2007,8 +2007,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/subsequent-payments.md b/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/subsequent-payments.md index 9a90e257..0aa481af 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/subsequent-payments.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/paper-nach/subsequent-payments.md @@ -193,8 +193,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -212,8 +212,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -230,14 +230,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -255,8 +255,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -273,8 +273,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -294,8 +294,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -314,8 +314,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/upi-intent/authorization-transaction.md b/payments/payment-gateway/s2s-integration/recurring-payments/upi-intent/authorization-transaction.md index d074b8b6..4a242028 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/upi-intent/authorization-transaction.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/upi-intent/authorization-transaction.md @@ -1061,15 +1061,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/upi-otm/collect/authorization-transaction.md b/payments/payment-gateway/s2s-integration/recurring-payments/upi-otm/collect/authorization-transaction.md index 6f6d7f00..1dacaee4 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/upi-otm/collect/authorization-transaction.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/upi-otm/collect/authorization-transaction.md @@ -48,9 +48,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -62,9 +62,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -78,9 +78,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -90,9 +90,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -104,15 +104,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -122,9 +122,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -138,9 +138,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -153,9 +153,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1063,15 +1063,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/upi-otm/intent/authorization-transaction.md b/payments/payment-gateway/s2s-integration/recurring-payments/upi-otm/intent/authorization-transaction.md index bc855e7d..7851b880 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/upi-otm/intent/authorization-transaction.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/upi-otm/intent/authorization-transaction.md @@ -1001,15 +1001,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/upi-reserve-pay/integration-steps.md b/payments/payment-gateway/s2s-integration/recurring-payments/upi-reserve-pay/integration-steps.md index a67ca48a..54f9b5c1 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/upi-reserve-pay/integration-steps.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/upi-reserve-pay/integration-steps.md @@ -38,9 +38,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -52,9 +52,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ 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("name","Gaurav Kumar"); +customerRequest.put("contact","+919876543210"); +customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -68,9 +68,9 @@ import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -80,9 +80,9 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -94,15 +94,15 @@ body, err := client.Customer.Create(data, nil) ```php: PHP $api = new Api($key_id, $secret); -$api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); +$api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); +options.Add("contact", "+919876543210"); +options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -112,9 +112,9 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -128,9 +128,9 @@ Razorpay::Customer.create(para_attr) var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -143,9 +143,9 @@ instance.customers.create({ { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/upi-tpv/authorization-transaction.md b/payments/payment-gateway/s2s-integration/recurring-payments/upi-tpv/authorization-transaction.md index cae87363..9488cf88 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/upi-tpv/authorization-transaction.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/upi-tpv/authorization-transaction.md @@ -29,9 +29,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -43,9 +43,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -59,9 +59,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -71,9 +71,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -85,15 +85,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -103,9 +103,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -119,9 +119,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -134,9 +134,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1265,15 +1265,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/upi-tpv/subsequent-payments.md b/payments/payment-gateway/s2s-integration/recurring-payments/upi-tpv/subsequent-payments.md index 6b64f998..604e9076 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/upi-tpv/subsequent-payments.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/upi-tpv/subsequent-payments.md @@ -228,8 +228,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -247,8 +247,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -265,14 +265,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -290,8 +290,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -308,8 +308,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -329,8 +329,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -349,8 +349,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/upi/authorization-transaction.md b/payments/payment-gateway/s2s-integration/recurring-payments/upi/authorization-transaction.md index adb17c2b..b02afac7 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/upi/authorization-transaction.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/upi/authorization-transaction.md @@ -59,9 +59,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -73,9 +73,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -89,9 +89,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -101,9 +101,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -115,15 +115,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -133,9 +133,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -149,9 +149,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -164,9 +164,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -1198,15 +1198,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], diff --git a/payments/payment-gateway/s2s-integration/recurring-payments/upi/subsequent-payments.md b/payments/payment-gateway/s2s-integration/recurring-payments/upi/subsequent-payments.md index bc569bb7..59d94b27 100644 --- a/payments/payment-gateway/s2s-integration/recurring-payments/upi/subsequent-payments.md +++ b/payments/payment-gateway/s2s-integration/recurring-payments/upi/subsequent-payments.md @@ -193,8 +193,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -212,8 +212,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -230,14 +230,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -255,8 +255,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -273,8 +273,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -294,8 +294,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -314,8 +314,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/payments/payment-gateway/s2s-integration/subscriptions.md b/payments/payment-gateway/s2s-integration/subscriptions.md index feec7ba3..6b4a361f 100644 --- a/payments/payment-gateway/s2s-integration/subscriptions.md +++ b/payments/payment-gateway/s2s-integration/subscriptions.md @@ -772,8 +772,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ "notes_key_2":"Tea, Earl Grey… decaf." }, "notify_info":{ - "notify_phone": "", - "notify_email": "" + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com" } }' @@ -801,8 +801,8 @@ notes.Add("notes_key_1", "Tea, Earl Grey, Hot"); notes.Add("notes_key_2", "Tea, Earl Grey… decaf."); subscriptionRequest.Add("notes", notes); Dictionary notifyInfo = new Dictionary(); -notifyInfo.Add("notify_phone", ""); -notifyInfo.Add("notify_email", ""); +notifyInfo.Add("notify_phone", "+919876543210"); +notifyInfo.Add("notify_email", "gaurav.kumar@example.com"); subscriptionRequest.Add("notify_info", notifyInfo); Subscription subscription = client.Subscription.Create(subscriptionRequest); @@ -832,8 +832,8 @@ notes.put("notes_key_1","Tea, Earl Grey, Hot"); notes.put("notes_key_2","Tea, Earl Grey… decaf."); subscriptionRequest.put("notes", notes); JSONObject notifyInfo = new JSONObject(); -notifyInfo.put("notify_phone",""); -notifyInfo.put("notify_email",""); +notifyInfo.put("notify_phone","+919876543210"); +notifyInfo.put("notify_email","gaurav.kumar@example.com"); subscriptionRequest.put("notify_info",notifyInfo); Subscription subscription = razorpay.subscriptions.create(subscriptionRequest); @@ -841,7 +841,7 @@ Subscription subscription = razorpay.subscriptions.create(subscriptionRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->subscription->create(array('plan_id' => 'plan_HoYg68p5kmuvzD','total_count' => 12,'quantity' => 1,'expire_by' => 1633237807,'customer_notify' => true, 'addons' => array(array('item'=>array('name' => 'Delivery charges','amount' => 30000,'currency' => ''))),'notes'=>array('notes_key_1'=>'Tea, Earl Grey, Hot','notes_key_2'=>'Tea, Earl Grey… decaf.'),'notify_info'=>array('notify_phone' => '','notify_email'=> ''))); +$api->subscription->create(array('plan_id' => 'plan_HoYg68p5kmuvzD','total_count' => 12,'quantity' => 1,'expire_by' => 1633237807,'customer_notify' => true, 'addons' => array(array('item'=>array('name' => 'Delivery charges','amount' => 30000,'currency' => ''))),'notes'=>array('notes_key_1'=>'Tea, Earl Grey, Hot','notes_key_2'=>'Tea, Earl Grey… decaf.'),'notify_info'=>array('notify_phone' => '+919876543210','notify_email'=> 'gaurav.kumar@example.com'))); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) @@ -866,8 +866,8 @@ instance.subscriptions.create({ notes_key_2: "Tea, Earl Grey… decaf." }, notify_info: { - notify_phone: "", - notify_email: "" + notify_phone: "+919876543210", + notify_email: "gaurav.kumar@example.com" } }) @@ -885,8 +885,8 @@ client.subscription.create({ 'currency': ''}}], 'notes': {'notes_key_1': 'Tea, Earl Grey, Hot', 'notes_key_2': 'Tea, Earl Grey\xe2\x80\xa6 decaf.'}, - 'notify_info': {'notify_phone': '', - 'notify_email': ''} + 'notify_info': {'notify_phone': '+919876543210', + 'notify_email': 'gaurav.kumar@example.com'} }) ```ruby: Ruby @@ -913,8 +913,8 @@ para_attr = { "notes_key_2": "Tea, Earl Grey… decaf." }, "notify_info": { - "notify_phone": "", - "notify_email": "" + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com" } } @@ -946,8 +946,8 @@ data := map[string]interface{}{ "notes_key_2":"Tea, Earl Grey… decaf.", }, "notify_info":map[string]interface{}{ - "notify_phone": "", - "notify_email": "", + "notify_phone": "+919876543210", + "notify_email": "gaurav.kumar@example.com", }, } body, err := client.Subscription.Create(data, nil) diff --git a/payments/payment-gateway/web-integration/custom/build-integration.md b/payments/payment-gateway/web-integration/custom/build-integration.md index aa4627ae..0e50a1bc 100644 --- a/payments/payment-gateway/web-integration/custom/build-integration.md +++ b/payments/payment-gateway/web-integration/custom/build-integration.md @@ -483,8 +483,8 @@ Know more about [sample codes for various payment methods](https://raw.githubuse var data = { amount: 1000, // in currency subunits. currency: "",// - email: '', - contact: '', + email: 'gaurav.kumar@example.com', + contact: '+919876543210', notes: { address: 'Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru', }, @@ -514,8 +514,8 @@ var data = { callback_url: 'https://www.examplecallbackurl.com/', amount: 1000, // in currency subunits. currency: "",// - email: '', - contact: '', + email: 'gaurav.kumar@example.com', + contact: '+919876543210', notes: { address: 'Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru', }, diff --git a/payments/payment-gateway/web-integration/custom/features/saved-cards-old.md b/payments/payment-gateway/web-integration/custom/features/saved-cards-old.md index 50bbbe87..0d952503 100644 --- a/payments/payment-gateway/web-integration/custom/features/saved-cards-old.md +++ b/payments/payment-gateway/web-integration/custom/features/saved-cards-old.md @@ -54,9 +54,9 @@ 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": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -68,9 +68,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ 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("name","Gaurav Kumar"); +customerRequest.put("contact","+919876543210"); +customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -84,9 +84,9 @@ import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -99,9 +99,9 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -114,16 +114,16 @@ body, err := client.Customer.Create(data, nil) ```php: PHP $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')); +$api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); +options.Add("contact", "+919876543210"); +options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -133,9 +133,9 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') Razorpay::Customer.create({ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -147,9 +147,9 @@ Razorpay::Customer.create({ var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -162,9 +162,9 @@ instance.customers.create({ { "id" : "cust_1Aa00000000004", "entity": "customer", - "name" : "", - "email" : "", - "contact" : "", + "name" : "Gaurav Kumar", + "email" : "gaurav.kumar@example.com", + "contact" : "+919876543210", "gstin": null, "notes": { "notes_key_1":"Tea, Earl Grey, Hot", diff --git a/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-1.md b/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-1.md index da394bcc..f94bbcf3 100644 --- a/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-1.md +++ b/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-1.md @@ -35,14 +35,14 @@ Use the following code to **Create a Payment**. var razorpay = new Razorpay({ key: "", image: "https://i.imgur.com/n5tjHFD.jpg", - name: "", + name: "Gaurav Kumar", }); var data = { amount: 6666, currency: "", order_id: "order_ISsp1ekSCHgoAw", - email: "", - contact: , + email: "gaurav.kumar@example.com", + contact: +919876543210, notes: { address: "Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru", }, @@ -53,7 +53,7 @@ Use the following code to **Create a Payment**. card[expiry_month]: '11', card[expiry_year]: '23', card[cvv]: '123', - card[name]: '' + card[name]: 'Gaurav Kumar' }; document.getElementById("rzp-button1").onclick = function(){ @@ -438,7 +438,7 @@ After the card is saved, customers can quickly complete the payment for every su var data = { amount: 6666, currency: "", - email: "", + email: "gaurav.kumar@example.com", order_id: "order_ISsp1ekSCHgoAw", contact: 9123456780, notes: { @@ -593,12 +593,12 @@ Given below is the sample code: var razorpay = new Razorpay({ key: "", image: "https://i.imgur.com/n5tjHFD.jpg", - name: "", + name: "Gaurav Kumar", }); var data = { amount: 6666, currency: "", - email: "", + email: "gaurav.kumar@example.com", order_id: "order_ISsp1ekSCHgoAw", contact: 9123456780, notes: { diff --git a/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-2.md b/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-2.md index 4fc122c1..cfb5c6b3 100644 --- a/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-2.md +++ b/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-2.md @@ -26,14 +26,14 @@ Use the following code to **Create a Payment**. var razorpay = new Razorpay({ key: "", image: "https://i.imgur.com/n5tjHFD.jpg", - name: "", + name: "Gaurav Kumar", }); var data = { amount: 6666, currency: "", - email: "", + email: "gaurav.kumar@example.com", order_id: "order_ISsp1ekSCHgoAw", - contact: , + contact: +919876543210, notes: { address: "Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru", }, @@ -44,7 +44,7 @@ Use the following code to **Create a Payment**. card[expiry_month]: '11', card[expiry_year]: '23', card[cvv]: '123', - card[name]: '' + card[name]: 'Gaurav Kumar' }; document.getElementById("rzp-button1").onclick = function(){ @@ -441,12 +441,12 @@ After the card is saved, customers can quickly complete the payment for every su var razorpay = new Razorpay({ key: "", image: "https://i.imgur.com/n5tjHFD.jpg", - name: "", + name: "Gaurav Kumar", }); var data = { amount: 6666, currency: "", - email: "", + email: "gaurav.kumar@example.com", order_id: "order_ISsp1ekSCHgoAW", contact: 9123456780, notes: { diff --git a/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-3.md b/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-3.md index 801b463b..9bba0b32 100644 --- a/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-3.md +++ b/payments/payment-gateway/web-integration/custom/features/saved-cards/scenario-3.md @@ -28,14 +28,14 @@ If you are collecting customer consent, ensure that you pass the following param var razorpay = new Razorpay({ key: "", image: "https://i.imgur.com/n5tjHFD.jpg", - name: "", + name: "Gaurav Kumar", }); var data = { amount: 6666, currency: "", - email: "", + email: "gaurav.kumar@example.com", order_id: "order_ISsp1ekSCHgoAw", - contact: , + contact: +919876543210, notes: { address: "Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru", }, @@ -47,7 +47,7 @@ If you are collecting customer consent, ensure that you pass the following param card[expiry_month]: '11', card[expiry_year]: '23', card[cvv]: '123', - card[name]: '' + card[name]: 'Gaurav Kumar' }; document.getElementById("rzp-button1").onclick = function(){ @@ -79,12 +79,12 @@ If you are not collecting customer consent, ensure that you pass the following p var razorpay = new Razorpay({ key: "", image: "https://i.imgur.com/n5tjHFD.jpg", - name: "", + name: "Gaurav Kumar", }); var data = { amount: 6666, currency: "", - email: "", + email: "gaurav.kumar@example.com", order_id: "order_ISsp1ekSCHgoAw", contact: , notes: { @@ -97,7 +97,7 @@ If you are not collecting customer consent, ensure that you pass the following p card[expiry_month]: '11', card[expiry_year]: '23', card[cvv]: '123', - card[name]: '' + card[name]: 'Gaurav Kumar' }; document.getElementById("rzp-button1").onclick = function(){ diff --git a/payments/payment-gateway/web-integration/custom/features/saved-vpa.md b/payments/payment-gateway/web-integration/custom/features/saved-vpa.md index f510f08c..27fcf0b0 100644 --- a/payments/payment-gateway/web-integration/custom/features/saved-vpa.md +++ b/payments/payment-gateway/web-integration/custom/features/saved-vpa.md @@ -79,8 +79,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject request = new JSONObject(); -request.put("name", ); -request.put("email", ); +request.put("name", Gaurav Kumar); +request.put("email", gaurav.kumar@example.com); Customer customer = razorpayClient.Customers.create(request); diff --git a/payments/payment-gateway/web-integration/standard/configure-payment-methods/sample-code.md b/payments/payment-gateway/web-integration/standard/configure-payment-methods/sample-code.md index ab73fdde..84cbd582 100644 --- a/payments/payment-gateway/web-integration/standard/configure-payment-methods/sample-code.md +++ b/payments/payment-gateway/web-integration/standard/configure-payment-methods/sample-code.md @@ -26,8 +26,8 @@ If you want to list all the payment methods offered by `Axis` bank, allow card p "image": "example.com/image/rzp.jpg", "prefill": { - "email": "", - "contact": , + "email": "gaurav.kumar@example.com", + "contact": +919876543210, }, config: { display: { diff --git a/payments/payment-gateway/web-integration/standard/integration-steps.md b/payments/payment-gateway/web-integration/standard/integration-steps.md index 9c38fc75..e10cefc5 100644 --- a/payments/payment-gateway/web-integration/standard/integration-steps.md +++ b/payments/payment-gateway/web-integration/standard/integration-steps.md @@ -278,9 +278,9 @@ You can create an order using: "order_id": "order_9A33XWu170gUtm", // This is a sample Order ID. Pass the `id` obtained in the response of Step 1 "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information especially their phone number - "name": "", //your customer's name - "email": "", - "contact": "" //Provide the customer's phone number for better conversion rates + "name": "Gaurav Kumar", //your customer's name + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" //Provide the customer's phone number for better conversion rates }, "notes": { "address": "Razorpay Corporate Office" @@ -313,9 +313,9 @@ You can create an order using: alert(response.razorpay_signature) }, "prefill": { //We recommend using the prefill parameter to auto-fill customer's contact information, especially their phone number - "name": "", //your customer's name - "email": "", - "contact": "" //Provide the customer's phone number for better conversion rates + "name": "Gaurav Kumar", //your customer's name + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" //Provide the customer's phone number for better conversion rates }, "notes": { "address": "Razorpay Corporate Office" diff --git a/payments/payment-methods/apple-pay/custom-integration.md b/payments/payment-methods/apple-pay/custom-integration.md index f090a059..f58c6168 100644 --- a/payments/payment-methods/apple-pay/custom-integration.md +++ b/payments/payment-methods/apple-pay/custom-integration.md @@ -65,9 +65,9 @@ The following is a sample API request and response for creating an order: "receipt": "receipt#1111", "partial_payment": false, "customer_details": { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "insights": { "order_count": "22", "chargeback_count": "4", @@ -907,8 +907,8 @@ After creating an order and obtaining the customer's payment details, send the i var data = { amount: 1000, currency: "", - email: '', - contact: '', + email: 'gaurav.kumar@example.com', + contact: '+919876543210', notes: { address: 'Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru', }, @@ -935,8 +935,8 @@ var data = { callback_url: 'https://www.examplecallbackurl.com/', amount: 1000, currency: "", - email: '', - contact: '', + email: 'gaurav.kumar@example.com', + contact: '+919876543210', notes: { address: 'Ground Floor, SJR Cyber, Laskar Hosur Road, Bengaluru', }, diff --git a/payments/payment-methods/apple-pay/s2s-integration.md b/payments/payment-methods/apple-pay/s2s-integration.md index af8f670c..f692ad1a 100644 --- a/payments/payment-methods/apple-pay/s2s-integration.md +++ b/payments/payment-methods/apple-pay/s2s-integration.md @@ -149,9 +149,9 @@ This step demonstrates how to create an Order and process a Payment using Razorp "receipt": "receipt#1111", "partial_payment": false, "customer_details": { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "insights": { "order_count": "22", "chargeback_count": "4", @@ -229,8 +229,8 @@ This step demonstrates how to create an Order and process a Payment using Razorp "key2": "value2" }, "payment": { - "contact": "", - "email": "", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "callback_url": "https://merchant_callback_url..", "method": "card", "app": { @@ -721,9 +721,9 @@ If no value is passed, the refund is processed using the [default speed set on t "receipt": "receipt#1111", "partial_payment": false, "customer_details": { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "insights": { "order_count": "22", "chargeback_count": "4", @@ -1160,8 +1160,8 @@ https://api.razorpay.com/v1/payments/create/json \ -d '{ "amount": 10000, "currency": "", - "contact": "", - "email": "", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "order_id": "order_PrcuyJDT7uSwaf", "callback_url": "https://merchant_callback_url..", "method": "card", diff --git a/payments/payment-methods/bank-transfer.md b/payments/payment-methods/bank-transfer.md index 642422eb..e2f1adbf 100644 --- a/payments/payment-methods/bank-transfer.md +++ b/payments/payment-methods/bank-transfer.md @@ -420,9 +420,9 @@ 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": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -434,9 +434,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ 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("name","Gaurav Kumar"); +customerRequest.put("contact","+919876543210"); +customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -450,9 +450,9 @@ import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -465,9 +465,9 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -480,16 +480,16 @@ body, err := client.Customer.Create(data, nil) ```php: PHP $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')); +$api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); +options.Add("contact", "+919876543210"); +options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -499,9 +499,9 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') Razorpay::Customer.create({ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -513,9 +513,9 @@ Razorpay::Customer.create({ var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -528,9 +528,9 @@ instance.customers.create({ { "id" : "cust_1Aa00000000004", "entity": "customer", - "name" : "", - "email" : "", - "contact" : "", + "name" : "Gaurav Kumar", + "email" : "gaurav.kumar@example.com", + "contact" : "+919876543210", "gstin": null, "notes": { "notes_key_1":"Tea, Earl Grey, Hot", diff --git a/payments/payment-methods/bank-transfer/hosted-integration.md b/payments/payment-methods/bank-transfer/hosted-integration.md index 65eed42e..936ecd89 100644 --- a/payments/payment-methods/bank-transfer/hosted-integration.md +++ b/payments/payment-methods/bank-transfer/hosted-integration.md @@ -449,9 +449,9 @@ 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": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -463,9 +463,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ 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("name","Gaurav Kumar"); +customerRequest.put("contact","+919876543210"); +customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -479,9 +479,9 @@ import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -494,9 +494,9 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -509,16 +509,16 @@ body, err := client.Customer.Create(data, nil) ```php: PHP $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')); +$api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); +options.Add("contact", "+919876543210"); +options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -528,9 +528,9 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') Razorpay::Customer.create({ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -542,9 +542,9 @@ Razorpay::Customer.create({ var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -557,9 +557,9 @@ instance.customers.create({ { "id" : "cust_1Aa00000000004", "entity": "customer", - "name" : "", - "email" : "", - "contact" : "", + "name" : "Gaurav Kumar", + "email" : "gaurav.kumar@example.com", + "contact" : "+919876543210", "gstin": null, "notes": { "notes_key_1":"Tea, Earl Grey, Hot", diff --git a/payments/payment-methods/cards/features/integrate-saved-cards.md b/payments/payment-methods/cards/features/integrate-saved-cards.md index c5f68885..fea29f88 100644 --- a/payments/payment-methods/cards/features/integrate-saved-cards.md +++ b/payments/payment-methods/cards/features/integrate-saved-cards.md @@ -47,9 +47,9 @@ 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": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -61,9 +61,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ 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("name","Gaurav Kumar"); +customerRequest.put("contact","+919876543210"); +customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -77,9 +77,9 @@ import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -92,9 +92,9 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -107,16 +107,16 @@ body, err := client.Customer.Create(data, nil) ```php: PHP $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')); +$api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); +options.Add("contact", "+919876543210"); +options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -126,9 +126,9 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') Razorpay::Customer.create({ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -140,9 +140,9 @@ Razorpay::Customer.create({ var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -155,9 +155,9 @@ instance.customers.create({ { "id" : "cust_1Aa00000000004", "entity": "customer", - "name" : "", - "email" : "", - "contact" : "", + "name" : "Gaurav Kumar", + "email" : "gaurav.kumar@example.com", + "contact" : "+919876543210", "gstin": null, "notes": { "notes_key_1":"Tea, Earl Grey, Hot", @@ -381,9 +381,9 @@ While making the payment, the customer enters card details and can choose to sav "customer_id": "cust_EYqfYOviw62csf", "order_id": "order_DBJOWzybf0sJbb", "prefill":{ - "contact":"", - "email":"", - "name":"" + "contact":"+919876543210", + "email":"gaurav.kumar@example.com", + "name":"Gaurav Kumar" }, "handler": function (response){ alert(response.razorpay_payment_id); @@ -523,8 +523,8 @@ Once the card is saved, customers can complete payments on repeat purchases by o "name": "business or product name", "customer_id":"cust_4lsdkfldlteskf", "prefill": [ - "contact": "", - "email": "" + "contact": "+919876543210", + "email": "gaurav.kumar@example.com" ], "theme": [ "color": "#F37254" @@ -535,8 +535,8 @@ Once the card is saved, customers can complete payments on repeat purchases by o } ```objectivec: Objective C @"amount" : @(2000), - @"email" : @"", - @"contact" : @"", + @"email" : @"gaurav.kumar@example.com", + @"contact" : @"+919876543210", @"customer_id" : @"cust_4lsdkfldlteskf" // And the remaining fields ``` diff --git a/payments/payments.md b/payments/payments.md index 2e28b72f..e957eaef 100644 --- a/payments/payments.md +++ b/payments/payments.md @@ -41,3 +41,4 @@ You can perform the following actions on payments from the Dashboard: - [Test Card Details](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/test-card-details.md) - [Payment Capture Settings](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/capture-settings.md) - [International Payment Support](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/international-payments.md) +- [Testing](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/payments/test.md) diff --git a/payments/payments/test.md b/payments/payments/test.md new file mode 100644 index 00000000..3e24ced9 --- /dev/null +++ b/payments/payments/test.md @@ -0,0 +1,8 @@ +--- +title: Testing +description: Testing +--- + +# Testing + +testing diff --git a/payments/recurring-payments/emandate/charge-customer-during-registration.md b/payments/recurring-payments/emandate/charge-customer-during-registration.md index 90e10b19..a3edab82 100644 --- a/payments/recurring-payments/emandate/charge-customer-during-registration.md +++ b/payments/recurring-payments/emandate/charge-customer-during-registration.md @@ -78,9 +78,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p -X POST https://api.razorpay.com/v1/customers \ -H "Content-Type: application/json" \ -d '{ - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "fail_existing": "0", "notes":{ "note_key_1": "September", @@ -92,9 +92,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p 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("name","Gaurav Kumar"); + customerRequest.put("contact","+919876543210"); + customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -108,9 +108,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - 'name': '', - 'email': '', - 'contact': '', + 'name': 'Gaurav Kumar', + 'email': 'gaurav.kumar@example.com', + 'contact': '+919876543210', 'fail_existing': "0", 'notes': {'note_key_1': 'September', 'note_key_2': 'Make it so.'} }) @@ -120,9 +120,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": , - "email": "", + "name": "Gaurav Kumar", + "contact": +919876543210, + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -134,15 +134,15 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p ```php: PHP $api = new Api($key_id, $secret); - $api->customer->create(array('name' => '', 'email' => '','contact'=>'','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); + $api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','fail_existing' => "0", 'notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); + options.Add("contact", "+919876543210"); + options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -152,9 +152,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -168,9 +168,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -183,9 +183,9 @@ You can create [customers](https://raw.githubusercontent.com/razorpay/razorpay-p { "id":"cust_1Aa00000000001", "entity":"customer", - "name":"", - "email":"", - "contact":"", + "name":"Gaurav Kumar", + "email":"gaurav.kumar@example.com", + "contact":"+919876543210", "gstin":null, "notes":{ "note_key_1":"September", @@ -783,15 +783,15 @@ The following endpoint cancels a registration link. "customer_id": "cust_BMB3EwbqnqZ2EI", "customer_details": { "id": "cust_BMB3EwbqnqZ2EI", - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "gstin": null, "billing_address": null, "shipping_address": null, - "customer_name": "", - "customer_email": "", - "customer_contact": "" + "customer_name": "Gaurav Kumar", + "customer_email": "gaurav.kumar@example.com", + "customer_contact": "+919876543210" }, "order_id": "order_FHrfRw4TZU5Q2L", "line_items": [], @@ -1359,8 +1359,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/create/recurring \ -H "Content-Type: application/json" \ -d '{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1378,8 +1378,8 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ RazorpayClient razorpay = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); JSONObject paymentRequest = new JSONObject(); -paymentRequest.put("email", ""); -paymentRequest.put("contact", ""); +paymentRequest.put("email", "gaurav.kumar@example.com"); +paymentRequest.put("contact", "+919876543210"); paymentRequest.put("amount", 1000); paymentRequest.put("currency", ""); paymentRequest.put("order_id", "order_1Aa00000000002"); @@ -1396,14 +1396,14 @@ Payment payment = razorpay.payments.createRecurringPayment(paymentRequest); ```php: PHP $api = new Api($key_id, $secret); -$api->payment->createRecurring(array('email'=>'','contact'=>'','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); +$api->payment->createRecurring(array('email'=>'gaurav.kumar@example.com','contact'=>'+919876543210','amount'=>100,'currency'=>'','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>true,'description'=>'Creating recurring payment for Gaurav Kumar')); ```javascript: Node.js var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.payments.createRecurringPayment({ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1421,8 +1421,8 @@ instance.payments.createRecurringPayment({ client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.payment.createRecurring({ - 'email': '', - 'contact': , + 'email': 'gaurav.kumar@example.com', + 'contact': +919876543210, 'amount': 1000, 'currency': '', 'order_id': "order_1Aa00000000002", @@ -1439,8 +1439,8 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') para_attr = { - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1460,8 +1460,8 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data:= map[string]interface{}{ - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "amount": 1000, "currency": "", "order_id": "order_1Aa00000000002", @@ -1480,8 +1480,8 @@ body, err := Client.Payment.CreateRecurringPayment(data, nil) RazorpayClient client = new RazorpayClient("[YOUR_KEY_ID]", "[YOUR_KEY_SECRET]"); Dictionary paymentRequest = new Dictionary(); -paymentRequest.Add("email", ""); -paymentRequest.Add("contact", ""); +paymentRequest.Add("email", "gaurav.kumar@example.com"); +paymentRequest.Add("contact", "+919876543210"); paymentRequest.Add("amount", 1000); paymentRequest.Add("currency", ""); paymentRequest.Add("order_id", "order_MZ35KPxZaqxfXq"); diff --git a/payments/server-integration/dot-net/integration-steps.md b/payments/server-integration/dot-net/integration-steps.md index 2722dce0..32e79e7e 100644 --- a/payments/server-integration/dot-net/integration-steps.md +++ b/payments/server-integration/dot-net/integration-steps.md @@ -246,9 +246,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay "order_id": orderId, "image": "https://example.com/your_logo", "prefill": { - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", }, "notes": { "address": "Hello World" @@ -315,9 +315,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "redirect": true, "prefill": { - "name": "", - "email": "", - "contact": "", + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", }, "notes": { "address": "Hello World" diff --git a/payments/server-integration/go/integration-steps.md b/payments/server-integration/go/integration-steps.md index 7a8438c5..8043b29f 100644 --- a/payments/server-integration/go/integration-steps.md +++ b/payments/server-integration/go/integration-steps.md @@ -241,9 +241,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay alert(response.razorpay_signature) }, "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" @@ -281,9 +281,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay "order_id": "order_IluGWxBm9U8zJ8", //This is a sample Order ID. Pass the `id` obtained in the response of Step 1 "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" @@ -754,7 +754,7 @@ If 9977665544 is entered, `+91` is added to it as +919977665544. ```go: Go /* 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":"","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}`; + webhookbody := `{"entity":"event","account_id":"acc_HVFD0PFnHPAzKj","event":"payment.authorized","contains":["payment"],"payload":{"payment":{"entity":{"id":"pay_JUEM4c0pSLpFEW","entity":"payment","amount":12300,"currency":"","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":"gaurav.kumar@example.com","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"; diff --git a/payments/server-integration/java/integration-steps.md b/payments/server-integration/java/integration-steps.md index 5a495452..cac8d60b 100644 --- a/payments/server-integration/java/integration-steps.md +++ b/payments/server-integration/java/integration-steps.md @@ -233,9 +233,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay alert(response.razorpay_signature) }, "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" @@ -274,9 +274,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay "order_id": "order_IluGWxBm9U8zJ8", //This is a sample Order ID. Pass the `id` obtained in the response of Step 1 "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" diff --git a/payments/server-integration/nodejs/integration-steps.md b/payments/server-integration/nodejs/integration-steps.md index 839bc429..02f19f2c 100644 --- a/payments/server-integration/nodejs/integration-steps.md +++ b/payments/server-integration/nodejs/integration-steps.md @@ -306,8 +306,8 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay order_id: 'order_IluGWxBm9U8zJ8', // This is the order_id created in the backend callback_url: 'http://localhost:3000/payment-success', // Your success URL prefill: { - name: '', - email: '', + name: 'Gaurav Kumar', + email: 'gaurav.kumar@example.com', contact: '9999999999' }, theme: { @@ -336,9 +336,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay "order_id": "order_IluGWxBm9U8zJ8", //This is a sample Order ID. Pass the `id` obtained in the response of Step 1 "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" @@ -372,9 +372,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay alert(response.razorpay_signature) }, "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" diff --git a/payments/server-integration/nodejs/troubleshooting-faqs.md b/payments/server-integration/nodejs/troubleshooting-faqs.md index 9e5c9bda..edac9ee5 100644 --- a/payments/server-integration/nodejs/troubleshooting-faqs.md +++ b/payments/server-integration/nodejs/troubleshooting-faqs.md @@ -36,9 +36,9 @@ description: Troubleshoot common error scenarios and find answers to frequently alert(response.razorpay_signature) }, "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" @@ -76,9 +76,9 @@ description: Troubleshoot common error scenarios and find answers to frequently "order_id": "order_IluGWxBm9U8zJ8", //This is a sample Order ID. Pass the `id` obtained in the response of Step 1 "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" diff --git a/payments/server-integration/php/integration-steps.md b/payments/server-integration/php/integration-steps.md index 9be0e463..8bb65797 100644 --- a/payments/server-integration/php/integration-steps.md +++ b/payments/server-integration/php/integration-steps.md @@ -230,9 +230,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay "description" => "Test transaction", "image" => "https://cdn.razorpay.com/logos/GhRQcyean79PqE_medium.png", "prefill" => [ - "name" => "", - "email" => "", - "contact" => "", + "name" => "Gaurav Kumar", + "email" => "gaurav.kumar@example.com", + "contact" => "+919876543210", ], "notes" => [ "address" => "Razorpay Corporate Office", @@ -269,9 +269,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay image: "https://cdn.razorpay.com/logos/GhRQcyean79PqE_medium.png", order_id: "' . $order_IluGWxBm9U8zJ8 . '", // This is a sample Order ID. Pass the `id` obtained in the response of Step 1 prefill: { - name: "", - email: "", - contact: "" + name: "Gaurav Kumar", + email: "gaurav.kumar@example.com", + contact: "+919876543210" }, notes: { address: "Razorpay Corporate Office" diff --git a/payments/server-integration/python/integration-steps.md b/payments/server-integration/python/integration-steps.md index 36e91ac4..78facfc9 100644 --- a/payments/server-integration/python/integration-steps.md +++ b/payments/server-integration/python/integration-steps.md @@ -230,9 +230,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay alert(response.razorpay_signature) }, "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" @@ -270,9 +270,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay "order_id": "order_IluGWxBm9U8zJ8", //This is a sample Order ID. Pass the `id` obtained in the response of Step 1 "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" diff --git a/payments/server-integration/ruby/integration-steps.md b/payments/server-integration/ruby/integration-steps.md index 3b2bddec..250495e4 100644 --- a/payments/server-integration/ruby/integration-steps.md +++ b/payments/server-integration/ruby/integration-steps.md @@ -216,9 +216,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay alert(response.razorpay_signature) }, "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" @@ -256,9 +256,9 @@ Know more about [Orders API](https://raw.githubusercontent.com/razorpay/razorpay "order_id": "order_IluGWxBm9U8zJ8", //This is a sample Order ID. Pass the `id` obtained in the response of Step 1 "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "address": "Razorpay Corporate Office" diff --git a/payments/subscriptions/integration-guide.md b/payments/subscriptions/integration-guide.md index 02da1964..af75d1d9 100644 --- a/payments/subscriptions/integration-guide.md +++ b/payments/subscriptions/integration-guide.md @@ -73,9 +73,9 @@ Follow these steps to create plans, subscriptions and accept payments from custo "image": "/your_logo.jpg", "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "note_key_1": "Tea. Earl Grey. Hot", @@ -107,9 +107,9 @@ Follow these steps to create plans, subscriptions and accept payments from custo alert(response.razorpay_signature); }, "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "note_key_1": "Tea. Earl Grey. Hot", diff --git a/payments/subscriptions/payment-retries.md b/payments/subscriptions/payment-retries.md index 72f1d675..d197b556 100644 --- a/payments/subscriptions/payment-retries.md +++ b/payments/subscriptions/payment-retries.md @@ -133,9 +133,9 @@ The customer's account might have an insufficient balance when you attempt to au alert(response.razorpay_signature); }, "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "note_key_1": "Tea. Earl Grey. Hot", @@ -164,9 +164,9 @@ The customer's account might have an insufficient balance when you attempt to au "subscription_card_change": true, "callback_url": "https://eneqd3r9zrjok.x.pipedream.net/", "prefill": { - "name": "", - "email": "", - "contact": "" + "name": "Gaurav Kumar", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210" }, "notes": { "note_key_1": "Tea. Earl Grey. Hot", diff --git a/payments/test-doc-payment.md b/payments/test-doc-payment.md new file mode 100644 index 00000000..87908c88 --- /dev/null +++ b/payments/test-doc-payment.md @@ -0,0 +1,115 @@ +--- +title: Testing doc Payment route +description: Sandbox setup for testing Razorpay APIs. +--- + +# Testing doc Payment route + +### Testing Doc + +The Razorpay Sandbox environment allows you to test your integration without using real money. It is a crucial step before going live with your Razorpay integration. + +## Steps + +Follow these steps to set up the sandbox environment. + + +### 1. Generate API Keys + + Follow these [steps to generate API keys](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/authentication.md#generate-api-keys). + + + +### 2. Use Sandbox URL & Client Libraries + + The base URL for the Razorpay Sandbox and production API is the same - `https://api.razorpay.com/v1/`. In case of certain APIs, it is `https://api.razorpay.com/v2`. + + For testing APIs in the sandbox environment, use the test API keys. + + How you use them depends on the programming language and the Razorpay SDK you are using. Refer to the relevant SDK documentation for specific instructions. The SDK documentation will have clear examples of how to initialise the Razorpay client with your Key ID and Key Secret. + + **Client Libraries** + + For Razorpay Payments, the client SDK libraries are available on GitHub. You can use the API keys generated above to try out the API sample codes: + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + + + + +### 3. Go live + + After testing is complete, generate [Live API keys](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/dashboard/account-settings/api-keys.md#live-mode-api-keys) from the dashboard. Ensure to replace the Test API keys in your integration with the Live API keys before going live. You can accept real money payments using the Live API Keys. + + +### Related Information + +- [Understand Razorpay APIs](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/understand.md) +- [Errors](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/errors.md) +- [Best Practices](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/best-practices.md) +- [Glossary](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/glossary.md) diff --git a/payments/third-party-validation/s2s-integration/upi/collect.md b/payments/third-party-validation/s2s-integration/upi/collect.md index 139eefec..e959c58f 100644 --- a/payments/third-party-validation/s2s-integration/upi/collect.md +++ b/payments/third-party-validation/s2s-integration/upi/collect.md @@ -109,9 +109,9 @@ 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": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -123,9 +123,9 @@ curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ 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("name","Gaurav Kumar"); +customerRequest.put("contact","+919876543210"); +customerRequest.put("email","gaurav.kumar@example.com"); customerRequest.put("fail_existing", "0"); JSONObject notes = new JSONObject(); notes.put("notes_key_1","Tea, Earl Grey, Hot"); @@ -139,9 +139,9 @@ import razorpay client = razorpay.Client(auth=("YOUR_ID", "YOUR_SECRET")) client.customer.create({ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -154,9 +154,9 @@ import ( razorpay "github.com/razorpay/razorpay-go" ) client := razorpay.NewClient("YOUR_KEY_ID", "YOUR_SECRET") data := map[string]interface{}{ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": map[string]interface{}{ "notes_key_1": "Tea, Earl Grey, Hot", @@ -169,16 +169,16 @@ body, err := client.Customer.Create(data, nil) ```php: PHP $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')); +$api->customer->create(array('name' => 'Gaurav Kumar', 'email' => 'gaurav.kumar@example.com','contact'=>'+919876543210','notes'=> array('notes_key_1'=> 'Tea, Earl Grey, Hot','notes_key_2'=> 'Tea, Earl Grey… decaf')); ```csharp: .NET 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("name", "Gaurav Kumar"); +options.Add("contact", "+919876543210"); +options.Add("email", "gaurav.kumar@example.com"); options.Add("fail_existing", "0"); Customer customer = Customer.Create(options); @@ -188,9 +188,9 @@ require "razorpay" Razorpay.setup('YOUR_KEY_ID', 'YOUR_SECRET') Razorpay::Customer.create({ - "name": "", - "contact": "", - "email": "", + "name": "Gaurav Kumar", + "contact": "+919876543210", + "email": "gaurav.kumar@example.com", "fail_existing": "0", "notes": { "notes_key_1": "Tea, Earl Grey, Hot", @@ -202,9 +202,9 @@ Razorpay::Customer.create({ var instance = new Razorpay({ key_id: 'YOUR_KEY_ID', key_secret: 'YOUR_SECRET' }) instance.customers.create({ - name: "", - contact: "", - email: "", + name: "Gaurav Kumar", + contact: "+919876543210", + email: "gaurav.kumar@example.com", fail_existing: "0", notes: { notes_key_1: "Tea, Earl Grey, Hot", @@ -217,9 +217,9 @@ instance.customers.create({ { "id" : "cust_1Aa00000000004", "entity": "customer", - "name" : "", - "email" : "", - "contact" : "", + "name" : "Gaurav Kumar", + "email" : "gaurav.kumar@example.com", + "contact" : "+919876543210", "gstin": null, "notes": { "notes_key_1":"Tea, Earl Grey, Hot", diff --git a/test-doc-main.md b/test-doc-main.md new file mode 100644 index 00000000..10938fd2 --- /dev/null +++ b/test-doc-main.md @@ -0,0 +1,115 @@ +--- +title: Testing doc Main +description: Sandbox setup for testing Razorpay APIs. +--- + +# Testing doc Main + +### Testing Doc + +The Razorpay Sandbox environment allows you to test your integration without using real money. It is a crucial step before going live with your Razorpay integration. + +## Steps + +Follow these steps to set up the sandbox environment. + + +### 1. Generate API Keys + + Follow these [steps to generate API keys](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/authentication.md#generate-api-keys). + + + +### 2. Use Sandbox URL & Client Libraries + + The base URL for the Razorpay Sandbox and production API is the same - `https://api.razorpay.com/v1/`. In case of certain APIs, it is `https://api.razorpay.com/v2`. + + For testing APIs in the sandbox environment, use the test API keys. + + How you use them depends on the programming language and the Razorpay SDK you are using. Refer to the relevant SDK documentation for specific instructions. The SDK documentation will have clear examples of how to initialise the Razorpay client with your Key ID and Key Secret. + + **Client Libraries** + + For Razorpay Payments, the client SDK libraries are available on GitHub. You can use the API keys generated above to try out the API sample codes: + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + - **Integrate**: + + + - **GitHub Repo**: + + + + + + + + + +### 3. Go live + + After testing is complete, generate [Live API keys](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/payments/dashboard/account-settings/api-keys.md#live-mode-api-keys) from the dashboard. Ensure to replace the Test API keys in your integration with the Live API keys before going live. You can accept real money payments using the Live API Keys. + + +### Related Information + +- [Understand Razorpay APIs](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/understand.md) +- [Errors](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/errors.md) +- [Best Practices](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/best-practices.md) +- [Glossary](https://raw.githubusercontent.com/razorpay/razorpay-php-testapp/markdown-docs/llm-content/api/glossary.md) diff --git a/webhooks/payments.md b/webhooks/payments.md index 914d6424..59574672 100644 --- a/webhooks/payments.md +++ b/webhooks/payments.md @@ -79,8 +79,8 @@ Given below are the sample payloads for payments webhook events. "bank": "HDFC", "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": null, "tax": null, @@ -128,17 +128,17 @@ Given below are the sample payloads for payments webhook events. "international": false, "issuer": null, "last4": "0153", - "name": "", + "name": "Gaurav Kumar", "network": "Visa", "sub_type": "business", "type": "debit" }, "card_id": "card_DESp9fNnu0RoNc", - "contact": "", + "contact": "+919876543210", "created_at": 1567674797, "currency": "INR", "description": null, - "email": "", + "email": "gaurav.kumar@example.com", "entity": "payment", "error_code": "", "error_description": "", @@ -191,7 +191,7 @@ Given below are the sample payloads for payments webhook events. "bank": null, "wallet": "payzapp", "vpa":null, - "email": "", + "email": "gaurav.kumar@example.com", "contact": "+919876543210", "notes": [], "fee": null, @@ -238,8 +238,8 @@ Given below are the sample payloads for payments webhook events. "bank": null, "wallet": null, "vpa": "gaurav.kumar@upi", - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": null, "tax": null, @@ -296,8 +296,8 @@ Given below are the sample payloads for payments webhook events. "bank": "HDFC", "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": 2, "tax": 0, @@ -345,17 +345,17 @@ Given below are the sample payloads for payments webhook events. "international": false, "issuer": null, "last4": "0153", - "name": "", + "name": "Gaurav Kumar", "network": "Visa", "sub_type": "business", "type": "debit" }, "card_id": "card_DESp9fNnu0RoNc", - "contact": "", + "contact": "+919876543210", "created_at": 1567674797, "currency": "INR", "description": null, - "email": "", + "email": "gaurav.kumar@example.com", "entity": "payment", "error_code": "", "error_description": "", @@ -410,8 +410,8 @@ Given below are the sample payloads for payments webhook events. "bank": null, "wallet": "payzapp", "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": 2, "tax": 0, @@ -459,8 +459,8 @@ Given below are the sample payloads for payments webhook events. "bank": null, "wallet": null, "vpa": "gaurav.kumar@upi", - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": 2, "tax": 0, @@ -537,8 +537,8 @@ Given below are the sample payloads for payments webhook events. "bank": "HDFC", "wallet": null, "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": null, "tax": null, @@ -585,7 +585,7 @@ Given below are the sample payloads for payments webhook events. "international": false, "issuer": null, "last4": "0153", - "name": "", + "name": "Gaurav Kumar", "network": "Visa", "sub_type": "business", "type": "debit" @@ -595,7 +595,7 @@ Given below are the sample payloads for payments webhook events. "created_at": 1567674797, "currency": "", "description": null, - "email": "", + "email": "gaurav.kumar@example.com", "entity": "payment", "error_code": "", "error_description": "", @@ -648,8 +648,8 @@ Given below are the sample payloads for payments webhook events. "bank": null, "wallet": "payzapp", "vpa": null, - "email": "", - "contact": "", + "email": "gaurav.kumar@example.com", + "contact": "+919876543210", "notes": [], "fee": null, "tax": null, @@ -695,7 +695,7 @@ Given below are the sample payloads for payments webhook events. "bank": null, "wallet": null, "vpa": "gaurav.kumar@upi", - "email": "", + "email": "gaurav.kumar@example.com", "contact": "+919876543210", "notes": [], "fee": null,