You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$gateway = Omnipay::create('Arca');
$gateway->setUsername(env('ARCA_USERNAME'));
$gateway->setPassword(env('ARCA_PASSWORD'));
$gateway->setReturnUrl(env('ARCA_RETURN_URL')); // Return url, that should be point to your arca webhook route$gateway->setLanguage(\App::getLocale()); // Language$gateway->setAmount(10); // Amount to charge$gateway->setTransactionId(XXXX); // Transaction ID from your system
Call purchase, it will automatically redirect to Arca's hosted page
Create a webhook controller to handle the callback request at your ARCA_RESULT_URL and catch the webhook as follows
$gateway = Omnipay::create('Arca');
$gateway->setUsername(env('ARCA_USERNAME'));
$gateway->setPassword(env('ARCA_PASSWORD'));
$purchase = $gateway->completePurchase()->send();
// Do the rest with $purchase and response with 'OK'if ($purchase->isSuccessful()) {
// Your logic
}
returnnewResponse('OK');
For general usage instructions, please see the main Omnipay
repository.
Support
If you are having general issues with Omnipay, we suggest posting on
Stack Overflow. Be sure to add the
omnipay tag so it can be easily found.
If you want to keep up to date with release anouncements, discuss ideas for the project,
or ask more detailed questions, there is also a mailing list which
you can subscribe to.
If you believe you have found a bug, please report it using the GitHub issue tracker,
or better yet, fork the library and submit a pull request.
About
Arca gateway for Omnipay payment processing library