(payment) add payment test to about page

This commit is contained in:
Julien Calixte
2020-02-23 01:29:18 +01:00
parent 9644852505
commit def7452a60
7 changed files with 105 additions and 2 deletions

33
src/models/IPayment.ts Normal file
View File

@@ -0,0 +1,33 @@
export default interface IPayment {
token: {
id: string
object: string
card: {
id: string
object: 'token'
address_city: string | null
address_country: string | null
address_line1: string | null
address_line1_check: string | null
address_line2: string | null
address_state: string | null
address_zip: string
address_zip_check: string
brand: string
country: string
cvc_check: string
dynamic_last4: string | null
exp_month: number
exp_year: number
funding: string
last4: string
name: string | null
tokenization_method: string | null
}
client_ip: string
created: number
livemode: boolean
type: string
used: boolean
}
}

View File

@@ -0,0 +1,3 @@
export default interface IPaymentIntent {
clientSecret: string
}