gpt4 book ai didi

ruby-on-rails - Rails 中的语句类过时了吗?

转载 作者:太空宇宙 更新时间:2023-11-03 16:20:57 25 4
gpt4 key购买 nike

我看到了关于如何在 rails 中实现 PayPal 支付的指南,在这个代码框中, Material 来自 here

Statement.pendings.find_in_batches(batch_size: 500) do |payout_batch|
@payout = Payout.new({
:sender_batch_header => {
:sender_batch_id => SecureRandom.hex(10),
:email_subject => 'You have received a payment from CookiesHQ'
},
:items => payout_items(payout_batch)
});
end
begin
@payout_batch = @payout.create
# Logic to update any statements
rescue ResourceNotFound => err
logger.error @payout.error.inspect
end

我不知道 Statement 类是否仍在使用,而且我在 PayPal 官方文档中也没有找到任何帮助。

最佳答案

I have a Statement table that contains a list of recipients that need paying. It also includes how much we should pay them, along with their PayPal email.

Statement 只是教程作者创建的模型,与 Rails 或 PayPal SDK 无关。

关于ruby-on-rails - Rails 中的语句类过时了吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58952898/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com