import { NextFunction , Response , Request } from 'express' ; import { finishCoinbaseCommercePayment } from 'lib/payment/coinbase-commerce' ; export function api_finishCoinbaseCommercePayment ( req , res , next ) { finishCoinbaseCommercePayment ( req . body . jwt ) . then ( info => res . status ( 200 ) . json ( info ) ) . catch ( next ) ; }