vinubangs's avatar

how to get transaction id and name in bluesnap payment gateway

I am using bluesnap payment gateway in Laravel. And it is working properly. But in return I am not getting transaction id and customer name is not showing in sandbox account also.

$environment = 'sandbox'; // or 'production'
$keys = \tdanielcox\Bluesnap\Bluesnap::init($environment, 'API_111111111111111111111', 'password11');

$response = \tdanielcox\Bluesnap\CardTransaction::create([
    'creditCard' => [
        'firstName' => 'Jane',
        'lastName' => 'Shopper',
        'cardNumber' => '3566000020000410',
        'expirationMonth' => '02',
        'expirationYear' => '2023',
        'securityCode' => '123'
    ],
    'amount' => 10.00,
    'currency' => 'USD',
    'recurringTransaction' => 'ECOMMERCE',
    'cardTransactionType' => 'AUTH_CAPTURE',
]);

if ($response->failed())
{
    $error = $response->data;
    $transaction = $response->data;
echo"<pre>";
print_r($transaction);
echo"</pre>";

    // handle error
}

$transaction = $response->data;
echo"<pre>";
print_r($transaction);
echo"</pre>";
//$transaction;

My success response is:

tdanielcox\Bluesnap\Models\CardTransaction Object
(
[children:protected] => Array
    (
        [transactionMetaData] => item
        [creditCard] => item
        [vendorInfo] => item
    )

[cardTransactionType] => AUTH_CAPTURE
[amount] => 10
[recurringTransaction] => ECOMMERCE
[merchantTransactionId] => 
[softDescriptor] => BLS*onboardingDefault
[vaultedShopperId] => 27595185
[currency] => USD
[transactionMetaData] => 
[creditCard] => tdanielcox\Bluesnap\Models\CreditCard Object
    (
        [cardNumber] => 
        [encryptedCardNumber] => 
        [cardLastFourDigits] => 0410
        [cardType] => JCB
        [expirationMonth] => 
        [expirationYear] => 
        [securityCode] => 
        [encryptedSecurityCode] => 
        [children:protected] => Array
            (
            )

        [cardSubType] => CREDIT
        [cardCategory] => STANDARD
        [binCategory] => CONSUMER
        [cardRegulated] => N
        [issuingCountryCode] => us
    )

[transactionFraudInfo] => 
[id] => 1031167745
[usdAmount] => 10
[transactionApprovalDate] => 05/29/2020
[transactionApprovalTime] => 00:07:12
[cardHolderInfo] => Array
    (
    )

[processingInfo] => Array
    (
        [processingStatus] => success
        [cvvResponseCode] => ND
        [authorizationCode] => 654321
        [avsResponseCodeZip] => U
        [avsResponseCodeAddress] => U
        [avsResponseCodeName] => U
    )

[fraudResultInfo] => Array
    (
    )

)
0 likes
1 reply

Please or to participate in this conversation.