-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## Sandbox | ||
You can use the sandbox environment to test your integration. To do this, you need to call the `initSandbox` method before making any requests. | ||
```java | ||
Asaas.initSandbox("your_api_key"); | ||
``` | ||
|
||
## Timeout | ||
|
||
The default timeout is 30000 milliseconds. You can change it by calling the `setTimeout` method. | ||
```java | ||
Asaas.setTimeout(10000); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,14 +50,7 @@ public class Examples { | |
|
||
public static void main(String[] args) { | ||
Asaas.init(Secret.getAccessToken()); | ||
|
||
Webhook configuredWebhook = Webhook.creator() | ||
.setName("Teste") | ||
.setUrl("https://www.exemplo.com/webhook/asaas") | ||
.setEmail("[email protected]") | ||
.setSendType(SendType.SEQUENTIALLY) | ||
.addEvent(Event.PAYMENT_RECEIVED) | ||
.create(); | ||
Asaas.setTimeout(10000); | ||
} | ||
|
||
private void pixTransaction() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters