d76fa0a6cc
* Change type of payment requirements to string[] * Add CanMakePaymentArgumentCart type and update CanMakePaymentArgument * Add getCanMakePaymentArg function to get the arg, allows reusability * Check saved methods gateway's to see if they can make payment * Make canMakePaymentArg a dependency of the useMemo * Remove await from sync function call * Update variable names to better reflect what they store * Add tests to ensure saved payment methods don't show if canPay is false * Rename save-payment-method-options to tsx * Update saved payment method options to TS * Fix TS error in saved-payment-method-options test |
||
---|---|---|
.. | ||
check-payment-methods.ts | ||
filter-active-saved-payment-methods.ts | ||
set-default-payment-method.ts |