Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto cancellation & refund based on transaction Seller Protection response #429

Conversation

woocommerce-00ser
Copy link
Contributor

This feature is to allow the merchant to automatically decline transactions that either have no seller protection or partial protection (partial protection would be for "item not received" PayPal cases, per: ProtectionEligibility response field from https://developer.paypal.com/docs/classic/api/merchant/DoExpressCheckoutPayment_API_Operation_SOAP/#paymentinfotype-fields and https://developer.paypal.com/docs/classic/api/merchant/GetTransactionDetails_API_Operation_NVP/ ).

The setting is exposed to the gateway's settings page, where the merchant is able to select what kind of protection they would like to enforce (e.g. if they are using woocommerce to ship out tangible goods or perhaps).

It seems I was a little behind on the current protocol, since 64.4 we should use ProtectionEligibilityType instead of ProtectionEligibility (which makes sense, the responses easier to read plain-english). If you guys think that this can be used, I can update the response checks with another pull request. For now, it seems PayPal will not be deprecating the ProtectionEligibility field that I am currently using since it still might be widely used...and it serves the same purpose as ProtectionEligibilityType.

I also manually added the translation strings to "paypal-for-woocommerce.pot" for consistency, but I am sure one of you here can generate them on the fly.

@angelleye
Copy link
Collaborator

Cool, thanks again for the contributions! We'll review this and most likely get it merged in the 1.2 update.

@angelleye angelleye added this to the 1.2 milestone Mar 10, 2016
@angelleye
Copy link
Collaborator

@kcppdevelopers Please review this and merge into the dev branch if everything looks good.

@kcppdevelopers kcppdevelopers merged commit 048aba6 into angelleye:dev Mar 12, 2016
angelleye pushed a commit that referenced this pull request May 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants