Skip to content

PAM Native Payments

Every PAM Native product runs on the PAM runtime. Install and verify PAM first, create a Native application, and add this package through PAM Composer:

Terminal window
curl -fsSL https://github.com/push-in/pam/releases/latest/download/install.sh | sh
pam doctor
pam init my-app --template native
cd my-app
pam composer require pushinbr/pam-native-payments
pam doctor
pam native dev
return PaymentSheet::make($publishableKey, $paymentIntentClientSecret, 'Acme')
->returnUrl('acme://stripe-redirect')
->onResult(fn (PaymentResult $result, string $message) => $this->handle($result));

PaymentSheet configures Stripe’s native UI; PaymentResult distinguishes completed, cancelled, and failed. The PHP API rejects Stripe secret keys.

Create PaymentIntents and short-lived client secrets on the server. Configure wallet merchant identities and return URLs. Never grant/fulfill an order from the client callback: verify Stripe webhooks server-side and derive durable entitlement there.

PaymentsPluginProvider registers the platform payment sheet.