# Start testing

### Steps to test a payment

1. Set up authentication headers.
2. Build the API request you want to simulate using test data.
3. Send the request to the Staging endpoint and simulate different responses.
4. Check the response and your webhook notification.
5. Get the transaction status.

### Integration checklist

Make sure to test the following points in order to ensure that your integration is ready.

{% columns %}
{% column %}

<h4 align="center">Deposits</h4>

* [x] Create deposits
* [x] Manually approve and cancel (at least) one deposit from the STG Merchant Panel
* [x] Make sure you are receiving and handling our notifications correctly in your site
* [x] Retrieve the deposit status endpoint accordingly
* [x] Use the Payment Methods endpoint to retrieve payment methods availability
  {% endcolumn %}

{% column %}

<h4 align="center">Cashouts</h4>

* [x] Create payouts
* [x] Manually complete and reject (at least) one cashout from the STG Merchant Panel
* [x] Make sure you are receiving and handling our notifications correctly in your site
* [x] Retrieve the cashout status endpoint accordingly
* [x] Use the Cashout Banks endpoint to check the local banks availability
  {% endcolumn %}
  {% endcolumns %}

#### Testing cards

When testing deposits with credit cards, you can use the following card numbers for testing to match the desired transaction outcome.

<table><thead><tr><th width="172.38411458333331">Brand</th><th width="211.3046875">Card Number</th><th>Result</th></tr></thead><tbody><tr><td>Visa</td><td>4222222222222220</td><td>Card Rejected.</td></tr><tr><td>Visa</td><td>4000000000000060</td><td>Card Expired.</td></tr><tr><td>Visa</td><td>4444444444444440</td><td>Insufficient funds.</td></tr><tr><td>Visa</td><td>4000000000000110</td><td>Card reported as stolen.</td></tr><tr><td>Visa</td><td>4000000000000040</td><td>The card issuer rejected the payment because of their anti-fraud rules.</td></tr><tr><td>Mastercard</td><td>5454545454545450</td><td>Card Rejected.</td></tr><tr><td>Mastercard</td><td>5555555555554440</td><td>Card Expired. </td></tr><tr><td>Mastercard</td><td>5105105105105100</td><td>Insufficient funds. </td></tr><tr><td>Mastercard</td><td>5451951574925480</td><td>Card reported as stolen.</td></tr><tr><td>Mastercard</td><td>5406251139676600</td><td>The card issuer rejected the payment because of their anti-fraud rules. </td></tr><tr><td>American Express</td><td>340000000000009</td><td>Card Rejected.</td></tr><tr><td>American Express</td><td>373737373737374</td><td>Card Expired. </td></tr><tr><td>American Express</td><td>370000000000002</td><td>Insufficient funds. </td></tr><tr><td>American Express</td><td>343434343434343</td><td>Card reported as stolen. </td></tr><tr><td>American Express</td><td>341111111111111</td><td>The card issuer rejected the payment because of their anti-fraud rules. </td></tr><tr><td>JCB</td><td>3530185156387080</td><td>Card Rejected. </td></tr><tr><td>JCB</td><td>3566002020360500</td><td>Card Expired. </td></tr><tr><td>JCB</td><td>3555555555555552</td><td>Insufficient funds.</td></tr><tr><td>JCB</td><td>3539189698635270</td><td>Card reported as stolen. </td></tr><tr><td>JCB</td><td>3588430314874690</td><td>The card issuer rejected the payment because of their anti-fraud rules. </td></tr></tbody></table>

### Manually approve transactions in Staging

In order to test the full flow you can manually change deposits and withdrawals statuses.

Login into the [STG Merchant Panel](https://merchants-stg.pandablue.com/login) and going to Transactions :arrow\_forward: Deposits/Withdrawals and you will be capable of updating the status from the Grid view, or by going into the transaction details!\
&#x20;\
After performing the status change of the transaction, we will be **sending the respective notification to your `notification_url` after a few minutes**.

<div><figure><img src="https://3883333839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff92vedEnowdVWbjM4Cmd%2Fuploads%2FHhEmYWNbSSJsrrTdF5Ny%2FGrid%20STG%20with%20actions.png?alt=media&#x26;token=2a5548e6-e6c3-4c27-a1ed-f335107724a3" alt=""><figcaption></figcaption></figure> <figure><img src="https://3883333839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff92vedEnowdVWbjM4Cmd%2Fuploads%2FtFnox03YHKBA6au9BztN%2FTransaction%20details%20STG.png?alt=media&#x26;token=66d45b6d-bcf4-4f76-9908-a0a3a6701f57" alt=""><figcaption></figcaption></figure></div>
