📄️ How to use the package
Setting up the environment
📄️ Response
All the methods will return a BandeyriPayResponse object. You can use the toDto() method to convert the response to a DTO object. Below is an example of how to use the response object.
📄️ Creating a transaction
This method is used to create a new transaction. You need to pass the transaction data as an argument to the createTransaction method. The transaction data should be an instance of the TransactionData class.
📄️ Handling Webhook
The Bandeyri Pay API sends a webhook notification to your application when a transaction is completed. You can use this notification to update your database or send an email to the customer.