Skip to content

Stripe Setup

Stripe is the recommended payment gateway for accepting credit and debit cards.

  • Accept Visa, Mastercard, American Express
  • International payments
  • Automatic currency conversion
  • Secure, PCI-compliant
  • Fast payouts to your bank
  1. Stripe account (stripe.com)
  2. Completed Stripe business verification
  3. Bank account connected for payouts
  1. Log in to Stripe Dashboard
  2. Go to Developers > API Keys
  3. Copy:
    • Publishable Key (starts with pk_)
    • Secret Key (starts with sk_)

Webhooks notify Pintas when payments complete.

  1. In Stripe Dashboard, go to Developers > Webhooks
  2. Click Add endpoint
  3. Enter URL:
    https://pintas.turbospark.my/api/stripe-webhook
    (Replace with your domain if using custom domain)
  4. Select events:
    • checkout.session.completed
    • payment_intent.payment_failed
  5. Click Add endpoint
  6. Copy the Signing secret (starts with whsec_)
  1. Go to Settings > Payments
  2. Enable Stripe
  3. Enter:
    • Publishable Key
    • Secret Key
    • Webhook Secret
  4. Save
  1. Create a test order
  2. Select card payment
  3. Use Stripe test card: 4242 4242 4242 4242
  4. Any future expiry, any CVC
  5. Complete payment
  6. Verify order shows as Paid
Card NumberResult
4242 4242 4242 4242Successful payment
4000 0000 0000 0002Declined
4000 0000 0000 9995Insufficient funds
IssueSolution
Webhook not configuredAdd webhook endpoint in Stripe
Wrong webhook URLVerify URL matches your domain
Secret mismatchRe-copy webhook secret
Webhook failingCheck Stripe webhook logs
  1. Stripe Dashboard > Developers > Webhooks
  2. Click your endpoint
  3. View recent deliveries
  4. Check for errors
  1. Check Stripe Dashboard for error message
  2. Common issues:
    • Card declined
    • Insufficient funds
    • 3D Secure failed
    • Currency not supported

Stripe charges per successful transaction:

  • Malaysia: 2.9% + RM1.00
  • International: 3.9% + RM1.00

Fees deducted automatically from payments.

Stripe sends funds to your bank:

  • Malaysia: 7 business days
  • Can be configured in Stripe Dashboard

When ready for real payments:

  1. Complete Stripe business verification
  2. Switch to live API keys
  3. Update webhook with live endpoint
  4. Test with real small payment
  5. You’re live!