API URL:
https://api-payment.safefypay.com.br
Creating credentials
- Access the Safefy panel
- Go to Settings API Credentials
- Choose the environment (Sandbox or Production) and click Generate
- Copy the
clientSecretimmediately it will not be shown again
Simulating transactions
In Sandbox, you can simulate status changes using the simulate endpoint:Complete test flow
- Create a transaction
POST /v1/transactionswithmethod: "pix"and anamount - Display the QR Code use the
pix.copyAndPastefield to render a QR Code in your app - Simulate payment call
POST /v1/transactions/{id}/simulatewithaction: "pay" - Receive the webhook your
callbackUrlwill receive apayment.completedevent - Validate confirm the transaction status is
Completed