Rigi
  • Webhooks
    • Payment Completion
    • Payment Failed
    • KYC | Onboarding Completed
  • Integrations
    • Google Tag Manager
    • Google Analytics
    • Facebook/Meta Pixel
    • SnapChat Pixel
Powered by GitBook
On this page
  • For all offerings
  • For Cart Payment
  1. Webhooks

Payment Failed

For payment failed events, we promptly trigger the "Payment Failed Webhook" 30 minutes after user has initiated a payment request and has not completed it successfully within the last 30 minutes.

Kindly be aware that if a user attempts payment multiple times, all corresponding entries will be activated within this webhook. To prevent multiple communications on your end, please ensure appropriate checks are in place.

Payment failures can occur in two scenarios: 1) When a user initiates a payment but does not complete it, the payment_status field in the webhook will indicate 'initiated' 2) If a user attempts to complete the payment but it fails due to any reason, the payment_status field in the webhook will show 'failed'.

For all offerings

curl --location `${WEBHOOK_URL}` \
--header 'apikey: ${YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
   "Name": "Abhishek", 
    "Amount": 2, // In INR
    "offer_code": "Republic30", 
    "offer_id": "65aa4e1327f9931ac61d9fef",
    "offer_discount": null, 
    "Email": "app@rigi.club",
    "Phone": "+91123456789",
    "Product": "How To Crack Your First Five Clients",
    "Link of Product": "https://rpy.club/jcp/example-1",
    "Time": "Jan 19, 2024 10:36 AM",
    "ref_id": "order_NQRMSFjAj4kCm6",
    "event_type": "payment_failed",
    "payment_status" : "initiated", // or "failed"
  }'

For Cart Payment

curl --location `${WEBHOOK_URL}` \
--header 'apikey: ${YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw ' {
    "Name": "SHIVA",
    "Amount": 52038,
    "offering_type": "Cart",
    "Phone": "+91123456799",
    "Email": "app@rigi.club",
    "event_type": "payment_failed",
    "Time": "Dec 26, 2024 6:36 PM",
    "extra_details":{"type":"mag","linktok":"11939"},
    "Products": [
      {
        "name": "Offering 1",
        "offer_code": "ABCD",
        "offer_id": {
          "$oid": "65aa4e1327f9931ac61d9fef"
        },
        "offer_discount": 10,
        "amount": 52038,
        "group_id": "65aa4e1327f9931ac61d9fef"
      }
    ]
  }'
PreviousPayment CompletionNextKYC | Onboarding Completed

Last updated 5 months ago