paymentv4.0

payment module

In-app payments (stub).

Available Methods

sdk.payment.createOrder()
sdk.payment.confirm()
sdk.payment.refund()

Example Usage

import { usePoremi } from '@poremi/react-sdk';

function PaymentExample() {
  const { sdk } = usePoremi();

  const purchase = async () => {
    const order = await sdk.payment.createOrder({
      sku: 'gem_pack_500',
      amount: 4900,
      currency: 'KRW',
    });
    const receipt = await sdk.payment.confirm(order.id);
    console.log('Receipt:', receipt);
  };
}

Try in Playground

🔒 Log in to open this example in the interactive playground.