나는 (여러 명의 사용자에게 한 번에 지불하는) Adaptive 지불 항목을 작동 시키려고합니다. 비록,SOAP 요청을 형식화하는 방법은 무엇입니까?
'error' => [
{
'parameter' => [
'requestEnvelope',
'null'
],
'domain' => 'PLATFORM',
'category' => 'Application',
'subdomain' => 'Application',
'errorId' => '580022',
'severity' => 'Error',
'message' => 'Invalid request parameter: requestEnvelope cannot be null'
},
{
'parameter' => [
'actionType',
'null'
],
'domain' => 'PLATFORM',
'category' => 'Application',
'subdomain' => 'Application',
'errorId' => '580022',
'severity' => 'Error',
'message' => 'Invalid request parameter: actionType cannot be null'
},
{
'parameter' => [
'cancelUrl',
'null'
],
'domain' => 'PLATFORM',
'category' => 'Application',
'subdomain' => 'Application',
'errorId' => '580022',
'severity' => 'Error',
'message' => 'Invalid request parameter: cancelUrl cannot be null'
},
{
'parameter' => [
'currencyCode',
'null'
],
'domain' => 'PLATFORM',
'category' => 'Application',
'subdomain' => 'Application',
'errorId' => '580022',
'severity' => 'Error',
'message' => 'Invalid request parameter: currencyCode cannot be null'
},
{
'parameter' => [
'receiverList',
'null'
],
'domain' => 'PLATFORM',
'category' => 'Application',
'subdomain' => 'Application',
'errorId' => '580022',
'severity' => 'Error',
'message' => 'Invalid request parameter: receiverList cannot be null'
},
{
'parameter' => [
'returnUrl',
'null'
],
'domain' => 'PLATFORM',
'category' => 'Application',
'subdomain' => 'Application',
'errorId' => '580022',
'severity' => 'Error',
'message' => 'Invalid request parameter: returnUrl cannot be null'
}
],
의 말을 모든 값이 미확정 왜 내가 조금에 관해서는 당황 해요 :
my $content = sprintf($format, qq|<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<actionType>PayRequest</actionType>
<PayRequest>
<requestEnvelope>
<errorLanguage>en_US</errorLanguage>
<currencyCode>USD</currencyCode>
<receiverList>
<receiver>
<amount>5</amount>
<email>test email here -but wont let me post it!</email>
</receiver>
</receiverList>
<returnUrl>silly forum wont let me post a test link here???</returnUrl>
<cancelUrl>silly forum wont let me post a test link here???</cancelUrl>
</requestEnvelope>
<payKey>AP-xxxxxxxxxxxxx</payKey>',
</PayRequest>
</soapenv:Body>
</soapenv:Envelope>|);
나에게 오류의 톤을 제공합니다 : 나는 다음 SOAP 요청을하려고 해요 나는 그들을 분명히 지나쳤 을까? 그것들이 전달하는 다른 매개 변수를 감지하지만, 단지 값을 얻는 것을 좋아하지 않는 것 같습니다.
누구든지 내가 뭘 잘못하고 있다고 제안 할 수 있습니까?
업데이트 2 :
는 아직도 데 문제가 SetPaymentOptions
기능이 나를 위해 완벽하게 작동하도록 점점 보내고 있습니다. 여기
{
"receiverOptions": [
{
"receiver":{
"email":"[email protected]"
},
"invoiceData":{
"totalShipping":10,
"totalTax":5,
"item":[
{
"itemPrice":25,
"name":"ITEM1",
"price":50,
"itemCount":2
}
]
},
"SenderOptions":{
"requireShippingAddressSelection":1,
"addressOverride":1
},
"customId":"foo123"
}
],
"requestEnvelope":{
"errorLanguage":"en_US",
"detailLevel":"ReturnAll"
},
"payKey":"AP-8AK803068V089131W"
}
를, 그것은하지 않습니다 거기에 새로운 배송/세금/단위 변경 사항 :
'paymentInfoList' => {
'paymentInfo' => [
{
'pendingRefund' => 'false',
'receiver' => {
'accountId' => 'AH92SPWMDXTHJ',
'email' => '[email protected]',
'amount' => '65.00',
'primary' => 'false',
'paymentType' => 'GOODS'
}
}
]
},
정말 짜증나는 부분은, 내가 운송/전체/세금 값을 변경하는 경우, 너무 수가 엄마하지 않습니다 만드는 것입니다 -하지만 그냥 같은과 PaymentDetails
요청을 보여 거부 그래서
ERROR: The total invoiced amount for [email protected] does not match the amount in the pay request at test.cgi line 127.
는 값을 따기해야합니다 TCH는 원래 "유료"요청까지 ... 다음 오류가 발생합니다 payID
제발 도와주세요 - 지금 내 재능이 끝났습니다.
포인터 주셔서 감사합니다. 나는 여전히 SOAP 요소를 사용할 수 없으므로 위에 게시 한 JSON 코드를 사용하게되었습니다. 1 인당 기준으로 배송하는 방법에 대해 알고 있다면 확실하지 않은가요? 나는 그것이 가능할 것이라고 추측하고있다 - 그러나 다시, 그것에 관한 어떤 문서도 찾을 수 없다 :/ –