Linksfield Developer
OverviewCube APIsTopup APIs
Old version
OverviewCube APIsTopup APIs
Old version
  1. Topup APIs
  • Mall Global Specification
  • Mall Business Flow
  • Mall API Signature Code Examples
  • APP Integration with Stripe SDK — Example Notes
  • Vshop
    • Card Login Verification
      POST
    • Get Available Data Plan Product List
      POST
    • Create User Order
      POST
    • Query Active and Pending Orders
      POST
    • Get Active Auto-Renewal
      POST
    • Cancel Auto-Renewal
      POST
    • Create User Order (Third-Party Payment)
      POST
  • Payment
    • Get Stripe Single Payment Authorization
      POST
    • Get Stripe Subscription Payment Authorization
      POST
    • Create Stripe Subscription / Auto-Renewal
      POST
    • Query Payment Result
      POST
    • Confirm Payment Result
      POST
  • Notification
    • Recharge Success Message Push
      POST
  • Bundle-groups
    • Add SIM Cards to a Specified Group
      POST
    • Remove SIM Cards from a Specified Group
      DELETE
    • Query SIM Card Numbers in a Specified Group
      GET
    • Query All Groups and Basic Data Plan Information
      GET
    • Retrieve Asynchronous Operation Result
      GET
  • Order
    • Query Order Details
      GET
  1. Topup APIs

APP Integration with Stripe SDK — Example Notes

Example Notes#

This document is for reference only. Please refer to the official Stripe Developer Documentation for accurate and up-to-date information.
Stripe iOS SDK Download
Stripe SDK Version: 20.0.0 (For the latest API, please refer to the corresponding version's documentation)

Flow Description#

1.
Create a payment input field cardTextField using STPPaymentCardTextField
2.
Call the Cashier / Payment API /stripePay or /stripeAutoPay to obtain publicKey and clientSecret
3.
Initialize Stripe using publicKey
Stripe.setDefaultPublishableKey(publicKey)
4.
Create an instance of STPPaymentMethodParams using the card information
5.
Create an instance of STPPaymentIntentParams using clientSecret
6.
Execute the payment using Stripe's confirmPayment method
// Submit the payment
let paymentHandler = STPPaymentHandler.shared()
paymentHandler.confirmPayment(withParams: paymentIntentParams, authenticationContext: self) { [weak self] (status, paymentIntent, error) in
    // Returns the payment result; proceed with subsequent flow based on the result
}
Modified at 2026-06-25 02:21:48
Previous
Mall API Signature Code Examples
Next
Card Login Verification
Built with