NetworkService

NetworkService is used by recipient to create a payment intents

Method NameRequest TypeResponse TypeDescription
CreatePaymentIntentCreatePaymentIntentRequestCreatePaymentIntentResponse
GetQuoteGetQuoteRequestGetQuoteResponse

RecipientService

RecipientService is implemented by recipient in order to get updates on payment intents

Method NameRequest TypeResponse TypeDescription
ConfirmPayInConfirmPayInRequestConfirmPayInResponsenotifies recipient that pay-in providers received payment from payer
ConfirmPaymentConfirmPaymentRequestConfirmPaymentResponsenotifies recipient about successful payment
RejectPaymentIntentRejectPaymentIntentRequestRejectPaymentIntentResponsenotifies recipient about failed payment

Requests And Response Types

ConfirmPayInRequest

FieldTypeLabelDescription
payment_intent_iduint64payment_intent_id from the CreatePaymentIntentResponse
payment_referencestringpayment_reference from the CreatePaymentIntentRequest
payment_methodtzero.v1.common.PaymentMethodTypepay-in payment method

ConfirmPayInResponse

This message has no fields defined.

ConfirmPaymentRequest

FieldTypeLabelDescription
payment_intent_iduint64payment_intent_id from the CreatePaymentIntentResponse
payment_referencestringpayment_reference from the CreatePaymentIntentRequest
payment_methodtzero.v1.common.PaymentMethodTypepay-in payment method
pay_out_amounttzero.v1.common.Decimalamount which will be paid out denominated in pay_out_currency of the payment intent
receipttzero.v1.common.PaymentReceiptPayment receipt might contain metadata about payment recognizable by pay-in provider.

ConfirmPaymentResponse

This message has no fields defined.

CreatePaymentIntentRequest

FieldTypeLabelDescription
payment_referencestringIdempotency Key payment reference to identify payment by client.
pay_in_currencystringPay-in currency
pay_in_amounttzero.v1.common.DecimalAmount denominated in the pay-in currency
pay_out_currencystringPayout currency
pay_out_detailstzero.v1.common.PaymentDetailsPayout payment details

CreatePaymentIntentResponse

FieldTypeLabelDescription
payment_intent_iduint64
pay_in_payment_methodsCreatePaymentIntentResponse.PaymentMethodrepeated

CreatePaymentIntentResponse.PaymentMethod

FieldTypeLabelDescription
payment_urlstring
provider_iduint32
payment_methodtzero.v1.common.PaymentMethodType

GetQuoteRequest

TODO: enrich with more fields

FieldTypeLabelDescription
pay_in_currencystringPay-in currency
pay_in_amounttzero.v1.common.DecimalAmount denominated in the pay-in currency
pay_out_currencystringPayout currency
pay_in_payment_methodtzero.v1.common.PaymentMethodTypepayment method to use for the pay-in, e.g. bank transfer, card, etc.
pay_out_payment_methodtzero.v1.common.PaymentMethodTypepayment method to use for the pay-out, e.g. bank transfer, card, etc.

GetQuoteResponse

FieldTypeLabelDescription
quoteGetQuoteResponse.Quote
not_foundGetQuoteResponse.NotFound

GetQuoteResponse.NotFound

This message has no fields defined.

GetQuoteResponse.Quote

FieldTypeLabelDescription
ratetzero.v1.common.DecimalRate of pay-in currency to pay-out
expirationgoogle.protobuf.TimestampTime until when quote is valid. Used only for reference. Actual quote is determined at the moment of payment.

RejectPaymentIntentRequest

FieldTypeLabelDescription
payment_intent_iduint64payment_intent_id from the CreatePaymentIntentResponse
payment_referencestringpayment_reference from the CreatePaymentIntentRequest
reasonstring

RejectPaymentIntentResponse

This message has no fields defined.