Skip to content

Add Credit Card payments #86

Description

@jfrosorio

Eupago's Credit Card method creates a secure hosted form (3D Secure) that the customer is redirected to. It is the highest-demand payment method still missing from the package.

API contract (POST /api/v1.02/creditcard/create, Authorization: ApiKey … header, JSON body):

  • Request: payment.identifier, payment.amount.{value,currency}, payment.successUrl, payment.failUrl, payment.backUrl, payment.lang, customer.{email,notify}.
  • Success response: transactionStatus, transactionID, reference, redirectUrl.
  • Rejection: transactionStatus: Rejected with code and text.
  • Payment confirmation arrives through the existing Realtime 1.0 webhook with mp = CC:PT.

Scope

  • CreditCard payment class (redirect flow, like PaysafeCard) with the ApiKey-header transport and v1.02 response parsing shared with refunds.
  • CreditCardReference model, credit_card_references migration, HasCreditCardReferences trait, CreditCardReferencePaid event, callback controller and request, /eupago/creditcard/callback route.
  • Feature tests for creation, callback and trait helper.
  • Docs page, callbacks table, README and UPGRADE entry for the new migration.

Ships as v3.8.0 (additive minor).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions