関数
State::populate()
Refund
specific errors for a Declined
state
説明 説明
From the docs:
AmazonRejected – Amazon rejected the refund. You should issue a refund to the buyer in an alternate manner (for example, a gift card or store credit)
ProcessingFailure – Amazon could not process the transaction because of an internal processing error, or because the buyer has already received a refund from an A-to-z claim, or a chargeback. You should only retry the refund if the Capture object is in the Completed state. Otherwise, you should refund the buyer in an alternative way (for example, a store credit or a check)
ファイル: src/Models/Refund/State.php
public function populate() { // Declined $this->addError(new GenericError( DeclinedReasonCodes::AMAZON_REJECTED, 'AMAZON_REJECTED', 403, function ($message) { return $message; }, __('Amazon rejected the refund. You should issue a refund to the buyer in an alternate manner (for example, a gift card or store credit)', 'wcexaap') )); $this->addError(new GenericError( DeclinedReasonCodes::PROCESSING_FAILURE, 'PROCESSING_FAILURE', 500, function ($message) { return $message; }, __('Amazon could not process the transaction because of an internal processing error, or because the buyer has already received a refund from an A-to-z claim, or a chargeback', 'wcexaap') )); }