Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro ao tentar atualizar a forma de pagamento de uma assinatura #3

Open
jsvini opened this issue Oct 1, 2018 · 3 comments
Open

Erro ao tentar atualizar a forma de pagamento de uma assinatura #3

jsvini opened this issue Oct 1, 2018 · 3 comments

Comments

@jsvini
Copy link

jsvini commented Oct 1, 2018

Quando tento alterar o cartão de crédito de uma assinatura, recebo o erro:
Cartão de Crédito: java.lang.Exception: empty element detected in setPsInParams for field=merchant_id

Log da Requisição:

<?xml version="1.0" encoding="UTF-8"?>
<api-request>
    <verification>
        <merchantId>XXXX</merchantId>
        <merchantKey>XXXXXXXXXXXXXXXX</merchantKey>
    </verification>
    <command>modify-recurring</command>
    <request>
        <paymentInfo>
            <cardInfo>
                <creditCardNumber>4111111111111112</creditCardNumber>
                <expirationMonth>12</expirationMonth>
                <expirationYear>2020</expirationYear>
                <cvvNumber>***</cvvNumber>
            </cardInfo>
            <chargeTotal>10.00</chargeTotal>
        </paymentInfo>
        <billingInfo>
            <name>Dev Bold</name>
            <address1>R agenor lopes, 277</address1>
            <address2>ap 502</address2>
            <city>recife</city>
            <zip>51021110</zip>
            <country>BR</country>
            <email>[email protected]</email>
            <phone>XXXXXXXXXX</phone>
        </billingInfo>
        <shippingInfo>
            <name> </name>
            <email>[email protected]</email>
            <phone>XXXXXXXXXX</phone>
        </shippingInfo>
        <recurring>
            <processorID>1</processorID>
            <action>enable</action>
            <startDate>2018-10-01</startDate>
            <frequency>1</frequency>
            <period>monthly</period>
            <installments>60</installments>
            <failureThreshold>60</failureThreshold>
        </recurring>
    </request>
</api-request>
  • Os dados sensíveis foram substituídos por XXXX.

Resposta:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<api-error>
    <errorCode>1</errorCode>
    <errorMsg>
        <![CDATA[java.lang.Exception: empty element detected in setPsInParams for field=merchant_id]]>
    </errorMsg>
</api-error>

WooCommerce: 3.4.5
WooCommerce Subscriptions: 2.3.5
WooCommerce maxiPago: 0.3.14
Ambiente: Teste

Além disso recebo vários Notices de métodos depreciados no plugin Subscriptions desde a versão 2.0 que estão sendo utilizados pelo maxiPago:

image

@pailoro
Copy link

pailoro commented Dec 16, 2019

Mesmo problema aqui

@keelviinn
Copy link

Conseguiu resolver?

@HelmoFilho
Copy link

HelmoFilho commented Jun 6, 2022

No meu caso estava usando uma chave de teste no ambiente de produção. Aqui está o que encontrei em um pdf da maxipago:

Capturar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants