if (requestCode == REQUEST_PAY) { if (resultCode == RESULT_OK) { Payment pay = data.getExtras().getParcelable(Intents.EXTRA_PAYMENT); VaultedCard vc = pay.getCardTransaction().getVaultedCard();which will return:
pay.getCardTransaction().getVaultedCard(),getToken()for /pay api I'm getting:
`"7297162975886668 not found for merchant: 460"`It is interesting that /pay api works if I use the token which can be obtained via web api (when encrypting the card and making the initial payment with `cardEncrypted`).
`pay.getCardTransaction().getToken()`and
pay.getCardTransaction().getVaultedCard().getToken()give the same result...
Instead of just the token, you should be passing in the entire vaultedCard object as an argument using v2/pay.
vaultedCard = {"first6":"000000","last4":"0000","expirationDate":"1230","token":"00000000000000"}post_data = { "vaultedCard": vaultedCard, "orderId": orderID, "streetAddress": streetAddress, "zip": zip, "currency": "usd", "amount": amount, "tipAmount": tipAmount, "taxAmount": taxAmount, "expMonth": expMonth, "cvv": CVV, "expYear": expYear, "last4": cardNumber[-4:], "first6": cardNumber[0:6] }
Hi @intooapps, please either search these forums for a similar question or post a new question if none of the answers are what you're looking for.
@intooapps Did you find out an answer to this? I've been looking in the forum with no success.
3 People are following this question.