decentro_in_collections

Creator: coderz1093

Last updated:

0 purchases

decentro_in_collections Image
decentro_in_collections Images

Languages

Categories

Add to Cart

Description:

decentro in collections

decentro_in_collections #
Collections
For more information, please visit https://decentro.tech
Requirements #
Dart 2.12 or later
Installation & Usage #
pub.dev #
dependencies:
decentro_in_collections:
version: 1.0.0
copied to clipboard
Github #
dependencies:
decentro_in_collections:
git: https://github.com/decentro-in/decentro-in-collections-sdk/tree/master/dart.git
copied to clipboard
Local #
To use the package in your local drive, add the following dependency to your pubspec.yaml
dependencies:
decentro_in_collections:
path: /path/to/decentro_in_collections
copied to clipboard
Getting Started #
Please follow the installation procedure and then run the following:
import 'package:decentro_in_collections/decentro_in_collections.dart';

final decentro = Decentro(
clientId: "CLIENT_ID",
clientSecret: "CLIENT_SECRET",
moduleSecret: "MODULE_SECRET",
providerSecret: "PROVIDER_SECRET",
);

final generatePaymentLinkRequest = GeneratePaymentLinkRequest(
referenceId: "ABCDEF12345",
payeeAccount: "00000000000000000",
amount: 4,
purposeMessage: "Welcome to Decentro",
generateQr: 0,
expiryTime: 10,
customizedQrWithLogo: 0,
generateUri: 0,
);


try {
final result = decentro.collections.generatePaymentLink(generatePaymentLinkRequest);
print(result);
} catch (e) {
print('Exception when calling collections.generatePaymentLink: $e\n');
}

copied to clipboard
Documentation for API Endpoints #
All URIs are relative to https://in.staging.decentro.tech



Class
Method
HTTP request
Description




CollectionsApi
generatePaymentLink
POST /v2/payments/upi/link
Generate payment link


CollectionsApi
getTransactionStatus
GET /v2/payments/transaction/{transaction_id}/status
Get transaction status


CollectionsApi
issueCollectRequest
POST /v2/payments/collection
Issue collect request


CollectionsApi
issueUpiRefund
POST /v2/payments/upi/refund
Issue UPI Refund


CollectionsApi
validateUpiHandle
POST /v2/payments/vpa/validate
Validate UPI handle



Documentation For Models #

GeneratePaymentLink400Response
GeneratePaymentLinkRequest
GeneratePaymentLinkResponse
GeneratePaymentLinkResponseData
GeneratePaymentLinkResponseDataPspUri
GetTransactionStatusResponse
GetTransactionStatusResponseData
GetTransactionStatusResponseError
IssueCollectRequest400Response
IssueCollectRequestRequest
IssueCollectRequestResponse
IssueCollectRequestResponseData
IssueUpiRefund400Response
IssueUpiRefundRequest
IssueUpiRefundResponse
IssueUpiRefundResponseData
ValidateUpiHandle400Response
ValidateUpiHandleRequest
ValidateUpiHandleResponse
ValidateUpiHandleResponseData

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.