GP-5: Add GooglePay support (#336)

This commit is contained in:
Vladimir Pankrashkin 2018-05-28 15:19:50 +03:00 committed by GitHub
parent 1005b6c6f2
commit 1510cd7caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ struct WrappedPaymentTool {
union PaymentRequest {
1: ApplePayRequest apple
2: SamsungPayRequest samsung
3: GooglePayRequest google
}
struct ApplePayRequest {
@ -23,6 +24,11 @@ struct SamsungPayRequest {
2: required string reference_id
}
struct GooglePayRequest {
1: required string gateway_merchant_id
2: required base.Content payment_token
}
struct UnwrappedPaymentTool {
1: required CardInfo card_info
2: required CardPaymentData payment_data
@ -32,6 +38,7 @@ struct UnwrappedPaymentTool {
union PaymentDetails {
1: ApplePayDetails apple
2: SamsungPayDetails samsung
3: GooglePayDetails google
}
struct ApplePayDetails {
@ -45,6 +52,11 @@ struct SamsungPayDetails {
1: optional string device_id
}
struct GooglePayDetails {
1: required string message_id
2: required base.Timestamp message_expiration
}
struct CardInfo {
1: optional string display_name
2: optional string cardholder_name
@ -63,6 +75,7 @@ enum CardClass {
union CardPaymentData {
1: TokenizedCard tokenized_card
2: Card card
}
struct TokenizedCard {
@ -71,6 +84,11 @@ struct TokenizedCard {
3: required AuthData auth_data
}
struct Card {
1: required string pan
2: required ExpDate exp_date
}
struct ExpDate {
/** Месяц 1..12 */
1: required i8 month