Адаптивные платежные цепочки PayPal не позволяют осуществлять платежи, несмотря на то, что основная сумма правильно установлена.

0

Я генерирую следующий цепной вызов платежа, используя php. основным является моя компания, которая получает полную сумму, в то время как вторичный - другой получатель. вызов:

currencyCode=USD
actionType=PAY
returnUrl=http%3A%2F%2Felb-dev-xx.com%2FpaymentSuccess.php
cancelUrl=http%3A%2F%2Felb-dev-xx.com%2FpaymentCancel.php
receiverList.receiver(0).amount=12.00
receiverList.receiver(0).email=xx%40gmail.com
receiverList.receiver(0).primary=1
receiverList.receiver(0).invoiceId=MC2015022346_125
receiverList.receiver(1).amount=13.50
receiverList.receiver(1).email=xx2%40gmail.com
receiverList.receiver(1).invoiceId=MC2015022346_125
feesPayer=EACHRECEIVER
ipnNotificationUrl=http%3A%2F%2Felb-dev-xx.com%2Fpaypal%2Fipn_handler.php
memo=my+memo+and+stuff

Ошибка, которую я вижу, это:

23/Feb/2015:21:32:47] (chained_payment) [436-dl4i3jsu2gbblo1fvk5evpvjl6] : array (
'responseEnvelope.timestamp' => '2015-02-23T02:32:47.511-08:00',
'responseEnvelope.ack' => 'Failure',
  'responseEnvelope.correlationId' => 'b4d7182a1a689',
  'responseEnvelope.build' => '15089777',
  'error(0).errorId' => '579017',
  'error(0).domain' => 'PLATFORM',
  'error(0).subdomain' => 'Application',
  'error(0).severity' => 'Error',
  'error(0).category' => 'Application',
  'error(0).message' => 'The amount for the primary receiver must be greater than or equal to the total of other chained receiver amounts',
)
    [23/Feb/2015:21:32:47] (chained_payment) [436-dl4i3jsu2gbblo1fvk5evpvjl6] : array (
  0 =>
  array (
'ErrorCode' => '579017',
'ErrorMsg' => 'The amount for the primary receiver must be greater than or equal to the total of other chained receiver amounts',
'ErrorDomain' => 'PLATFORM',
'ErrorSeverity' => 'Error',
'ErrorCategory' => 'Application',
  ),
)
    [23/Feb/2015:21:32:47] (chained_payment) [436-dl4i3jsu2gbblo1fvk5evpvjl6] : Calling PayPal pay() failed
    [23/Feb/2015:21:32:47] (chained_payment) [436-dl4i3jsu2gbblo1fvk5evpvjl6] : Exception::__set_state(array(
   'message' => 'The amount for the primary receiver must be greater than or equal to the total of other chained receiver amounts',
   'string' => '',
   'code' => 0,
   'file' => '/var/app/current/chained_payment.php',
       'line' => 643,
   'trace' =>
  array (
  ),
     'previous' => NULL,
  ))
  [23/Feb/2015:21:32:47] (chained_payment) [436-dl4i3jsu2gbblo1fvk5evpvjl6] : Chained Payment failed The amount for the primary receiver must be greater than or equal to the total of other chained receiver amounts

Кажется, это говорит мне, как я уже знаю, что первичный должен получить весь хит и отправить остаток на вторичный. однако это все равно не нравится.

В настоящее время это происходит в песочнице и в производстве.

есть идеи?

Теги:
paypal
paypal-adaptive-payments

1 ответ

1

Исходя из вашего запроса, вы пытаетесь отправить $ 12,00 в основной приемник, но затем отправляете $ 13,50 на вторичный приемник. Вы не можете этого сделать.

Похоже, что вы хотите отправить 25,50 доллара на основной приемник, а затем отправить $ 13,50 на вторичный приемник, который оставит основной приемник с 12,00 $.

  • 0
    Нет. Основной получатель получает полную сумму в 12 долларов. затем он передает $ 13,50 вторичному, тем самым сохраняя .50c себя. это верно.
  • 0
    проблема решена сейчас. ошибка пришла из кода приложения не PayPal ... на этот раз :)
Показать ещё 1 комментарий

Ещё вопросы

Сообщество Overcoder
Наверх
Меню