Test integration – acceptance criteria
Last updated: Dec 27th, 10:35am
Learn about the acceptance test criteria to test your Disputes API integration. For concepts, see Disputes Overview.
Terminology used:
- SNAD: Significantly Not As Described
- INR: Item Not Received
To perform various actions as a buyer to test the updated webhooks, wait a few minutes after creation for the action to be available.
Dispute created webhook
Inquiry Stage
PayPal SNAD case
The customer chooses a completed transaction to open an SNAD case.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The action succeeds and the dispute created webhook is sent. |
|
PayPal INR case
The customer chooses a completed transaction to open an INR case.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The action succeeds and the dispute created webhook is sent. |
|
Claim stage
PayPal SNAD case
The customer chooses a completed transaction to open an SNAD case.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The action succeeds and the dispute created webhook is sent. |
|
PayPal INR case
The customer chooses a completed transaction to open an INR case.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The action succeeds and the dispute created webhook is sent. |
|
PayPal unauthorized dispute case
The customer chooses a completed transaction to open an unauthorized case.
Note: When testing unauthorized disputes, the buyer and merchant receive different dispute IDs. For merchants, the format and identifiers of the notifications stay the same as those of other dispute types.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The action succeeds and the dispute created webhook is sent. |
|
PayPal transaction error dispute case
Six different reason codes are applicable for transaction error disputes.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The action succeeds and the dispute created webhook is sent. |
|
Duplicate dispute creation for a transaction is blocked
The customer cannot open a duplicate dispute on a transaction that already has an existing dispute. Even after the dispute case is closed, the customer cannot open a dispute on the same transaction again.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The customer cannot open a duplicate dispute on the same transaction. |
The customer cannot open a duplicate dispute on the same transaction. |
Dispute updated webhook
Inquiry stage
Customer sends a message to the merchant
The customer sends message to the merchant for INR or SNAD dispute in the INQUIRY phase.
Test steps | PayPal actions | Client actions |
---|---|---|
|
PayPal sends dispute updated webhook with the message details |
The client receives the |
Claim stage
Buyer provides return tracking information
The merchant accepts the dispute claim and provides the buyer with the return shipping address. The buyer then returns the item and updates the return tracking number in the Resolution Center.
Test steps | PayPal actions | Client actions |
---|---|---|
|
PayPal sends the dispute updated webhook. |
|
Change reason
The customer updates the INR reason code to SNAD or Unauthorized.
Test steps | PayPal actions | Client actions |
---|---|---|
|
PayPal sends the dispute updated webhook with new reason code. |
The client receives the |
Dispute resolved webhook
Customer cancels dispute
The customer cancels a dispute in resolution center.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The action succeeds and PayPal sends the dispute resolved webhook. |
The client receives the |
Dispute case close (customer wins)
The PayPal agent settles the case in the customer's favor.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The action succeeds and PayPal sends the dispute resolved webhook. |
The client receives the |
Dispute case close (merchant wins)
The PayPal agent settles the case in the merchant's favor.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The action succeeds and PayPal sends the dispute resolved webhook. |
The client receives the |
Identify unique webhook through webhook ID
Client can use webhook ID in dispute webhooks to identify a duplicated webhook.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The unique ID is available in the webhook payload. The client can identify the webhook uniquely through the webhook ID. |
Response due date and HATEOAS links
To determine whether to call provide evidence, accept claim, make offer, acknowledge item return or appeal API, the client must check whether the corresponding HATEOAS link is available in the links section of the Show dispute details response. The client can check the seller_response_due_date
to determine the deadline by which the merchant must respond to the dispute.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
|
Merchant response – Inquiry Stage
The merchant can send a message to the buyer, provide evidence, make an offer, or accept the claim on a dispute in the inquiry phase.
Prerequisite: The merchant should have opted in for the dispute phase.
Send Message
PayPal SNAD case
The customer chooses a completed transaction to open a SNAD case. The merchant can reply to the customer through the "send message" option for that dispute.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds and the merchant message is visible in show dispute details. |
Each API call succeeds and the merchant message is visible in Show dispute details. |
PayPal INR case
The customer chooses a completed transaction to open an INR case. Merchants can reply to the customer through the "send message" option for that dispute.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds and merchant message is visible in show dispute details and message is visible in the Resolution Center. |
Each API call succeeds and the merchant message is visible in Show dispute details. |
Make offer
Each API call succeeds and the merchant message is visible in Show dispute details.
To determine whether to call provide evidence, accept claim, make offer, acknowledge item return or appeal API, the client must check whether the corresponding HATEOAS link is available in the links section of the Show dispute details response. The client can check the seller_response_due_date
to determine the deadline by which the merchant must respond to the dispute.
Refund with return – SNAD case
The customer chooses a completed transaction to open a SNAD case. The merchant can make an offer to the customer to return the item for a refund.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds and |
Each API call succeeds and |
Refund with replacement – SNAD case
The customer selects a completed transaction to open a SNAD case. The merchant can offer the customer a replacement item along with a refund.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds and |
Each API call succeeds and |
Replacement without refund – SNAD case
IThe customer chooses a completed transaction to open a SNAD case. The merchant can make an offer to the customer to replace the item to amicably resolve the case.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds and returns expected response. |
Each API call succeeds and |
PayPal INR case
The customer chooses a completed transaction to open an INR case. Merchants can make an offer to the customer to amicably resolve the dispute
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds and |
Each API call succeeds and |
Acknowledge item return
If the merchant offers a refund with the return of the item and the buyer accepts it, the buyer can upload the return tracking information. After the buyer completes this step, the merchant has the option to acknowledge receipt of the item.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
Each API call succeeds. |
Provide Evidence
PROOF_OF_FULFILLMENT evidence
PayPal enables client to provide tracking information for INR cases.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
Each API call succeeds. |
PROOF_OF_REFUND evidence
PayPal helps the client to provide refund information for the dispute cases.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
Each API call succeeds. |
OTHER evidence
PayPal helps the client to provide multiple photos, materials, and files as evidence for the cases.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
Each API call succeeds. |
Accept claim
Client accepts to refund the requested dispute amount to customer
If the client decides not to dispute the case, they can accept the claim to refund the customer.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds and returns the expected response. |
Each API call succeeds and returns the expected response. The client receives the |
Escalate
PayPal SNAD case
The customer chooses a completed transaction to open a SNAD case. The merchant escalates the case because they cannot reach an amicable resolution with the customer.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds, and the dispute lifecycle stage is updated from |
Each API call succeeds, and the dispute lifecycle stage is updated from |
PayPal INR case
The customer chooses a completed transaction to open an INR case. The merchant escalates the case as they cannot reach an amicable resolution with the customer.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds, and the dispute lifecycle stage is updated from |
Each API call succeeds, and the dispute lifecycle stage is updated from |
Merchant response - Claim stage
The merchant can provide evidence or accept a claim on a dispute in the Claim phase.
Prerequisite: The merchant should have opted out of the dispute phase.
Provide evidence
PROOF_OF_FULFILLMENT evidence
PayPal helps the client to provide tracking information for INR cases.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
Each API call succeeds. |
PROOF_OF_REFUND evidence
PayPal helps the client to provide refund information for the cases.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
Each API call succeeds. |
OTHER evidence
PayPal helps the client to provide multiple photos, materials, and files as evidence for the cases.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
Each API call succeeds. |
Accept claim
Client accepts to refund requested dispute amount to customer
If the client decides not to dispute the case, the client can accept the claim to refund the customer.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds and returns the expected response. |
Each API call succeeds and returns the expected response. The client receives the |
Client accepts claim to refund customer if customer returns item to specified address
If the case is SNAD, the client can refund the customer for returning the item.
Test steps | PayPal actions | Client actions |
---|---|---|
|
The tracking information is returned in show dispute details. |
The client can get tracking information in show dispute details and update the case. |
Client agrees to refund customer a different amount from the disputed amount (partial refund)
If the case is SNAD, the client can refund the customer for an amount less than the customer's requested refund for returning the item.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds and returns the expected response. |
Each API call succeeds. |
Appeal dispute
Appeal with PROOF_OF_FULFILLMENT
If the case is decided against the merchant, the client can appeal the dispute by providing fulfillment information for INR, Unauthorized, or other cases.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
Each API call succeeds. |
Appeal with PROOF_OF_REFUND
If the case is decided against the merchant, the client can appeal the dispute by providing refund information for all reason codes.
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
Each API call succeeds. |
Appeal with OTHER evidence
Test steps | PayPal actions | Client actions |
---|---|---|
|
Each API call succeeds. |
Each API call succeeds. |