Accept a one-time payment
Create a short-lived token from supported card or check details, submit the charge, and return the result to the application without treating raw payment credentials as ordinary business data.
A payment button is only the visible step. Your application also has to tokenize card or check details, connect gateway customers to your records, manage saved payment methods, submit charges, track subscriptions, issue refunds, and handle failures. FoleyBridge built MiPaymentChoice Cashier to put those capabilities behind a consistent Laravel interface.
Inspect the source code, README, tests, change history, and MIT license on GitHub.
The payment solution
MiPaymentChoice Cashier translates supported gateway actions into Laravel services, models, traits, configuration, and database records that an application can use.
Create a short-lived token from supported card or check details, submit the charge, and return the result to the application without treating raw payment credentials as ordinary business data.
Turn a supported token into a reusable payment method, retrieve saved methods, choose the default, and remove a method through the package interface.
Create supported subscriptions, add a trial period, inspect subscription status, cancel at the end of a billing period or immediately, and resume an eligible subscription.
Request a supported full or partial refund from the same application that holds the customer and billing context.
Create or identify the gateway customer associated with an application user and retain the relationship needed for later payment actions.
Distinguish supported validation, authentication, gateway, and payment failures so the application can show an appropriate response or send the item for follow-up.
What this example demonstrates
The package demonstrates the engineering required between a gateway’s endpoints and the invoices, customers, subscriptions, and transactions your staff actually manages.
Wrap supported API requests in methods that use the terminology and records already present in the application.
Connect the gateway’s customer, token, payment-method, subscription, and transaction identifiers to the correct application records.
Keep authentication, request handling, response parsing, and common billing actions in one maintained integration layer.
Convert provider and validation failures into exceptions the surrounding application can handle deliberately.
Provide configuration, database migrations, models, services, and a Laravel trait instead of scattering gateway calls throughout the codebase.
Publish source, tests, setup instructions, requirements, and license terms so developers can examine the integration before relying on it.
What your integration must handle
Your payment solution has to connect money movement to the right customer, invoice, order, subscription, or account—and tell authorized people what happened.
Inside the Laravel application
The public package shows the specific footprint FoleyBridge created for a Laravel application.
Environment settings hold the MiPaymentChoice username, password, merchant key, and gateway address.
Published migrations create subscription and payment-method tables and add the gateway customer identifier to the application’s users table.
A Laravel trait gives the application user supported customer, payment-method, charge, refund, and subscription functions.
Dedicated services handle supported QuickPayments, token, customer, and API requests without duplicating request code in every screen.
Application records preserve the payment-method and subscription information needed by the surrounding business logic.
The application can catch supported API and payment failures and decide what the user should see next.
Built around your transaction
FoleyBridge can build payment screens, provider connections, customer and transaction records, billing rules, permission checks, failure handling, and reporting into the business system you need.
Important boundary
MiPaymentChoice Cashier does not provide a merchant account, set gateway pricing, or determine your legal, accounting, card-industry, refund, or customer-notice obligations. A production application also needs secure credential storage, appropriate access controls, logging, and testing against the provider environment.
Review before use. The official repository contains the current code, requirements, setup instructions, tests, and MIT license.
Your payment system
Describe the application, payment provider, transaction types, recurring rules, and reports you need.