[PAID] CashfreePG: Add Cashfree Payment Gateway in your app ($8 or INR 501)

1. Introduction

Description: Using this extension you will be able to use Cashfree Payment Gateway in your app. Cashfree is a leading payment gateway service provider in India, offering a comprehensive suite of payment solutions for businesses of all sizes. Known for its robust and secure platform, Cashfree facilitates seamless transactions, including payment collections, payouts, and international payments.

Latest Version: 2
Released: 2024-06-04T18:30:00Z
Last Updated: 2024-07-01T18:30:00Z

Prerequisite: A hosting and domain
I tested with Byteistic and it worked great

2. Blocks

3. Documentation

Events

ErrorOccurredEvent raised when error occurrs
methodName | text
errorMsg | text
OrderCreatedEvent raised after creating order
paymentSessionId | text
responseJson | text
PaymentCancelledEvent raised when payment is cancelled by user
PaymentSuccessfulEvent raised when payment was successful
PaymentFailedEvent raised when payment failed. 'ACTIVE' means payment has not bee paid but session is active and 'EXPIRED' means not paid and session expired. Any failure message other than these two is generic message from api.
failureMsg | text
GotStatusEvent raised after getting payment status response
responseJson | text

Methods

CreateOrderCreates order with provided parameters
orderId | text
amount | text
currency | text
customerId | text
name | text
phone | text
email | text
paymentMethods | text
orderNote | text
orderExpiryTime | text
StartPaymentFlowStarts payment flow
paymentSessionId | text
CheckStatusCheck payment status by order id
orderId | text

Properties

BaseUrlSets base url used for making web requests
Property Type : write-only
Accepts : text

4. Example Usage

Create Order


paymentMethods: cc , dc , ccc , ppc , nb , upi , paypal , emi , app paylater
responseJson:

Start Payment Flow


These events won’t be raised for CheckStatus method

Check Status
whenever you want to check status in future


responseJson:

{
  "cf_order_id": "2149460581",
  "created_at": "2023-08-11T18:02:46+05:30",
  "customer_details": {
    "customer_id": "409128494",
    "customer_name": "Johmn Doe",
    "customer_email": "pmlpayme@ntsas.com",
    "customer_phone": "9876543210",
    "customer_uid": "54deabb4-ba45-4a60-9e6a-9c016fe7ab10"
  },
  "entity": "order",
  "order_amount": 22,
  "payment_session_id": "session_a1VXIPJo8kh7IBigVXX8LgTMupQW_cu25FS8KwLwQLOmiHqbBxq5UhEilrhbDSKKHA6UAuOj9506aaHNlFAHEqYrHSEl9AVtYQN9LIIc4vkH",
  "order_currency": "INR",
  "order_expiry_time": "2023-09-09T18:02:46+05:30",
  "order_id": "order_3242Tq4Edj9CC5RDcMeobmJOWOBJij",
  "order_meta": {
    "return_url": "https://example.com/return/order_3242Tq4Edj9CC5RDcMeobmJOWOBJij",
    "payment_methods": "cc",
    "notify_url": "https://example.com/cf_notify"
  },
  "order_note": "some order note LIST",
  "order_splits": [],
  "order_status": "ACTIVE",
  "order_tags": {
    "name": "John",
    "age": "19"
  },
  "terminal_data": null
}

5. Demo Video

6. Purchase Extension

PM me.

Thank you.
Hope it helps!

10 Likes

Nice work @vknow360

4 Likes

The best payment gateways for projects :slightly_smiling_face: thanks you @vknow360 for making this

1 Like

ChangeLog Version 2

  • Updated CashFree API

Updated Aix file and other files have been uploaded in Drive

I am thankful to you for providing Cashfree Payment Gateway, it is working very well. And the support of the admin is also great. :heart:

1 Like

Please reply on telegram i am facing issue with this.
I have setup same things as you told now help me please

Show me the issue i will help

Do it work now also ???

Yes it works.

Will i get discount, and base url is for ?

No.

You’ll need a domain and hosting. You may use a free one. (That’s not my responsibility)

After purchasing extension you’ll get a zip file containing php stripts which you have to upload on hosting and unzip. That is the base url.

I have share hosting, i have dm you

And how to buy ??

Given in first post.

Payment done

Are you done with whitelisting your domain in Cashfree dashboard?

I done have idea about this, i have active dashboard, in cash free, what is whitelisting domain.

Where ? I will get the extension and zip file ?

Pm me kodular creator email address.
Aix and license key will be shared with that email.

I did msg you many time.