mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 19:00:26 +01:00
IAP Resolve and synchronize payment method from subscription object.
This commit is contained in:
@@ -14,6 +14,6 @@ data class StripeSetupIntent @JsonCreator constructor(
|
||||
@JsonProperty("id") val id: String,
|
||||
@JsonProperty("client_secret") val clientSecret: String,
|
||||
@JsonProperty("status") val status: StripeIntentStatus,
|
||||
@JsonProperty("payment_method") val paymentMethod: String?,
|
||||
@JsonProperty("payment_method") val paymentMethodId: String?,
|
||||
@JsonProperty("customer") val customer: String?
|
||||
)
|
||||
|
||||
@@ -63,7 +63,7 @@ class StripeSetupIntentTest {
|
||||
|
||||
assertEquals(intent.id, "seti_1LyzgK2eZvKYlo2C3AhgI5IC")
|
||||
assertEquals(intent.clientSecret, "seti_1LyzgK2eZvKYlo2C3AhgI5IC_secret_MiQXAjP1ZBdORqQWNuJOcLqk9570HkA")
|
||||
assertEquals(intent.paymentMethod, "pm_sldalskdjhfalskjdhf")
|
||||
assertEquals(intent.paymentMethodId, "pm_sldalskdjhfalskjdhf")
|
||||
assertEquals(intent.status, StripeIntentStatus.REQUIRES_PAYMENT_METHOD)
|
||||
assertEquals(intent.customer, "cus_Fh6d95jDS2fVSL")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user