authorize_net_plugin

Creator: coderz1093

Last updated:

0 purchases

authorize_net_plugin Image
authorize_net_plugin Images

Languages

Categories

Add to Cart

Description:

authorize net plugin

authorize_net_plugin #
A simple wrapper around the AuthorizeNet android and ios sdk
Setting up #
In Android you have to to a bit of setup.
First go to android/app/build.gradle in in the android {} block add
repositories {
jcenter()
}

dependencies {
implementation 'net.authorize:accept-sdk-android:1.0.2'
}
copied to clipboard
Then go into your android/app/src/main/AndroidManifest.xml file and add
xmlns:tools="http://schemas.android.com/tools" in the
How to use #

add to pubfile

Get the Card Token used to make the createTransactionRequest request
authorizeNetToken = await AuthorizeNetPlugin.authorizeNetToken(
env: 'test',
cardNumber: '370000000000002',
expirationMonth: '02',
expirationYear: '2022',
cardCvv: '900',
zipCode: '30028',
cardHolderName: 'Jeremiah',
apiLoginId: '7594xDmRz',
clientId:
'34Fg4ta24e5Y6VQ8guqgUKguPLxW7EwqWWd2wSzCjwDUTN65w9SZ2Qk3p95X93cs');
copied to clipboard
This will spit out the token you use to make the createTransactionRequest POST request
{
"createTransactionRequest": {
"merchantAuthentication": {
"name": "YOUR_API_LOGIN_ID",
"transactionKey": "YOUR_TRANSACTION_KEY"
},
"refId": "123456",
"transactionRequest": {
"transactionType": "authCaptureTransaction",
"amount": "5",
"payment": {
"opaqueData": {
"dataDescriptor": "COMMON.ACCEPT.INAPP.PAYMENT",
"dataValue": authorizeNetToken
}
}
}
}
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.