GitHub

DaffPaymentResponse

import { DaffPaymentResponse } from '@daffodil/payment'

A payment response that can be sent to an ecommerce platform to set payment information for the provided method.

interface DaffPaymentResponse<T = unknown> {
  method: string
  data: T
}

Properties

method
string

The payment method. This can be specific to the platform in use and should not be considered a constant.

data
T

The payment data that represents validated payment information.