feat: add base package payment initiation and verification
This commit is contained in:
@@ -24,6 +24,21 @@ service PackageContract
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
// Base Package Payment (56M پکیج پایه)
|
||||
rpc InitiateBasePackagePayment(InitiateBasePackagePaymentRequest) returns (InitiateBasePackagePaymentResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/InitiateBasePackagePayment"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
|
||||
rpc VerifyBasePackagePayment(VerifyBasePackagePaymentRequest) returns (VerifyBasePackagePaymentResponse){
|
||||
option (google.api.http) = {
|
||||
post: "/VerifyBasePackagePayment"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
message GetPackageRequest
|
||||
{
|
||||
@@ -92,3 +107,43 @@ message DecimalValue
|
||||
|
||||
sfixed32 nanos = 2;
|
||||
}
|
||||
|
||||
// Base Package Payment Messages
|
||||
|
||||
// درخواست پرداخت پکیج پایه
|
||||
// UserId از CurrentUserService گرفته میشود
|
||||
message InitiateBasePackagePaymentRequest
|
||||
{
|
||||
string callback_url = 1;
|
||||
}
|
||||
|
||||
message InitiateBasePackagePaymentResponse
|
||||
{
|
||||
bool success = 1;
|
||||
string message = 2;
|
||||
int64 order_id = 3;
|
||||
int64 transaction_id = 4;
|
||||
int64 amount = 5;
|
||||
string payment_gateway_url = 6;
|
||||
string authority = 7;
|
||||
}
|
||||
|
||||
// تأیید پرداخت پکیج پایه (بعد از بازگشت از درگاه)
|
||||
message VerifyBasePackagePaymentRequest
|
||||
{
|
||||
int64 order_id = 1;
|
||||
int64 transaction_id = 2;
|
||||
string authority = 3;
|
||||
string status = 4;
|
||||
}
|
||||
|
||||
message VerifyBasePackagePaymentResponse
|
||||
{
|
||||
bool success = 1;
|
||||
string message = 2;
|
||||
int64 order_id = 3;
|
||||
int64 transaction_id = 4;
|
||||
google.protobuf.StringValue ref_id = 5;
|
||||
int64 wallet_balance = 6;
|
||||
int64 discount_balance = 7;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user