{"action":"created","issue":{"url":"https://api.github.com/repos/spree/spree/issues/7560","repository_url":"https://api.github.com/repos/spree/spree","labels_url":"https://api.github.com/repos/spree/spree/issues/7560/labels{/name}","comments_url":"https://api.github.com/repos/spree/spree/issues/7560/comments","events_url":"https://api.github.com/repos/spree/spree/issues/7560/events","html_url":"https://github.com/spree/spree/issues/7560","id":174877649,"number":7560,"title":"Thiết lập an giới hạn for an PAYMENTMETHOD tối đa Amount # 7533","user":{"login":"0902074","id":21964876,"avatar_url":"https://avatars.githubusercontent.com/u/21964876?v=3","gravatar_id":"","url":"https://api.github.com/users/0902074","html_url":"https://github.com/0902074","followers_url":"https://api.github.com/users/0902074/followers","following_url":"https://api.github.com/users/0902074/following{/other_user}","gists_url":"https://api.github.com/users/0902074/gists{/gist_id}","starred_url":"https://api.github.com/users/0902074/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0902074/subscriptions","organizations_url":"https://api.github.com/users/0902074/orgs","repos_url":"https://api.github.com/users/0902074/repos","events_url":"https://api.github.com/users/0902074/events{/privacy}","received_events_url":"https://api.github.com/users/0902074/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-03T04:05:13Z","updated_at":"2016-09-06T11:03:49Z","closed_at":null,"body":"Chúng tôi gần đây đã có một vấn đề mà chúng tôi không muốn các đơn đặt hàng lớn beeing trả bằng thẻ tín dụng (nếu ai đó mua 20 phím chơi game và trả tiền với creditcard, có một nguy cơ cao cao của gian lận).\r\nVì vậy, chúng tôi hạn chế nó xuống theo cách này\r\n\r\n def useable_payment_methods\r\n    Spree::PaymentMethod.available_on_front_end.reject{|x|\r\n      x.type == \"Spree::Gateway::StripeGateway\" && total > 250 \r\n    }\r\n  end\r\n\r\n  def available_payment_methods\r\n    @available_payment_methods ||= useable_payment_methods\r\n  end\r\nTôi nghĩ rằng, nó có thể rất hữu ích để thiết lập một số tiền tối đa trong các phụ trợ cho mỗi PAYMENTMETHOD.\r\n\r\nĐây có phải là bằng cách nào đó quan tâm cho lõi Spree? sau đó tôi có thể làm cho một yêu cầu kéo, nếu không tôi chỉ để nó ở đây.[http://www.chuyensuadogotainha.com/2016/06/noi-that-anh-nghia0902240304-son-pu-gia.html](url)"},"comment":{"url":"https://api.github.com/repos/spree/spree/issues/comments/244918199","html_url":"https://github.com/spree/spree/issues/7560#issuecomment-244918199","issue_url":"https://api.github.com/repos/spree/spree/issues/7560","id":244918199,"user":{"login":"mauazua","id":2800299,"avatar_url":"https://avatars.githubusercontent.com/u/2800299?v=3","gravatar_id":"","url":"https://api.github.com/users/mauazua","html_url":"https://github.com/mauazua","followers_url":"https://api.github.com/users/mauazua/followers","following_url":"https://api.github.com/users/mauazua/following{/other_user}","gists_url":"https://api.github.com/users/mauazua/gists{/gist_id}","starred_url":"https://api.github.com/users/mauazua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauazua/subscriptions","organizations_url":"https://api.github.com/users/mauazua/orgs","repos_url":"https://api.github.com/users/mauazua/repos","events_url":"https://api.github.com/users/mauazua/events{/privacy}","received_events_url":"https://api.github.com/users/mauazua/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T11:03:49Z","updated_at":"2016-09-06T11:03:49Z","body":"Currently not, but this PR #7536 will add the possibility to set minimum and maximum transaction limit for each payment method. "}}
{"actor":{"display_login":"mauazua"}}