Pregunta

is it possible to pass amount = 0 to the Authorize.net i use the php code for Authorize.net recurring

my xml code is

$content =
                        "<?xml version=\"1.0\" encoding=\"utf-8\"?>" .
                        "<ARBCreateSubscriptionRequest xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">" .
                        "<merchantAuthentication>".
                        "<name>" . $loginname . "</name>".
                        "<transactionKey>" . $transactionkey . "</transactionKey>".
                        "</merchantAuthentication>".
                        "<refId>" . $refId . "</refId>".
                        "<subscription>".
                        "<name>" . $name . "</name>".
                        "<paymentSchedule>".
                        "<interval>".
                        "<length>". $length ."</length>".
                        "<unit>". $unit ."</unit>".
                        "</interval>".
                        "<startDate>" . $startDate . "</startDate>".
                        "<totalOccurrences>". $totalOccurrences . "</totalOccurrences>".
                        "<trialOccurrences>". $trialOccurrences . "</trialOccurrences>".
                        "</paymentSchedule>".
                        "<amount>". $amount ."</amount>".
                        "<trialAmount>" . $trialAmount . "</trialAmount>".
                        "<payment>".
                        "<creditCard>".
                        "<cardNumber>" . $cardNumber . "</cardNumber>".
                        "<expirationDate>" . $expirationDate . "</expirationDate>".
                        "</creditCard>".
                        "</payment>".
                        "<billTo>".
                        "<firstName>". $firstName . "</firstName>".
                        "<lastName>" . $lastName . "</lastName>".
                        /*"<address>" . $address . "</address>".
                        "<city>" . $city . "</city>".
                        "<state>" . $state . "</state>".
                        "<zip>" . $postalcode . "</zip>".
                        "<country>US</country>".*/
                        "</billTo>".
                        "</subscription>".
                        "</ARBCreateSubscriptionRequest>";
¿Fue útil?

Solución

Not with recurring subscriptions as zero is not a valid value.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top