File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const asMoonpayTx = asObject({
3232 baseCurrency : asMoonpayCurrency ,
3333 baseCurrencyAmount : asNumber ,
3434 baseCurrencyId : asString ,
35- cardType : asOptional ( asValue ( 'apple_pay' , 'google_pay' ) ) ,
35+ cardType : asOptional ( asValue ( 'apple_pay' , 'google_pay' , 'card' ) ) ,
3636 country : asString ,
3737 createdAt : asDate ,
3838 cryptoTransactionId : asString ,
@@ -199,7 +199,13 @@ export const moonpay: PartnerPlugin = {
199199}
200200
201201export function processMoonpayTx ( rawTx : unknown ) : StandardTx {
202- const tx : MoonpayTx = asMoonpayTx ( rawTx )
202+ let tx : MoonpayTx
203+ try {
204+ tx = asMoonpayTx ( rawTx )
205+ } catch ( e ) {
206+ console . log ( e )
207+ throw e
208+ }
203209 const isoDate = tx . createdAt . toISOString ( )
204210 const timestamp = tx . createdAt . getTime ( )
205211
You can’t perform that action at this time.
0 commit comments