Closed heruwala closed 2 months ago
This pull request updates the createCustomerProfile method to accept a PaymentTokenInfo object, which includes a payment token and a boolean flag to set the default payment instrument. This change enhances flexibility when creating customer profiles. The corresponding test cases and method signatures in related interfaces have also been updated to reflect this change.
Files | Changes |
---|---|
data-access/seedwork/services-seedwork-payment-cybersource-interfaces/index.ts data-access/src/app/infrastructure-services/payment/index.ts |
Updated method signatures to accept PaymentTokenInfo object instead of a string for createCustomerProfile. |
This pull request adds the ability to create a Cybersource customer profile with a default payment. Previously, the
createCustomerProfile
method accepted a payment token as a string, but now it accepts aPaymentTokenInfo
object that includes the payment token and a boolean flag indicating whether it should be set as the default payment instrument. This allows for more flexibility when creating customer profiles.Summary by Sourcery
This pull request enhances the Cybersource integration by allowing the creation of customer profiles with a default payment instrument. The
createCustomerProfile
method now accepts aPaymentTokenInfo
object, which includes the payment token and a flag to set it as the default payment instrument. Corresponding tests have been updated to reflect this change.PaymentTokenInfo
object.createCustomerProfile
method to accept aPaymentTokenInfo
object instead of a payment token string, allowing for more flexibility.PaymentTokenInfo
object in thecreateCustomerProfile
method.