When I send a request with FEDEX_GROUND, I get this error. Is there a workaround to switch out the shipping method without explicitly looking for this error and retrying the request?
Array
(
[HighestSeverity] => ERROR
[Notifications] => Array
(
[0] => Array
(
[Severity] => ERROR
[Source] => crs
[Code] => 924
[Message] => This shipment qualifies for FedEx Home Delivery. Please resubmit your request with serviceType Ground Home Delivery.
[LocalizedMessage] => This shipment qualifies for FedEx Home Delivery. Please resubmit your request with serviceType Ground Home Delivery.
)
[1] => Array
(
[Severity] => WARNING
[Source] => crs
[Code] => 304
[Message] => Requested shipment package count did not match the summed total of group package count values; the summed total of group package count values was used to rate.
[LocalizedMessage] => Requested shipment package count did not match the summed total of group package count values; the summed total of group package count values was used to rate.
)
)
[Version] => Array
(
[ServiceId] => crs
[Major] => 10
[Intermediate] => 0
[Minor] => 0
)
)
Before you perform the label request, if the service = Ground and res=True then you should switch the service over to Ground Home Delivery. This will resolve the error.
I already had this error when the PackageCount wasn't representing the number of RequestedPackageLineItems.
<ns1:PackageCount>2</ns1:PackageCount>
<ns1:RequestedPackageLineItems><...>
<ns1:RequestedPackageLineItems><...>
If you have 2 RequestedPackageLineItems, set your PackageCount to two.
Related
I've a problem. I'm currently writing a WordPress plugin for WooCommerce which reads out an order for a booking system.
The booking system has an own field for cod costs (costs on delivery / Nachnahmegbühr (deutsch)). The problem is that I can't find a method to read this cost from an order.
If I read out the fees from the order via $order->get_fees(), I can see the cod costs but this is not safe enough cause the fee name is always in the shop language which makes it nearly impossible to read out the cod costs this way (in an international plugin):
[data:protected] => Array
(
[order_id] => 24
[name] => Zahlungsgebühr
[tax_class] => 0
[tax_status] => taxable
[amount] => 2.16
[total] => 2.16
[total_tax] => 0.34
[taxes] => Array
(
[total] => Array
(
[6] => 0.344828
)
)
)
So is there any known way to get this kind of costs?
I am using brain tree as a payment gateway in my website and initially I am authorizing the payment and after few minute I will submit it for settlement but its giving us following errors:
Settled amount is : 7
Total authorized amount is: [amount] => 187.50
I am getting below error:
**[_attribute:private] => amount
[_code:private] => 91551
[_message:private] => Settlement amount cannot be less than the service fee amount.**
For more details you see the response which I am getting:
Braintree_Result_Error Object
(
[success] =>
[_attributes] => Array
(
[errors] => Braintree_Error_ErrorCollection Object
(
[_errors:private] => Braintree_Error_ValidationErrorCollection Object
(
[_errors:private] => Array
(
)
[_nested:private] => Array
(
[transaction] => Braintree_Error_ValidationErrorCollection Object
(
[_errors:private] => Array
(
[0] => Braintree_Error_Validation Object
(
[_attribute:private] => amount
[_code:private] => 91551
[_message:private] => Settlement amount cannot be less than the service fee amount.
)
)
[_nested:private] => Array
(
)
[_collection:protected] => Array
(
)
)
)
[_collection:protected] => Array
(
)
)
)
[params] => Array
(
[transaction] => Array
(
[amount] => 7
)
[controller] => transactions
[action] => submit_for_settlement
[merchantId] => 6tfkyqyqnqh6ydwk
[id] => 92vsvs
)
[message] => Settlement amount cannot be less than the service fee amount.
[transaction] => Braintree_Transaction Object
So is there any time limit for submitting amount ?
Finally I got the answer of my question
The validation error you are encountering (91551 Settlement amount cannot be less than the service fee amount) for transaction 92vsvs is due to you attempting to settle the transaction for $7.00, which is below the service fee amount of $32.61 USD.
When creating a Marketplace transaction and passing a service fee, you can choose to authorize the total transaction amount initially and submit a smaller amount later on. The issue is that the service fee specified cannot be changed or lowered, so you need to submit an amount that can at least cover this service fee.
For example, transaction 92vsvs is authorized for $187.50 USD and has a service fee of $32.61 USD. At the bare minimum, you can submit $32.61 USD for settlement. You can submit any amount higher than $32.61 USD for settlement, but nothing lower. If you submitted only $32.61 USD for settlement than there would be no funds sent to the sub-merchant, since there are no funds remaining after the service fee is collected.
Using Paypal's DoDirect Payment method I am getting This transaction cannot be processed. Please enter a valid credit card number and type. error.
I have entered correct Visa card number, Exp. date, and Correct US address with correct zip code.
I have check this error on paypal. Its showing me Invalid Data.
I am using sandbox account for test with test visa card number provided by paypal.
Please help me on this issue.
Thanks
EDITED
I am getting below error.
DoDirectPaymentResponseType Object
(
[Amount] => BasicAmountType Object
(
[currencyID] => USD
[value] => 0.01
)
[AVSCode] =>
[CVV2Code] =>
[TransactionID] =>
[PendingReason] =>
[PaymentStatus] =>
[FMFDetails] =>
[ThreeDSecureResponse] =>
[PaymentAdviceCode] =>
[Timestamp] => 2014-09-23T06:37:51Z
[Ack] => Failure
[CorrelationID] => bb70f300ab2bd
[Errors] => Array
(
[0] => ErrorType Object
(
[ShortMessage] => Invalid Data
[LongMessage] => This transaction cannot be processed. Please enter a valid credit card number and type.
[ErrorCode] => 10527
[SeverityCode] => Error
[ErrorParameters] =>
)
)
[Version] => 106.0
[Build] => 12932421 )
Based on very limited info you provided. I think you should set the both the server and the client to TEST mode in order to use the test VISA number in debug mode.
It seems that credit card number is not at all being passed to the PayPal , only the credit card type is being passed . Please check your code and make sure the credit card number is passed to the PayPal .
I have read other posts on the very same subject but I am pretty sure I have not fallen foul of the issues of those posts. This is really frustrating me now so any help or advice would be appreciated.
I am building the following array to be sent in the SetExpressCheckout call but upon each submission i get "The totals of the cart item amounts do not match order amounts " but I dont understand how!!
[METHOD] => SetExpressCheckout
[USER] => myusername
[PWD] => 1398341028
[SIGNATURE] => xxxsignaturexxx
[VERSION] => 85.0
[RETURNURL] => http://www.mysite.dev/payment/process
[CANCELURL] => http://www.mysite.dev/payment/cancelled
[PAYMENTREQUEST_0_PAYMENTACTION] => SALE
[NOSHIPPING] => 0
[PAYMENTREQUEST_0_AMT] => 189.00
[PAYMENTREQUEST_0_ITEMAMT] => 189.00
[PAYMENTREQUEST_0_TAXAMT] => 0
[PAYMENTREQUEST_0_SHIPPINGAMT] => 0
[PAYMENTREQUEST_0_HANDLINGAMT] => 0
[PAYMENTREQUEST_0_SHIPDISCAMT] => 0
[PAYMENTREQUEST_0_INSURANCEAMT] => 0
[PAYMENTREQUEST_0_CURRENCYCODE] => GBP
[LOCALECODE] => GB
[ALLOWNOTE] => 1
[L_PAYMENTREQUEST_0_NAME0] => Website Order
[L_PAYMENTREQUEST_0_NUMBER0] => 28424747
[L_PAYMENTREQUEST_0_AMT0] => 189.00
[L_PAYMENTREQUEST_0_QTY0] => 1
Many Thanks for reading.
Kris
I went ahead and tested your call using a test account and initially it gave a similar error to what you described. I did get it to work with the only modifications I made being the format and spacing of the call.
This is the call I submitted and got a successful response, note I did have to change the user, pwd, signature, version, returnrul, and cancelurl to be able to test it:
USER=chad_1311276857_biz_api1.x.com
PWD=NGAEWP367NNSDXP2
SIGNATURE=Aef0iZ4csmtdchFhBLFKNKS88OSVA0f08rNWMEUk1J-tsdbDOFq0JpNi
METHOD=SetExpressCheckout
VERSION=113.0
RETURNURL=http://ccaples.com/index.php/api-s/paypal-nvp/nvp-quick-test
CANCELURL=http://ccaples.com/index.php/api-s/paypal-nvp/nvp-quick-test
PAYMENTREQUEST_0_PAYMENTACTION=SALE
NOSHIPPING=0
PAYMENTREQUEST_0_AMT=189.00
PAYMENTREQUEST_0_ITEMAMT=189.00
PAYMENTREQUEST_0_TAXAMT=0
PAYMENTREQUEST_0_SHIPPINGAMT=0
PAYMENTREQUEST_0_HANDLINGAMT=0
PAYMENTREQUEST_0_SHIPDISCAMT=0
PAYMENTREQUEST_0_INSURANCEAMT=0
PAYMENTREQUEST_0_CURRENCYCODE=GBP
LOCALECODE=GB
ALLOWNOTE=1
L_PAYMENTREQUEST_0_NAME0=Website Order
L_PAYMENTREQUEST_0_NUMBER0=28424747
L_PAYMENTREQUEST_0_AMT0=189.00
L_PAYMENTREQUEST_0_QTY0=1
hey guys was hoping you could help me out.
I cant seem to find any proper reference or documentation for their direct payments api and variables so I am asking here now.
I am doing direct payment for the first time and according to their integration guide, the payment status should be "successful" but this is the response I am getting (i.e i do print_r($doDirectPaymentResponse); where the variable comes from
$doDirectPaymentResponse = $paypalService->DoDirectPayment($doDirectPaymentReq,$credential_object);
)
DoDirectPaymentResponseType Object
(
[Amount] => BasicAmountType Object
(
[currencyID] => USD
[value] => 12.00
)
[AVSCode] => X
[CVV2Code] => M
[TransactionID] => 9H515811FE178263Y
[PendingReason] =>
[PaymentStatus] =>
[FMFDetails] =>
[ThreeDSecureResponse] =>
[PaymentAdviceCode] =>
[Timestamp] => 2013-02-01T15:56:31Z
[Ack] => Success
[CorrelationID] => a0a240936bf65
[Errors] =>
[Version] => 94.0
[Build] => 5060305
)
also, what exactly does the ack field tell?
Ack is the field you want to pay attention to. If it's Success or SuccessWithWarning, the payment went through successfully, and TransactionID has your transaction ID. If it's Failure or FailureWithWarning, it didn't go through.