niki/paymentapp/protobuf/payment.proto

25 lines
521 B
Protocol Buffer

syntax = "proto3";
package payment;
option go_package = "git.gocasts.ir/ebhomengo/niki/paymentapp/protobuf;paymentpb";
service PaymentService {
rpc InitiatePayment (InitiatePaymentRequest) returns (InitiatePaymentResponse);
}
message InitiatePaymentRequest {
uint64 user_id = 1;
string payable_type = 2;
uint64 payable_id = 3;
string gateway_code = 4;
string callback_url = 5;
int64 amount = 6;
}
message InitiatePaymentResponse {
uint64 payment_id = 1;
string redirect_url = 2;
}