payorc_sdk
library
Classes
AvailablePaymentMethod
BillingAddressOption
A selectable billing address (e.g. Home, Office) for review order.
BillingDetails
Billing address details.
CardBrandImage
Shows the card scheme logo (Visa, Mastercard, etc.) from card number or brand name.
If the asset is missing, shows a text placeholder.
CardData
Data collected from the Add Card form (new card entry or edit), or a saved card row.
CardItem
A selectable card-style tile for a billing address (radio, name, label, address lines, edit/delete).
CheckoutBank
CheckoutCustomizationData
CheckoutCustomizationResponse
Response from POST .../sdk/checkout/customization.
CheckoutPaymentMethodType
available_methods[].type values from checkout customization.
CheckoutUpiApp
CompanyDetails
CustomerDetails
Customer details for the payment.
MerchantDetails
NonRenderState
OrderDetails
Order details for the payment.
OrderSummary
Order calculation summary for the review order screen.
PaymentGatewayParams
Parameters passed to the app when building the payment gateway screen
(full-screen mode). Use when providing PayorcSdk.showPayment with
paymentGatewayScreen.
PaymentMethod
PaymentOptionsSheet
Host-facing widget: provides PaymentOptionsBloc and PaymentOptionsScene .
PaymentOptionsSheetFlow
Host-facing widget: PaymentOptionsSheetFlowBloc + invisible
PaymentOptionsSheetFlowScene .
PaymentRequest
Full payment request payload.
PaymentResponse
Parsed envelope for POST .../sdk/payment JSON (success, failure, risk decline, etc.).
PayOrc
Host-facing PayOrc helpers (add card, submit-order flow, etc.).
PayorcEmbeddedApplePayButton
Native Apple Pay button for embedding in your layout.
PayorcEmbeddedCustomization
Styling for a single embedded payment control.
PayorcEmbeddedGooglePayButton
Native Google Pay button for host screens — does not pop Navigator on result.
PayorcEmbeddedNetBankingButton
One-tap embedded Net Banking payment control.
PayorcEmbeddedPaymentCheckout
All-in-one: native wallets + tiles matching sheet ordering.
PayorcEmbeddedPaymentCheckoutBody
Composable checkout body (PayorcEmbeddedPaymentCheckout wraps it with SDK theme).
PayorcEmbeddedPaymentMethodTiles
Tiles for non-wallet rails in checkout sequence , using PayorcEmbeddedTabbyButton
(one tap opens Tabby) and Samsung select + Confirm (sheet-style).
PayorcEmbeddedTabbyButton
Embedded Tabby (BNPL) row for host layouts — one tap starts Tabby init,
SDK session, and WebView checkout via TabbyConfirmBloc .
PayorcEmbeddedTabbyButtonScene
PayorcEmbeddedUpiButton
One-tap embedded UPI payment control.
PayorcPaymentMethodResult
Typed result delivered by the direct PayOrc.upi and PayOrc.netBanking
helpers.
PayOrcRepo
PayOrc service-sdk repo (checkout customization and related calls).
PayorcSdk
Payorc Payment SDK.
PayorcSdkAddCardFormCustomization
Host copy overrides for the add / edit card sheet (AddCardFormScene ).
PayorcSdkAppTextFieldCustomization
Host customization for SDK AppTextField visuals.
PayorcSdkBottomSheetCustomization
Host customization for SDK modal bottom sheets (payment options, add card,
payment failed, success, submit order, …).
PayorcSdkButtonCustomization
Host customization for primary SDK buttons (LoaderButton , AppButton , etc.).
PayorcSdkPaymentMethodCustomization
Host color overrides for the header of a UPI or Net Banking payment sheet.
PayorcSdkTextCustomization
Host typography overrides for the PayOrc SDK.
PayorcSdkUiConstants
SDK-wide UI colors parsed from checkout customization merchant_details.
QrPaymentRequest
Builds the /sdk/payment payload for a QR payment.
QrPaymentResponse
Parsed QR image and optional expiry metadata from /sdk/payment.
ReviewOrderItem
A line item in the review order (name, quantity, price, currency).
SdkPaymentCustomerSnapshot
SdkPaymentMethodDataSlice
SdkPaymentServiceAddress
Billing or shipping block from payment API (address_line_1 or address_line1).
SdkPaymentSlotEntry
One object inside parameters or custom_data (e.g. { "alpha": "" }, { "beta": "" }).
SdkPaymentTransactionData
Typed data object from POST .../sdk/payment (success, failure, 3DS, etc.).
ShippingDetails
Shipping details for the order.
TabbyConfirmResponse
Response from POST .../sdk/tabby/confirm.
TabbyInitData
data object from Tabby init (credentials for TabbySDK.setup).
TabbyInitResponse
Response from POST .../sdk/tabby/init.
Token
UpiBillingPreviewRequest
Builds the billing-preview request for a UPI payment method.
Urls
Callback URLs for payment flow.
WalletPaymentResult
Functions
buildApplePayConfigurationJson ({required CheckoutCustomizationData ? customization , required String currencyCode , String countryCode = 'AE' , String displayNameFallback = 'Pay' })
→ String ?
Builds a JSON string for the pay package's
Apple Pay PaymentConfiguration.
buildApplePayDiagnosticsPayload ({Object ? applePayConfiguration , Object ? error })
→ Map <String , dynamic >
cardSchemeAssetPath (CardScheme scheme )
→ String ?
Asset path (relative to package) for the card scheme logo.
Returns null if the asset is not in the package; CardBrandImage will show a text placeholder.
cardSchemeDisplayName (CardScheme scheme )
→ String
Display name for the card scheme.
cardSchemeFromBrandName (String brand )
→ CardScheme
Resolves scheme from a brand string (e.g. from CardData.resolvedBrand ).
cardSchemeFromNumber (String cardNumber )
→ CardScheme
Detects card scheme from the first digits of cardNumber.
cardNumber can contain spaces; only digits are used.
checkoutPaymentMethodKindFromType (String apiType )
→ CheckoutPaymentMethodKind
Maps API type to CheckoutPaymentMethodKind .
checkoutPaymentMethodVisible (String apiType , {bool whenNoCustomizationData = true })
→ bool
Whether a method should appear, using PayorcSdk.instance.checkoutCustomization.
effectiveApplePayJson (PaymentRequest paymentRequest )
→ String ?
Same sourcing as _PaymentOptionsSceneState._applePayConfigJson.
effectiveGooglePayJson (PaymentRequest paymentRequest )
→ String ?
Same sourcing as _PaymentOptionsSceneState._googlePayConfigJson.
orderedMethodsForAlternatePaymentPicker ()
→ List <AvailablePaymentMethod >
Methods to list in payment-option / retry flows.
payorcEmbeddedConfirmButton ({required VoidCallback onPressed , PayorcEmbeddedCustomization ? style })
→ Widget
Standalone Confirm for Samsung (after payorcEmbeddedSamsungPayTile selection).
payorcEmbeddedOpenPayWithCard ({required BuildContext context , required PaymentRequest checkoutRequest , PaymentRequest ? addCardRequest , PayorcEmbeddedCustomization ? style , void onNewCardAdded (CardData input )?, void onSuccessPayment (BuildContext submittingContext , Map <String , dynamic > merchantResponse )?, void onPaymentFailed (BuildContext submitModalContext , String message , {String ? code })?, VoidCallback ? onRetryPayment })
→ Widget
Same behavior as selecting “Pay with Card” on the sheet, then running
PayOrc.submitOrder after the user enters card details.
payorcEmbeddedSamsungPayTile ({required VoidCallback onPressed , bool isSelected = false , PayorcEmbeddedCustomization ? style })
→ Widget
Samsung Pay tile — tap selects Samsung; host onSamsungPay runs after Confirm (sheet flow).
payorcEmbeddedTabbyTile ({required VoidCallback onPressed , bool isSelected = false , PayorcEmbeddedCustomization ? style })
→ Widget
Tabby tile when Tabby is enabled (API key + checkout customization).
payOrcNormalizedFiveSlots (List source )
→ List <Map <String , String > >
Builds [ { "alpha": "…" }, { "beta": "…" }, … ] exactly like the service-sdk sample.
sortedVisibleCheckoutMethods ()
→ List <AvailablePaymentMethod >
Entries with show != 0 from PayorcSdk.instance.checkoutCustomization, sorted by AvailablePaymentMethod.sequence .