creagia / laravel-redsys

Integrate your Laravel application with Redsys, the lead payment gateway in Spain.
MIT License
11 stars 3 forks source link

Error Code SIS0463 #41

Closed jperez8 closed 8 months ago

jperez8 commented 9 months ago

Hi, I'm trying to make a payment with a token previously generated but the request is being denied, period.

This is the log generated: {"Ds_Date": "25/01/2024", "Ds_Hour": "18:31", "Ds_Order": "240100000204", "Ds_Amount": "31675", "Ds_Currency": "978", "Ds_Response": "0118", "Ds_Terminal": "001", "Ds_ErrorCode": "SIS0463", "Ds_Card_Country": "724", "Ds_MerchantCode": "336099247", "Ds_MerchantData": "", "Ds_SecurePayment": "0", "Ds_TransactionType": "0", "Ds_ConsumerLanguage": "1", "Ds_AuthorisationCode": " "}

Here how i'm creating the token:

image

Here how i'm making second payment:

image

I did some research and SIS0463 means 'Metodo de pago no permitido', any idea how to solve this?

dtorras commented 9 months ago

What Redsys environment are you using with this result? test or production?

jperez8 commented 9 months ago

test

jperez8 commented 9 months ago

Hi, do you have any new info about this? @dtorras

dtorras commented 9 months ago

Can you share what test card are you using to test it? After adding the DS_MERCHANT_EXCEP_SCA param, I was able to save a card token and create a recurring payment with this card data in the test environment.

$response = RequestBuilder::newRequest(new RequestParameters(
    amountInCents: $subscription->getTotalAmount(),
    currency: Currency::EUR,
    transactionType: TransactionType::Autorizacion,
+    excepSca: 'MIT',
))->associateWithModel($subscription)
    ->usingCard(
        CofType::Recurring,
        $redsysCard
    )->post();
Número de tarjeta: 4548812049400004
Caducidad: 12/23
Código CVV2: 123
dtorras commented 8 months ago

@jperez8 I'm closing this issue for now. Feel free to reopen it if you have more details.