You’ll use Postman requests to simulate an application requesting decisions about payment amounts. To get started, let's walk through downloading a Postman collection and assigning values to variables used in the requests.
The PingOne platform requires an
Import a copy of the Postman collection:
- Click the Run in Postman button below.
- Click the import a copy link.
- If you use workspaces in Postman, select a workspace and click Import.
Go to Collections and click PingOne
Authorize: Make a Decision Request to open the collection, then
click the Variables tab.
If you are outside of North America, update the authUrl
and apiUrl current values to use the data center closest to
your geographic region.
Variable Canada Europe Asia Pacific
- In PingOne, go to .
- Click your worker application, then click the Configuration tab.
Expand the General section, then copy the following
values into the corresponding current value on the
Variables tab in Postman:
- Client ID: The Postman variable is clientID.
- Client Secret: The Postman variable is clientSecret.
- Environment ID: The Postman variable is envId.
- Go to Test endpoint. and expand the
Copy the Endpoint ID and paste it into the current value
for endpointId in Postman.
In Postman, click Save to save the current values you
Now you’re ready to send a request to get an access token.
In Postman, select the Get Token request and click
The access token is in the response.
Now you’re ready to make a decision request.
Select Make Decision Request and click the
Body tab. Set the Amount
parameter to 10990.
The response body shows that the payment is denied according to our policy of denying payments greater than $10,000 USD.
Let’s try a payment that's less than $10,000 USD.
Change the Amount value in the request body to
990 and click Send.
As you expect, the payment is permitted.