WhatsApp Commerce Quickstart

Launch checkout flows inside WhatsApp. Accept payments without leaving the conversation.

What you’ll build

  • Send product catalog in WhatsApp
  • Create checkout session
  • Accept payment confirmation
  • Send order status updates

Quick example

// Create WhatsApp checkout session
const session = await orangepill.whatsapp.checkout.create({
  phone: '+57300123456 7',
  items: [
    { product_id: 'prod_abc', quantity: 1 }
  ],
  payment_methods: ['bre_b', 'nequi', 'card']
});

// Send checkout link via WhatsApp
await orangepill.whatsapp.messages.send({
  to: '+573001234567',
  type: 'interactive',
  interactive: {
    type: 'button',
    body: { text: 'Tu carrito está listo!' },
    action: {
      buttons: [{
        type: 'reply',
        reply: {
          id: 'checkout',
          title: 'Pagar ahora'
        }
      }]
    }
  },
  context: { checkout_session_id: session.id }
});

WhatsApp Business API setup

  1. Get WhatsApp Business API access
  2. Connect phone number to Orangepill
  3. Configure message templates
  4. Enable payment methods

Supported features

  • Product catalogs
  • Checkout buttons
  • Payment confirmations
  • Order status updates
  • Customer support handoff

Message templates

Pre-approved templates for checkout flows:

  • Order confirmation
  • Payment received
  • Shipping updates
  • Delivery confirmation

Next steps