paymongo_sdk library Null safety

Classes

CreateLinkAttributes
CreatePaymentAttributes
https://developers.paymongo.com/reference/create-a-payment
CreatePaymentResponse
CreateRefundAttributes
LinkInterface<R, P>
LinkResponse
LinkResponseAttributes
ListAllRefundQueryParams
ListAllRefundResponse
Payment<T extends PaymentGateway>
PaymentAttributeSourceResponse
payment attribute source
PaymentAttributesResponse
https://developers.paymongo.com/reference/payment-source
PaymentDataResponse
response from listAll method.
PaymentGateway
Http Client for fetch-ing and post-ing API. handles opening and closing http
PaymentIntent<T extends PaymentGateway>
PaymentIntentAttach
Use to attach Payment Intent and returns a PaymentIntentAttachResponse object
PaymentIntentAttachResponse
Returns a resposne when you attach a payment intent.
PaymentIntentAttachResponseAttributes
Response from payment intent attach
PaymentIntentAttributes
PaymentIntentCard
PaymentIntentInterface<R, P, A, AR>
Use for retrieve,create,attach endpoints via Secret Key
PaymentIntentNextAction
recommend you follow the next action type from the documentation.
PaymentIntentOptions
PaymentIntentResponse
payment intent response
PaymentIntentResponseAttributes
PaymentListAllResponse
PaymentListQueryParams
{@template query_payments} before string - A cursor for use in pagination. before is a resource ID that defines your place in the list.
PaymentListResponse
response from listAll method.
PaymentMethod<T extends PaymentGateway>
PaymentMethodAttributes
billing for customer
PaymentMethodAttributesResponse
PaymentMethodDetails
PaymentMethodOptions
properties are initialized by default.
PaymentMethodResponse
PaymentRefundResponse
refund resource object
PaymentRefundResponseAttributes
PaymentResult
PaymentsIntentResponse
payment intent response
PaymentSource
PaymentTaxResponse
Paymongo
A relationship of PaymongoPublic and PaymongoSecret
PayMongoAddress
customer address
PayMongoBilling
{@template billing} customer billing {@endtemplate }
PaymongoClient<T extends Paymongo>
PaymongoErrorCodes
PayMongo API is RESTful and uses conventional HTTP response codes to indicate the success or failure of API requests. The table below will help you identify the meaning and the implication of error responses. As a general rule of thumb: Codes in the 2xx range indicate success. Codes in the 4xx range indicate a failure from the given information (e.g. missing API keys, invalid parameters, failed transaction, etc.). Codes in the 5xx range mean that there's an unexpected error on the PayMongo servers. These shouldn't happen, but when they do, please inform us right away.
PaymongoErrorSource
This attribute exists If the error originated from the JSON payload. If the error is related to the query parameter, for example the :id parameter when retrieving a certain resource, this attribute is not returned.
PayMongoHttp
Alternative HTTP client. can be extensible for custom http client. use base64 to generate authorization key.
PayMongoOptions
PayMongoPaymentDetails
PaymongoPublic
PayMongoSDK
🚧 DO NOT USE SECRET KEY IN PRODUCTION
PaymongoSecret
PayMongoTokenAttributes
PaymongoWebhook<T extends PaymentGateway>
PublicPaymentInterface<R, P>
Use for Retrieve/Create response via Public Key
Redirect
RefundResponse
RefundResponseAttributes
SecretPaymentInterface<R, P, QP, LR>
Use for retrieve,create,listAll endpoints via Secret Key
Source<T extends PaymentGateway>
SourceAttributes
source response
SourceResult
WebhookInterface<T>
API request for webhooks via http methods
WebhookResponse
response from paymongo webhook API
WebhookResponseAttribute
response attribute from the receiving API

Mixins

PaymentResponseSerializer
Serialize json from String to Dart Object

Extensions

PayMongoCurrency
currency extension
PaymongoEnums
convert enum to string
PayMongoPaymentIntent
Payment intent for CREDIT/DEBIT CARD.
PayMongoPaymentMethod
PayMongoPayments
Create payment in paymongo using secret key.
PayMongoSource
Instance of Source to provide a different payment gateway. Options allowed are GCash and GrabPay Link: https://developers.paymongo.com/docs/e-wallets-gcash-grabpay

Constants

privateKey → const String
'sk'
publicKey → const String
'pk'

Functions

fromTimeStamp(int? timestamp) DateTime?

Enums

PaymentMethodStatus
PaymentType
payment option when using card payment
WebhookAction

Exceptions / Errors

PaymongoError
Throws Error