Skip to content

Feature Request: function for generating idempotency_key #442

@TimBHowe

Description

@TimBHowe

The issue:
We have a site using the WooCommerce Square plugin for a payment gateway that utilize the WooCommerce Plugin Framework. There appears to be an issue where the plugin is using function get_order_with_unique_transaction_ref from wc-plugin-framework/woocommerce/payment-gateway/class-sv-wc-payment-gateway.php to set it's idempotency_key causing double charging in case of false error responses.

Feature Request
We suggest adding a function to the frame work to idempotency_key that can be used by payment gateways that support them such as Square.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Reporter FeedabckIssues awaiting for OP feedbackPayment GatewayPayment gateway code or issuesProposalProposals and proof-of-concepts

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions