Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Multi-Currency Support for payment gateways

Đang mở
#71 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
php, wordpress
Lĩnh vực
payments

Hướng nghiên cứu

Không có tệp, bài kiểm thử hoặc điểm vào nào được nêu tên. Hãy bắt đầu bằng cách lần theo cách thông tin xác thực của gateway và các thiết lập môi trường được biểu diễn, sau đó so sánh luồng đó với các yêu cầu về tiền tệ của những gateway được liệt kê; được xem là hoàn tất khi đã thống nhất một abstraction của framework cho thông tin xác thực theo từng loại tiền tệ, bao gồm việc lựa chọn môi trường, mà các gateway có thể sử dụng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Feature Payment Gateway

Multi-currency support is becoming a fairly popular request for our gateways. Let's investigate how we can implement a nice abstracted approach to multi-currency.

Gateways that support multi-currency

  • Authorize.net (AIM/CIM) - requires a separate merchant account (API login ID/transaction key) per currency. API endpoint does not change. See WooIdea
  • Beanstream - requires a separate merchant account (ID) per currency. API endpoint does not change.
  • Braintree - requires a separate merchant account (ID) per currency. API endpoint does not change.
  • CyberSource - no special configuration required, include currency in transaction request.
  • Elavon Converge - no special configuration required, include currency in transaction request.
  • First Data/Payeezy - no special configuration required, include currency in transaction request.
  • Moneris - requires a separate merchant account (store ID/API token) per currency. API endpoint does not change.
  • PayPal Express - no special configuration required, include currency in transaction request. Details here
  • Realex - no special configuration required, include currency in transaction request.
  • USA ePay - requires a separate merchant account (source key) per currency. API endpoint does not change.

Summary

5 gateways that require separate credentials per currency. None that change API endpoints. Some of those accept a lot of currencies (Braintree supports over 100+), so I think our implementation would have to assume the currently entered credentials are for the store's base currency, and allow the admin to dynamically add additional credential fields for a selected currency. These should also be keyed to the environment field.

The framework doesn't have any concept of a credential field so this would have to be abstracted into perhaps a method that returns an array of those credential fields given a specific currency (either defined or from an order) so implementing gateways can parse them into whatever credentials it needs.

Ngôn ngữ chính
PHP
Star
146
Fork
43
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của godaddy-wordpress/wc-plugin-framework

Tất cả issue của godaddy-wordpress/wc-plugin-framework

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.