rotassator / omnipay-payway-restapi Goto Github PK
View Code? Open in Web Editor NEWPayWay REST API gateway for Omnipay payment processing library
License: MIT License
PayWay REST API gateway for Omnipay payment processing library
License: MIT License
when trying to install this package in a new project with omnipay 3 I get:
rotassator/omnipay-payway-restapi 1.9.0 requires omnipay/common ~2.0
Any plans to update this repo to use Omnipay 3? https://omnipay.thephpleague.com/changelog/#upgrading-gateways-from-2x-to-3x
with out certificate i was getting
0 - [curl] 60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
but even after downloading and setting ssl certificate as described. i am getting
0 - Invalid option passed to ssl.certificate_authority: cacert.pem
@rotassator Can you add some sample usage of your package please ?
Such as
create and maintain customers
generate single-use tokens
take payments using tokenised credit card
It will be very helpful for someone new like me
can you please help me to implement recurring billing? i saw the functions for creating customer and purchase w frequency params.
I dont know if i am doing correct, it would be great if you provide me a simple example.
As per the trusted frame documentation, It is possible for us to make a payment transaction without creating new customer.
https://www.payway.com.au/docs/rest.html#transactions
This is possible if you send singleUseTokenId in
Message/PurchaseRequest.php data array line number 40
if($this->getSingleUseTokenId()){
$data['singleUseTokenId'] = $this->getSingleUseTokenId();
}
So the implementation will go like this
$gateway->setApiKeyPublic($this->publicKey);
$gateway->setApiKeySecret($this->secretKey);
$customerId = 'UNREGISTEDUSER01'; /// can be any value
// process the payment
$message = $gateway->purchase([
'customerNumber' => $customerId,
'singleUseTokenId' => $singleUseToken,
'principalAmount' => 610.00,
'currency' => 'AUD',
'orderNumber' => 'ORDER'
]);
$response = $message->send();
I hope someone will find this useful
Can you please help me to install the driver for payway? I am using latest laravel v8,40 on local xampp server
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.3",
"laravel/framework": "^8.40",
"laravel/tinker": "^2.5",
"league/omnipay": "^3.1",
"omnipay/common": "^3.0"
},
these packages installed successfully. but the issue with omnipay-payway
I am attaching screenshot from my command line-
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.