Rails 中的声明 class 已过时?
Statement class in Rails obsolete?
我看到了关于如何在 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
我不知道声明class是否还在使用,我也没有在官方的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无关。
我看到了关于如何在 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
我不知道声明class是否还在使用,我也没有在官方的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无关。