@mitumba/sdk 1.28.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -723,6 +723,21 @@ var PayModule = class {
723
723
  async initPaystack(input, options) {
724
724
  return this.client.post("/pay/paystack/init", input, options);
725
725
  }
726
+ /**
727
+ * Initiate a provider-neutral checkout for an order.
728
+ *
729
+ * The payment provider is selected by the API. Continue checkout using the
730
+ * returned next action, then poll {@link getCheckoutStatus} for payment state.
731
+ * Retrying after cancellation requires the same input and idempotency key.
732
+ *
733
+ * @param input - Order, idempotency key, and buyer-selected payment method.
734
+ * @param options - Request options, including an optional abort signal.
735
+ * @returns The initiated attempt and its required continuation action.
736
+ * @throws {APIError} When the API rejects or cannot initiate the checkout.
737
+ */
738
+ async initiateCheckout(input, options) {
739
+ return this.client.post("/pay/checkout/initiate", input, options);
740
+ }
726
741
  /**
727
742
  * Poll for the current status of a payment by its order ID.
728
743
  *