UNPKG

paymentjs

Version:

A framework agnostic, multi-gateway payment processing library for Node.js, Inspired by Omnipay for PHP

20 lines (18 loc) 392 B
import Response from './response'; export default class Payment { constructor(config) { this.config = this.initialize(config); } get Response(){ return Response; } initialize(config){ return config; } async purchase(order, options){ return this.response(order, {}); } response(body, options){ return new this.Response(body, options, this.config); } }