jeremiahlukus / authorize_net_plugin Goto Github PK
View Code? Open in Web Editor NEWauthorize_net_plugin for flutter
License: Other
authorize_net_plugin for flutter
License: Other
Currently it appears one is forced to add a valid zip code when requesting a nonce however this is not mandatory in the SDK. Before migrating to null-safety this was fine but after the upgrade to sound null safety its required..Thea are some cases where one might not require a zip code.
Hi, Thanks for your work.
I want to implement authorize in my app with the features of storing information of cards of customers on authorize servers so that my user doesn't need to add it again for their next purshase?
I want to integrate google pay and apple pay in my flutter app.
It is possible to integrate google pay and apple pay in flutter.
Hi, @jeremiahlukus
As we discussed before in the previous issue, I want to create a customer profile, so the customer does not need to put his payment information again & again.
Creating a customer profile need to send the information over HTTP. As shown in the example in the documentation of Authorize.Net. https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-payment-profile
{
"createCustomerPaymentProfileRequest": {
"merchantAuthentication": {
"name": "API-KEY",
"transactionKey": "TRANSACTION-KEY"
},
"customerProfileId": "10000",
"paymentProfile": {
"billTo": {
"firstName": "John",
"lastName": "Doe",
"address": "123 Main St.",
"city": "Bellevue",
"state": "WA",
"zip": "98004",
"country": "US",
"phoneNumber": "000-000-0000"
},
"payment": {
"creditCard": {
"cardNumber": "4111111111111111",
"expirationDate": "2023-12"
}
},
"defaultPaymentProfile": false
},
"validationMode": "liveMode"
}
}
As well as, if I use the package, first I need to get Customer Payment Profile
over HTTP and then put that information into authorizeNetToken()
callback
AuthorizeNetPlugin.authorizeNetToken(
env: 'test',
cardNumber: '370000000000002',
expirationMonth: '02',
expirationYear: '2022',
cardCvv: '900',
zipCode: '30028',
cardHolderName: 'Jeremiah',
apiLoginId: '7594xDmRz',
clientId:
'34Fg4ta24e5Y6VQ8guqgUKguPLxW7EwqWWd2wSzCjwDUTN65w9SZ2Qk3p95X93cs');
This defeats the whole purpose of using the package while using customer profiles. Because there is an API available to execute without putting the information again. https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-customer-profile
{
"createTransactionRequest": {
"merchantAuthentication": {
"name": "9bSaKC66uHg",
"transactionKey": "8xszx7B7674QxHqe"
},
"refId": "123456",
"transactionRequest": {
"transactionType": "authCaptureTransaction",
"amount": "45",
"profile": {
"customerProfileId": "40338125",
"paymentProfile": { "paymentProfileId": "1000177237" }
},
"lineItems": {
"lineItem": {
"itemId": "1",
"name": "vase",
"description": "Cannes logo",
"quantity": "18",
"unitPrice": "45.00"
}
},
"processingOptions": {
"isSubsequentAuth": "true"
},
"subsequentAuthInformation": {
"originalNetworkTransId": "123456789123456",
"originalAuthAmount": "45.00",
"reason": "resubmission"
},
"authorizationIndicatorType": {
"authorizationIndicator": "final"
}
}
}
}
Because I want to keep app PCI compliant and don't want to send payment data over HTTP. I would like to use your package.
Can you please put some methods to execute creating customer profile and also charging it while using Under the hood SDK?
This will always return success even when thea is an error.
@Override public void onErrorReceived(ErrorTransactionResponse errorResponse) { Message error = errorResponse.getFirstErrorMessage(); System.out.println("::::::::::::::::::::::::"); System.out.println( error.getMessageText()); System.out.println("::::::::::::::::::::::::"); if(channelResult!=null){ channelResult.success(error.getMessageText()); } }
This comes as success so the try/catch wont work when calling the AuthorizeNetPlugin.authorizeNetToken method
I/System.out(23569): :::::::::::::::::::::::: I/System.out(23569): failed to connect to apitest.authorize.net/198.241.206.22 (port 443) from /102.83.13.83 (port 33324) after 5000ms I/System.out(23569): ::::::::::::::::::::::::
RECOMMENDED FIX
channelResult.error({replace_with_any_code},error.getMessageText(),null);
I am developing an application that uses Authorize.net payment to buy products that are not in-app service but they also want to integrate Apple pay and Google pay to buy products how can I do this.
Scenarios where we enter a too long CVV. We get CVV Invalid error message in logs. But the app gets stuck in the await call. Need an exit. I'd suggest you add a callback in such scenarios where we are not getting proper response from the backend, so that we can easily distinguish between the success message and the failures.
Is the process only uses AuthorizeNet servers,
How can I update my server with payment process result in order to deliver the service and generate an invoice?
Also is it possible to use payment Profile form mobile app?
Thank you.
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.