문제

Using Venmo Touch, I'd client side validation and post the encrypted credit card details to our application server.

Application server retrieves the params inside the post method, and posts the retrieved params to Braintree server.

<?php $result = Braintree_Transaction::sale(array(
'amount' => '10.00',
'credit_card' => array(
    'number' => $_POST['encrypted_card_number'],
    'expirationMonth' => $_POST['encrypted_expiration_month'],
    'expirationYear' => $_POST['encrypted_expiration_year']
),
'options' => array(
    'venmo_sdk_session' => $_POST['venmo_sdk_session']
)));?>

If we ignore the 'options' tag, payment is successful. Upon introducing the 'options' array with element venmo_sdk_session Braintree server doesn't responds.

I'd doubt the key spelling/case sensitive "venmo_sdk_session".

도움이 되었습니까?

해결책

Problem is not within the code.

We need to enable Venmo Touch, Payment Method Verification on settings screen of Braintree site using our account.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top