syntax = "proto3";

package wix.payment.api.pay.v2;

option java_package = "com.wix.payment.api.pay.v2";

// Callback URLs which are used to return buyer to third party system.
//
// When user clicks to pay for the order he/she is redirected to the payment page. After that (depending on the payment
// status) user is redirected to one of return URLs.
message OrderReturnUrls {
  // URL to redirect buyer in case of approved (successful) transaction (required)
  string success_url = 1;
  // URL to redirect buyer in case of failed/rejected transaction (required)
  string error_url   = 2;
  // URL to redirect buyer in case of buyer canceled the transaction (optional, default: `{error_url}`)
  string cancel_url  = 3;
  // URL to redirect buyer in case of pending transaction (that might take some time to process) (optional, default:
  // `{success_url}`)
  string pending_url = 4;
}