Log in to the YuvexPay dashboard and navigate to Settings > API Credentials. Create a new credential pair to get your client_id and client_secret.
Start with sandbox credentials to test without processing real transactions. Sandbox client_secret values are prefixed with sk_sandbox_, while access tokens are prefixed with ypt_.
For headless direct credit card charges, send a single CARD method together with the card payload. The payer must have name and document available through customer or customerId.
card is only accepted for headless single-method CARD payments. Hosted and multi-method card flows continue through checkout, and debit card entry stays in the hosted flow.
Set up a webhook endpoint to receive payment notifications. Configure it in the dashboard under Settings > Webhooks.When the customer pays, you receive a PAYMENT_PAID event: