You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubstructPaymentMethod{/// Type of payment method (i.e. `DEBIT_CARD`, `BITCOIN_ADDRESS`, `SQUARE_PAY`)pubkind:String,/// A JSON Schema containing the fields that need to be collected in order to use this/// payment methodpubrequired_payment_details:Option<JsonValue>,/// The fee expressed in the currency's sub units to make use of this payment methodpubfee_subunits:Option<String>,}
You'll notice required_payment_details is of type Option<JsonValue>
Rather than JsonValue, let's consider implementing a dedicated type for JSON Schemas, or better yet, use an existing open source lib if one exists which meets out requirements
The text was updated successfully, but these errors were encountered:
Right now, for example we have this
You'll notice
required_payment_details
is of typeOption<JsonValue>
Rather than
JsonValue
, let's consider implementing a dedicated type for JSON Schemas, or better yet, use an existing open source lib if one exists which meets out requirementsThe text was updated successfully, but these errors were encountered: